From bef777164a6dbf23b474e1f89a23e7136c00e7be Mon Sep 17 00:00:00 2001 From: bwilson Date: Thu, 18 Mar 2004 18:13:20 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79632 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/xtensa/xtensa.c | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60791f0fcac..d55df0aeae1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-03-18 Bob Wilson + + * 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 * 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 0c88d8539d8..6c059ff6999 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; -- 2.11.4.GIT