Introduce an option to request global visibility settings be applied to declarations without a definition or an explicit visibility, rather than the existing behavior of giving these default visibility. When the visibility of all or most extern definitions are known this allows for the same optimisations -fvisibility permits without updating source code to annotate all declarations.
|707 ↗||(On Diff #182390)|
"Declaration" doesn't unambiguously mean "non-definition" in language parlance;
I'm sorry to keep jerking you around, but let's spell out the flag a bit more: -fapply-global-visibility-to-externs. No reason not to be totally clear here. Thank you for updating the fields and descriptions, those all look good now.