public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/55112] internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
  2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
@ 2012-10-28 22:18 ` patrick at motec dot com.au
  2012-10-28 23:28 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patrick at motec dot com.au @ 2012-10-28 22:18 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

--- Comment #1 from Patrick Oppenlander <patrick at motec dot com.au> 2012-10-28 22:18:32 UTC ---
Created attachment 28549
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28549
Problem object file


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
@ 2012-10-28 22:18 patrick at motec dot com.au
  2012-10-28 22:18 ` [Bug lto/55112] " patrick at motec dot com.au
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: patrick at motec dot com.au @ 2012-10-28 22:18 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

             Bug #: 55112
           Summary: internal compiler error: in simplify_subreg, at
                    simplify-rtx.c:5424
    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


Using cross compile gcc (x86_64->powerpc-eabispe) the following command line
results in an internal compiler error.

I've attached the problem object file.

Hope this is enough information, thanks.

patrick@gtr:~/bug/report1$ powerpc-eabispe-gcc -v -Os -flto=jobserver -nostdlib
-o test bug.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/ccTv6kV7.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
bug.o
GNU ld (GNU Binutils) 2.22
  Supported emulations:
   elf32ppc
   elf32ppclinux
   elf32ppcsim powerpc-eabispe-gcc @/tmp/ccu1YKNX.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/cc4GjAt6.ltrans.out' '-fwpa'
'-fresolution=/tmp/ccTv6kV7.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 bug -Os -version
-fltrans-output-list=/tmp/cc4GjAt6.ltrans.out -fwpa
-fresolution=/tmp/ccTv6kV7.res @/tmp/ccfQPfB6
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/cc4GjAt6.ltrans.out' '-fwpa'
'-fresolution=/tmp/ccTv6kV7.res'
 make -f /tmp/ccIeKgxG.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/cc4GjAt6.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/cc4GjAt6.ltrans0.ltrans.o -Os -version -fltrans
/tmp/cc4GjAt6.ltrans0.o -o /tmp/ccgARQQa.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 /home/patrick/src/e7/prex/include/sys/list.h:225:0,
                 from :80:
eqadc.c: In function 'eqadc_get_diag':
eqadc.c:955:20: internal compiler error: in simplify_subreg, at
simplify-rtx.c:5424
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [/tmp/cc4GjAt6.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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/55112] internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
  2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
  2012-10-28 22:18 ` [Bug lto/55112] " patrick at motec dot com.au
@ 2012-10-28 23:28 ` pinskia at gcc dot gnu.org
  2012-10-29 14:47 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-10-28 23:28 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-10-28 23:28:39 UTC ---
Can you attach the preprocessed source for this object file?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/55112] internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
  2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
  2012-10-28 22:18 ` [Bug lto/55112] " patrick at motec dot com.au
  2012-10-28 23:28 ` pinskia at gcc dot gnu.org
@ 2012-10-29 14:47 ` rguenth at gcc dot gnu.org
  2012-11-21  2:58 ` patrick at motec dot com.au
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-29 14:47 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
             Target|                            |powerpc-eabispe

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> 2012-10-29 14:47:10 UTC ---
Did you compile the object file with -O0?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/55112] internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
  2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
                   ` (2 preceding siblings ...)
  2012-10-29 14:47 ` rguenth at gcc dot gnu.org
@ 2012-11-21  2:58 ` patrick at motec dot com.au
  2012-11-21  3:05 ` patrick at motec dot com.au
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patrick at motec dot com.au @ 2012-11-21  2:58 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

--- Comment #4 from Patrick Oppenlander <patrick at motec dot com.au> 2012-11-21 02:58:22 UTC ---
Compiling with -O0 changes the ICE to:

internal compiler error: in emit_move_insn, at expr.c:3435


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/55112] internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
  2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
                   ` (3 preceding siblings ...)
  2012-11-21  2:58 ` patrick at motec dot com.au
@ 2012-11-21  3:05 ` patrick at motec dot com.au
  2012-11-21  5:45 ` patrick at motec dot com.au
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patrick at motec dot com.au @ 2012-11-21  3:05 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

--- Comment #5 from Patrick Oppenlander <patrick at motec dot com.au> 2012-11-21 03:04:27 UTC ---
Please ignore my last comment. It was meant for bug 55113.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/55112] internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
  2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
                   ` (4 preceding siblings ...)
  2012-11-21  3:05 ` patrick at motec dot com.au
@ 2012-11-21  5:45 ` patrick at motec dot com.au
  2012-11-21  5:46 ` patrick at motec dot com.au
  2013-03-25  5:51 ` patrick at motec dot com.au
  7 siblings, 0 replies; 9+ messages in thread
From: patrick at motec dot com.au @ 2012-11-21  5:45 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

--- Comment #6 from Patrick Oppenlander <patrick at motec dot com.au> 2012-11-21 05:44:50 UTC ---
Created attachment 28750
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28750
Test case


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/55112] internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
  2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
                   ` (5 preceding siblings ...)
  2012-11-21  5:45 ` patrick at motec dot com.au
@ 2012-11-21  5:46 ` patrick at motec dot com.au
  2013-03-25  5:51 ` patrick at motec dot com.au
  7 siblings, 0 replies; 9+ messages in thread
From: patrick at motec dot com.au @ 2012-11-21  5:46 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

--- Comment #7 from Patrick Oppenlander <patrick at motec dot com.au> 2012-11-21 05:45:51 UTC ---
Test code added.

Compile with

powerpc-eabispe-gcc -fshort-double -flto=jobserver -nostdlib -o test eqadc_E.c

to reproduce the bug.

Looks like it is related to -f-short-double.

Thanks,

Patrick


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug lto/55112] internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
  2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
                   ` (6 preceding siblings ...)
  2012-11-21  5:46 ` patrick at motec dot com.au
@ 2013-03-25  5:51 ` patrick at motec dot com.au
  7 siblings, 0 replies; 9+ messages in thread
From: patrick at motec dot com.au @ 2013-03-25  5:51 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55112

Patrick Oppenlander <patrick at motec dot com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Patrick Oppenlander <patrick at motec dot com.au> 2013-03-25 05:51:28 UTC ---
Cannot reproduce with 4.8.0.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-03-25  5:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-28 22:18 [Bug lto/55112] New: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424 patrick at motec dot com.au
2012-10-28 22:18 ` [Bug lto/55112] " patrick at motec dot com.au
2012-10-28 23:28 ` pinskia at gcc dot gnu.org
2012-10-29 14:47 ` rguenth at gcc dot gnu.org
2012-11-21  2:58 ` patrick at motec dot com.au
2012-11-21  3:05 ` patrick at motec dot com.au
2012-11-21  5:45 ` patrick at motec dot com.au
2012-11-21  5:46 ` patrick at motec dot com.au
2013-03-25  5:51 ` patrick at motec dot com.au

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).