diff options
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/ia64/ia64.h | 2 | ||||
-rw-r--r-- | gcc/config/mep/mep.c | 2 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 2 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/ia64/ia64.h b/gcc/config/ia64/ia64.h index 32fc9b9..8e6d298 100644 --- a/gcc/config/ia64/ia64.h +++ b/gcc/config/ia64/ia64.h @@ -1047,7 +1047,7 @@ do { \ (CUM).words = 0; \ (CUM).int_regs = 0; \ (CUM).fp_regs = 0; \ - (CUM).prototype = ((FNTYPE) && TYPE_ARG_TYPES (FNTYPE)) || (LIBNAME); \ + (CUM).prototype = ((FNTYPE) && prototype_p (FNTYPE)) || (LIBNAME); \ (CUM).atypes[0] = (CUM).atypes[1] = (CUM).atypes[2] = I64; \ (CUM).atypes[3] = (CUM).atypes[4] = (CUM).atypes[5] = I64; \ (CUM).atypes[6] = (CUM).atypes[7] = I64; \ diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index 3b11279..913a30a 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep/mep.c @@ -4001,7 +4001,7 @@ mep_validate_interrupt (tree *node, tree name, tree args ATTRIBUTE_UNUSED, if (TREE_TYPE (function_type) != void_type_node) error ("interrupt function must have return type of void"); - if (TYPE_ARG_TYPES (function_type) + if (prototype_p (function_type) && (TREE_VALUE (TYPE_ARG_TYPES (function_type)) != void_type_node || TREE_CHAIN (TYPE_ARG_TYPES (function_type)) != NULL_TREE)) error ("interrupt function must have no arguments"); diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 64c8926..0a0250f 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -599,7 +599,7 @@ struct hppa_args {int words, nargs_prototype, incoming, indirect; }; (CUM).words = 0, \ (CUM).incoming = 0, \ (CUM).indirect = (FNTYPE) && !(FNDECL), \ - (CUM).nargs_prototype = (FNTYPE && TYPE_ARG_TYPES (FNTYPE) \ + (CUM).nargs_prototype = (FNTYPE && prototype_p (FNTYPE) \ ? (list_length (TYPE_ARG_TYPES (FNTYPE)) - 1 \ + (TYPE_MODE (TREE_TYPE (FNTYPE)) == BLKmode \ || pa_return_in_memory (TREE_TYPE (FNTYPE), 0))) \ diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index bc27f73..f26e37e 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -7874,7 +7874,7 @@ init_cumulative_args (CUMULATIVE_ARGS *cum, tree fntype, cum->words = 0; cum->fregno = FP_ARG_MIN_REG; cum->vregno = ALTIVEC_ARG_MIN_REG; - cum->prototype = (fntype && TYPE_ARG_TYPES (fntype)); + cum->prototype = (fntype && prototype_p (fntype)); cum->call_cookie = ((DEFAULT_ABI == ABI_V4 && libcall) ? CALL_LIBCALL : CALL_NORMAL); cum->sysv_gregno = GP_ARG_MIN_REG; diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 67c7c44..ffe84b1 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -12119,7 +12119,7 @@ sh_init_cumulative_args (CUMULATIVE_ARGS * pcum, { pcum->force_mem = ((TARGET_HITACHI || pcum->renesas_abi) && aggregate_value_p (TREE_TYPE (fntype), fndecl)); - pcum->prototype_p = TYPE_ARG_TYPES (fntype) ? TRUE : FALSE; + pcum->prototype_p = prototype_p (fntype); pcum->arg_count [(int) SH_ARG_INT] = TARGET_SH5 && aggregate_value_p (TREE_TYPE (fntype), fndecl); diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index a066b2a..7df0dfb 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -5017,7 +5017,7 @@ init_cumulative_args (struct sparc_args *cum, tree fntype, tree fndecl ATTRIBUTE_UNUSED) { cum->words = 0; - cum->prototype_p = fntype && TYPE_ARG_TYPES (fntype); + cum->prototype_p = fntype && prototype_p (fntype); cum->libcall_p = fntype == 0; } |