Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228889 - [ICE/4.3] building e2fsprogs fails with gcc-4.3.1 ICE with -fipa-pta -O2
Summary: [ICE/4.3] building e2fsprogs fails with gcc-4.3.1 ICE with -fipa-pta -O2
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR36600
Whiteboard:
Keywords:
Depends on:
Blocks: 229651
  Show dependency tree
 
Reported: 2008-06-22 12:44 UTC by Nico R.
Modified: 2008-12-07 19:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Preprocessed source with reduced testcase for showing gcc-4.3.1 -fipa-pta ICE. (testcase.i,462 bytes, text/plain)
2008-06-22 12:46 UTC, Nico R.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico R. 2008-06-22 12:44:19 UTC
I tried to emerge sys-fs/e2fsprogs-1.40.9 with gcc-4.3.1 and ‘-fipa-pta’ in CFLAGS. This resulted in an ICE for lib/ext2fs/tdb.c.

I’m going to attach my reduced testcase.
Comment 1 Nico R. 2008-06-22 12:46:54 UTC
Created attachment 157999 [details]
Preprocessed source with reduced testcase for showing gcc-4.3.1 -fipa-pta ICE.

Reduced testcase. Compile with

  LC_ALL=POSIX gcc -O2 -march=i686 -fipa-pta -c testcase.i -v


Output on my machine:


Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-cld --enable-java-awt=gtk --with-arch=i686 --enable-objc-gc --enable-languages=c,c++,java,objc,obj-c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.1 p1.0'
Thread model: posix
gcc version 4.3.1 (Gentoo 4.3.1 p1.0) 
COLLECT_GCC_OPTIONS='-O2' '-march=i686' '-fipa-pta' '-c' '-v'
 /usr/libexec/gcc/i686-pc-linux-gnu/4.3.1/cc1 -fpreprocessed testcase.i -quiet -dumpbase testcase.i -march=i686 -auxbase testcase -O2 -version -fipa-pta -o /tmp/ccJ4nG6z.s
GNU C (Gentoo 4.3.1 p1.0) version 4.3.1 (i686-pc-linux-gnu)
        compiled by GNU C version 4.3.1, GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128247
Compiler executable checksum: 322912a5ff88bc183753d2e2518d8b70
testcase.i: In function 'func_one':
testcase.i:24: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
Comment 2 SpanKY gentoo-dev 2008-12-07 19:16:49 UTC
-fipa-pta doesnt affect code generation, so it doesnt make sense to use it.  upstream is aware of the issues though and is banging away on them.