re PR target/29377 (Build for h8300-elf crashes on 64bit hosts due to int/HWI mismatch)
authorUros Bizjak <uros@kss-loka.si>
Sat, 28 Oct 2006 09:41:41 +0000 (11:41 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 28 Oct 2006 09:41:41 +0000 (11:41 +0200)
        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: r118102

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

index d1d2e4e421d360b1659818353784fa15f206cbe0..a0bdc8174a94df1751e4ad9fefbfc23b4e0b6cd0 100644 (file)
@@ -1,3 +1,11 @@
+2006-10-28 Uros Bizjak <uros@kss-loka.si>
+
+       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-10-28 Uros Bizjak <uros@kss-loka.si>
 
        * config/i386/i386.c (output_387_ffreep): Create output from a
index cfda1f3d098912e6b0f99121780e413b165fa3ec..215fbe3b7f47b313d2b333f7b9b9d41a65dc96f8 100644 (file)
@@ -83,8 +83,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);
@@ -510,7 +510,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)
@@ -546,8 +546,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);