This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch 10/10] debug-early merge: compiler proper
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>, Jason Merrill <jason at redhat dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 01 Jun 2015 13:42:37 -0400
- Subject: Re: [patch 10/10] debug-early merge: compiler proper
- Authentication-results: sourceware.org; auth=none
- References: <554C060F dot 6000609 at redhat dot com> <CAFiYyc16u2na9VeyMb5cVf4cH=caiBy6PRTJkX9DndzHcFxkBQ at mail dot gmail dot com> <555CAD35 dot 5040304 at redhat dot com> <5565BB13 dot 6040205 at redhat dot com> <5567643C dot 1020306 at redhat dot com> <55677C05 dot 6040302 at redhat dot com> <5568B32A dot 1010100 at redhat dot com> <78B564EA-B9C4-4351-BFD0-9C78EA4C2528 at gmail dot com> <5568BF0A dot 7070903 at redhat dot com> <556A5B43 dot 7050105 at redhat dot com> <556B7132 dot 7010504 at redhat dot com> <CAFiYyc3MJpB5vfbCzZgYmO3OwnO6Gn=wLw9MJsQYNwo_mirFtg at mail dot gmail dot com> <CAFiYyc3FKVgko0-ozdHropratHfmbAoDYqT_1TqmOCDvVDN2_g at mail dot gmail dot com> <556C7D81 dot 30504 at redhat dot com> <74C942F9-D13A-4843-8760-24D2314D6386 at gmail dot com>
On 06/01/2015 01:00 PM, Richard Biener wrote:
On June 1, 2015 5:42:57 PM GMT+02:00, Aldy Hernandez <aldyh@redhat.com> wrote:
On 06/01/2015 04:04 AM, Richard Biener wrote:
On Mon, Jun 1, 2015 at 10:03 AM, Richard Biener
We still have the problem that function locals in dwarf2out are seen in
decls_for_scope by iterating through BLOCK_VARS, and temporaries do not
live in BLOCK_VARS.
How did they get picked up and annotated in your approach?
The size type ones are in BLOCJ_VARS IIRC (or I have to check the last posted patch for other related hunks).
Hmmm, it doesn't seem so in my testcase:
$ cat a.c
unsigned int i=555;
int main()
{
unsigned int array[i];
__asm__ __volatile__ ("" : : "m" (array));
}
(gdb) print stmt
$108 = <block 0x7ffff02b0420>
(gdb) call debug_generic_stmt(stmt)
BLOCK #0
SUPERCONTEXT: main
VARS: array
The temporary has DECL_IGNORED_P appropriately.
It does show up in DECL_STRUCT_FUNCTION()->local_decls, but so do a few
other temporaries and SSA variables which we're not interested in.
Aldy