function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT before rounding.
authorRichard Henderson <rth@redhat.com>
Tue, 27 Jul 2004 21:50:56 +0000 (14:50 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 27 Jul 2004 21:50:56 +0000 (14:50 -0700)
        * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
        before rounding.

From-SVN: r85233

gcc/ChangeLog
gcc/function.c

index 5d180c89b20a7a2973e38bc3dc73b6e9e2517e39..9f760a2b16fe6cc2e645953a3b11b52627ccb48d 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-27  Richard Henderson  <rth@redhat.com>
+
+       * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
+       before rounding.
+
 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
 
        * libgcc2.c: Change all conditionals testing
index 7624342be1671c35afed6a5a28f859e870ef8648..699a009ee039535f8b451b1e78671212cb5adace 100644 (file)
@@ -453,11 +453,13 @@ assign_stack_local_1 (enum machine_mode mode, HOST_WIDE_INT size, int align,
          use logical operations which are unambiguous.  */
 #ifdef FRAME_GROWS_DOWNWARD
       function->x_frame_offset
-       = (FLOOR_ROUND (function->x_frame_offset - frame_phase, alignment)
+       = (FLOOR_ROUND (function->x_frame_offset - frame_phase,
+                       (unsigned HOST_WIDE_INT) alignment)
           + frame_phase);
 #else
       function->x_frame_offset
-       = (CEIL_ROUND (function->x_frame_offset - frame_phase, alignment)
+       = (CEIL_ROUND (function->x_frame_offset - frame_phase,
+                      (unsigned HOST_WIDE_INT) alignment)
           + frame_phase);
 #endif
     }