Overview
| Artifact ID: | 266f94ff7f7124f6a872a3f66ce7f1d33e3eb92a |
|---|---|
| Ticket: | 2959069fffffffffffffffffffffffffffffffff
Support for -fvisibility=hidden |
| User & Date: | das on 2010-02-26 06:02:08 |
Changes
- assignee changed to: "nijtmans"
- icomment:
with recent enough gcc, we use visibility hidden on Darwin as well, but with older gcc that did not support visibility attributes yet we fall back to the Apple extension private_extern. MODULE_SCOPE affords us the flexibility to accommodate compiler/linkers that don't have an option to hide symbols by default and only export certain marked symbols. After all the work adding MODULE_SCOPE everywhere, where is the need/benefit to removing it again? Note that there are compilers (e.g. clang) that support __attribute__((__visibility__("hidden"))) but do not have the same commandline flags as gcc, your patch would be a regression there, the check for the attribute should remain as a fallback if the test for -fvisibility=hidden fails. Also, the current patch does not seem to test for __attribute__((__visibility__("default"))), which you will presumably need for the EXPORT macro ? (also not part of the patch) - login: "das"
- mimetype: "text/plain"
- username: "das"