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
This commit is contained in:
Jan Hubicka 2003-10-24 09:39:26 +02:00 committed by Jan Hubicka
parent b4e2d709cf
commit 0f3340356d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-10-24 Jan Hubicka <jh@suse.cz>
PR c++/12624
* varasm.c (notice_global_symbol): Disqualify global registers.
2003-10-23 Roger Sayle <roger@eyesopen.com>
PR middle-end/11414

View File

@ -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