* PATCH: PR c++/49412: __dso_handle should be hidden
@ 2011-06-15 13:48 H.J. Lu
2011-06-15 16:06 ` Jason Merrill
0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2011-06-15 13:48 UTC (permalink / raw)
To: gcc-patches; +Cc: Jason Merrill
Since __dso_handle is always hidden if HAVE_GAS_HIDDEN is set, it is safe
to mark __dso_handle hidden if assembler supports it. OK for trunk?
Thanks.
H.J.
---
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.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index f4988f9..17ba539 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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: PR c++/49412: __dso_handle should be hidden
2011-06-15 13:48 PATCH: PR c++/49412: __dso_handle should be hidden H.J. Lu
@ 2011-06-15 16:06 ` Jason Merrill
0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2011-06-15 16:06 UTC (permalink / raw)
To: H.J. Lu; +Cc: H.J. Lu, gcc-patches
OK.
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-15 15:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15 13:48 PATCH: PR c++/49412: __dso_handle should be hidden H.J. Lu
2011-06-15 16:06 ` Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).