diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a81f33..fd24ff2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 95a7b16..7802e38 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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) { |