diff options
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 351c628..a18752e 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -5941,12 +5941,7 @@ static tree handle_alloc_size_attribute (tree *node, tree ARG_UNUSED (name), tree args, int ARG_UNUSED (flags), bool *no_add_attrs) { - tree params = TYPE_ARG_TYPES (*node); - unsigned arg_count = 0; - - for (; TREE_CHAIN (params); params = TREE_CHAIN (params)) - arg_count ++; - + unsigned arg_count = type_num_arguments (*node); for (; args; args = TREE_CHAIN (args)) { tree position = TREE_VALUE (args); |