public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/18856] New: Missing .loc information after prologue
@ 2004-12-06 18:49 tausq at debian dot org
  2004-12-06 18:50 ` [Bug debug/18856] " tausq at debian dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tausq at debian dot org @ 2004-12-06 18:49 UTC (permalink / raw)
  To: gcc-bugs

The attached program is extracted from the gdb testsuite (gdb.base/annota3.c)

According to Dan, the code generated by gcc is missing a .loc directive:
http://sources.redhat.com/ml/gdb-patches/2004-12/msg00143.html

i.e. gcc generates:

        .loc 1 6 0
handle_USR1:
        .PROC
        .CALLINFO FRAME=64,NO_CALLS,SAVE_SP,ENTRY_GR=3
        .ENTRY
        copy %r3,%r1
.LCFI0:
        copy %r30,%r3
.LCFI1:
        stwm %r1,64(%r30)
.LCFI2:
        stw %r26,-36(%r3)
        ldo 64(%r3),%r30
        ldwm -64(%r30),%r3
        bv,n %r0(%r2)
        .EXIT
        .PROCEND

but there should be another
        .loc 1 6 0
before the ldo insn.

gcc-3.4 handles this properly.

-- 
           Summary: Missing .loc information after prologue
           Product: gcc
           Version: 3.3.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tausq at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa-unknown-linux
  GCC host triplet: hppa-unknown-linux
GCC target triplet: hppa-unknown-linux


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


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

end of thread, other threads:[~2005-04-30 13:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-06 18:49 [Bug debug/18856] New: Missing .loc information after prologue tausq at debian dot org
2004-12-06 18:50 ` [Bug debug/18856] " tausq at debian dot org
2004-12-06 18:51 ` tausq at debian dot org
2004-12-06 20:51 ` [Bug debug/18856] [3.3 only] " pinskia at gcc dot gnu dot org
2004-12-06 21:34 ` [Bug debug/18856] [3.3 only, regression] " tausq at debian dot org
2004-12-06 21:35 ` [Bug debug/18856] [3.3 " pinskia at gcc dot gnu dot org
2004-12-07  2:33 ` danglin at gcc dot gnu dot org
2004-12-07  3:04 ` danglin at gcc dot gnu dot org
2004-12-07 19:00 ` pinskia at gcc dot gnu dot org
2005-04-30 13:12 ` gdr at gcc dot gnu dot 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).