From 433006a9f90e3ba8bb816e3e45a5bcc69177297d Mon Sep 17 00:00:00 2001 From: rth Date: Thu, 8 Jul 2004 22:03:57 +0000 Subject: * builtins.c (ind_gimplify_va_arg_expr): New. * tree.h (ind_gimplify_va_arg_expr): Declare. * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84317 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/arc/arc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gcc/config/arc') diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index ec2520d6762..6c3da47438e 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -2299,11 +2299,7 @@ arc_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p) than 8 bytes are passed by reference. */ if (AGGREGATE_TYPE_P (type) || int_size_in_bytes (type) > 8) - { - tree type_ptr = build_pointer_type (type); - tree addr = std_gimplify_va_arg_expr (valist, type_ptr, pre_p, post_p); - return build_fold_indirect_ref (addr); - } + return ind_gimplify_va_arg_expr (valist, type, pre_p, post_p); return std_gimplify_va_arg_expr (valist, type, pre_p, post_p); } -- cgit v1.2.1