Commit 9d303046 by Doug Evans Committed by Doug Evans

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
parent 79308c5d
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> 2002-12-18 Jason Merrill <jason@redhat.com>
* unwind-dw2-fde.c (frame_downheap): Split out from... * unwind-dw2-fde.c (frame_downheap): Split out from...
......
...@@ -602,8 +602,8 @@ addr24_operand (op, mode) ...@@ -602,8 +602,8 @@ addr24_operand (op, mode)
rtx sym = XEXP (XEXP (op, 0), 0); rtx sym = XEXP (XEXP (op, 0), 0);
return (SMALL_NAME_P (XSTR (sym, 0)) return (SMALL_NAME_P (XSTR (sym, 0))
|| (TARGET_ADDR24 || (TARGET_ADDR24
&& (CONSTANT_POOL_ADDRESS_P (op) && (CONSTANT_POOL_ADDRESS_P (sym)
|| LIT_NAME_P (XSTR (op, 0))))); || LIT_NAME_P (XSTR (sym, 0)))));
} }
return 0; return 0;
...@@ -839,7 +839,7 @@ move_src_operand (op, mode) ...@@ -839,7 +839,7 @@ move_src_operand (op, mode)
low = CONST_DOUBLE_LOW (op); low = CONST_DOUBLE_LOW (op);
high = CONST_DOUBLE_HIGH (op); high = CONST_DOUBLE_HIGH (op);
return high == 0 && low <= 0xffffffff; return high == 0 && low <= (unsigned) 0xffffffff;
} }
else else
return 0; return 0;
......
...@@ -1074,7 +1074,7 @@ M32R_STACK_ALIGN (current_function_outgoing_args_size) ...@@ -1074,7 +1074,7 @@ M32R_STACK_ALIGN (current_function_outgoing_args_size)
#define ROUND_ADVANCE_ARG(MODE, TYPE) \ #define ROUND_ADVANCE_ARG(MODE, TYPE) \
((MODE) == BLKmode \ ((MODE) == BLKmode \
? ROUND_ADVANCE ((unsigned int) int_size_in_bytes (TYPE)) \ ? 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. */ /* Round CUM up to the necessary point for argument MODE/TYPE. */
#define ROUND_ADVANCE_CUM(CUM, MODE, TYPE) (CUM) #define ROUND_ADVANCE_CUM(CUM, MODE, TYPE) (CUM)
......
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