re PR lto/47259 (LTO and global register variable)

2011-12-02  Richard Guenther  <rguenther@suse.de>

	PR lto/47259
	* ipa.c (varpool_externally_visible_p): Register variables
	are always externally visible.

From-SVN: r181927
This commit is contained in:
Richard Guenther 2011-12-02 15:49:37 +00:00 committed by Richard Biener
parent a46cde6807
commit a296a0109b
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-12-02 Richard Guenther <rguenther@suse.de>
PR lto/47259
* ipa.c (varpool_externally_visible_p): Register variables
are always externally visible.
2011-12-02 Sameera Deshpande <sameera.deshpande@arm.com>
* gimple-pretty-print.c (dump_gimple_call): Dereference fn only if

View File

@ -662,6 +662,8 @@ varpool_externally_visible_p (struct varpool_node *vnode, bool aliased)
if (varpool_used_from_object_file_p (vnode))
return true;
if (DECL_HARD_REGISTER (vnode->decl))
return true;
if (DECL_PRESERVE_P (vnode->decl))
return true;
if (lookup_attribute ("externally_visible",