Mark __dso_handle hidden if assembler supports it.
2011-06-15 H.J. Lu <hongjiu.lu@intel.com> PR c++/49412 * decl.c (get_dso_handle_node): Mark __dso_handle hidden if assembler supports hidden visibility. From-SVN: r175080
This commit is contained in:
parent
85ce937577
commit
6beec6813a
@ -1,3 +1,9 @@
|
|||||||
|
2011-06-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR c++/49412
|
||||||
|
* decl.c (get_dso_handle_node): Mark __dso_handle hidden if
|
||||||
|
assembler supports hidden visibility.
|
||||||
|
|
||||||
2011-06-14 Jason Merrill <jason@redhat.com>
|
2011-06-14 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
PR c++/49107
|
PR c++/49107
|
||||||
|
@ -6435,6 +6435,11 @@ get_dso_handle_node (void)
|
|||||||
dso_handle_node = declare_global_var (get_identifier ("__dso_handle"),
|
dso_handle_node = declare_global_var (get_identifier ("__dso_handle"),
|
||||||
ptr_type_node);
|
ptr_type_node);
|
||||||
|
|
||||||
|
#ifdef HAVE_GAS_HIDDEN
|
||||||
|
DECL_VISIBILITY (dso_handle_node) = VISIBILITY_HIDDEN;
|
||||||
|
DECL_VISIBILITY_SPECIFIED (dso_handle_node) = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
return dso_handle_node;
|
return dso_handle_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user