home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / bug / 2020 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.7 KB

  1. Xref: sparky gnu.gcc.bug:2020 gnu.gdb.bug:919
  2. Path: sparky!uunet!decwrl!bu.edu!ai-lab!ai.mit.edu!gnulists
  3. From: bernstei@kinglear.cs.colorado.edu
  4. Newsgroups: gnu.gcc.bug,gnu.gdb.bug
  5. Subject: fix-includes problem?
  6. Message-ID: <199207292138.AA09209@kinglear.cs.Colorado.EDU>
  7. Date: 29 Jul 92 22:38:17 GMT
  8. Lines: 54
  9. Approved: info-gnu@prep.ai.mit.edu
  10. To: bug-gdb@prep.ai.mit.edu
  11. Cc: bug-gcc@prep.ai.mit.edu
  12.  
  13. Followup-To: gnu.gcc.bug,gnu.gdb.bug
  14.  
  15. This bug report sent to both bug-gcc and bug-gdb.
  16.  
  17. There appears to be a bug in either the way fix-includes for gcc 2.2.2
  18. works or the way the gdb-4.6 source expects it to act.
  19.  
  20. Included is the tail of a compile under gcc-2.2.2 w/o any patches,
  21. fix-includes have been made, using CC=cc, which is to say:
  22.  
  23.     #!/bin/sh
  24.     /usr/local/bin/gcc -traditional -fwritable-strings -fno-defer-pop $*
  25.  
  26. using the gmake command:
  27.  
  28.     gmake CFLAGS="-DGCC_MANGLE_BUG" all-gdb
  29.  
  30. from a Makefile configured via:
  31.  
  32.     ./configure m68k-hp-bsd
  33.  
  34. The -DGCC-MANGLE_BUG is as per instructions in the gdb-4.6-gcc.patch.Z file.
  35.  
  36. I switched to CC=gcc, and it worked.
  37.  
  38. Looking at gdb-4.6/gdb/infcmd.c:879 did reveal the disturbing:
  39.  
  40.     const char * const reg_names[] = REGISTER_NAMES;
  41.  
  42. Anyhow, here's the tail:
  43. ------------------------------------------------------------
  44. cc -c -DGCC_MANGLE_BUG      -I. -I. -I./../include -I./../readline  printcmd.c
  45. cc -c -DGCC_MANGLE_BUG      -I. -I. -I./../include -I./../readline  symtab.c
  46. In file included from symtab.c:40:
  47. /usr/local/lib/gcc-lib/m68k-hp-bsd/2.2.2/include/sys/types.h:21: warning: `const' redefined
  48. defs.h:382: warning: this is the location of the previous definition
  49. cc -c -DGCC_MANGLE_BUG      -I. -I. -I./../include -I./../readline  symfile.c
  50. In file included from symfile.c:36:
  51. /usr/local/lib/gcc-lib/m68k-hp-bsd/2.2.2/include/sys/types.h:21: warning: `const' redefined
  52. defs.h:382: warning: this is the location of the previous definition
  53. cc -c -DGCC_MANGLE_BUG      -I. -I. -I./../include -I./../readline  symmisc.c
  54. cc -c -DGCC_MANGLE_BUG      -I. -I. -I./../include -I./../readline  infcmd.c
  55. In file included from /usr/local/lib/gcc-lib/m68k-hp-bsd/2.2.2/include/sys/param.h:51, from infcmd.c:22:
  56. /usr/local/lib/gcc-lib/m68k-hp-bsd/2.2.2/include/sys/types.h:21: warning: `const' redefined
  57. defs.h:382: warning: this is the location of the previous definition
  58. infcmd.c:879: conflicting types for `reg_names'
  59. defs.h:560: previous declaration of `reg_names'
  60. gmake[1]: *** [infcmd.o] Error 1
  61. gmake: *** [all-gdb] Error 1
  62. ------------------------------------------------------------
  63.  
  64. Michael Bernstein                         bernstei@cs.colorado.edu
  65. Undergraduate Operations Group (Ugrad/Ops)
  66. Computer Science Department, The University of Colorado at Boulder
  67.