m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P and LIT_NAME_P.

* m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
	and LIT_NAME_P.
	(move_src_operand): Remove compile-time warning.
	* m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.

From-SVN: r60262
This commit is contained in:
Doug Evans 2002-12-18 19:23:58 +00:00 committed by Doug Evans
parent 79308c5dbb
commit 9d3030465c
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2002-12-18 Doug Evans <dje@sebabeach.org>
* m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
and LIT_NAME_P.
(move_src_operand): Remove compile-time warning.
* m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.
2002-12-18 Jason Merrill <jason@redhat.com>
* unwind-dw2-fde.c (frame_downheap): Split out from...

View File

@ -602,8 +602,8 @@ addr24_operand (op, mode)
rtx sym = XEXP (XEXP (op, 0), 0);
return (SMALL_NAME_P (XSTR (sym, 0))
|| (TARGET_ADDR24
&& (CONSTANT_POOL_ADDRESS_P (op)
|| LIT_NAME_P (XSTR (op, 0)))));
&& (CONSTANT_POOL_ADDRESS_P (sym)
|| LIT_NAME_P (XSTR (sym, 0)))));
}
return 0;
@ -839,7 +839,7 @@ move_src_operand (op, mode)
low = CONST_DOUBLE_LOW (op);
high = CONST_DOUBLE_HIGH (op);
return high == 0 && low <= 0xffffffff;
return high == 0 && low <= (unsigned) 0xffffffff;
}
else
return 0;

View File

@ -1074,7 +1074,7 @@ M32R_STACK_ALIGN (current_function_outgoing_args_size)
#define ROUND_ADVANCE_ARG(MODE, TYPE) \
((MODE) == BLKmode \
? ROUND_ADVANCE ((unsigned int) int_size_in_bytes (TYPE)) \
: ROUND_ADVANCE (GET_MODE_SIZE (MODE)))
: ROUND_ADVANCE ((unsigned int) GET_MODE_SIZE (MODE)))
/* Round CUM up to the necessary point for argument MODE/TYPE. */
#define ROUND_ADVANCE_CUM(CUM, MODE, TYPE) (CUM)