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

Gonzalo Brito Gadeschi g.brito at aia.rwth-aachen.de
Tue Dec 3 03:05:40 PST 2013


From: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131125/094256.html


>
> I've tried to ask you twice to explain why this is necessary:
>


Sorry, I was not subscribed to the list and was not getting any
replies. I should be able to reply from now on.



> >* 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.


"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."

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131203/1444b7d2/attachment.html>


More information about the cfe-commits mailing list