Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Thu, 14 Oct 1999 06:24:21 +0000 (06:24 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 14 Oct 1999 06:24:21 +0000 (23:24 -0700)
        * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
        alignment.

From-SVN: r29962

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 2ce75d65a21dae611d08878cb73943f0e9dc1813..99b1d1f0c140f7d7ba2c77f6db6cb0b527d3ff0a 100644 (file)
@@ -1,3 +1,8 @@
+Wed Oct 13 23:23:45 1999  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+       * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
+       alignment.
+
 Wed Oct 13 21:47:18 1999  Richard Henderson  <rth@cygnus.com>
 
        * ggc-page.c (MAP_FAILED): Provide default.
index c2de411b8490653f0632aa85c45cd69242fe6491..535e7bdd7fd35c7a68ae4759fe93de73086a897d 100644 (file)
@@ -2063,7 +2063,7 @@ expand_block_move (operands)
   rtx bytes_rtx        = operands[2];
   rtx align_rtx = operands[3];
   int constp   = (GET_CODE (bytes_rtx) == CONST_INT);
-  int align    = XINT (align_rtx, 0);
+  int align;
   int bytes;
   int offset;
   int num_reg;
@@ -2080,6 +2080,11 @@ expand_block_move (operands)
   if (! constp)
     return 0;
 
+  /* If this is not a fixed size alignment, abort */
+  if (GET_CODE (align_rtx) != CONST_INT)
+    abort ();
+  align = INTVAL (align_rtx);
+
   /* Anything to move? */
   bytes = INTVAL (bytes_rtx);
   if (bytes <= 0)