From: H.J. Lu Date: Wed, 15 Jun 2011 15:50:22 +0000 (+0000) Subject: Mark __dso_handle hidden if assembler supports it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6beec6813aa23a06f56ba73b7fbfafe2e2662c26;p=gcc.git Mark __dso_handle hidden if assembler supports it. 2011-06-15 H.J. Lu PR c++/49412 * decl.c (get_dso_handle_node): Mark __dso_handle hidden if assembler supports hidden visibility. From-SVN: r175080 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 88bb8fb35a0..9ed50863a37 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2011-06-15 H.J. Lu + + PR c++/49412 + * decl.c (get_dso_handle_node): Mark __dso_handle hidden if + assembler supports hidden visibility. + 2011-06-14 Jason Merrill PR c++/49107 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 3ccefb901e1..29edbe3865c 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6435,6 +6435,11 @@ get_dso_handle_node (void) dso_handle_node = declare_global_var (get_identifier ("__dso_handle"), 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; }