diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2005-05-10 17:59:16 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2005-05-10 15:59:16 +0000 |
commit | 0f95e9143a13dfd136675c080fba4038e4b5721c (patch) | |
tree | e7a4c55e4b2435e54681ebabf9020884b54bba14 /gcc/config/sparc | |
parent | 53e0077e6f0a0240e7c92c2450b92f2f008f360d (diff) | |
download | gcc-0f95e9143a13dfd136675c080fba4038e4b5721c.zip gcc-0f95e9143a13dfd136675c080fba4038e4b5721c.tar.gz gcc-0f95e9143a13dfd136675c080fba4038e4b5721c.tar.bz2 |
sparc.c (mem_min_alignment): Do not rely on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
* config/sparc/sparc.c (mem_min_alignment): Do not rely
on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
From-SVN: r99521
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r-- | gcc/config/sparc/sparc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 6715437..3560ed9 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 |