home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gcc / bug / 2691 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.5 KB  |  56 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: 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
  3. From: rjc@devo.unify.COM
  4. Subject: gcc-2.3.1
  5. Message-ID: <9211092038.AA26490@unify.Unify.Com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 9 Nov 1992 20:38:00 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 43
  12.  
  13. Machine:       Sony NEWS 3860, running NEWSOS 5.0U
  14. Configuration: configure mips-sony-sysv4
  15. Problem:       mips-tdump.c fails to compile.  compiler complains about
  16.                "index" not being a member of the SYMR structure.
  17.  
  18. My sol'n was to move the "#ifdef index" above the inclusion of "sym.h".
  19. Here's the patch:
  20.  
  21. devo$ gdiff -c2 mips-tdump.c~ mips-tdump.c
  22. *** mips-tdump.c~       Thu Oct 29 11:32:39 1992
  23. --- mips-tdump.c        Sun Nov  8 22:47:05 1992
  24. ***************
  25. *** 27,30 ****
  26. --- 27,35 ----
  27.   #include "config.h"
  28.  
  29. + #ifdef index
  30. + #undef index
  31. + #undef rindex
  32. + #endif
  33. +
  34.   #ifndef CROSS_COMPILE
  35.   #include <a.out.h>
  36. ***************
  37. *** 60,68 ****
  38.   #define uint  unsigned int
  39.   #define ulong unsigned long
  40. -
  41. - #ifdef index
  42. - #undef index
  43. - #undef rindex
  44. - #endif
  45.  
  46.  
  47. --- 65,68 ----
  48. devo$
  49.  
  50. --
  51. Ronald Cole           +----------------------+  internet: rjc@unify.com
  52. Software Engineer II  |    Lord/Genis '96    |  uucp:     uunet!unify!rjc
  53. Unify Corporation     +----------------------+  voice:    +1 916 928 6238
  54.           "THE BILL OF RIGHTS --- Void where prohibited by law"
  55.  
  56.