Summary: | -fvisibility only works for C/C++/Objective-C/Objective-C++ | ||
---|---|---|---|
Product: | gcc | Reporter: | Ed Smith-Rowland <3dw4rd> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | UNCONFIRMED --- | ||
Severity: | enhancement | CC: | gcc-bugs, roucaries.bastien+bugs |
Priority: | P3 | Keywords: | visibility |
Version: | 4.4.0 | ||
Target Milestone: | --- | ||
Host: | x86_64-redhat-linux | Target: | x86_64-redhat-linux |
Build: | x86_64-redhat-linux | Known to work: | |
Known to fail: | Last reconfirmed: | ||
Bug Depends on: | |||
Bug Blocks: | 102380 |
Description
Ed Smith-Rowland
2008-04-04 18:08:27 UTC
-fvisibility should be only a C/C++ option as you cannot change the visibility in any other language. Also it is only implemented for C/C++/Objective-C/Objective-C++: [dhcp-10-98-10-23:local/gcc/gcc] apinski% grep default_visibility */*.c cp/decl.c: default_visibility = VISIBILITY_HIDDEN; cp/decl2.c: DECL_VISIBILITY (decl) = default_visibility; [dhcp-10-98-10-23:local/gcc/gcc] apinski% grep default_visibility *.c c-common.c: DECL_VISIBILITY (decl) = default_visibility; c-pragma.c: default_visibility); c-pragma.c: default_visibility = VISIBILITY_DEFAULT; c-pragma.c: default_visibility = VISIBILITY_INTERNAL; c-pragma.c: default_visibility = VISIBILITY_HIDDEN; c-pragma.c: default_visibility = VISIBILITY_PROTECTED; c-pragma.c: default_visibility = VEC_pop (visibility, visstack); opts.c:enum symbol_visibility default_visibility = VISIBILITY_DEFAULT; opts.c: default_visibility = VISIBILITY_DEFAULT; opts.c: default_visibility = VISIBILITY_INTERNAL; opts.c: default_visibility = VISIBILITY_HIDDEN; opts.c: default_visibility = VISIBILITY_PROTECTED; Dear andrew, You have miss that visibility is supported by intel fortran, and is therefore quite useful for fortran dso. See http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/fortran/lin/compiler_f/optaps/common/optaps_cmp_visib.htm BTW could you mark that this bug is blocked by 41209 ? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41209 Bastien |