]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/29377 (Build for h8300-elf crashes on 64bit hosts due to int/HWI mismatch)
authorUros Bizjak <ubizjak@gmail.com>
Thu, 2 Nov 2006 07:55:35 +0000 (08:55 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 2 Nov 2006 07:55:35 +0000 (08:55 +0100)
        PR target/29377
        * config/h8300/h8300.c (h8300_emit_stack_adjustment): Change "size"
        argument to HOST_WIDE_INT.  Update function prototype.
        (round_frame_size): Change return type to HOST_WIDE_INT.  Change
        "size" argument to HOST_WIDE_INT.  Update function prototype.

From-SVN: r118411

gcc/ChangeLog
gcc/config/h8300/h8300.c

index a465d32afb022ef4fbe550e61a895ebebac6ba34..69ff6c1d0fc633ee3a7291dfe6ef4ae644db2d61 100644 (file)
@@ -1,3 +1,11 @@
+2006-11-02  Uros Bizjak <ubizjak@gmail.com>
+
+       PR target/29377
+       * config/h8300/h8300.c (h8300_emit_stack_adjustment): Change "size"
+       argument to HOST_WIDE_INT.  Update function prototype.
+       (round_frame_size): Change return type to HOST_WIDE_INT.  Change
+       "size" argument to HOST_WIDE_INT.  Update function prototype.
+
 2006-11-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * builtins.def (gamma, lgamma): Use ATTR_MATHFN_FPROUNDING_STORE.
index b7810358456108154d35a65bc612d1bdfc7b9040..61f1562a12f419c7c0982a8a2ac43d7388e865db 100644 (file)
@@ -103,8 +103,8 @@ static int h8300_interrupt_function_p (tree);
 static int h8300_saveall_function_p (tree);
 static int h8300_monitor_function_p (tree);
 static int h8300_os_task_function_p (tree);
-static void h8300_emit_stack_adjustment (int, unsigned int);
-static int round_frame_size (int);
+static void h8300_emit_stack_adjustment (int, HOST_WIDE_INT);
+static HOST_WIDE_INT round_frame_size (HOST_WIDE_INT);
 static unsigned int compute_saved_regs (void);
 static void push (int);
 static void pop (int);
@@ -538,7 +538,7 @@ byte_reg (rtx x, int b)
    SIZE to adjust the stack pointer.  */
 
 static void
-h8300_emit_stack_adjustment (int sign, unsigned int size)
+h8300_emit_stack_adjustment (int sign, HOST_WIDE_INT size)
 {
   /* If the frame size is 0, we don't have anything to do.  */
   if (size == 0)
@@ -574,8 +574,8 @@ h8300_emit_stack_adjustment (int sign, unsigned int size)
 
 /* Round up frame size SIZE.  */
 
-static int
-round_frame_size (int size)
+static HOST_WIDE_INT
+round_frame_size (HOST_WIDE_INT size)
 {
   return ((size + STACK_BOUNDARY / BITS_PER_UNIT - 1)
          & -STACK_BOUNDARY / BITS_PER_UNIT);