summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-24 07:39:26 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-24 07:39:26 +0000
commit21108847f90c8492c8238e9ea2344ac50b015898 (patch)
treefecbd087d4cb01a6af941f8a52f2b265f1758910 /gcc/varasm.c
parentba4fc7dfb72cdf46c4f2c20ca7a4ebc2395a8877 (diff)
downloadgcc-21108847f90c8492c8238e9ea2344ac50b015898.tar.gz
PR c++/12624
* varasm.c (notice_global_symbol): Disqualify global registers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72880 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c3
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