From: Uros Bizjak Date: Thu, 2 Nov 2006 07:55:35 +0000 (+0100) Subject: re PR target/29377 (Build for h8300-elf crashes on 64bit hosts due to int/HWI mismatch) X-Git-Tag: releases/gcc-4.0.4~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=126c7f8da0215f06b1260e42c8e5017231892bea;p=thirdparty%2Fgcc.git re PR target/29377 (Build for h8300-elf crashes on 64bit hosts due to int/HWI mismatch) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a465d32afb02..69ff6c1d0fc6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2006-11-02 Uros Bizjak + + 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 * builtins.def (gamma, lgamma): Use ATTR_MATHFN_FPROUNDING_STORE. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index b78103584561..61f1562a12f4 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -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);