Lines Matching refs:declspecs
4683 shadow_tag (const struct c_declspecs *declspecs) in shadow_tag() argument
4685 shadow_tag_warned (declspecs, 0); in shadow_tag()
4691 shadow_tag_warned (const struct c_declspecs *declspecs, int warned) in shadow_tag_warned() argument
4695 if (declspecs->type && !declspecs->default_int_p && !declspecs->typedef_p) in shadow_tag_warned()
4697 tree value = declspecs->type; in shadow_tag_warned()
4709 if (declspecs->restrict_p) in shadow_tag_warned()
4725 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4726 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4727 && declspecs->typespec_kind != ctsk_tagfirstref_attrs in shadow_tag_warned()
4728 && declspecs->storage_class != csc_none) in shadow_tag_warned()
4737 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4738 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4739 && declspecs->typespec_kind != ctsk_tagfirstref_attrs in shadow_tag_warned()
4740 && (declspecs->const_p in shadow_tag_warned()
4741 || declspecs->volatile_p in shadow_tag_warned()
4742 || declspecs->atomic_p in shadow_tag_warned()
4743 || declspecs->restrict_p in shadow_tag_warned()
4744 || declspecs->address_space)) in shadow_tag_warned()
4753 else if (declspecs->typespec_kind != ctsk_tagdef in shadow_tag_warned()
4754 && declspecs->typespec_kind != ctsk_tagfirstref in shadow_tag_warned()
4755 && declspecs->typespec_kind != ctsk_tagfirstref_attrs in shadow_tag_warned()
4756 && declspecs->alignas_p) in shadow_tag_warned()
4788 && declspecs->typedef_p) in shadow_tag_warned()
4796 if (declspecs->inline_p) in shadow_tag_warned()
4802 if (declspecs->noreturn_p) in shadow_tag_warned()
4808 if (current_scope == file_scope && declspecs->storage_class == csc_auto) in shadow_tag_warned()
4814 if (current_scope == file_scope && declspecs->storage_class == csc_register) in shadow_tag_warned()
4821 && declspecs->storage_class != csc_none) in shadow_tag_warned()
4827 if (!warned && !in_system_header_at (input_location) && declspecs->thread_p) in shadow_tag_warned()
4830 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in shadow_tag_warned()
4836 && (declspecs->const_p in shadow_tag_warned()
4837 || declspecs->volatile_p in shadow_tag_warned()
4838 || declspecs->atomic_p in shadow_tag_warned()
4839 || declspecs->restrict_p in shadow_tag_warned()
4840 || declspecs->address_space)) in shadow_tag_warned()
4847 && declspecs->alignas_p) in shadow_tag_warned()
4855 && (declspecs->typespec_kind == ctsk_tagref_attrs in shadow_tag_warned()
4856 || declspecs->typespec_kind == ctsk_tagfirstref_attrs)) in shadow_tag_warned()
4873 if (declspecs->declspecs_seen_p in shadow_tag_warned()
4874 && !declspecs->non_std_attrs_seen_p) in shadow_tag_warned()
4879 c_warn_unused_attributes (declspecs->attrs); in shadow_tag_warned()
5100 start_decl (struct c_declarator *declarator, struct c_declspecs *declspecs, in start_decl() argument
5118 decl = grokdeclarator (declarator, declspecs, in start_decl()
5231 if (declspecs->inline_p in start_decl()
5237 if (declspecs->storage_class == csc_auto && current_scope != file_scope) in start_decl()
5239 else if (declspecs->storage_class != csc_static) in start_decl()
6265 struct c_declspecs *declspecs, in grokdeclarator() argument
6270 tree type = declspecs->type; in grokdeclarator()
6271 bool threadp = declspecs->thread_p; in grokdeclarator()
6272 enum c_storage_class storage_class = declspecs->storage_class; in grokdeclarator()
6282 tree decl_attr = declspecs->decl_attr; in grokdeclarator()
6311 if (declspecs->expr) in grokdeclarator()
6314 *expr = build2 (COMPOUND_EXPR, TREE_TYPE (declspecs->expr), *expr, in grokdeclarator()
6315 declspecs->expr); in grokdeclarator()
6317 *expr = declspecs->expr; in grokdeclarator()
6319 *expr_const_operands = declspecs->expr_const_operands; in grokdeclarator()
6386 if (declspecs->unavailable_p) in grokdeclarator()
6387 error_unavailable_use (declspecs->type, declspecs->decl_attr); in grokdeclarator()
6388 else if (declspecs->deprecated_p in grokdeclarator()
6390 warn_deprecated_use (declspecs->type, declspecs->decl_attr); in grokdeclarator()
6408 if (declspecs->default_int_p && !in_system_header_at (input_location)) in grokdeclarator()
6431 if (bitfield && !flag_signed_bitfields && !declspecs->explicit_signed_p in grokdeclarator()
6447 constp = declspecs->const_p + TYPE_READONLY (element_type); in grokdeclarator()
6448 restrictp = declspecs->restrict_p + TYPE_RESTRICT (element_type); in grokdeclarator()
6449 volatilep = declspecs->volatile_p + TYPE_VOLATILE (element_type); in grokdeclarator()
6450 atomicp = declspecs->atomic_p + TYPE_ATOMIC (element_type); in grokdeclarator()
6451 as1 = declspecs->address_space; in grokdeclarator()
6487 if (declspecs->atomic_p && TREE_CODE (type) == ARRAY_TYPE) in grokdeclarator()
6509 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in grokdeclarator()
6579 declspecs->thread_gnu_p ? "__thread" : "_Thread_local"); in grokdeclarator()
7087 = smallest_type_quals_location (declspecs->locations, in grokdeclarator()
7090 specs_loc = declspecs->locations[cdw_typedef]; in grokdeclarator()
7312 if (declspecs->alignas_p) in grokdeclarator()
7335 else if (declspecs->align_log != -1 && TYPE_P (type)) in grokdeclarator()
7337 alignas_align = 1U << declspecs->align_log; in grokdeclarator()
7372 if (declspecs->explicit_signed_p) in grokdeclarator()
7374 if (declspecs->inline_p) in grokdeclarator()
7376 if (declspecs->noreturn_p) in grokdeclarator()
7409 && !declspecs->inline_p && !declspecs->noreturn_p); in grokdeclarator()
7529 if (declspecs->inline_p) in grokdeclarator()
7531 if (declspecs->noreturn_p) in grokdeclarator()
7539 && !declspecs->inline_p && !declspecs->noreturn_p); in grokdeclarator()
7607 storage_class = declspecs->storage_class = csc_none; in grokdeclarator()
7639 else if (declspecs->inline_p && storage_class != csc_static) in grokdeclarator()
7654 if (declspecs->default_int_p) in grokdeclarator()
7661 if (declspecs->inline_p) in grokdeclarator()
7663 if (declspecs->noreturn_p) in grokdeclarator()
7668 if (declspecs->inline_p) in grokdeclarator()
7671 if (declspecs->noreturn_p) in grokdeclarator()
7716 if (declspecs->inline_p) in grokdeclarator()
7718 if (declspecs->noreturn_p) in grokdeclarator()
8359 struct c_declarator *declarator, struct c_declspecs *declspecs, in grokfield() argument
8388 tree type = declspecs->type; in grokfield()
8394 || !declspecs->typedef_p)) in grokfield()
8416 value = grokdeclarator (declarator, declspecs, FIELD, false, in grokfield()
9502 start_function (struct c_declspecs *declspecs, struct c_declarator *declarator, in start_function() argument
9518 decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, true, NULL, in start_function()
9544 if (declspecs->inline_p in start_function()
9550 if (declspecs->storage_class != csc_static) in start_function()