Lines Matching refs:declspecs
4298 shadow_tag (const struct c_declspecs *declspecs) in shadow_tag() argument
4300 shadow_tag_warned (declspecs, 0); in shadow_tag()
4306 shadow_tag_warned (const struct c_declspecs *declspecs, int warned) in shadow_tag_warned() argument
4310 if (declspecs->type && !declspecs->default_int_p && !declspecs->typedef_p) in shadow_tag_warned()
4312 tree value = declspecs->type; in shadow_tag_warned()
4324 if (declspecs->restrict_p) in shadow_tag_warned()
4340 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4341 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4342 && declspecs->storage_class != csc_none) in shadow_tag_warned()
4351 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4352 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4353 && (declspecs->const_p in shadow_tag_warned()
4354 || declspecs->volatile_p in shadow_tag_warned()
4355 || declspecs->atomic_p in shadow_tag_warned()
4356 || declspecs->restrict_p in shadow_tag_warned()
4357 || declspecs->address_space)) in shadow_tag_warned()
4366 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4367 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4368 && declspecs->alignas_p) in shadow_tag_warned()
4400 && declspecs->typedef_p) in shadow_tag_warned()
4408 if (declspecs->inline_p) in shadow_tag_warned()
4414 if (declspecs->noreturn_p) in shadow_tag_warned()
4420 if (current_scope == file_scope && declspecs->storage_class == csc_auto) in shadow_tag_warned()
4426 if (current_scope == file_scope && declspecs->storage_class == csc_register) in shadow_tag_warned()
4433 && declspecs->storage_class != csc_none) in shadow_tag_warned()
4439 if (!warned && !in_system_header_at (input_location) && declspecs->thread_p) in shadow_tag_warned()
4442 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in shadow_tag_warned()
4448 && (declspecs->const_p in shadow_tag_warned()
4449 || declspecs->volatile_p in shadow_tag_warned()
4450 || declspecs->atomic_p in shadow_tag_warned()
4451 || declspecs->restrict_p in shadow_tag_warned()
4452 || declspecs->address_space)) in shadow_tag_warned()
4459 && declspecs->alignas_p) in shadow_tag_warned()
4671 start_decl (struct c_declarator *declarator, struct c_declspecs *declspecs, in start_decl() argument
4684 decl = grokdeclarator (declarator, declspecs, in start_decl()
4792 if (declspecs->inline_p in start_decl()
4798 if (declspecs->storage_class == csc_auto && current_scope != file_scope) in start_decl()
4800 else if (declspecs->storage_class != csc_static) in start_decl()
5629 struct c_declspecs *declspecs, in grokdeclarator() argument
5634 tree type = declspecs->type; in grokdeclarator()
5635 bool threadp = declspecs->thread_p; in grokdeclarator()
5636 enum c_storage_class storage_class = declspecs->storage_class; in grokdeclarator()
5646 tree decl_attr = declspecs->decl_attr; in grokdeclarator()
5674 if (declspecs->expr) in grokdeclarator()
5677 *expr = build2 (COMPOUND_EXPR, TREE_TYPE (declspecs->expr), *expr, in grokdeclarator()
5678 declspecs->expr); in grokdeclarator()
5680 *expr = declspecs->expr; in grokdeclarator()
5682 *expr_const_operands = declspecs->expr_const_operands; in grokdeclarator()
5746 if (declspecs->deprecated_p && deprecated_state != DEPRECATED_SUPPRESS) in grokdeclarator()
5747 warn_deprecated_use (declspecs->type, declspecs->decl_attr); in grokdeclarator()
5764 if (declspecs->default_int_p && !in_system_header_at (input_location)) in grokdeclarator()
5787 if (bitfield && !flag_signed_bitfields && !declspecs->explicit_signed_p in grokdeclarator()
5803 constp = declspecs->const_p + TYPE_READONLY (element_type); in grokdeclarator()
5804 restrictp = declspecs->restrict_p + TYPE_RESTRICT (element_type); in grokdeclarator()
5805 volatilep = declspecs->volatile_p + TYPE_VOLATILE (element_type); in grokdeclarator()
5806 atomicp = declspecs->atomic_p + TYPE_ATOMIC (element_type); in grokdeclarator()
5807 as1 = declspecs->address_space; in grokdeclarator()
5843 if (declspecs->atomic_p && TREE_CODE (type) == ARRAY_TYPE) in grokdeclarator()
5865 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in grokdeclarator()
5935 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in grokdeclarator()
6418 = smallest_type_quals_location (declspecs->locations, in grokdeclarator()
6421 specs_loc = declspecs->locations[cdw_typedef]; in grokdeclarator()
6641 if (declspecs->alignas_p) in grokdeclarator()
6664 else if (declspecs->align_log != -1 && TYPE_P (type)) in grokdeclarator()
6666 alignas_align = 1U << declspecs->align_log; in grokdeclarator()
6701 if (declspecs->explicit_signed_p) in grokdeclarator()
6703 if (declspecs->inline_p) in grokdeclarator()
6705 if (declspecs->noreturn_p) in grokdeclarator()
6737 && !declspecs->inline_p && !declspecs->noreturn_p); in grokdeclarator()
6857 if (declspecs->inline_p) in grokdeclarator()
6859 if (declspecs->noreturn_p) in grokdeclarator()
6867 && !declspecs->inline_p && !declspecs->noreturn_p); in grokdeclarator()
6934 storage_class = declspecs->storage_class = csc_none; in grokdeclarator()
6966 else if (declspecs->inline_p && storage_class != csc_static) in grokdeclarator()
6981 if (declspecs->default_int_p) in grokdeclarator()
6988 if (declspecs->inline_p) in grokdeclarator()
6990 if (declspecs->noreturn_p) in grokdeclarator()
6995 if (declspecs->inline_p) in grokdeclarator()
6998 if (declspecs->noreturn_p) in grokdeclarator()
7043 if (declspecs->inline_p) in grokdeclarator()
7045 if (declspecs->noreturn_p) in grokdeclarator()
7655 struct c_declarator *declarator, struct c_declspecs *declspecs, in grokfield() argument
7684 tree type = declspecs->type; in grokfield()
7690 || !declspecs->typedef_p)) in grokfield()
7712 value = grokdeclarator (declarator, declspecs, FIELD, false, in grokfield()
8700 start_function (struct c_declspecs *declspecs, struct c_declarator *declarator, in start_function() argument
8718 decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, true, NULL, in start_function()
8740 if (declspecs->inline_p in start_function()
8746 if (declspecs->storage_class != csc_static) in start_function()