diff options
author | Richard Henderson <rth@redhat.com> | 2004-07-13 01:43:41 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-07-13 01:43:41 -0700 |
commit | af064de51e5c824f1afb56bbc5bbf4b138c4e483 (patch) | |
tree | d9a896211b7b86323ca0988aebcee6681c40a375 /gcc/config/arc | |
parent | 0976078c73f58e7350fcc0516618fdd7737c9696 (diff) | |
download | gcc-af064de51e5c824f1afb56bbc5bbf4b138c4e483.zip gcc-af064de51e5c824f1afb56bbc5bbf4b138c4e483.tar.gz gcc-af064de51e5c824f1afb56bbc5bbf4b138c4e483.tar.bz2 |
builtins.c (std_gimplify_va_arg_expr): Handle types passed by reference.
* builtins.c (std_gimplify_va_arg_expr): Handle types passed
by reference.
(ind_gimplify_va_arg_expr): Remove.
* tree.h (ind_gimplify_va_arg_expr): Remove.
* config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
* config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
argsp to be null.
* config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
(TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
* config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
From-SVN: r84608
Diffstat (limited to 'gcc/config/arc')
-rw-r--r-- | gcc/config/arc/arc.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 6f02cda..d648028 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -102,7 +102,6 @@ static bool arc_rtx_costs (rtx, int, int, int *); static int arc_address_cost (rtx); static void arc_external_libcall (rtx); static bool arc_return_in_memory (tree, tree); -static tree arc_gimplify_va_arg_expr (tree, tree, tree *, tree *); /* Initialize the GCC target structure. */ #undef TARGET_ASM_ALIGNED_HI_OP @@ -142,8 +141,6 @@ static tree arc_gimplify_va_arg_expr (tree, tree, tree *, tree *); #undef TARGET_SETUP_INCOMING_VARARGS #define TARGET_SETUP_INCOMING_VARARGS arc_setup_incoming_varargs -#undef TARGET_GIMPLIFY_VA_ARG_EXPR -#define TARGET_GIMPLIFY_VA_ARG_EXPR arc_gimplify_va_arg_expr #undef TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE #define TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE hook_int_void_1 @@ -2295,18 +2292,6 @@ arc_va_start (tree valist, rtx nextarg) std_expand_builtin_va_start (valist, nextarg); } -static tree -arc_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p) -{ - /* All aggregates are passed by reference. All scalar types larger - than 8 bytes are passed by reference. */ - - if (AGGREGATE_TYPE_P (type) || int_size_in_bytes (type) > 8) - return ind_gimplify_va_arg_expr (valist, type, pre_p, post_p); - - return std_gimplify_va_arg_expr (valist, type, pre_p, post_p); -} - /* This is how to output a definition of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ |