Commit 79e9ebdc by Bob Wilson Committed by Bob Wilson

xtensa.c (current_function_arg_words): Delete.

	* config/xtensa/xtensa.c (current_function_arg_words): Delete.
	(xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
	(xtensa_va_start): Remove assignment to current_function_arg_words.

From-SVN: r79632
parent b73aceda
2004-03-18 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.c (current_function_arg_words): Delete.
(xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
(xtensa_va_start): Remove assignment to current_function_arg_words.
2004-03-18 Richard Sandiford <rsandifo@redhat.com> 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
* alias.c (record_set): Detect the case where a register is assigned * alias.c (record_set): Detect the case where a register is assigned
......
...@@ -212,7 +212,6 @@ static bool xtensa_rtx_costs (rtx, int, int, int *); ...@@ -212,7 +212,6 @@ static bool xtensa_rtx_costs (rtx, int, int, int *);
static tree xtensa_build_builtin_va_list (void); static tree xtensa_build_builtin_va_list (void);
static bool xtensa_return_in_memory (tree, tree); static bool xtensa_return_in_memory (tree, tree);
static int current_function_arg_words;
static const int reg_nonleaf_alloc_order[FIRST_PSEUDO_REGISTER] = static const int reg_nonleaf_alloc_order[FIRST_PSEUDO_REGISTER] =
REG_ALLOC_ORDER; REG_ALLOC_ORDER;
...@@ -2392,7 +2391,7 @@ static rtx ...@@ -2392,7 +2391,7 @@ static rtx
xtensa_builtin_saveregs (void) xtensa_builtin_saveregs (void)
{ {
rtx gp_regs, dest; rtx gp_regs, dest;
int arg_words = current_function_arg_words; int arg_words = current_function_args_info.arg_words;
int gp_left = MAX_ARGS_IN_REGISTERS - arg_words; int gp_left = MAX_ARGS_IN_REGISTERS - arg_words;
if (gp_left <= 0) if (gp_left <= 0)
...@@ -2438,7 +2437,6 @@ xtensa_va_start (tree valist, rtx nextarg ATTRIBUTE_UNUSED) ...@@ -2438,7 +2437,6 @@ xtensa_va_start (tree valist, rtx nextarg ATTRIBUTE_UNUSED)
ndx = build (COMPONENT_REF, TREE_TYPE (f_ndx), valist, f_ndx); ndx = build (COMPONENT_REF, TREE_TYPE (f_ndx), valist, f_ndx);
/* Call __builtin_saveregs; save the result in __va_reg */ /* Call __builtin_saveregs; save the result in __va_reg */
current_function_arg_words = arg_words;
u = make_tree (ptr_type_node, expand_builtin_saveregs ()); u = make_tree (ptr_type_node, expand_builtin_saveregs ());
t = build (MODIFY_EXPR, ptr_type_node, reg, u); t = build (MODIFY_EXPR, ptr_type_node, reg, u);
TREE_SIDE_EFFECTS (t) = 1; TREE_SIDE_EFFECTS (t) = 1;
......
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