re PR target/27566 (ICEs in final_scan_insn and reload_cse_simplify_operands for...
authorDavid Edelsohn <edelsohn@gnu.org>
Thu, 3 Aug 2006 13:48:01 +0000 (13:48 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 3 Aug 2006 13:48:01 +0000 (09:48 -0400)
        PR target/27566
        * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
        not reload a SPE symbol_ref into a lo_sum address.

From-SVN: r115902

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

index 3688cbdec8fea49f16b8af007fa57531abc6a49d..aa7b5441cf19a714cfb92242333e290e60ef77dc 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-03  David Edelsohn  <edelsohn@gnu.org>
+
+       PR target/27566
+       * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
+       not reload a SPE symbol_ref into a lo_sum address.
+
 2006-08-02  Daniel Jacobowitz  <dan@codesourcery.com>
 
        PR debug/28063
index c9888579c76149c4cee2bf3e3b104ac300f2aad6..676f9645265eb2ef1d9cec966b58850dc4c85a03 100644 (file)
@@ -3421,6 +3421,7 @@ rs6000_legitimize_reload_address (rtx x, enum machine_mode mode,
 
   if (GET_CODE (x) == SYMBOL_REF
       && !ALTIVEC_VECTOR_MODE (mode)
+      && !SPE_VECTOR_MODE (mode)
 #if TARGET_MACHO
       && DEFAULT_ABI == ABI_DARWIN
       && (flag_pic || MACHO_DYNAMIC_NO_PIC_P)