diff options
Diffstat (limited to 'gcc/config/sparc/sparc.c')
-rw-r--r-- | gcc/config/sparc/sparc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 5e6f5748672..adf28c027b1 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -48,7 +48,7 @@ along with GCC; see the file COPYING3. If not see #include "target.h" #include "target-def.h" #include "cfglayout.h" -#include "tree-gimple.h" +#include "gimple.h" #include "langhooks.h" #include "params.h" #include "df.h" @@ -410,7 +410,7 @@ static rtx sparc_struct_value_rtx (tree, int); static bool sparc_return_in_memory (const_tree, const_tree); static bool sparc_strict_argument_naming (CUMULATIVE_ARGS *); static void sparc_va_start (tree, rtx); -static tree sparc_gimplify_va_arg (tree, tree, tree *, tree *); +static tree sparc_gimplify_va_arg (tree, tree, gimple_seq *, gimple_seq *); static bool sparc_vector_mode_supported_p (enum machine_mode); static bool sparc_pass_by_reference (CUMULATIVE_ARGS *, enum machine_mode, const_tree, bool); @@ -5709,7 +5709,8 @@ sparc_va_start (tree valist, rtx nextarg) /* Implement `va_arg' for stdarg. */ static tree -sparc_gimplify_va_arg (tree valist, tree type, tree *pre_p, tree *post_p) +sparc_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p, + gimple_seq *post_p) { HOST_WIDE_INT size, rsize, align; tree addr, incr; @@ -5792,8 +5793,7 @@ sparc_gimplify_va_arg (tree valist, tree type, tree *pre_p, tree *post_p) addr = fold_convert (ptrtype, addr); incr = fold_build2 (POINTER_PLUS_EXPR, ptr_type_node, incr, size_int (rsize)); - incr = build2 (GIMPLE_MODIFY_STMT, ptr_type_node, valist, incr); - gimplify_and_add (incr, post_p); + gimplify_assign (valist, incr, post_p); return build_va_arg_indirect_ref (addr); } |