🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1332

gcc-2.3.1

#1332
From: rjc
Date: Mon, 09 Nov 1992 20:38
42 lines
1566 bytes
Machine:       Sony NEWS 3860, running NEWSOS 5.0U
Configuration: configure mips-sony-sysv4
Problem:       mips-tdump.c fails to compile.  compiler complains about
               "index" not being a member of the SYMR structure.

My sol'n was to move the "#ifdef index" above the inclusion of "sym.h".
Here's the patch:

devo$ gdiff -c2 mips-tdump.c~ mips-tdump.c
*** mips-tdump.c~       Thu Oct 29 11:32:39 1992
--- mips-tdump.c        Sun Nov  8 22:47:05 1992
***************
*** 27,30 ****
--- 27,35 ----
  #include "config.h"

+ #ifdef index
+ #undef index
+ #undef rindex
+ #endif
+
  #ifndef CROSS_COMPILE
  #include <a.out.h>
***************
*** 60,68 ****
  #define uint  unsigned int
  #define ulong unsigned long
-
- #ifdef index
- #undef index
- #undef rindex
- #endif


--- 65,68 ----
devo$

--
Ronald Cole           +----------------------+  internet: rjc@unify.com
Software Engineer II  |    Lord/Genis '96    |  uucp:     uunet!unify!rjc
Unify Corporation     +----------------------+  voice:    +1 916 928 6238
          "THE BILL OF RIGHTS --- Void where prohibited by law"
Technical Details
Message-ID: <9211092038.AA26490@unify.Unify.Com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!devo.unify.COM!rjc

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!devo.unify.COM!rjc
From: rjc@devo.unify.COM
Subject: gcc-2.3.1
Message-ID: <9211092038.AA26490@unify.Unify.Com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 9 Nov 1992 20:38:00 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 43