Re: [RFC] Special casing dtors?

Keith Seitz
2009-04-02T16:25:58Z

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

Daniel Jacobowitz wrote:
> On Wed, Apr 01, 2009 at 04:46:17PM -0700, Keith Seitz wrote:

> I don't understand the patch - would you mind posting affected stabs
> from 4.2 and HEAD? Sounds like GCC made the incompatible change here,
> not GDB.

Stabs attached.

Gcc did make the change, but as Pedro pointed out in a previous note,
"GDB has to cope with code produced from older compilers as well." Since
4.2.0 and 4.2.4 are long out the door, I was simply attempting to
accommodating.

Keith

[-- Attachment #2: affected-stabs.txt --]
[-- Type: text/plain, Size: 1291 bytes --]

gcc 4.2.4:

40 LSYM 0 454 00000000 4211 T5<int>:Tt(0,62)=s8X:/2(0,7):_ZN2T5IiE1XE;x:(0,7),0,32;val:(0,7),32,32;__base_ctor ::(0,63)=#(0,62),(0,20),(0,64)=*(0,62),(0,7),(0,20);:_ZN2T5IiEC2Ei;2A.;__comp_ctor ::(0,63):_ZN2T5IiEC1Ei;2A.;__base_ctor ::(0,65)=#(0,62),(0,20),(0,64),(0,66)=&(0,67)=k(0,62),(0,20);:_ZN2T5IiEC2ERKS0_;2A.;__comp_ctor ::(0,65):_ZN2T5IiEC1ERKS0_;2A.;__base_dtor ::(0,68)=#(0,62),(0,20),(0,64),(0,20);:_ZN2T5IiED2Ev;2A.;__comp_dtor ::(0,68):_ZN2T5IiED1Ev;2A.;operator new::(0,60):_ZN2T5IiEnwEj;2A?;operator delete::(0,37):_ZN2T5IiEdlEPv;2A?;value::(0,69)=#(0,62),(0,7),(0,64),(0,20);:_ZN2T5IiE5valueEv;2A.;;

gcc HEAD:

40 LSYM 0 454 00000000 3650
T5:Tt(0,54)=s8X:/2(0,4):_ZN2T5IcE1XE;x:(0,4),0,8;val:(0,9),32,32;__base_ctor ::(0,55)=#(0,54),(0,21),(0,56)=*(0,54),(0,9),(0,21);:_ZN2T5IcEC2Ei;2A.;__comp_ctor ::(0,55):_ZN2T5IcEC1Ei;2A.;__base_ctor ::(0,57)=#(0,54),(0,21),(0,56),(0,58)=&(0,59)=k(0,54),(0,21);:_ZN2T5IcEC2ERKS0_;2A.;__comp_ctor ::(0,57):_ZN2T5IcEC1ERKS0_;2A.;__base_dtor ::(0,60)=#(0,54),(0,21),(0,56),(0,21);:_ZN2T5IcED2Ev;2A.;__comp_dtor ::(0,60):_ZN2T5IcED1Ev;2A.;operator new::(0,61)=f(0,29):_ZN2T5IcEnwEj;2A?;operator delete::(0,38):_ZN2T5IcEdlEPv;2A?;value::(0,62)=#(0,54),(0,9),(0,56),(0,21);:_ZN2T5IcE5valueEv;2A.;;