[Bug tree-optimization/52450] FAIL: gcc.dg/torture/pr52402.c at -O1 and above

danglin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 1 15:43:00 GMT 2012


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

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> 2012-03-01 15:02:13 UTC ---
Program received signal SIGBUS, Bus error.
foo (t=...) at /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr52402.c:10
10        return t.i[0];
(gdb) p/x $pc
$3 = 0x2c30
(gdb) disass $pc-16,$pc+16
Dump of assembler code from 0x2c20 to 0x2c40:
   0x00002c20 <lwp_setprivate+0>:       bv r0(rp)
   0x00002c24 <lwp_setprivate+4>:       mtctl r26,tr3
   0x00002c28 <lwp_getprivate+0>:       bv r0(rp)
   0x00002c2c <lwp_getprivate+4>:       mfctl tr3,ret0
=> 0x00002c30 <foo+0>:  ldw 0(r26),r20
   0x00002c34 <foo+4>:  stw r20,0(ret0)
   0x00002c38 <foo+8>:  ldw 4(r26),r20
   0x00002c3c <foo+12>: stw r20,4(ret0)
End of assembler dump.
(gdb) p/x $r26
$4 = 0x40003a49
(gdb) bt
#0  foo (t=...) at /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr52402.c:10
#1  0x00002d0c in main ()
    at /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr52402.c:26



More information about the Gcc-bugs mailing list