diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2007-02-03 21:15:15 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2007-02-03 21:15:15 +0000 |
commit | 2e3e8cea385f28adf4c3f3ac4134f73595c4a8e2 (patch) | |
tree | 5a5a84310c69946e3cac6513bccf1962ae00013a /gcc/varasm.c | |
parent | b86a760aed87957b7f57a39aeef25ac8ab8ecaa9 (diff) | |
download | gcc-2e3e8cea385f28adf4c3f3ac4134f73595c4a8e2.zip gcc-2e3e8cea385f28adf4c3f3ac4134f73595c4a8e2.tar.gz gcc-2e3e8cea385f28adf4c3f3ac4134f73595c4a8e2.tar.bz2 |
re PR middle-end/30174 (FAIL: g++.old-deja/g++.abi/cxa_vec.C execution test)
PR middle-end/30174
* varasm.c (notice_global_symbol): Treat global objects as weak when
flag_shlib is true.
From-SVN: r121551
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 48055cf..c2ae6e2 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1323,7 +1323,7 @@ notice_global_symbol (tree decl) /* We win when global object is found, but it is useful to know about weak symbol as well so we can produce nicer unique names. */ - if (DECL_WEAK (decl) || DECL_ONE_ONLY (decl)) + if (DECL_WEAK (decl) || DECL_ONE_ONLY (decl) || flag_shlib) type = &weak_global_object_name; if (!*type) |