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

            Bug ID: 64162
           Summary: ICE: in emit_library_call_value_1, at calls.c:3779
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at motec dot com.au

Created attachment 34176
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34176&action=edit
Reduced test case

$ powerpc-eabispe-gcc.exe -O0 -v -fshort-double -flto -fuse-linker-plugin
-nostdlib test.c
Using built-in specs.
COLLECT_GCC=Z:\home\patrick\src\e7\toolchain\local\bin\powerpc-eabispe-gcc.exe
COLLECT_LTO_WRAPPER=z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/powerpc-eabispe/4.9.2/lto-wrapper.exe
Target: powerpc-eabispe
Configured with: /home/patrick/src/e7/toolchain/src/gcc-combined/configure
--prefix=/home/patrick/src/e7/toolchain/local --build=x86_64-unknown-linux-gnu
--host=i686-w64-mingw32 --target=powerpc-eabispe --enable-languages=c,c++
--disable-nls --disable-werror --with-newlib
--with-sysroot=/home/patrick/src/e7/toolchain/../prex_sysroot --disable-shared
--disable-debug --disable-libssp --enable-sjlj-exceptions
--disable-win32-registry --disable-threads --with-dwarf2 --without-stabs
--with-gnu-ld --with-gnu-as --with-cpu=8540
Thread model: single
gcc version 4.9.2 (GCC) 
COLLECT_GCC_OPTIONS='-O0' '-v' '-fshort-double' '-flto' '-fuse-linker-plugin'
'-nostdlib' '-mcpu=8540'

z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/powerpc-eabispe/4.9.2/cc1.exe
-quiet -v -iprefix
z:\home\patrick\src\e7\toolchain\local\bin\../lib/gcc/powerpc-eabispe/4.9.2/
test.c -quiet -dumpbase test.c -mcpu=8540 -auxbase test -O0 -version
-fshort-double -flto -fuse-linker-plugin -o C:\users\patrick\Temp\ccFN20sx.s
GNU C (GCC) version 4.9.2 (powerpc-eabispe)
    compiled by GNU C version 4.9.2, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory
"z:/home/patrick/src/e7/toolchain/local/lib/gcc/../../lib/gcc/powerpc-eabispe/4.9.2/include"
ignoring nonexistent directory
"/home/patrick/src/e7/toolchain/../prex_sysroot/home/patrick/src/e7/toolchain/local/lib/gcc/powerpc-eabispe/4.9.2/../../../../include"
ignoring duplicate directory
"z:/home/patrick/src/e7/toolchain/local/lib/gcc/../../lib/gcc/powerpc-eabispe/4.9.2/include-fixed"
ignoring duplicate directory
"z:/home/patrick/src/e7/toolchain/local/lib/gcc/../../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/include"
#include "..." search starts here:
#include <...> search starts here:

z:\home\patrick\src\e7\toolchain\local\bin\../lib/gcc/powerpc-eabispe/4.9.2/include

z:\home\patrick\src\e7\toolchain\local\bin\../lib/gcc/powerpc-eabispe/4.9.2/include-fixed

z:\home\patrick\src\e7\toolchain\local\bin\../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/include
 /home/patrick/src/e7/toolchain/../prex_sysroot/usr/include
End of search list.
GNU C (GCC) version 4.9.2 (powerpc-eabispe)
    compiled by GNU C version 4.9.2, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4a232abe5387117e6bc5358c473b10fb
COLLECT_GCC_OPTIONS='-O0' '-v' '-fshort-double' '-flto' '-fuse-linker-plugin'
'-nostdlib' '-mcpu=8540'

z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/bin/as.exe
-v -me500 -many -mbig -o C:\users\patrick\Temp\ccQYFUK0.o
C:\users\patrick\Temp\ccFN20sx.s
GNU assembler version 2.24 (powerpc-eabispe) using BFD version (GNU Binutils)
2.24
COMPILER_PATH=z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/powerpc-eabispe/4.9.2/;z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/;z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/bin/
LIBRARY_PATH=z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/;z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/;z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/lib/
COLLECT_GCC_OPTIONS='-O0' '-v' '-fshort-double' '-flto' '-fuse-linker-plugin'
'-nostdlib' '-mcpu=8540'

z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/powerpc-eabispe/4.9.2/collect2.exe
-plugin
z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/powerpc-eabispe/4.9.2/liblto_plugin-0.dll
-plugin-opt=z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/powerpc-eabispe/4.9.2/lto-wrapper.exe
-plugin-opt=-fresolution=C:\users\patrick\Temp\cc9lZP7A.res -flto
--sysroot=/home/patrick/src/e7/toolchain/../prex_sysroot --eh-frame-hdr -V -dn
-Bstatic
-Lz:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2
-Lz:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc
-Lz:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/lib
C:\users\patrick\Temp\ccQYFUK0.o
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x01b6 ignored
GNU ld (GNU Binutils) 2.24
  Supported emulations:
   elf32ppc
   elf32ppclinux
   elf32ppcsim
 Z:\home\patrick\src\e7\toolchain\local\bin\powerpc-eabispe-gcc.exe
