diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-03-18 18:13:20 +0000 |
---|---|---|
committer | Bob Wilson <bwilson@gcc.gnu.org> | 2004-03-18 18:13:20 +0000 |
commit | 79e9ebdc7db0be1cd866c3ab3d219053b46835d8 (patch) | |
tree | 589c08da5e20ce3aa785e399b5cecf193b676580 /gcc | |
parent | b73acedaa1f191c88844b98fa989917bfb890c8c (diff) | |
download | gcc-79e9ebdc7db0be1cd866c3ab3d219053b46835d8.zip gcc-79e9ebdc7db0be1cd866c3ab3d219053b46835d8.tar.gz gcc-79e9ebdc7db0be1cd866c3ab3d219053b46835d8.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/xtensa/xtensa.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60791f0..d55df0a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> * alias.c (record_set): Detect the case where a register is assigned diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 0c88d85..6c059ff 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -212,7 +212,6 @@ static bool xtensa_rtx_costs (rtx, int, int, int *); static tree xtensa_build_builtin_va_list (void); static bool xtensa_return_in_memory (tree, tree); -static int current_function_arg_words; static const int reg_nonleaf_alloc_order[FIRST_PSEUDO_REGISTER] = REG_ALLOC_ORDER; @@ -2392,7 +2391,7 @@ static rtx xtensa_builtin_saveregs (void) { 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; if (gp_left <= 0) @@ -2438,7 +2437,6 @@ xtensa_va_start (tree valist, rtx nextarg ATTRIBUTE_UNUSED) ndx = build (COMPONENT_REF, TREE_TYPE (f_ndx), valist, f_ndx); /* Call __builtin_saveregs; save the result in __va_reg */ - current_function_arg_words = arg_words; u = make_tree (ptr_type_node, expand_builtin_saveregs ()); t = build (MODIFY_EXPR, ptr_type_node, reg, u); TREE_SIDE_EFFECTS (t) = 1; |