diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index cb5503d896a..29bc6052fdd 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1050,7 +1050,8 @@ notice_global_symbol (tree decl) && (TREE_CODE (decl) != VAR_DECL || (DECL_COMMON (decl) && (DECL_INITIAL (decl) == 0 - || DECL_INITIAL (decl) == error_mark_node))))) + || DECL_INITIAL (decl) == error_mark_node)))) + || GET_CODE (DECL_RTL (decl)) != MEM) return; /* We win when global object is found, but it is usefull to know about weak |