diff options
author | Jason Merrill <jason@redhat.com> | 2012-01-22 15:56:34 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-01-22 15:56:34 -0500 |
commit | bbe04f213da2a9ec4bbbaa4b50bed4c8b53a3e98 (patch) | |
tree | f649c0692e0f80c39d30d4564c32b19a2b1dfd09 /gcc/varpool.c | |
parent | ca10595cf475579d19b0bf6fe5399cdf6f9b89f4 (diff) | |
download | gcc-bbe04f213da2a9ec4bbbaa4b50bed4c8b53a3e98.zip gcc-bbe04f213da2a9ec4bbbaa4b50bed4c8b53a3e98.tar.gz gcc-bbe04f213da2a9ec4bbbaa4b50bed4c8b53a3e98.tar.bz2 |
re PR c++/51832 (Rev.182970 causes LTO link errors (multiple definitions of allocator_traits))
PR c++/51832
* varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
for extra name aliases.
From-SVN: r183396
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 74fc1ba..e01accb 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)) { |