[PATCH] Don't instrument inline functions that are not externally visible

Reid Kleckner rnk at google.com
Tue Nov 19 11:07:53 PST 2013


Can you elaborate on why the linker can't resolve references to an internal
inline function?  That seems like a perfectly reasonable thing for it to be
able to do.


On Tue, Nov 19, 2013 at 2:32 AM, Gonzalo Brito Gadeschi <
g.brito at aia.rwth-aachen.de> wrote:

> ping
>
>
> On Tue, Nov 12, 2013 at 3:12 PM, Gonzalo Brito Gadeschi <
> g.brito at aia.rwth-aachen.de> wrote:
>
>> This is a patch from Matthew Iselin that was never applied. Original
>> thread:
>> http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130311/075917.html
>>
>> From Matthew's patch: "Inline functions that are not externally visible
>> mustn't be instrumented. They create a named reference to the inlined
>> function, as the first parameter to __cyg_profile_* functions, which a
>> linker will never be able to resolve."
>>
>> Bests,
>> Gonzalo
>>
>> --
>> Dipl.-Ing. Gonzalo Brito Gadeschi
>> Institute of Aerodynamics and Chair of Fluid Mechanics
>> RWTH Aachen University
>> Wuellnerstraße 5a
>> D-52062 Aachen
>> Germany
>> Phone: ++49-(0)241-80-94821
>> Fax: ++49-(0)241-80-92257
>> E-mail:  g.brito at aia.rwth-aachen.de
>> Internet: www.aia.rwth-aachen.de
>>
>
>
>
> --
> Dipl.-Ing. Gonzalo Brito Gadeschi
> Institute of Aerodynamics and Chair of Fluid Mechanics
> RWTH Aachen University
> Wuellnerstraße 5a
> D-52062 Aachen
> Germany
> Phone: ++49-(0)241-80-94821
> Fax: ++49-(0)241-80-92257
> E-mail:  g.brito at aia.rwth-aachen.de
> Internet: www.aia.rwth-aachen.de
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131119/f1b8cb50/attachment.html>


More information about the cfe-commits mailing list