Package: gcc-4.0
Version: 4.0.2-8
Severity: important
I am currently trying to build the glibc with gcc-4.0 instead of gcc-3.4
on all arches. On m68k, I get an ICE:
(unstable)aurel32@crest:~$ gcc-4.0 system.c -O -c -g -fomit-frame-pointer -o system.o
system.c: In function '__libc_system':
system.c:16: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
(unstable)aurel32@crest:~$
This is with a reduced testcase:
extern int __libc_multiple_threads __attribute__ ((visibility ("hidden")));
static int
do_system (const char *line)
{
 return 0;
}
int
__libc_system (const char *line)
{
 if (__builtin_expect (__libc_multiple_threads == 0, 1))
   return do_system (line);
 return 0;
}
To reproduce the bug, you need to compile this code with:
-O (also with -O2 or -O3 on the original code, but not on the reduced
testcase probably because optimisation is easier on it)
AND
-g or -g2
AND
-fomit-frame-pointer
-- System Information:
Debian Release: testing/unstable
 APT prefers unstable
 APT policy: (100, 'unstable')
Architecture: m68k
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.31
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages gcc-4.0 depends on:
ii  binutils             2.16.1cvs20060117-1 The GNU assembler, linker and bina
ii  cpp-4.0              4.0.2-8             The GNU C preprocessor
ii  gcc-4.0-base         4.0.2-8             The GNU Compiler Collection (base 
ii  libc6                2.3.5-12.1          GNU C Library: Shared libraries an
ii  libgcc2              4.0.2-8             GCC support library
Versions of packages gcc-4.0 recommends:
ii  libc6-dev                     2.3.5-12.1 GNU C Library: Development Librari
pn  libmudflap0-dev               <none>     (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org