Subject: gcc-4.0 segfaults when compiling libtool's ltdl.c with -O Package: gcc-4.0 Version: 4.0.1-3 Severity: important
gcc 4.0 segfaults when compiling ltdl.c with optimizations turned on. I doubt that this bug is specific to that particular file, but I have yet to find a minimal example. $ gcc -c -DHAVE_CONFIG_H -v -save-temps -I. -O2 ltdl.c Using built-in specs. Target: i486-linux-gnuConfigured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix gcc version 4.0.2 20050725 (prerelease) (Debian 4.0.1-3) [...]/usr/lib/gcc/i486-linux-gnu/4.0.2/cc1 -fpreprocessed ltdl.i -quiet -dumpbase ltdl.c -mtune=i486 -auxbase ltdl -O2 -version -o ltdl.s
GNU C version 4.0.2 20050725 (prerelease) (Debian 4.0.1-3) (i486-linux-gnu)compiled by GNU C version 4.0.2 20050725 (prerelease) (Debian 4.0.1-3).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=31997 ltdl.c: In function 'presym_free_symlists': ltdl.c:1979: internal compiler error: Speicherzugriffsfehler (gcc version 4.1.0 20050726 (experimental) does seem to work fine) The segfault does occur with -O and -O2, but not with -O0. ltdl.i is attached. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.12-1-686Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages gcc-4.0 depends on:ii binutils 2.16.1-2 The GNU assembler, linker and bina
ii cpp-4.0 4.0.1-3 The GNU C preprocessorii gcc-4.0-base 4.0.1-3 The GNU Compiler Collection (base ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.1-3 GCC support library Versions of packages gcc-4.0 recommends:ii libc6-dev 2.3.2.ds1-22 GNU C Library: Development Librari ii libmudflap0-dev 4.0.1-3 GCC mudflap support libraries (dev
-- no debconf information
ltdl.i.bz2
Description: application/bzip