This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] use correct column info for function definitions
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: joseph at codesourcery dot com, gcc-patches at gcc dot gnu dot org, charlet at act-europe dot fr, tromey at redhat dot com
- Date: Mon, 08 Sep 2008 18:39:58 -0400
- Subject: Re: [patch] use correct column info for function definitions
- References: <20080908213706.GA7429@redhat.com>
Aldy Hernandez <aldyh@redhat.com> writes:
> [...] In C, we are are using the opening brace of a function as the
> column location for the function DECL. This is confusing for error
> messages, though rumor has it, for debugging, we need the prologue
> to point to the instruction after the opening brace-- hence the
> current behavior.
Have you tested the gdb test suite before & after this change?
By the way, in systemtap land we've been finding that the location
list data emitted at the pc entry address tends to be good enough that
we don't bother look for fuzzy prologue-ends just to get at function
parameters.
- FChE