diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-01-16 09:16:10 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-01-16 09:16:10 +0000 |
commit | 43b9595876885fd323ca76bb75833ef9f8ddcedc (patch) | |
tree | 13a2f669c62210624111751cc01f54d384623eed /gcc/calls.c | |
parent | 296688c0d0b1419a6dd88eee05155d7d9398af7f (diff) | |
download | gcc-43b9595876885fd323ca76bb75833ef9f8ddcedc.tar.gz |
`
* calls.c (expand_call): Move #ifdef code out of macro argument
lists.
(emit_library_call, emit_library_call_value): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17379 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 358c637c504..cf6c3df70dc 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1723,17 +1723,17 @@ expand_call (exp, target, ignore) BIGGEST_ALIGNMENT / UNITS_PER_WORD) - 1))) save_mode = BLKmode; +#ifdef ARGS_GROW_DOWNWARD stack_area = gen_rtx_MEM (save_mode, memory_address (save_mode, - -#ifdef ARGS_GROW_DOWNWARD plus_constant (argblock, - - high_to_save) + - high_to_save))); #else + stack_area = gen_rtx_MEM (save_mode, + memory_address (save_mode, plus_constant (argblock, - low_to_save) + low_to_save))); #endif - )); if (save_mode == BLKmode) { save_area = assign_stack_temp (BLKmode, num_to_save, 0); @@ -2215,17 +2215,19 @@ expand_call (exp, target, ignore) if (save_area) { enum machine_mode save_mode = GET_MODE (save_area); +#ifdef ARGS_GROW_DOWNWARD rtx stack_area = gen_rtx_MEM (save_mode, memory_address (save_mode, -#ifdef ARGS_GROW_DOWNWARD plus_constant (argblock, - - high_to_save) + - high_to_save))); #else + rtx stack_area + = gen_rtx_MEM (save_mode, + memory_address (save_mode, plus_constant (argblock, - low_to_save) + low_to_save))); #endif - )); if (save_mode != BLKmode) emit_move_insn (stack_area, save_area); @@ -2574,17 +2576,17 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode, BIGGEST_ALIGNMENT / UNITS_PER_WORD) - 1))) save_mode = BLKmode; +#ifdef ARGS_GROW_DOWNWARD stack_area = gen_rtx_MEM (save_mode, memory_address (save_mode, - -#ifdef ARGS_GROW_DOWNWARD plus_constant (argblock, - - high_to_save) + - high_to_save))); #else + stack_area = gen_rtx_MEM (save_mode, + memory_address (save_mode, plus_constant (argblock, - low_to_save) + low_to_save))); #endif - )); if (save_mode == BLKmode) { save_area = assign_stack_temp (BLKmode, num_to_save, 0); @@ -2740,15 +2742,18 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode, if (save_area) { enum machine_mode save_mode = GET_MODE (save_area); +#ifdef ARGS_GROW_DOWNWARD rtx stack_area = gen_rtx_MEM (save_mode, memory_address (save_mode, -#ifdef ARGS_GROW_DOWNWARD - plus_constant (argblock, - high_to_save) + plus_constant (argblock, + - high_to_save))); #else - plus_constant (argblock, low_to_save) + rtx stack_area + = gen_rtx_MEM (save_mode, + memory_address (save_mode, + plus_constant (argblock, low_to_save))); #endif - )); if (save_mode != BLKmode) emit_move_insn (stack_area, save_area); @@ -3142,17 +3147,17 @@ emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue, BIGGEST_ALIGNMENT / UNITS_PER_WORD) - 1))) save_mode = BLKmode; +#ifdef ARGS_GROW_DOWNWARD stack_area = gen_rtx_MEM (save_mode, memory_address (save_mode, - -#ifdef ARGS_GROW_DOWNWARD plus_constant (argblock, - - high_to_save) + - high_to_save))); #else + stack_area = gen_rtx_MEM (save_mode, + memory_address (save_mode, plus_constant (argblock, - low_to_save) + low_to_save))); #endif - )); if (save_mode == BLKmode) { save_area = assign_stack_temp (BLKmode, num_to_save, 0); @@ -3334,15 +3339,18 @@ emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue, if (save_area) { enum machine_mode save_mode = GET_MODE (save_area); +#ifdef ARGS_GROW_DOWNWARD rtx stack_area = gen_rtx_MEM (save_mode, memory_address (save_mode, -#ifdef ARGS_GROW_DOWNWARD - plus_constant (argblock, - high_to_save) + plus_constant (argblock, + - high_to_save))); #else - plus_constant (argblock, low_to_save) + rtx stack_area + = gen_rtx_MEM (save_mode, + memory_address (save_mode, + plus_constant (argblock, low_to_save))); #endif - )); if (save_mode != BLKmode) emit_move_insn (stack_area, save_area); else |