]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/45233 (FAIL: gcc.c-torture/compile/pr44707.c)
authorIain Sandoe <iains@gcc.gnu.org>
Sat, 12 Nov 2011 14:12:26 +0000 (14:12 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 12 Nov 2011 14:12:26 +0000 (14:12 +0000)
gcc:

PR target/45233
* config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
Only expand a symbol ref. into an access when the entity is defined
in the TU.

From-SVN: r181315

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index f64897845c0acd84e939a9145fd5d600ae2ff242..d2cdaa9b64ad4403b25af868a153d5ceae486920 100644 (file)
@@ -1,3 +1,10 @@
+2011-11-12  Iain Sandoe  <iains@gcc.gnu.org>
+
+       PR target/45233
+       * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
+       Only expand a symbol ref. into an access when the entity is defined
+       in the TU.
+
 2011-11-12  Jan Hubicka  <jh@suse.cz>
 
        PR bootstrap/50822
index 89b79abc2f3cd7d9e957156beee9c49baf4a4940..87c84d9844e695b314b45076384b15ebf9d8fb51 100644 (file)
@@ -6169,6 +6169,7 @@ rs6000_legitimize_reload_address (rtx x, enum machine_mode mode,
 #if TARGET_MACHO
       && DEFAULT_ABI == ABI_DARWIN
       && (flag_pic || MACHO_DYNAMIC_NO_PIC_P)
+      && machopic_symbol_defined_p (x)
 #else
       && DEFAULT_ABI == ABI_V4
       && !flag_pic