Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-23 Thread Paul_Koning
On Oct 23, 2012, at 2:02 PM, Jason Merrill wrote: > OK. > > Jason Thanks. Committed. paul

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-23 Thread Jason Merrill
OK. Jason

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-23 Thread Paul_Koning
On Oct 5, 2012, at 6:05 PM, Cary Coutant wrote: >> There certainly is a fair amount of code in dwarf2read.c in gdb to handle >> DW_AT_declaration and do things differently for declarations. >> >> Should I rework this patch to use that mechanism instead? If so, how? If >> the class is marked

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Paul_Koning
On Oct 5, 2012, at 6:05 PM, Cary Coutant wrote: >> There certainly is a fair amount of code in dwarf2read.c in gdb to handle >> DW_AT_declaration and do things differently for declarations. >> >> Should I rework this patch to use that mechanism instead? If so, how? If >> the class is marked

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Cary Coutant
> There certainly is a fair amount of code in dwarf2read.c in gdb to handle > DW_AT_declaration and do things differently for declarations. > > Should I rework this patch to use that mechanism instead? If so, how? If > the class is marked only by prune_unused_types_mark visiting it as a parent,

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Paul_Koning
On Oct 5, 2012, at 2:43 PM, Cary Coutant wrote: >>> It seems to me that there are cases where we just want to emit the >>> class for the context info (like a namespace, which doesn't have to be >>> complete everywhere). Is there a way to tell the debugger that this >>> class declaration is incomp

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Paul_Koning
On Oct 5, 2012, at 2:43 PM, Cary Coutant wrote: >>> It seems to me that there are cases where we just want to emit the >>> class for the context info (like a namespace, which doesn't have to be >>> complete everywhere). Is there a way to tell the debugger that this >>> class declaration is incomp

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Cary Coutant
>> It seems to me that there are cases where we just want to emit the >> class for the context info (like a namespace, which doesn't have to be >> complete everywhere). Is there a way to tell the debugger that this >> class declaration is incomplete and that it should look elsewhere for >> a full d

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Jason Merrill
On 10/04/2012 08:26 PM, Cary Coutant wrote: It seems to me that there are cases where we just want to emit the class for the context info (like a namespace, which doesn't have to be complete everywhere). Is there a way to tell the debugger that this class declaration is incomplete and that it sho

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Cary Coutant
> So given the comments, is this patch now ok to commit? Yes, this is OK. Thanks for doing the extra testing! (I also ran a quick test with -fdebug-types-section, just to make sure.) -cary

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Paul_Koning
On Oct 5, 2012, at 11:34 AM, wrote: > > On Oct 5, 2012, at 4:16 AM, Jakub Jelinek wrote: > >> On Thu, Oct 04, 2012 at 05:26:11PM -0700, Cary Coutant wrote: Index: gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C === >>>

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Paul_Koning
On Oct 5, 2012, at 4:16 AM, Jakub Jelinek wrote: > On Thu, Oct 04, 2012 at 05:26:11PM -0700, Cary Coutant wrote: >>> Index: gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C >>> === >>> --- gcc/testsuite/g++.dg/debug/dwarf2/localclass1

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-05 Thread Jakub Jelinek
On Thu, Oct 04, 2012 at 05:26:11PM -0700, Cary Coutant wrote: > > Index: gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C > > === > > --- gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C (revision 192048) > > +++ gcc/testsuite/g++.dg

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Paul_Koning
On Oct 4, 2012, at 8:26 PM, Cary Coutant wrote: >> Index: gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C >> === >> --- gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C (revision 192048) >> +++ gcc/testsuite/g++.dg/debug/dwarf2/lo

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Paul_Koning
On Oct 4, 2012, at 8:26 PM, Cary Coutant wrote: >> Index: gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C >> === >> --- gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C (revision 192048) >> +++ gcc/testsuite/g++.dg/debug/dwarf2/lo

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Cary Coutant
> Index: gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C > === > --- gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C (revision 192048) > +++ gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C (working copy) > @@ -59,11 +59,11 @@ >

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Paul_Koning
Updated patch: there were two existing testcases that needed to be adjusted because of this fix. Ran check RUNTESTFLAGS=dwarf2.exp, no regressions. paul ChangeLog: 2012-10-04 Paul Koning * dwarf2out.c (prune_unused_types_mark): Mark all of parent's children if paren

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Paul_Koning
On Oct 4, 2012, at 12:09 PM, wrote: > Ping ^ 2... > > -- > > If the only reference in a source file is to a static method of a class, then > GCC would output debug information for the class name but not any of its > members or base classes. The attached patch fixes this by having > "

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Paul_Koning
On Oct 4, 2012, at 2:58 PM, Jakub Jelinek wrote: > On Thu, Oct 04, 2012 at 06:32:20PM +, paul_kon...@dell.com wrote: >> --- testsuite/g++.dg/debug/dwarf2/pr54508.C (revision 0) >> +++ testsuite/g++.dg/debug/dwarf2/pr54508.C (revision 0) >> @@ -0,0 +1,67 @@ >> +// PR debug/54508 >> +// { dg-

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Jakub Jelinek
On Thu, Oct 04, 2012 at 06:32:20PM +, paul_kon...@dell.com wrote: > --- testsuite/g++.dg/debug/dwarf2/pr54508.C (revision 0) > +++ testsuite/g++.dg/debug/dwarf2/pr54508.C (revision 0) > @@ -0,0 +1,67 @@ > +// PR debug/54508 > +// { dg-do compile } > +// { dg-options "-g2 -dA" } Better than

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Paul_Koning
On Oct 4, 2012, at 1:38 PM, Cary Coutant wrote: >> /* We also have to mark its parents as used. >> -(But we don't want to mark our parents' kids due to this.) */ >> +(But we don't want to mark our parent's kids due to this, >> +unless it is a class.) */ >> if (

Re: PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Cary Coutant
> /* We also have to mark its parents as used. > -(But we don't want to mark our parents' kids due to this.) */ > +(But we don't want to mark our parent's kids due to this, > +unless it is a class.) */ > if (die->die_parent) > - prune_unused_types_mark (d

PING^2: [patch] pr/54508: fix incomplete debug information for class

2012-10-04 Thread Paul_Koning
Ping ^ 2... -- If the only reference in a source file is to a static method of a class, then GCC would output debug information for the class name but not any of its members or base classes. The attached patch fixes this by having "prune_unused_types_mark" mark all of the parent's childre

Ping: [patch] pr/54508: fix incomplete debug information for class

2012-09-24 Thread Paul_Koning
Ping... paul Begin forwarded message: > From: > Date: September 20, 2012 4:55:05 PM EDT > To: > Subject: Re: [patch] pr/54508: fix incomplete debug information for class > > Attached below is an update to the testcase file, to fix the scan-assembler > reg

Re: [patch] pr/54508: fix incomplete debug information for class

2012-09-20 Thread Paul_Koning
Attached below is an update to the testcase file, to fix the scan-assembler regexp comment character matching. This uses the same regexp element that H-P Nilsson used in the fix to nested-3.C two days ago. By the way, I ran check-g++ for dwarf2.exp on this change, no regressions. Ok to commit?

[patch] pr/54508: fix incomplete debug information for class

2012-09-17 Thread Paul_Koning
If the only reference in a source file is to a static method of a class, then GCC would output debug information for the class name but not any of its members or base classes. The attached patch fixes this by having "prune_unused_types_mark" mark all of the parent's children if the parent DIE