public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/47624] New: FAIL: gcc.dg/guality/pr43077-1.c  -O1  line 42 c == 3
@ 2011-02-06 18:11 schwab@linux-m68k.org
  2011-02-07 11:43 ` [Bug debug/47624] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: schwab@linux-m68k.org @ 2011-02-06 18:11 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: FAIL: gcc.dg/guality/pr43077-1.c  -O1  line 42 c == 3
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: schwab@linux-m68k.org
            Target: powerpc*-*-*


Breakpoint 1, fn3 ()
    at /daten/gcc/gcc-20110206/gcc/testsuite/gcc.dg/guality/pr43077-1.c:44
44      }
(gdb) i addr c
Symbol "c" is a complex DWARF expression:
     1: DW_OP_breg4 12 [$r4]
.
(gdb) disass
Dump of assembler code for function fn3:
   0x100004e0 <+0>:     stwu    r1,-32(r1)
   0x100004e4 <+4>:     mflr    r0
   0x100004e8 <+8>:     stw     r0,36(r1)
   0x100004ec <+12>:    li      r0,0
   0x100004f0 <+16>:    stw     r0,8(r1)
   0x100004f4 <+20>:    mr      r4,r1
   0x100004f8 <+24>:    stwu    r0,12(r4)
   0x100004fc <+28>:    addi    r3,r1,8
   0x10000500 <+32>:    bl      0x100004c4 <foo>
=> 0x10000504 <+36>:    lwz     r0,36(r1)
   0x10000508 <+40>:    mtlr    r0
   0x1000050c <+44>:    addi    r1,r1,32
   0x10000510 <+48>:    blr
End of assembler dump.

c is not at $r4+12 but at $r4+0 (or $r1+12) because $r4 has been incremented
when the value was stored.


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

end of thread, other threads:[~2012-11-08  3:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06 18:11 [Bug debug/47624] New: FAIL: gcc.dg/guality/pr43077-1.c -O1 line 42 c == 3 schwab@linux-m68k.org
2011-02-07 11:43 ` [Bug debug/47624] " rguenth at gcc dot gnu.org
2011-02-07 13:13 ` jakub at gcc dot gnu.org
2011-02-14 11:27 ` aoliva at gcc dot gnu.org
2011-02-20  3:46 ` aoliva at gcc dot gnu.org
2011-05-19 10:57 ` jakub at gcc dot gnu.org
2012-05-23  9:30 ` aoliva at gcc dot gnu.org
2012-06-13 21:43 ` aoliva at gcc dot gnu.org
2012-06-13 21:49 ` aoliva at gcc dot gnu.org
2012-06-17 17:01 ` ubizjak at gmail dot com
2012-06-28  7:40 ` aoliva at gcc dot gnu.org
2012-11-08  3:01 ` aoliva at gcc dot gnu.org

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).