diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-12-28 11:24:21 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2004-12-28 21:54:21 +1030 |
commit | 0d8c1c97eb54089021afc7e348429db7e8a63610 (patch) | |
tree | fce63da8f5fdb073aafeb8f95a7067fdc76d84d9 /gcc | |
parent | 6e17f9c1fe6e97255c7885c347e7895e8bb04ecc (diff) | |
download | gcc-0d8c1c97eb54089021afc7e348429db7e8a63610.zip gcc-0d8c1c97eb54089021afc7e348429db7e8a63610.tar.gz gcc-0d8c1c97eb54089021afc7e348429db7e8a63610.tar.bz2 |
rs6000.c (rs6000_legitimize_reload_address): Don't generate non-offsettable DImode lo_sum addresses.
* config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
generate non-offsettable DImode lo_sum addresses.
From-SVN: r92670
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) { |