mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 03:46:53 -05:00
* decl2.c (get_guard): Copy visibility from the guarded variable.
From-SVN: r128227
This commit is contained in:
committed by
Jason Merrill
parent
a8fe8ba1e0
commit
6be4a97931
@@ -1,3 +1,7 @@
|
||||
2007-09-06 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* decl2.c (get_guard): Copy visibility from the guarded variable.
|
||||
|
||||
2007-09-06 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
PR c++/32674
|
||||
|
||||
@@ -2224,6 +2224,8 @@ get_guard (tree decl)
|
||||
DECL_ONE_ONLY (guard) = DECL_ONE_ONLY (decl);
|
||||
if (TREE_PUBLIC (decl))
|
||||
DECL_WEAK (guard) = DECL_WEAK (decl);
|
||||
DECL_VISIBILITY (guard) = DECL_VISIBILITY (decl);
|
||||
DECL_VISIBILITY_SPECIFIED (guard) = DECL_VISIBILITY_SPECIFIED (decl);
|
||||
|
||||
DECL_ARTIFICIAL (guard) = 1;
|
||||
DECL_IGNORED_P (guard) = 1;
|
||||
|
||||
Reference in New Issue
Block a user