diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-03 21:15:15 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-03 21:15:15 +0000 |
commit | a6af46b6c1037150a2a55c1718e9bdcf19bbba2c (patch) | |
tree | 5a5a84310c69946e3cac6513bccf1962ae00013a /gcc/varasm.c | |
parent | 2e7ca27b995016d4ddc7e75b4bec2ffa3f193b2e (diff) | |
download | gcc-a6af46b6c1037150a2a55c1718e9bdcf19bbba2c.tar.gz |
PR middle-end/30174
* varasm.c (notice_global_symbol): Treat global objects as weak when
flag_shlib is true.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121551 138bc75d-0d04-0410-961f-82ee72b054a4
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 48055cf65fd..c2ae6e23f1c 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) |