From 0f3340356d5a1b7847301b0d20161b242cfc5dbd Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 24 Oct 2003 09:39:26 +0200 Subject: [PATCH] re PR c++/12624 ([unit-at-a-time] ICE in notice_global_symbol) PR c++/12624 * varasm.c (notice_global_symbol): Disqualify global registers. From-SVN: r72880 --- gcc/ChangeLog | 5 +++++ gcc/varasm.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e414c23e4d5..4b59697d372 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-10-24 Jan Hubicka + + PR c++/12624 + * varasm.c (notice_global_symbol): Disqualify global registers. + 2003-10-23 Roger Sayle PR middle-end/11414 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