]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* lto.c (promote_var, promote_fn): Set DECL_VISIBILITY_SPECIFIED.
authorJan Hubicka <jh@suse.cz>
Tue, 7 Sep 2010 15:51:52 +0000 (17:51 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 7 Sep 2010 15:51:52 +0000 (15:51 +0000)
From-SVN: r163957

gcc/lto/ChangeLog
gcc/lto/lto.c

index cd0504424cb26e740a2fd8bb163d7b485687d7bd..1966ea8c8e1bd3d8e17df50cd860593d9926521b 100644 (file)
@@ -1,3 +1,7 @@
+2010-09-07  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (promote_var, promote_fn): Set DECL_VISIBILITY_SPECIFIED.
+
 2010-09-03  Richard Guenther  <rguenther@suse.de>
 
        * lto-elf.c (validate_file): Always error if validation fails.
index 0b885a7f192ccc45af6104b9cc1a34b265695d8e..5d531f58d3c5495f2823bdbbeb7f62bb6af5ee15 100644 (file)
@@ -914,6 +914,7 @@ promote_var (struct varpool_node *vnode)
   gcc_assert (flag_wpa);
   TREE_PUBLIC (vnode->decl) = 1;
   DECL_VISIBILITY (vnode->decl) = VISIBILITY_HIDDEN;
+  DECL_VISIBILITY_SPECIFIED (vnode->decl) = true;
   if (cgraph_dump_file)
     fprintf (cgraph_dump_file,
            "Promoting var as hidden: %s\n", varpool_node_name (vnode));
@@ -930,6 +931,7 @@ promote_fn (struct cgraph_node *node)
     return false;
   TREE_PUBLIC (node->decl) = 1;
   DECL_VISIBILITY (node->decl) = VISIBILITY_HIDDEN;
+  DECL_VISIBILITY_SPECIFIED (node->decl) = true;
   if (node->same_body)
     {
       struct cgraph_node *alias;
@@ -938,6 +940,7 @@ promote_fn (struct cgraph_node *node)
        {
          TREE_PUBLIC (alias->decl) = 1;
          DECL_VISIBILITY (alias->decl) = VISIBILITY_HIDDEN;
+         DECL_VISIBILITY_SPECIFIED (alias->decl) = true;
        }
     }
   if (cgraph_dump_file)