Does `-fwhole-program' make sense when compiling shared libraries?

Jan Hubicka hubicka@ucw.cz
Tue May 18 14:13:00 GMT 2010


> [ 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



More information about the Gcc mailing list