diff options
author | Jan Hubicka <jh@suse.cz> | 2010-09-07 17:51:52 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-09-07 15:51:52 +0000 |
commit | ee187353052b7ae1654eae9f86635cff306fc25e (patch) | |
tree | ab55cf53b4fbc7851723fc6c90a87c6277dc5cb4 /gcc | |
parent | 9c4ce18d030434d47e6ad6b68caa4f630bc6df72 (diff) | |
download | gcc-ee187353052b7ae1654eae9f86635cff306fc25e.zip gcc-ee187353052b7ae1654eae9f86635cff306fc25e.tar.gz gcc-ee187353052b7ae1654eae9f86635cff306fc25e.tar.bz2 |
* lto.c (promote_var, promote_fn): Set DECL_VISIBILITY_SPECIFIED.
From-SVN: r163957
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index cd05044..1966ea8 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -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. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 0b885a7..5d531f5 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -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) |