Matthias Klose a écrit :
Please recheck with a current gcc-4.1 from experimental.
I don't have and m68k machine, and I really doubt debian-admin would
like to install experimental packages on crest.d.o. Therefore it would
be nice if somebody who have a m68k machine (hence the Cc: to the m68k
list) could do the test. Also gcc-4.0 4.0.2-8 is not the latest version
(there is a 4.0.2-9), so could you please test with this version?
You will fine the testcase below.
Thanks
Aurelien
Aurelien Jarno writes:
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)[EMAIL PROTECTED]:~$ 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)[EMAIL PROTECTED]:~$
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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' [EMAIL PROTECTED] | [EMAIL PROTECTED]
`- people.debian.org/~aurel32 | www.aurel32.net
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]