Home
last modified time | relevance | path

Searched refs:enumtype (Results 1 – 6 of 6) sorted by relevance

/dragonfly/contrib/gcc-4.7/gcc/cp/
HDdecl.c12048 start_enum (tree name, tree enumtype, tree underlying_type, in start_enum() argument
12069 if (!enumtype) in start_enum()
12070 enumtype = lookup_and_check_tag (enum_type, name, in start_enum()
12076 if (enumtype && TREE_CODE (enumtype) == ENUMERAL_TYPE) in start_enum()
12078 if (scoped_enum_p != SCOPED_ENUM_P (enumtype)) in start_enum()
12081 "in enum %q#T", enumtype); in start_enum()
12082 error_at (DECL_SOURCE_LOCATION (TYPE_MAIN_DECL (enumtype)), in start_enum()
12084 enumtype = error_mark_node; in start_enum()
12086 else if (ENUM_FIXED_UNDERLYING_TYPE_P (enumtype) != !! underlying_type) in start_enum()
12089 "in enum %q#T", enumtype); in start_enum()
[all …]
HDclass.c2873 add_enum_fields_to_record_type (tree enumtype, in add_enum_fields_to_record_type() argument
2878 for (values = TYPE_VALUES (enumtype); values; values = TREE_CHAIN (values)) in add_enum_fields_to_record_type()
6185 insert_late_enum_def_into_classtype_sorted_fields (tree enumtype, tree t) in insert_late_enum_def_into_classtype_sorted_fields() argument
6192 = list_length (TYPE_VALUES (enumtype)) + sorted_fields->len; in insert_late_enum_def_into_classtype_sorted_fields()
6198 add_enum_fields_to_record_type (enumtype, field_vec, in insert_late_enum_def_into_classtype_sorted_fields()
/dragonfly/contrib/gcc-8.0/gcc/cp/
HDdecl.c14203 start_enum (tree name, tree enumtype, tree underlying_type, in start_enum() argument
14224 if (!enumtype) in start_enum()
14225 enumtype = lookup_and_check_tag (enum_type, name, in start_enum()
14231 if (enumtype && TREE_CODE (enumtype) == ENUMERAL_TYPE) in start_enum()
14233 if (scoped_enum_p != SCOPED_ENUM_P (enumtype)) in start_enum()
14236 "in enum %q#T", enumtype); in start_enum()
14237 inform (DECL_SOURCE_LOCATION (TYPE_MAIN_DECL (enumtype)), in start_enum()
14239 enumtype = error_mark_node; in start_enum()
14241 else if (ENUM_FIXED_UNDERLYING_TYPE_P (enumtype) != !! underlying_type) in start_enum()
14244 "in enum %q#T", enumtype); in start_enum()
[all …]
HDname-lookup.c1559 member_vec_append_enum_values (vec<tree, va_gc> *member_vec, tree enumtype) in member_vec_append_enum_values() argument
1561 for (tree values = TYPE_VALUES (enumtype); in member_vec_append_enum_values()
1702 insert_late_enum_def_bindings (tree klass, tree enumtype) in insert_late_enum_def_bindings() argument
1712 n_fields = list_length (TYPE_VALUES (enumtype)); in insert_late_enum_def_bindings()
1718 member_vec_append_enum_values (member_vec, enumtype); in insert_late_enum_def_bindings()
/dragonfly/contrib/gcc-8.0/gcc/c/
HDc-decl.c8369 tree enumtype = NULL_TREE; in start_enum() local
8377 enumtype = lookup_tag (ENUMERAL_TYPE, name, true, &enumloc); in start_enum()
8379 if (enumtype == NULL_TREE || TREE_CODE (enumtype) != ENUMERAL_TYPE) in start_enum()
8381 enumtype = make_node (ENUMERAL_TYPE); in start_enum()
8382 pushtag (loc, name, enumtype); in start_enum()
8386 else if (TYPE_STUB_DECL (enumtype)) in start_enum()
8388 enumloc = DECL_SOURCE_LOCATION (TYPE_STUB_DECL (enumtype)); in start_enum()
8389 DECL_SOURCE_LOCATION (TYPE_STUB_DECL (enumtype)) = loc; in start_enum()
8392 if (C_TYPE_BEING_DEFINED (enumtype)) in start_enum()
8395 C_TYPE_BEING_DEFINED (enumtype) = 1; in start_enum()
[all …]
/dragonfly/contrib/gcc-4.7/gcc/
HDc-decl.c7370 tree enumtype = NULL_TREE; in start_enum() local
7378 enumtype = lookup_tag (ENUMERAL_TYPE, name, 1, &enumloc); in start_enum()
7380 if (enumtype == 0 || TREE_CODE (enumtype) != ENUMERAL_TYPE) in start_enum()
7382 enumtype = make_node (ENUMERAL_TYPE); in start_enum()
7383 pushtag (loc, name, enumtype); in start_enum()
7386 if (C_TYPE_BEING_DEFINED (enumtype)) in start_enum()
7389 C_TYPE_BEING_DEFINED (enumtype) = 1; in start_enum()
7391 if (TYPE_VALUES (enumtype) != 0) in start_enum()
7400 TYPE_VALUES (enumtype) = 0; in start_enum()
7407 TYPE_PACKED (enumtype) = 1; in start_enum()
[all …]