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: [PATCH] Add support for profile merging hooks


Hello,

> >>>>I'm not happy with linking in functions that won't necessarily be used
> >>>>by libgcov.
> >>>
> >>>
> >>>What you mean by "not used by libgcov"?
> >>
> >>they will only be called if you're collecting that particular information.
> >>If you're collecting other information, they are dead weight.
> >
> >
> >provided that we don't use them, they should be thrown away by linker,
> >so why do we want to bother about it?
> they won't be the way your patch was set up to go. Whether they would be
> used or not would depend on the contents of the gcov_info variable.
> 
> They way I outlined above would make that information available to the
> linker.

no, it would depend on whether you use gcov_exit or not (but perhaps I
am just too optimistic about linker inteligence).

Zdenek


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