[patch] Emit aliases for more constructors (V2)

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sat Oct 19 15:58:00 PDT 2013


Ping.



On 14 October 2013 20:04, David Blaikie <dblaikie at gmail.com> wrote:
>
>
>
> On Mon, Oct 14, 2013 at 4:59 PM, Rafael EspĂ­ndola
> <rafael.espindola at gmail.com> wrote:
>>
>> > I haven't looked in detail at your change, but PR14610 (perhaps poorly
>> > explained by me in the bug) is more than about the duplicate debug info,
>> > but
>> > about the fact that we implement C1/C2 and D1/D2 by having one call the
>> > other so when you break on the ctor or dtor you actually break twice
>> > (once
>> > inside *1, then in *2 or whichever way it goes).
>> >
>> > By using aliases we get closer to (or the same as, in this instance)
>> > GCC's
>> > behavior where there's only one call on the stack rather than one ctor
>> > calling another ctor.
>> >
>> > I think it'd be fine to just remove the XFAIL (& update the bug to
>> > mention
>> > this). Might be worth mentioning that, if there are conditions where
>> > C1/C2
>> > can't be aliases, this bug will likely manifest there.
>>
>> I agree that this is what is happening. My change doesn't fix that PR,
>> it just avoids the bug in the case the destructors can be aliased.
>>
>> Any thoughts on the patch itself?
>
>
> Little outside my domain/time right now - I've no opinion on the patch
> either way. For the debug side of things, feel free to/please remove the
> XFAIL if/when you commit this.
>
> - David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 11211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131019/b0918b52/attachment.obj>


More information about the cfe-commits mailing list