Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Mon, 2012-02-13 at 19:39 +0100, Stephan Bergmann wrote:
On 02/13/2012 06:18 PM, Ivan Timofeev wrote:
Noob's question:
A function that is only used by an inline function will be treated as
unused by callcatcher? Or is it a result of compiler's optimizations?

Yeah, gcc, even in -O0, doesn't generate code for inlines that aren't
used, and callcatcher is a simple scraper of the assembler output of
gcc. So gcc never told callcatcher that the inline existed seeing as
nothing made gcc emit code for it. The other similar one that can happen
is code like...

if (1) //or something equivalent
   do_a()
else
   do_b();

and you get "do_b" in the unused list. I kind of like getting those
ones.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.