@C:\users\patrick\Temp\ccEPDAcN.args
Using built-in specs.
COLLECT_GCC=Z:\home\patrick\src\e7\toolchain\local\bin\powerpc-eabispe-gcc.exe
Target: powerpc-eabispe
Configured with: /home/patrick/src/e7/toolchain/src/gcc-combined/configure
--prefix=/home/patrick/src/e7/toolchain/local --build=x86_64-unknown-linux-gnu
--host=i686-w64-mingw32 --target=powerpc-eabispe --enable-languages=c,c++
--disable-nls --disable-werror --with-newlib
--with-sysroot=/home/patrick/src/e7/toolchain/../prex_sysroot --disable-shared
--disable-debug --disable-libssp --enable-sjlj-exceptions
--disable-win32-registry --disable-threads --with-dwarf2 --without-stabs
--with-gnu-ld --with-gnu-as --with-cpu=8540
Thread model: single
gcc version 4.9.2 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-O0' '-v' '-fuse-linker-plugin' '-nostdlib'
'-mcpu=8540' '-fltrans-output-list=C:\users\patrick\Temp\cca6h4FY.ltrans.out'
'-fwpa' '-fresolution=C:\users\patrick\Temp\cc9lZP7A.res'

z:/home/patrick/src/e7/toolchain/local/lib/gcc/../../libexec/gcc/powerpc-eabispe/4.9.2/lto1.exe
-quiet -dumpbase ccQYFUK0.o -mcpu=8540 -auxbase ccQYFUK0 -O0 -version
-fuse-linker-plugin
-fltrans-output-list=C:\users\patrick\Temp\cca6h4FY.ltrans.out -fwpa
-fresolution=C:\users\patrick\Temp\cc9lZP7A.res @C:\users\patrick\Temp\cc84GyN0
GNU GIMPLE (GCC) version 4.9.2 (powerpc-eabispe)
    compiled by GNU C version 4.9.2, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 4.9.2 (powerpc-eabispe)
    compiled by GNU C version 4.9.2, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COMPILER_PATH=z:/home/patrick/src/e7/toolchain/local/lib/gcc/../../libexec/gcc/powerpc-eabispe/4.9.2/;z:/home/patrick/src/e7/toolchain/local/lib/gcc/../../libexec/gcc/;z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/powerpc-eabispe/4.9.2/;z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/powerpc-eabispe/4.9.2/;z:/home/patrick/src/e7/toolchain/local/bin/../libexec/gcc/;z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/bin/;z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/bin/
LIBRARY_PATH=z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/;z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/;z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/lib/
COLLECT_GCC_OPTIONS='-c' '-O0' '-v' '-fuse-linker-plugin' '-nostdlib'
'-mcpu=8540' '-fltrans-output-list=C:\users\patrick\Temp\cca6h4FY.ltrans.out'
'-fwpa' '-fresolution=C:\users\patrick\Temp\cc9lZP7A.res'
 Z:\home\patrick\src\e7\toolchain\local\bin\powerpc-eabispe-gcc.exe
@C:\users\patrick\Temp\ccW0AmbA.args
Using built-in specs.
COLLECT_GCC=Z:\home\patrick\src\e7\toolchain\local\bin\powerpc-eabispe-gcc.exe
Target: powerpc-eabispe
Configured with: /home/patrick/src/e7/toolchain/src/gcc-combined/configure
--prefix=/home/patrick/src/e7/toolchain/local --build=x86_64-unknown-linux-gnu
--host=i686-w64-mingw32 --target=powerpc-eabispe --enable-languages=c,c++
--disable-nls --disable-werror --with-newlib
--with-sysroot=/home/patrick/src/e7/toolchain/../prex_sysroot --disable-shared
--disable-debug --disable-libssp --enable-sjlj-exceptions
--disable-win32-registry --disable-threads --with-dwarf2 --without-stabs
--with-gnu-ld --with-gnu-as --with-cpu=8540
Thread model: single
gcc version 4.9.2 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-O0' '-v' '-fuse-linker-plugin' '-nostdlib'
'-mcpu=8540' '-fltrans-output-list=C:\users\patrick\Temp\cca6h4FY.ltrans.out'
'-fltrans' '-o' 'C:\users\patrick\Temp\cca6h4FY.ltrans0.ltrans.o'

z:/home/patrick/src/e7/toolchain/local/lib/gcc/../../libexec/gcc/powerpc-eabispe/4.9.2/lto1.exe
-quiet -dumpbase cca6h4FY.ltrans0.o -mcpu=8540 -auxbase-strip
C:\users\patrick\Temp\cca6h4FY.ltrans0.ltrans.o -O0 -version
-fuse-linker-plugin
-fltrans-output-list=C:\users\patrick\Temp\cca6h4FY.ltrans.out -fltrans
@C:\users\patrick\Temp\ccKk0v8c -o C:\users\patrick\Temp\ccoxKKGf.s
GNU GIMPLE (GCC) version 4.9.2 (powerpc-eabispe)
    compiled by GNU C version 4.9.2, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 4.9.2 (powerpc-eabispe)
    compiled by GNU C version 4.9.2, GMP version 4.3.2, MPFR version 2.4.2, MPC
version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
test.c: In function 'main':
test.c:14:13: internal compiler error: in emit_library_call_value_1, at
calls.c:3779
  return 1.0 / (y * z);
             ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: Z:\home\patrick\src\e7\toolchain\local\bin\powerpc-eabispe-gcc.exe
returned 1 exit status
z:/home/patrick/src/e7/toolchain/local/bin/../lib/gcc/powerpc-eabispe/4.9.2/../../../../powerpc-eabispe/bin/ld.exe:
lto-wrapper failed
collect2.exe: error: ld returned 1 exit status

Reply via email to