summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-10 15:59:16 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-10 15:59:16 +0000
commitc51429aedf0dd9a3736b9e12e65410c064cb50c2 (patch)
treee7a4c55e4b2435e54681ebabf9020884b54bba14 /gcc
parent324c3b05da99cf3c15014f16caea6f882d7f488c (diff)
downloadgcc-c51429aedf0dd9a3736b9e12e65410c064cb50c2.tar.gz
* config/sparc/sparc.c (mem_min_alignment): Do not rely
on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99521 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/sparc.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8b9235fa4e8..e54a84d6836 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-10 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * config/sparc/sparc.c (mem_min_alignment): Do not rely
+ on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
+
2005-05-10 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 6715437dfe6..3560ed988ba 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -3193,7 +3193,8 @@ mem_min_alignment (rtx mem, int desired)
return 0;
/* Obviously... */
- if (MEM_ALIGN (mem) / BITS_PER_UNIT >= (unsigned)desired)
+ if (!TARGET_UNALIGNED_DOUBLES
+ && MEM_ALIGN (mem) / BITS_PER_UNIT >= (unsigned)desired)
return 1;
/* ??? The rest of the function predates MEM_ALIGN so