summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-01-16 02:16:10 -0700
committerJeff Law <law@gcc.gnu.org>1998-01-16 02:16:10 -0700
commitceb832060c23ab05d8c5e463c4ed7d5ac4cea5ca (patch)
tree13a2f669c62210624111751cc01f54d384623eed
parent9a960e6b5b0558400504932c34004c52ea5cca69 (diff)
downloadgcc-ceb832060c23ab05d8c5e463c4ed7d5ac4cea5ca.tar.gz
calls.c (expand_call): Move #ifdef code out of macro argument lists.
` * calls.c (expand_call): Move #ifdef code out of macro argument lists. (emit_library_call, emit_library_call_value): Likewise. From-SVN: r17379
-rw-r--r--gcc/calls.c62
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