r194288 - If a linkonce_odr dtor/ctor is identical to another one, just rauw.

Eric Christopher echristo at gmail.com
Tue Nov 12 10:40:00 PST 2013


On Tue, Nov 12, 2013 at 10:37 AM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
> On 12 November 2013 13:36, Eric Christopher <echristo at gmail.com> wrote:
>>>
>>> So... what's the benefit of this optimization compared to letting the
>>> backend inline the known-trivial dtors? Then we'd get the inlining debug
>>> info for free in (1) (and the non-polymorphic cases of (2)) rather than
>>> having to implement a special-case inlining in Clang. Does this fire in
>>> other cases where LLVM cannot do this? Is there measurable overhead in
>>> emitting trivial derived dtors that simply call their base dtor?
>>>
>>
>> Piping in a little bit, this also seems to be causing the same
>> warnings with gold as the previous patch. I'm looking to get a small
>> testcase but...
>
> Which warning?
>

warning: relocation refers to discarded section

-eric




More information about the cfe-commits mailing list