]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* decl2.c (get_guard): Copy visibility from the guarded variable.
authorJason Merrill <jason@redhat.com>
Fri, 7 Sep 2007 03:57:35 +0000 (23:57 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 7 Sep 2007 03:57:35 +0000 (23:57 -0400)
From-SVN: r128227

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 8cea1221e73392458b962d05d6a0e7b2c8f8f6b1..5fafaadd3e90c25bfc9612921c7160417b542ae6 100644 (file)
@@ -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
index 4b9c0b5dfcfc590f7a7c57da516bdd6cb52a06e2..131e2dcf7514dba69df3d1a6f90c81fb3cb23db2 100644 (file)
@@ -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;