This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/55113] New: internal compiler error: in emit_library_call_value_1, at calls.c:3739
- From: "patrick at motec dot com.au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 28 Oct 2012 22:26:05 +0000
- Subject: [Bug lto/55113] New: internal compiler error: in emit_library_call_value_1, at calls.c:3739
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55113
Bug #: 55113
Summary: internal compiler error: in emit_library_call_value_1,
at calls.c:3739
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: patrick@motec.com.au
Created attachment 28550
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28550
Problem object files
Using cross-compile gcc (x86_64 to powerpc) the following command line results
in an internal compiler error.
I have attached the problem object files (couldn't reduce beyond these two).
Hope this is enough information, thanks.
patrick@gtr:~/bug/report2$ powerpc-eabispe-gcc -v -Os -flto=jobserver -nostdlib
-o test *.o
Using built-in specs.
COLLECT_GCC=powerpc-eabispe-gcc
COLLECT_LTO_WRAPPER=/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/powerpc-eabispe/4.7.2/lto-wrapper
Target: powerpc-eabispe
Configured with: /z/src/e7/toolchain/src/gcc-4.7.2/configure
--prefix=/z/src/e7/toolchain/stage2 --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=powerpc-eabispe
--enable-languages=c,c++ --with-sysroot=/z/src/e7/toolchain/../prex_sysroot
--disable-nls --disable-werror --with-newlib
--with-gmp=/z/src/e7/toolchain/stage2 --with-mpfr=/z/src/e7/toolchain/stage2
--disable-shared --disable-debug --disable-libssp --with-cpu=8540
Thread model: single
gcc version 4.7.2 (GCC)
COMPILER_PATH=/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/powerpc-eabispe/4.7.2/:/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/:/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/../../../../powerpc-eabispe/bin/
LIBRARY_PATH=/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/:/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/:/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/../../../../powerpc-eabispe/lib/
COLLECT_GCC_OPTIONS='-v' '-Os' '-flto=jobserver' '-nostdlib' '-o' 'test'
'-mcpu=8540'
/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/powerpc-eabispe/4.7.2/collect2
-plugin
/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/powerpc-eabispe/4.7.2/liblto_plugin.so
-plugin-opt=/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/powerpc-eabispe/4.7.2/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccXmIQW9.res -flto=jobserver
--sysroot=/z/src/e7/toolchain/../prex_sysroot --eh-frame-hdr -V -dn -Bstatic -o
test
-L/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2
-L/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc
-L/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/../../../../powerpc-eabispe/lib
bug0.o bug1.o
GNU ld (GNU Binutils) 2.22
Supported emulations:
elf32ppc
elf32ppclinux
elf32ppcsim powerpc-eabispe-gcc @/tmp/ccMr3FEZ.args
Using built-in specs.
COLLECT_GCC=powerpc-eabispe-gcc
Target: powerpc-eabispe
Configured with: /z/src/e7/toolchain/src/gcc-4.7.2/configure
--prefix=/z/src/e7/toolchain/stage2 --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=powerpc-eabispe
--enable-languages=c,c++ --with-sysroot=/z/src/e7/toolchain/../prex_sysroot
--disable-nls --disable-werror --with-newlib
--with-gmp=/z/src/e7/toolchain/stage2 --with-mpfr=/z/src/e7/toolchain/stage2
--disable-shared --disable-debug --disable-libssp --with-cpu=8540
Thread model: single
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-c' '-msdata=none' '-mno-spe' '-mcpu=8540' '-v' '-Os'
'-nostdlib' '-mcpu=8540' '-dumpdir' './' '-dumpbase' 'test.wpa'
'-fltrans-output-list=/tmp/cc06h8H9.ltrans.out' '-fwpa'
'-fresolution=/tmp/ccXmIQW9.res'
/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/../../libexec/gcc/powerpc-eabispe/4.7.2/lto1
-quiet -dumpdir ./ -dumpbase test.wpa -msdata=none -mno-spe -mcpu=8540
-mcpu=8540 -auxbase bug0 -Os -version
-fltrans-output-list=/tmp/cc06h8H9.ltrans.out -fwpa
-fresolution=/tmp/ccXmIQW9.res @/tmp/ccZssqpa
GNU GIMPLE (GCC) version 4.7.2 (powerpc-eabispe)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 3.1.1, MPC
version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 4.7.2 (powerpc-eabispe)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 3.1.1, MPC
version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COMPILER_PATH=/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/../../libexec/gcc/powerpc-eabispe/4.7.2/:/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/../../libexec/gcc/:/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/powerpc-eabispe/4.7.2/:/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/powerpc-eabispe/4.7.2/:/home/patrick/src/e7/toolchain/stage2/bin/../libexec/gcc/:/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/../../../../powerpc-eabispe/bin/:/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/../../../../powerpc-eabispe/bin/
LIBRARY_PATH=/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/:/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/:/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/../../../../powerpc-eabispe/lib/
COLLECT_GCC_OPTIONS='-c' '-msdata=none' '-mno-spe' '-mcpu=8540' '-v' '-Os'
'-nostdlib' '-mcpu=8540' '-dumpdir' './' '-dumpbase' 'test.wpa'
'-fltrans-output-list=/tmp/cc06h8H9.ltrans.out' '-fwpa'
'-fresolution=/tmp/ccXmIQW9.res'
make -f /tmp/ccI66gEF.mk all
Using built-in specs.
COLLECT_GCC=powerpc-eabispe-gcc
Target: powerpc-eabispe
Configured with: /z/src/e7/toolchain/src/gcc-4.7.2/configure
--prefix=/z/src/e7/toolchain/stage2 --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=powerpc-eabispe
--enable-languages=c,c++ --with-sysroot=/z/src/e7/toolchain/../prex_sysroot
--disable-nls --disable-werror --with-newlib
--with-gmp=/z/src/e7/toolchain/stage2 --with-mpfr=/z/src/e7/toolchain/stage2
--disable-shared --disable-debug --disable-libssp --with-cpu=8540
Thread model: single
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-c' '-msdata=none' '-mno-spe' '-mcpu=8540' '-v' '-Os'
'-nostdlib' '-mcpu=8540' '-dumpdir' './' '-dumpbase' 'test.ltrans0' '-fltrans'
'-o' '/tmp/cc06h8H9.ltrans0.ltrans.o'
/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/../../libexec/gcc/powerpc-eabispe/4.7.2/lto1
-quiet -dumpdir ./ -dumpbase test.ltrans0 -msdata=none -mno-spe -mcpu=8540
-mcpu=8540 -auxbase-strip /tmp/cc06h8H9.ltrans0.ltrans.o -Os -version -fltrans
/tmp/cc06h8H9.ltrans0.o -o /tmp/ccMPWpac.s
GNU GIMPLE (GCC) version 4.7.2 (powerpc-eabispe)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 3.1.1, MPC
version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 4.7.2 (powerpc-eabispe)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 3.1.1, MPC
version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
In file included from tpu.c:1245:0,
from :74:
etpu/etpu_port.c: In function 'tpu_port_status_get.isra.25':
etpu/etpu_port.c:310:33: internal compiler error: in emit_library_call_value_1,
at calls.c:3739
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [/tmp/cc06h8H9.ltrans0.ltrans.o] Error 1
lto-wrapper: make returned 2 exit status
/home/patrick/src/e7/toolchain/stage2/bin/../lib/gcc/powerpc-eabispe/4.7.2/../../../../powerpc-eabispe/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status