sparc.c (mem_min_alignment): Do not rely on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Tue, 10 May 2005 15:59:16 +0000 (17:59 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 10 May 2005 15:59:16 +0000 (15:59 +0000)
* config/sparc/sparc.c (mem_min_alignment): Do not rely
on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.

From-SVN: r99521

gcc/ChangeLog
gcc/config/sparc/sparc.c

index 8b9235fa4e8848547ae52b97ec0416703806c531..e54a84d68360821ffa0499ecf2122dbc19194eac 100644 (file)
@@ -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
index 6715437dfe680668965e1dbb1980c8189aa122c7..3560ed988ba13a6e57445869190ecc496ccc6eec 100644 (file)
@@ -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