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