diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -15136,22 +15136,22 @@ get_nonnull_args (const_tree fntype) /* Returns true if TYPE is a type where it and all of its subobjects (recursively) are of structure, union, or array type. */ -static bool -default_is_empty_type (tree type) +bool +is_empty_type (const_tree type) { if (RECORD_OR_UNION_TYPE_P (type)) { for (tree field = TYPE_FIELDS (type); field; field = DECL_CHAIN (field)) if (TREE_CODE (field) == FIELD_DECL && !DECL_PADDING_P (field) - && !default_is_empty_type (TREE_TYPE (field))) + && !is_empty_type (TREE_TYPE (field))) return false; return true; } else if (TREE_CODE (type) == ARRAY_TYPE) return (integer_minus_onep (array_type_nelts (type)) || TYPE_DOMAIN (type) == NULL_TREE - || default_is_empty_type (TREE_TYPE (type))); + || is_empty_type (TREE_TYPE (type))); return false; } @@ -15170,7 +15170,7 @@ default_is_empty_record (const_tree type) if (TREE_ADDRESSABLE (type)) return false; - return default_is_empty_type (TYPE_MAIN_VARIANT (type)); + return is_empty_type (TYPE_MAIN_VARIANT (type)); } /* Determine whether TYPE is a structure with a flexible array member, |