This is the mail archive of the gcc@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: Does `-fwhole-program' make sense when compiling shared libraries?


> [ hmf.  This one got lost to an smtp error when I sent it yesterday.  It
> appears there's more or less agreement that at the moment you're supposed to
> manually annotate all external entry points if you want to use -fwhole-program
> on a library.  On windows, where we often do that anyway, it looks like it
> would make a great deal of sense to infer externally_visible from dllexport. ]

dllexport is attribute and I think you can quite easilly make frontend hook to
drop externally_visible attribute while handling it.  This would indeed make
sense.

Honza


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