diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-07 15:51:52 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-07 15:51:52 +0000 |
commit | be147e7f552859527cc7d18e5e169deefcc8bea1 (patch) | |
tree | ab55cf53b4fbc7851723fc6c90a87c6277dc5cb4 /gcc/lto/lto.c | |
parent | 32766954718495854f4b31b5f6c84802532db4b7 (diff) | |
download | gcc-be147e7f552859527cc7d18e5e169deefcc8bea1.tar.gz |
* lto.c (promote_var, promote_fn): Set DECL_VISIBILITY_SPECIFIED.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163957 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r-- | gcc/lto/lto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 0b885a7f192..5d531f58d3c 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) |