diff options
author | Richard Guenther <rguenther@suse.de> | 2011-12-02 15:49:37 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-12-02 15:49:37 +0000 |
commit | a296a0109b718272cf6fc578e9b631f82103c558 (patch) | |
tree | 54d035f31c6e4e295820170a81553b7d472b3960 | |
parent | a46cde680750f08984a35106e74d415a50e82991 (diff) | |
download | gcc-a296a0109b718272cf6fc578e9b631f82103c558.zip gcc-a296a0109b718272cf6fc578e9b631f82103c558.tar.gz gcc-a296a0109b718272cf6fc578e9b631f82103c558.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7083bde..3865341 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 @@ -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", |