public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* C ABI changes between gcc 2.96 and gcc 3.2?
@ 2002-10-14 18:36 H. J. Lu
  2002-10-14 19:13 ` Joseph S. Myers
  0 siblings, 1 reply; 3+ messages in thread
From: H. J. Lu @ 2002-10-14 18:36 UTC (permalink / raw)
  To: gcc; +Cc: GNU C Library

I was investigating an odd crash after modifying mips.c in gcc 3.2.
I built a gcc 3.2 cross compiler on Linux/x86, using gcc 3.2. After
I modified mips.c, I tried to rebuild the cross compiler. I got

./xgcc -B./ -B/export/tools-3.2/mipsel-linux/bin/ -isystem
/export/tools-3.2/mipsel-linux/include -isystem
/export/tools-3.2/mipsel-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE   -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -I. -I. -I/export/linux/src/tools-3.2/tools/gcc
-I/export/linux/src/tools-3.2/tools/gcc/.
-I/export/linux/src/tools-3.2/tools/gcc/config
-I/export/linux/src/tools-3.2/tools/gcc/../include  -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions  \
   -c /export/linux/src/tools-3.2/tools/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
/export/linux/src/tools-3.2/tools/gcc/crtstuff.c: In function
`__do_global_dtors_aux':
/export/linux/src/tools-3.2/tools/gcc/crtstuff.c:286: internal error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

It turned out that I recompiled mips.c with gcc 2.96 by accident and 
targetm in mips.c had a different layout from the one compiled with
gcc 3.2. I got

(gdb) p targetm
...
  cannot_modify_jumps_p = 0x1}

instead of

(gdb) p targetm
...
  cannot_modify_jumps_p = 0x8212df0 <hook_void_bool_false>}

Is that a known issue? I guess I can extract a testcase out of it. I
think it may impact people who try to use gcc 2.96 with glibc compiled
with gcc 3.2.


H.J.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-15  4:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-14 18:36 C ABI changes between gcc 2.96 and gcc 3.2? H. J. Lu
2002-10-14 19:13 ` Joseph S. Myers
2002-10-14 23:28   ` H. J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).