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

            Bug ID: 63255
           Summary: [5.0 regression] FAIL: gcc.dg/lto/ipareference2
                    c_lto_ipareference2_0.o-c_lto_ipareference2_1.o
                    execute  -O1 -flto -flto-partition=1to1
                    -fwhole-program
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sch...@linux-m68k.org
                CC: hubicka at gcc dot gnu.org
            Target: powerpc64-*-*

$ gcc/xgcc -Bgcc/ -O1 -flto -flto-partition=1to1 -fwhole-program -c -m64 -o
c_lto_ipareference2_0.o ../gcc/gcc/testsuite/gcc.dg/lto/ipareference2_0.c
$ gcc/xgcc -Bgcc/ -O1 -flto -flto-partition=1to1 -fwhole-program -c -m64 -o
c_lto_ipareference2_1.o ../gcc/gcc/testsuite/gcc.dg/lto/ipareference2_1.c
$ gcc/xgcc -Bgcc/ c_lto_ipareference2_0.o c_lto_ipareference2_1.o -O1 -flto
-flto-partition=1to1 -fwhole-program -m64 -o gcc-dg-lto-ipareference2-01.exe
$ ./gcc-dg-lto-ipareference2-01.exe
Aborted
$ gdb ./gcc-dg-lto-ipareference2-01.exe 
GNU gdb (GDB) SUSE (7.5.1-0.7.29)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "ppc64-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/net/hawking/daten/src/gcc/regress/test/gcc-dg-lto-ipareference2-01.exe...done.
(gdb) r
Starting program:
/net/hawking/daten/src/gcc/regress/test/gcc-dg-lto-ipareference2-01.exe 

Program received signal SIGABRT, Aborted.
0x00000fffb7e18f20 in .raise () from /lib64/power7/libc.so.6
(gdb) up
#1  0x00000fffb7e1abe0 in .abort () from /lib64/power7/libc.so.6
(gdb) 
#2  0x0000000010000758 in .other_ltrans ()
(gdb) disass
Dump of assembler code for function .other_ltrans:
   0x0000000010000748 <+0>:     mflr    r0
   0x000000001000074c <+4>:     std     r0,16(r1)
   0x0000000010000750 <+8>:     stdu    r1,-112(r1)
   0x0000000010000754 <+12>:    bl      0x100004d4
<00000012.plt_call.abort@@GLIBC_2.3+0>
=> 0x0000000010000758 <+16>:    ld      r2,40(r1)
   0x000000001000075c <+20>:    .long 0x0
   0x0000000010000760 <+24>:    .long 0x1
   0x0000000010000764 <+28>:    lwz     r0,0(0)
End of assembler dump.

8640c57182f4279c2125915f1f3e4d4e7ebda7a4 is the first bad commit
commit 8640c57182f4279c2125915f1f3e4d4e7ebda7a4
Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Sep 11 06:48:23 2014 +0000

        * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
        to access removed nodes.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215150
138bc75d-0d04-0410-961f-82ee72b054a4

Reply via email to