OSDN Git Service

* function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jul 2004 21:50:56 +0000 (21:50 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jul 2004 21:50:56 +0000 (21:50 +0000)
        before rounding.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85233 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/function.c

index 5d180c8..9f760a2 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 7624342..699a009 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
     }