This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] libgcov.c re-factoring and offline profile-tool


> I wonder if it makes sense to get rid of the conditional compile such as
> 
> #ifdef L_gcov_xxxxx
> ..
> 
> #endif
> 
> This has the advantage of producing slightly smaller instrumented
> binary, but this benefit can also be achieved via -ffunction-sections
> and let linker to garbage collect unused functions.
> 
> (probably as a follow up if it makes sense).

I believe we use this funny scheme primarily for targets that have no function
section support (and also the hand made splitting can be more sane).
For a low-level library like libgcov is that is supposed to have small footprint,
I guess the current scheme is resonable thing to do....

Honza


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]