public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/45939] New: negative location ranges generated Date: Fri, 08 Oct 2010 10:50:00 -0000 [thread overview] Message-ID: <bug-45939-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45939 Summary: negative location ranges generated Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned@gcc.gnu.org ReportedBy: krebbel@gcc.gnu.org Created attachment 21996 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21996 Testcase When compiling the testcase with -O2 -g a negative location range for a variable is generated: 00000371 0000000000000174 0000000000000176 (DW_OP_breg10: 4) 00000371 0000000000000176 0000000000000175 (DW_OP_fbreg: -412) [without DW_AT_frame_base] (start > end) .8byte .LVL20-.Ltext0 # Location list begin address (*.LLST13) .8byte .LVL20-1-.Ltext0 # Location list end address (*.LLST13) .2byte 0x3 # Location expression size .byte 0x91 # DW_OP_fbreg The problem seem to arise from call related var_location note to be mixed with non call related. 209r.vartrack: (call_insn 150 580 583 20 wrongvainfo.c:31 (parallel [ (call (mem:QI (reg/v/f:DI 6 %r6 [orig:120 getRegUsage ] [120]) [0 S1 A8]) (const_int 0 [0x0])) (clobber (reg:DI 14 %r14)) ]) 546 {*basr} (expr_list:REG_DEAD (reg:DI 4 %r4) (expr_list:REG_DEAD (reg:DI 3 %r3) (expr_list:REG_DEAD (reg:DI 2 %r2) (nil)))) (expr_list:REG_DEP_TRUE (use (reg:DI 4 %r4)) (expr_list:REG_DEP_TRUE (use (reg:DI 3 %r3)) (expr_list:REG_DEP_TRUE (use (reg:DI 2 %r2)) (nil))))) (note 583 150 582 20 (var_location r (mem/c:SI (plus:DI (reg/f:DI 32 %ap) (const_int -412 [0xfffffffffffffe64])) [14 %sfp+-252 S4 A32])) NOTE_INSN_VAR_LOCATION) (note/c 582 583 581 20 (var_location instr (nil)) NOTE_INSN_VAR_LOCATION) (note/c 581 582 584 20 (var_location r (reg:SI 14 %r14)) NOTE_INSN_VAR_LOCATION) For note 582 the LVL20-1 label is being generated while note 583 belongs to label LVL20. That makes the location range of note 583 to be LVL20...LVL20-1.
next reply other threads:[~2010-10-08 10:50 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-08 10:50 krebbel at gcc dot gnu.org [this message] 2010-10-08 10:53 ` [Bug debug/45939] " krebbel at gcc dot gnu.org 2010-10-09 5:25 ` krebbel at gcc dot gnu.org 2010-10-13 14:44 ` [Bug debug/45939] Wrong debug info: Negative location range generated krebbel at gcc dot gnu.org 2010-10-13 14:56 ` jakub at gcc dot gnu.org 2010-11-06 6:29 ` krebbel at gcc dot gnu.org 2010-11-06 6:31 ` krebbel at gcc dot gnu.org 2010-11-10 14:01 ` jakub at gcc dot gnu.org 2010-11-17 5:42 ` aoliva at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-45939-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).