diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index a66479d5e5a..ca81a510bf7 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -3584,7 +3584,8 @@ set_expr_locus (tree node, source_location *loc) LOC is the location to use in tree T. */ -void protected_set_expr_location (tree t, location_t loc) +void +protected_set_expr_location (tree t, location_t loc) { if (t && CAN_HAVE_LOCATION_P (t)) SET_EXPR_LOCATION (t, loc); @@ -7970,6 +7971,19 @@ build_vector_type (tree innertype, int nunits) return make_vector_type (innertype, nunits, VOIDmode); } +/* Similarly, but takes the inner type and number of units, which must be + a power of two. */ + +tree +build_opaque_vector_type (tree innertype, int nunits) +{ + tree t; + innertype = build_distinct_type_copy (innertype); + t = make_vector_type (innertype, nunits, VOIDmode); + TYPE_VECTOR_OPAQUE (t) = true; + return t; +} + /* Build RESX_EXPR with given REGION_NUMBER. */ tree @@ -9058,26 +9072,6 @@ prototype_p (tree fntype) return (t != NULL_TREE); } -/* Return the number of arguments that a function has. */ - -int -function_args_count (tree fntype) -{ - function_args_iterator args_iter; - tree t; - int num = 0; - - if (fntype) - { - FOREACH_FUNCTION_ARGS(fntype, t, args_iter) - { - num++; - } - } - - return num; -} - /* If BLOCK is inlined from an __attribute__((__artificial__)) routine, return pointer to location from where it has been called. */ |