Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by bernstei
Wed, 29 Jul 1992 22:38
fix-includes problem?
Author: bernstei
Date: Wed, 29 Jul 1992 22:38
Date: Wed, 29 Jul 1992 22:38
54 lines
2737 bytes
2737 bytes
Followup-To: gnu.gcc.bug,gnu.gdb.bug This bug report sent to both bug-gcc and bug-gdb. There appears to be a bug in either the way fix-includes for gcc 2.2.2 works or the way the gdb-4.6 source expects it to act. Included is the tail of a compile under gcc-2.2.2 w/o any patches, fix-includes have been made, using CC=cc, which is to say: #!/bin/sh /usr/local/bin/gcc -traditional -fwritable-strings -fno-defer-pop $* using the gmake command: gmake CFLAGS="-DGCC_MANGLE_BUG" all-gdb from a Makefile configured via: ./configure m68k-hp-bsd The -DGCC-MANGLE_BUG is as per instructions in the gdb-4.6-gcc.patch.Z file. I switched to CC=gcc, and it worked. Looking at gdb-4.6/gdb/infcmd.c:879 did reveal the disturbing: const char * const reg_names[] = REGISTER_NAMES; Anyhow, here's the tail: ------------------------------------------------------------ cc -c -DGCC_MANGLE_BUG -I. -I. -I./../include -I./../readline printcmd.c cc -c -DGCC_MANGLE_BUG -I. -I. -I./../include -I./../readline symtab.c In file included from symtab.c:40: /usr/local/lib/gcc-lib/m68k-hp-bsd/2.2.2/include/sys/types.h:21: warning: `const' redefined defs.h:382: warning: this is the location of the previous definition cc -c -DGCC_MANGLE_BUG -I. -I. -I./../include -I./../readline symfile.c In file included from symfile.c:36: /usr/local/lib/gcc-lib/m68k-hp-bsd/2.2.2/include/sys/types.h:21: warning: `const' redefined defs.h:382: warning: this is the location of the previous definition cc -c -DGCC_MANGLE_BUG -I. -I. -I./../include -I./../readline symmisc.c cc -c -DGCC_MANGLE_BUG -I. -I. -I./../include -I./../readline infcmd.c In file included from /usr/local/lib/gcc-lib/m68k-hp-bsd/2.2.2/include/sys/param.h:51, from infcmd.c:22: /usr/local/lib/gcc-lib/m68k-hp-bsd/2.2.2/include/sys/types.h:21: warning: `const' redefined defs.h:382: warning: this is the location of the previous definition infcmd.c:879: conflicting types for `reg_names' defs.h:560: previous declaration of `reg_names' gmake[1]: *** [infcmd.o] Error 1 gmake: *** [all-gdb] Error 1 ------------------------------------------------------------ Michael Bernstein bernstei@cs.colorado.edu Undergraduate Operations Group (Ugrad/Ops) Computer Science Department, The University of Colorado at Boulder
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads