Commit 0c2ca901 by Kaveh R. Ghazi Committed by Kaveh Ghazi

arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.

	* arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
	* arm.h (ROUND_UP_WORD): Likewise.

From-SVN: r61390
parent fc555370
2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
* arm.h (ROUND_UP_WORD): Likewise.
* arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
warning. warning.
* emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos, * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
......
...@@ -7513,7 +7513,7 @@ arm_poke_function_name (stream, name) ...@@ -7513,7 +7513,7 @@ arm_poke_function_name (stream, name)
rtx x; rtx x;
length = strlen (name) + 1; length = strlen (name) + 1;
alignlength = ROUND_UP (length); alignlength = ROUND_UP_WORD (length);
ASM_OUTPUT_ASCII (stream, name, length); ASM_OUTPUT_ASCII (stream, name, length);
ASM_OUTPUT_ALIGN (stream, 2); ASM_OUTPUT_ALIGN (stream, 2);
...@@ -8260,7 +8260,7 @@ arm_get_frame_size () ...@@ -8260,7 +8260,7 @@ arm_get_frame_size ()
{ {
int regno; int regno;
int base_size = ROUND_UP (get_frame_size ()); int base_size = ROUND_UP_WORD (get_frame_size ());
int entry_size = 0; int entry_size = 0;
unsigned long func_type = arm_current_func_type (); unsigned long func_type = arm_current_func_type ();
int leaf; int leaf;
...@@ -10314,7 +10314,7 @@ thumb_get_frame_size () ...@@ -10314,7 +10314,7 @@ thumb_get_frame_size ()
{ {
int regno; int regno;
int base_size = ROUND_UP (get_frame_size ()); int base_size = ROUND_UP_WORD (get_frame_size ());
int count_regs = 0; int count_regs = 0;
int entry_size = 0; int entry_size = 0;
int leaf; int leaf;
...@@ -10421,7 +10421,7 @@ thumb_expand_prologue () ...@@ -10421,7 +10421,7 @@ thumb_expand_prologue ()
if (amount) if (amount)
{ {
amount = ROUND_UP (amount); amount = ROUND_UP_WORD (amount);
if (amount < 512) if (amount < 512)
emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx, emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
...@@ -10506,7 +10506,7 @@ thumb_expand_epilogue () ...@@ -10506,7 +10506,7 @@ thumb_expand_epilogue ()
emit_insn (gen_movsi (stack_pointer_rtx, hard_frame_pointer_rtx)); emit_insn (gen_movsi (stack_pointer_rtx, hard_frame_pointer_rtx));
else if (amount) else if (amount)
{ {
amount = ROUND_UP (amount); amount = ROUND_UP_WORD (amount);
if (amount < 512) if (amount < 512)
emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx, emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx,
......
...@@ -851,7 +851,7 @@ extern const char * structure_size_string; ...@@ -851,7 +851,7 @@ extern const char * structure_size_string;
break; break;
/* Round X up to the nearest word. */ /* Round X up to the nearest word. */
#define ROUND_UP(X) (((X) + 3) & ~3) #define ROUND_UP_WORD(X) (((X) + 3) & ~3)
/* Convert fron bytes to ints. */ /* Convert fron bytes to ints. */
#define ARM_NUM_INTS(X) (((X) + UNITS_PER_WORD - 1) / UNITS_PER_WORD) #define ARM_NUM_INTS(X) (((X) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
...@@ -1321,7 +1321,7 @@ enum reg_class ...@@ -1321,7 +1321,7 @@ enum reg_class
this says how many the stack pointer really advances by. */ this says how many the stack pointer really advances by. */
/* The push insns do not do this rounding implicitly. /* The push insns do not do this rounding implicitly.
So don't define this. */ So don't define this. */
/* #define PUSH_ROUNDING(NPUSHED) ROUND_UP (NPUSHED) */ /* #define PUSH_ROUNDING(NPUSHED) ROUND_UP_WORD (NPUSHED) */
/* Define this if the maximum size of all the outgoing args is to be /* Define this if the maximum size of all the outgoing args is to be
accumulated and pushed during the prologue. The amount can be accumulated and pushed during the prologue. The amount can be
......
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