diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-22 20:56:34 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-22 20:56:34 +0000 |
commit | e87b587e08f789e90b3eccb6f4f0040541d0ff09 (patch) | |
tree | f649c0692e0f80c39d30d4564c32b19a2b1dfd09 /gcc/varpool.c | |
parent | 4a77f173f5669858966e37bbd313af1ce381a273 (diff) | |
download | gcc-e87b587e08f789e90b3eccb6f4f0040541d0ff09.tar.gz |
PR c++/51832
* varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
for extra name aliases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183396 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r-- | gcc/varpool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c index 74fc1ba712b..e01accb21dc 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -484,6 +484,7 @@ varpool_analyze_pending_decls (void) { DECL_WEAK (node->decl) = DECL_WEAK (node->alias_of); TREE_PUBLIC (node->decl) = TREE_PUBLIC (node->alias_of); + DECL_EXTERNAL (node->decl) = DECL_EXTERNAL (node->alias_of); DECL_VISIBILITY (node->decl) = DECL_VISIBILITY (node->alias_of); if (TREE_PUBLIC (node->decl)) { |