Commit 6e9c53b4 by John David Anglin Committed by John David Anglin

pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for comparison with rtx INTVAL.

	* pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
	comparison with rtx INTVAL.
	(pa_output_function_prologue): Don't mix signed and unsigned in `?'
	expression.
	* pa.h (FUNCTION_ARG_SIZE): Likewise.

From-SVN: r45271
parent 53251a55
2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
comparison with rtx INTVAL.
(pa_output_function_prologue): Don't mix signed and unsigned in `?'
expression.
* pa.h (FUNCTION_ARG_SIZE): Likewise.
2001-08-29 Kazu Hirata <kazu@hxi.com> 2001-08-29 Kazu Hirata <kazu@hxi.com>
* config/h8300/lib1funcs.asm: Update the copyright. Fix * config/h8300/lib1funcs.asm: Update the copyright. Fix
......
...@@ -377,12 +377,14 @@ move_operand (op, mode) ...@@ -377,12 +377,14 @@ move_operand (op, mode)
&& ((GET_CODE (XEXP (op, 0)) == MULT && ((GET_CODE (XEXP (op, 0)) == MULT
&& GET_CODE (XEXP (XEXP (op, 0), 0)) == REG && GET_CODE (XEXP (XEXP (op, 0), 0)) == REG
&& GET_CODE (XEXP (XEXP (op, 0), 1)) == CONST_INT && GET_CODE (XEXP (XEXP (op, 0), 1)) == CONST_INT
&& INTVAL (XEXP (XEXP (op, 0), 1)) == GET_MODE_SIZE (mode) && INTVAL (XEXP (XEXP (op, 0), 1))
== (HOST_WIDE_INT) GET_MODE_SIZE (mode)
&& GET_CODE (XEXP (op, 1)) == REG) && GET_CODE (XEXP (op, 1)) == REG)
|| (GET_CODE (XEXP (op, 1)) == MULT || (GET_CODE (XEXP (op, 1)) == MULT
&&GET_CODE (XEXP (XEXP (op, 1), 0)) == REG &&GET_CODE (XEXP (XEXP (op, 1), 0)) == REG
&& GET_CODE (XEXP (XEXP (op, 1), 1)) == CONST_INT && GET_CODE (XEXP (XEXP (op, 1), 1)) == CONST_INT
&& INTVAL (XEXP (XEXP (op, 1), 1)) == GET_MODE_SIZE (mode) && INTVAL (XEXP (XEXP (op, 1), 1))
== (HOST_WIDE_INT) GET_MODE_SIZE (mode)
&& GET_CODE (XEXP (op, 0)) == REG))) && GET_CODE (XEXP (op, 0)) == REG)))
return 1; return 1;
...@@ -2938,7 +2940,8 @@ pa_output_function_prologue (file, size) ...@@ -2938,7 +2940,8 @@ pa_output_function_prologue (file, size)
total_code_bytes += FUNCTION_BOUNDARY / BITS_PER_UNIT; total_code_bytes += FUNCTION_BOUNDARY / BITS_PER_UNIT;
/* Be prepared to handle overflows. */ /* Be prepared to handle overflows. */
total_code_bytes = old_total > total_code_bytes ? -1 : total_code_bytes; if (old_total > total_code_bytes)
total_code_bytes = -1;
} }
else else
total_code_bytes = -1; total_code_bytes = -1;
......
...@@ -744,7 +744,7 @@ struct hppa_args {int words, nargs_prototype, indirect; }; ...@@ -744,7 +744,7 @@ struct hppa_args {int words, nargs_prototype, indirect; };
#define FUNCTION_ARG_SIZE(MODE, TYPE) \ #define FUNCTION_ARG_SIZE(MODE, TYPE) \
((((MODE) != BLKmode \ ((((MODE) != BLKmode \
? GET_MODE_SIZE (MODE) \ ? (HOST_WIDE_INT) GET_MODE_SIZE (MODE) \
: int_size_in_bytes (TYPE)) + UNITS_PER_WORD - 1) / UNITS_PER_WORD) : int_size_in_bytes (TYPE)) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
/* Update the data in CUM to advance over an argument /* Update the data in CUM to advance over an argument
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment