Lines Matching refs:declspecs
4592 shadow_tag (const struct c_declspecs *declspecs) in shadow_tag() argument
4594 shadow_tag_warned (declspecs, 0); in shadow_tag()
4600 shadow_tag_warned (const struct c_declspecs *declspecs, int warned) in shadow_tag_warned() argument
4604 if (declspecs->type && !declspecs->default_int_p && !declspecs->typedef_p) in shadow_tag_warned()
4606 tree value = declspecs->type; in shadow_tag_warned()
4618 if (declspecs->restrict_p) in shadow_tag_warned()
4634 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4635 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4636 && declspecs->typespec_kind != ctsk_tagfirstref_attrs in shadow_tag_warned()
4637 && declspecs->storage_class != csc_none) in shadow_tag_warned()
4646 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4647 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4648 && declspecs->typespec_kind != ctsk_tagfirstref_attrs in shadow_tag_warned()
4649 && (declspecs->const_p in shadow_tag_warned()
4650 || declspecs->volatile_p in shadow_tag_warned()
4651 || declspecs->atomic_p in shadow_tag_warned()
4652 || declspecs->restrict_p in shadow_tag_warned()
4653 || declspecs->address_space)) in shadow_tag_warned()
4662 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4663 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4664 && declspecs->typespec_kind != ctsk_tagfirstref_attrs in shadow_tag_warned()
4665 && declspecs->alignas_p) in shadow_tag_warned()
4697 && declspecs->typedef_p) in shadow_tag_warned()
4705 if (declspecs->inline_p) in shadow_tag_warned()
4711 if (declspecs->noreturn_p) in shadow_tag_warned()
4717 if (current_scope == file_scope && declspecs->storage_class == csc_auto) in shadow_tag_warned()
4723 if (current_scope == file_scope && declspecs->storage_class == csc_register) in shadow_tag_warned()
4730 && declspecs->storage_class != csc_none) in shadow_tag_warned()
4736 if (!warned && !in_system_header_at (input_location) && declspecs->thread_p) in shadow_tag_warned()
4739 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in shadow_tag_warned()
4745 && (declspecs->const_p in shadow_tag_warned()
4746 || declspecs->volatile_p in shadow_tag_warned()
4747 || declspecs->atomic_p in shadow_tag_warned()
4748 || declspecs->restrict_p in shadow_tag_warned()
4749 || declspecs->address_space)) in shadow_tag_warned()
4756 && declspecs->alignas_p) in shadow_tag_warned()
4764 && (declspecs->typespec_kind == ctsk_tagref_attrs in shadow_tag_warned()
4765 || declspecs->typespec_kind == ctsk_tagfirstref_attrs)) in shadow_tag_warned()
4782 if (declspecs->declspecs_seen_p in shadow_tag_warned()
4783 && !declspecs->non_std_attrs_seen_p) in shadow_tag_warned()
4788 c_warn_unused_attributes (declspecs->attrs); in shadow_tag_warned()
4998 start_decl (struct c_declarator *declarator, struct c_declspecs *declspecs, in start_decl() argument
5011 decl = grokdeclarator (declarator, declspecs, in start_decl()
5120 if (declspecs->inline_p in start_decl()
5126 if (declspecs->storage_class == csc_auto && current_scope != file_scope) in start_decl()
5128 else if (declspecs->storage_class != csc_static) in start_decl()
5947 struct c_declspecs *declspecs, in grokdeclarator() argument
5952 tree type = declspecs->type; in grokdeclarator()
5953 bool threadp = declspecs->thread_p; in grokdeclarator()
5954 enum c_storage_class storage_class = declspecs->storage_class; in grokdeclarator()
5964 tree decl_attr = declspecs->decl_attr; in grokdeclarator()
5993 if (declspecs->expr) in grokdeclarator()
5996 *expr = build2 (COMPOUND_EXPR, TREE_TYPE (declspecs->expr), *expr, in grokdeclarator()
5997 declspecs->expr); in grokdeclarator()
5999 *expr = declspecs->expr; in grokdeclarator()
6001 *expr_const_operands = declspecs->expr_const_operands; in grokdeclarator()
6066 if (declspecs->deprecated_p && deprecated_state != DEPRECATED_SUPPRESS) in grokdeclarator()
6067 warn_deprecated_use (declspecs->type, declspecs->decl_attr); in grokdeclarator()
6084 if (declspecs->default_int_p && !in_system_header_at (input_location)) in grokdeclarator()
6107 if (bitfield && !flag_signed_bitfields && !declspecs->explicit_signed_p in grokdeclarator()
6123 constp = declspecs->const_p + TYPE_READONLY (element_type); in grokdeclarator()
6124 restrictp = declspecs->restrict_p + TYPE_RESTRICT (element_type); in grokdeclarator()
6125 volatilep = declspecs->volatile_p + TYPE_VOLATILE (element_type); in grokdeclarator()
6126 atomicp = declspecs->atomic_p + TYPE_ATOMIC (element_type); in grokdeclarator()
6127 as1 = declspecs->address_space; in grokdeclarator()
6163 if (declspecs->atomic_p && TREE_CODE (type) == ARRAY_TYPE) in grokdeclarator()
6185 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in grokdeclarator()
6255 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in grokdeclarator()
6763 = smallest_type_quals_location (declspecs->locations, in grokdeclarator()
6766 specs_loc = declspecs->locations[cdw_typedef]; in grokdeclarator()
6988 if (declspecs->alignas_p) in grokdeclarator()
7011 else if (declspecs->align_log != -1 && TYPE_P (type)) in grokdeclarator()
7013 alignas_align = 1U << declspecs->align_log; in grokdeclarator()
7048 if (declspecs->explicit_signed_p) in grokdeclarator()
7050 if (declspecs->inline_p) in grokdeclarator()
7052 if (declspecs->noreturn_p) in grokdeclarator()
7085 && !declspecs->inline_p && !declspecs->noreturn_p); in grokdeclarator()
7205 if (declspecs->inline_p) in grokdeclarator()
7207 if (declspecs->noreturn_p) in grokdeclarator()
7215 && !declspecs->inline_p && !declspecs->noreturn_p); in grokdeclarator()
7286 storage_class = declspecs->storage_class = csc_none; in grokdeclarator()
7318 else if (declspecs->inline_p && storage_class != csc_static) in grokdeclarator()
7333 if (declspecs->default_int_p) in grokdeclarator()
7340 if (declspecs->inline_p) in grokdeclarator()
7342 if (declspecs->noreturn_p) in grokdeclarator()
7347 if (declspecs->inline_p) in grokdeclarator()
7350 if (declspecs->noreturn_p) in grokdeclarator()
7395 if (declspecs->inline_p) in grokdeclarator()
7397 if (declspecs->noreturn_p) in grokdeclarator()
8038 struct c_declarator *declarator, struct c_declspecs *declspecs, in grokfield() argument
8067 tree type = declspecs->type; in grokfield()
8073 || !declspecs->typedef_p)) in grokfield()
8095 value = grokdeclarator (declarator, declspecs, FIELD, false, in grokfield()
9119 start_function (struct c_declspecs *declspecs, struct c_declarator *declarator, in start_function() argument
9137 decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, true, NULL, in start_function()
9163 if (declspecs->inline_p in start_function()
9169 if (declspecs->storage_class != csc_static) in start_function()