]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 22 Nov 2004 18:32:26 +0000 (19:32 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 22 Nov 2004 18:32:26 +0000 (18:32 +0000)
From-SVN: r91021

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

index 62833b220547c2f32fc339654a9581c12acb6b31..3f81dc7f3eb98055159734ec150a0346f44f035f 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
+
 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/power4.md: Remove delay between dispatch and issue
index 69c3bc593a027c6a0fd88258eeca5405625783dc..dcacae20d4b7a594af10f0cf0cf14cd787bc080a 100644 (file)
@@ -3983,6 +3983,12 @@ mem_min_alignment (rtx mem, int desired)
   if (GET_CODE (mem) != MEM)
     return 0;
 
+  /* Obviously...  */
+  if (MEM_ALIGN (mem) / BITS_PER_UNIT >= (unsigned)desired)
+    return 1;
+
+  /* ??? The rest of the function predates MEM_ALIGN so
+     there is probably a bit of redundancy.  */
   addr = XEXP (mem, 0);
   base = offset = NULL_RTX;
   if (GET_CODE (addr) == PLUS)