public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/44113] bad debugging information for unrolled loops
Date: Wed, 19 May 2010 14:52:00 -0000	[thread overview]
Message-ID: <20100519145232.24364.qmail@sourceware.org> (raw)
In-Reply-To: <bug-44113-7834@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from jakub at gcc dot gnu dot org  2010-05-19 14:52 -------
The problem is just that there are no instructions with locus on line 4 - with
unrolling no traces of the for loop in the assembly remains and all
instructions in the body have line 5 and immediately after it another unrolled
iteration has the same line.
Apparently gdb on next just puts a breakpoint on the first insn after it that
has different file or line number.  GCC could emit extra .loc 1 5 0 directives
which would just add another row in the line table, or .loc 1 5 0 is_stmt 0
right after the first insn and .loc 1 5 0 is_stmt 1 back before first insn of
the next iteration, but apparently this doesn't change anything in gdb.  Not
even lying and alternating .loc 1 5 0 and .loc 1 5 1 helps.  And, putting
extra .loc 1 4 0 covering no instructions doesn't change anything either.

So I'm afraid there is nothing to do here on the gcc side, except lying that
some insn comes from some other line (and for unrolling where the body is just
one insn there is nothing to do at all).


-- 


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


  parent reply	other threads:[~2010-05-19 14:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13 13:43 [Bug debug/44113] New: bad andi-gcc at firstfloor dot org
2010-05-13 13:45 ` [Bug debug/44113] bad andi-gcc at firstfloor dot org
2010-05-13 15:36 ` [Bug debug/44113] bad debugging information for unrolled loops rguenth at gcc dot gnu dot org
2010-05-13 16:16 ` andi-gcc at firstfloor dot org
2010-05-13 17:14 ` pinskia at gcc dot gnu dot org
2010-05-19 14:52 ` jakub at gcc dot gnu dot org [this message]
2010-05-19 15:40 ` andi-gcc at firstfloor dot org
2010-05-19 15:46 ` jakub at gcc dot gnu dot org
2010-05-19 18:09 ` drow at gcc dot gnu dot org
2010-05-21 13:00 ` jakub at gcc dot gnu dot org
2010-05-24 19:50 ` jan dot kratochvil at redhat dot com

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=20100519145232.24364.qmail@sourceware.org \
    --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: link
Be 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).