[Bug tree-optimization/66330] gcc.c-torture/execute/20040709-1.c compilation fatal error with -flto -O2

vries at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 29 21:33:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66330

--- Comment #2 from vries at gcc dot gnu.org ---
Revision: trunk@223866

configure line:
...
$ install/bin/gcc -v
Using built-in specs.
COLLECT_GCC=install/bin/gcc
COLLECT_LTO_WRAPPER=install/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: src/configure --prefix=install --with-cloog=infra
--with-ppl=infra --with-gmp=infra --with-mpfr=infra --with-mpc=infra
--with-isl=infra --disable-bootstrap --enable-checking=yes,rtl
--enable-languages=c
Thread model: posix
gcc version 6.0.0 20150529 (experimental) (GCC) 
...

Reproduced using installed gcc rather than build-time gc:
...
$ install/bin/gcc src/gcc/testsuite/gcc.c-torture/execute/20040709-1.c -O2 -w
-fipa-pta -flto
lto1: fatal error: /tmp/ccVbK4Y1.ltrans1.o: section s.1837.lto_priv.0 is
missing
compilation terminated.
lto-wrapper: fatal error: install/bin/gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
...


ld version:
...
$ ld -v
GNU ld (GNU Binutils for Ubuntu) 2.24
...



More information about the Gcc-bugs mailing list