OSDN Git Service

PR target/27566
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Aug 2006 13:48:01 +0000 (13:48 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Aug 2006 13:48:01 +0000 (13:48 +0000)
        * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
        not reload a SPE symbol_ref into a lo_sum address.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115902 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3688cbd..aa7b544 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 c988857..676f964 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)