OSDN Git Service

* config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Dec 2004 11:24:21 +0000 (11:24 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Dec 2004 11:24:21 +0000 (11:24 +0000)
generate non-offsettable DImode lo_sum addresses.

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

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

index 9a81f33..fd24ff2 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-28  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
+       generate non-offsettable DImode lo_sum addresses.
+
 2004-12-28  Zdenek Dvorak  <dvorakz@suse.cz>
 
        PR rtl-optimization/19103
index 95a7b16..7802e38 100644 (file)
@@ -3845,8 +3845,10 @@ rs6000_legitimize_reload_address (rtx x, enum machine_mode mode,
       && DEFAULT_ABI == ABI_DARWIN
       && !ALTIVEC_VECTOR_MODE (mode)
       && (flag_pic || MACHO_DYNAMIC_NO_PIC_P)
-      /* Don't do this for TFmode, since the result isn't offsettable.  */
-      && mode != TFmode)
+      /* Don't do this for TFmode, since the result isn't offsettable.
+        The same goes for DImode without 64-bit gprs.  */
+      && mode != TFmode
+      && (mode != DImode || TARGET_POWERPC64))
     {
       if (flag_pic)
        {