summaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorjgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-29 13:46:23 +0000
committerjgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-29 13:46:23 +0000
commitbf29c577b9128551d76adc5b0331d375be49d7d3 (patch)
tree174007f2863ab68c6254f19105b6f3271c748fbc /gcc/expr.c
parent588c26719c3a2b29c9b02167a427abececb4d6d8 (diff)
downloadgcc-bf29c577b9128551d76adc5b0331d375be49d7d3.tar.gz
Remove PUSH_ARGS_REVERSED from the RTL expander.
gcc/ * calls.c (initialize_argument_information): Always treat PUSH_ARGS_REVERSED as 1, simplify code accordingly. (expand_call): Likewise. (emit_library_call_calue_1): Likewise. * expr.c (PUSH_ARGS_REVERSED): Do not define. (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify code accordingly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209897 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index fec6194af1f..767b889d899 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -68,22 +68,6 @@ along with GCC; see the file COPYING3. If not see
#include "tree-ssa-address.h"
#include "cfgexpand.h"
-/* Decide whether a function's arguments should be processed
- from first to last or from last to first.
-
- They should if the stack and args grow in opposite directions, but
- only if we have push insns. */
-
-#ifdef PUSH_ROUNDING
-
-#ifndef PUSH_ARGS_REVERSED
-#if defined (STACK_GROWS_DOWNWARD) != defined (ARGS_GROW_DOWNWARD)
-#define PUSH_ARGS_REVERSED /* If it's last to first. */
-#endif
-#endif
-
-#endif
-
#ifndef STACK_PUSH_CODE
#ifdef STACK_GROWS_DOWNWARD
#define STACK_PUSH_CODE PRE_DEC
@@ -4365,11 +4349,7 @@ emit_push_insn (rtx x, enum machine_mode mode, tree type, rtx size,
/* Loop over all the words allocated on the stack for this arg. */
/* We can do it by words, because any scalar bigger than a word
has a size a multiple of a word. */
-#ifndef PUSH_ARGS_REVERSED
- for (i = not_stack; i < size; i++)
-#else
for (i = size - 1; i >= not_stack; i--)
-#endif
if (i >= not_stack + offset)
emit_push_insn (operand_subword_force (x, i, mode),
word_mode, NULL_TREE, NULL_RTX, align, 0, NULL_RTX,