xref: /dragonfly/contrib/gcc-8.0/gcc/c/c-tree.h (revision 58e805e6)
138fd1498Szrj /* Definitions for C parsing and type checking.
238fd1498Szrj    Copyright (C) 1987-2018 Free Software Foundation, Inc.
338fd1498Szrj 
438fd1498Szrj This file is part of GCC.
538fd1498Szrj 
638fd1498Szrj GCC is free software; you can redistribute it and/or modify it under
738fd1498Szrj the terms of the GNU General Public License as published by the Free
838fd1498Szrj Software Foundation; either version 3, or (at your option) any later
938fd1498Szrj version.
1038fd1498Szrj 
1138fd1498Szrj GCC is distributed in the hope that it will be useful, but WITHOUT ANY
1238fd1498Szrj WARRANTY; without even the implied warranty of MERCHANTABILITY or
1338fd1498Szrj FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1438fd1498Szrj for more details.
1538fd1498Szrj 
1638fd1498Szrj You should have received a copy of the GNU General Public License
1738fd1498Szrj along with GCC; see the file COPYING3.  If not see
1838fd1498Szrj <http://www.gnu.org/licenses/>.  */
1938fd1498Szrj 
2038fd1498Szrj #ifndef GCC_C_TREE_H
2138fd1498Szrj #define GCC_C_TREE_H
2238fd1498Szrj 
2338fd1498Szrj #include "c-family/c-common.h"
2438fd1498Szrj #include "diagnostic.h"
2538fd1498Szrj 
2638fd1498Szrj /* struct lang_identifier is private to c-decl.c, but langhooks.c needs to
2738fd1498Szrj    know how big it is.  This is sanity-checked in c-decl.c.  */
2838fd1498Szrj #define C_SIZEOF_STRUCT_LANG_IDENTIFIER \
2938fd1498Szrj   (sizeof (struct c_common_identifier) + 3 * sizeof (void *))
3038fd1498Szrj 
3138fd1498Szrj /* In a RECORD_TYPE or UNION_TYPE, nonzero if any component is read-only.  */
3238fd1498Szrj #define C_TYPE_FIELDS_READONLY(TYPE) TREE_LANG_FLAG_1 (TYPE)
3338fd1498Szrj 
3438fd1498Szrj /* In a RECORD_TYPE or UNION_TYPE, nonzero if any component is volatile.  */
3538fd1498Szrj #define C_TYPE_FIELDS_VOLATILE(TYPE) TREE_LANG_FLAG_2 (TYPE)
3638fd1498Szrj 
3738fd1498Szrj /* In a RECORD_TYPE or UNION_TYPE or ENUMERAL_TYPE
3838fd1498Szrj    nonzero if the definition of the type has already started.  */
3938fd1498Szrj #define C_TYPE_BEING_DEFINED(TYPE) TYPE_LANG_FLAG_0 (TYPE)
4038fd1498Szrj 
4138fd1498Szrj /* In an incomplete RECORD_TYPE or UNION_TYPE, a list of variable
4238fd1498Szrj    declarations whose type would be completed by completing that type.  */
4338fd1498Szrj #define C_TYPE_INCOMPLETE_VARS(TYPE) TYPE_VFIELD (TYPE)
4438fd1498Szrj 
4538fd1498Szrj /* In an IDENTIFIER_NODE, nonzero if this identifier is actually a
4638fd1498Szrj    keyword.  C_RID_CODE (node) is then the RID_* value of the keyword.  */
4738fd1498Szrj #define C_IS_RESERVED_WORD(ID) TREE_LANG_FLAG_0 (ID)
4838fd1498Szrj 
4938fd1498Szrj /* Record whether a type or decl was written with nonconstant size.
5038fd1498Szrj    Note that TYPE_SIZE may have simplified to a constant.  */
5138fd1498Szrj #define C_TYPE_VARIABLE_SIZE(TYPE) TYPE_LANG_FLAG_1 (TYPE)
5238fd1498Szrj #define C_DECL_VARIABLE_SIZE(TYPE) DECL_LANG_FLAG_0 (TYPE)
5338fd1498Szrj 
5438fd1498Szrj /* Record whether a type is defined inside a struct or union type.
5538fd1498Szrj    This is used for -Wc++-compat. */
5638fd1498Szrj #define C_TYPE_DEFINED_IN_STRUCT(TYPE) TYPE_LANG_FLAG_2 (TYPE)
5738fd1498Szrj 
5838fd1498Szrj /* Record whether an "incomplete type" error was given for the type.  */
5938fd1498Szrj #define C_TYPE_ERROR_REPORTED(TYPE) TYPE_LANG_FLAG_3 (TYPE)
6038fd1498Szrj 
6138fd1498Szrj /* Record whether a typedef for type `int' was actually `signed int'.  */
6238fd1498Szrj #define C_TYPEDEF_EXPLICITLY_SIGNED(EXP) DECL_LANG_FLAG_1 (EXP)
6338fd1498Szrj 
6438fd1498Szrj /* For a FUNCTION_DECL, nonzero if it was defined without an explicit
6538fd1498Szrj    return type.  */
6638fd1498Szrj #define C_FUNCTION_IMPLICIT_INT(EXP) DECL_LANG_FLAG_1 (EXP)
6738fd1498Szrj 
6838fd1498Szrj /* For a FUNCTION_DECL, nonzero if it was an implicit declaration.  */
6938fd1498Szrj #define C_DECL_IMPLICIT(EXP) DECL_LANG_FLAG_2 (EXP)
7038fd1498Szrj 
7138fd1498Szrj /* For a PARM_DECL, nonzero if it was declared as an array.  */
7238fd1498Szrj #define C_ARRAY_PARAMETER(NODE) DECL_LANG_FLAG_0 (NODE)
7338fd1498Szrj 
7438fd1498Szrj /* For FUNCTION_DECLs, evaluates true if the decl is built-in but has
7538fd1498Szrj    been declared.  */
7638fd1498Szrj #define C_DECL_DECLARED_BUILTIN(EXP)		\
7738fd1498Szrj   DECL_LANG_FLAG_3 (FUNCTION_DECL_CHECK (EXP))
7838fd1498Szrj 
7938fd1498Szrj /* For FUNCTION_DECLs, evaluates true if the decl is built-in, has a
8038fd1498Szrj    built-in prototype and does not have a non-built-in prototype.  */
8138fd1498Szrj #define C_DECL_BUILTIN_PROTOTYPE(EXP)		\
8238fd1498Szrj   DECL_LANG_FLAG_6 (FUNCTION_DECL_CHECK (EXP))
8338fd1498Szrj 
8438fd1498Szrj /* Record whether a decl was declared register.  This is strictly a
8538fd1498Szrj    front-end flag, whereas DECL_REGISTER is used for code generation;
8638fd1498Szrj    they may differ for structures with volatile fields.  */
8738fd1498Szrj #define C_DECL_REGISTER(EXP) DECL_LANG_FLAG_4 (EXP)
8838fd1498Szrj 
8938fd1498Szrj /* Record whether a decl was used in an expression anywhere except an
9038fd1498Szrj    unevaluated operand of sizeof / typeof / alignof.  This is only
9138fd1498Szrj    used for functions declared static but not defined, though outside
9238fd1498Szrj    sizeof and typeof it is set for other function decls as well.  */
9338fd1498Szrj #define C_DECL_USED(EXP) DECL_LANG_FLAG_5 (FUNCTION_DECL_CHECK (EXP))
9438fd1498Szrj 
9538fd1498Szrj /* Record whether a variable has been declared threadprivate by
9638fd1498Szrj    #pragma omp threadprivate.  */
9738fd1498Szrj #define C_DECL_THREADPRIVATE_P(DECL) DECL_LANG_FLAG_3 (VAR_DECL_CHECK (DECL))
9838fd1498Szrj 
9938fd1498Szrj /* Nonzero for a decl which either doesn't exist or isn't a prototype.
10038fd1498Szrj    N.B. Could be simplified if all built-in decls had complete prototypes
10138fd1498Szrj    (but this is presently difficult because some of them need FILE*).  */
10238fd1498Szrj #define C_DECL_ISNT_PROTOTYPE(EXP)			\
10338fd1498Szrj        (EXP == 0					\
10438fd1498Szrj 	|| (!prototype_p (TREE_TYPE (EXP))	\
10538fd1498Szrj 	    && !DECL_BUILT_IN (EXP)))
10638fd1498Szrj 
10738fd1498Szrj /* For FUNCTION_TYPE, a hidden list of types of arguments.  The same as
10838fd1498Szrj    TYPE_ARG_TYPES for functions with prototypes, but created for functions
10938fd1498Szrj    without prototypes.  */
11038fd1498Szrj #define TYPE_ACTUAL_ARG_TYPES(NODE) TYPE_LANG_SLOT_1 (NODE)
11138fd1498Szrj 
11238fd1498Szrj /* For a CONSTRUCTOR, whether some initializer contains a
11338fd1498Szrj    subexpression meaning it is not a constant expression.  */
11438fd1498Szrj #define CONSTRUCTOR_NON_CONST(EXPR) TREE_LANG_FLAG_1 (CONSTRUCTOR_CHECK (EXPR))
11538fd1498Szrj 
11638fd1498Szrj /* For a SAVE_EXPR, nonzero if the operand of the SAVE_EXPR has already
11738fd1498Szrj    been folded.  */
11838fd1498Szrj #define SAVE_EXPR_FOLDED_P(EXP)	TREE_LANG_FLAG_1 (SAVE_EXPR_CHECK (EXP))
11938fd1498Szrj 
12038fd1498Szrj /* Record parser information about an expression that is irrelevant
12138fd1498Szrj    for code generation alongside a tree representing its value.  */
12238fd1498Szrj struct c_expr
12338fd1498Szrj {
12438fd1498Szrj   /* The value of the expression.  */
12538fd1498Szrj   tree value;
12638fd1498Szrj   /* Record the original unary/binary operator of an expression, which may
12738fd1498Szrj      have been changed by fold, STRING_CST for unparenthesized string
12838fd1498Szrj      constants, C_MAYBE_CONST_EXPR for __builtin_constant_p calls
12938fd1498Szrj      (even if parenthesized), for subexpressions, and for non-constant
13038fd1498Szrj      initializers, or ERROR_MARK for other expressions (including
13138fd1498Szrj      parenthesized expressions).  */
13238fd1498Szrj   enum tree_code original_code;
13338fd1498Szrj   /* If not NULL, the original type of an expression.  This will
13438fd1498Szrj      differ from the type of the value field for an enum constant.
13538fd1498Szrj      The type of an enum constant is a plain integer type, but this
13638fd1498Szrj      field will be the enum type.  */
13738fd1498Szrj   tree original_type;
13838fd1498Szrj 
13938fd1498Szrj   /* The source range of this expression.  This is redundant
14038fd1498Szrj      for node values that have locations, but not all node kinds
14138fd1498Szrj      have locations (e.g. constants, and references to params, locals,
14238fd1498Szrj      etc), so we stash a copy here.  */
14338fd1498Szrj   source_range src_range;
14438fd1498Szrj 
14538fd1498Szrj   /* Access to the first and last locations within the source spelling
14638fd1498Szrj      of this expression.  */
get_startc_expr14738fd1498Szrj   location_t get_start () const { return src_range.m_start; }
get_finishc_expr14838fd1498Szrj   location_t get_finish () const { return src_range.m_finish; }
14938fd1498Szrj 
get_locationc_expr15038fd1498Szrj   location_t get_location () const
15138fd1498Szrj   {
15238fd1498Szrj     if (EXPR_HAS_LOCATION (value))
15338fd1498Szrj       return EXPR_LOCATION (value);
15438fd1498Szrj     else
15538fd1498Szrj       return make_location (get_start (), get_start (), get_finish ());
15638fd1498Szrj   }
15738fd1498Szrj 
15838fd1498Szrj   /* Set the value to error_mark_node whilst ensuring that src_range
15938fd1498Szrj      is initialized.  */
set_errorc_expr16038fd1498Szrj   void set_error ()
16138fd1498Szrj   {
16238fd1498Szrj     value = error_mark_node;
16338fd1498Szrj     src_range.m_start = UNKNOWN_LOCATION;
16438fd1498Szrj     src_range.m_finish = UNKNOWN_LOCATION;
16538fd1498Szrj   }
16638fd1498Szrj };
16738fd1498Szrj 
16838fd1498Szrj /* Type alias for struct c_expr. This allows to use the structure
16938fd1498Szrj    inside the VEC types.  */
17038fd1498Szrj typedef struct c_expr c_expr_t;
17138fd1498Szrj 
17238fd1498Szrj /* A kind of type specifier.  Note that this information is currently
17338fd1498Szrj    only used to distinguish tag definitions, tag references and typeof
17438fd1498Szrj    uses.  */
17538fd1498Szrj enum c_typespec_kind {
17638fd1498Szrj   /* No typespec.  This appears only in struct c_declspec.  */
17738fd1498Szrj   ctsk_none,
17838fd1498Szrj   /* A reserved keyword type specifier.  */
17938fd1498Szrj   ctsk_resword,
18038fd1498Szrj   /* A reference to a tag, previously declared, such as "struct foo".
18138fd1498Szrj      This includes where the previous declaration was as a different
18238fd1498Szrj      kind of tag, in which case this is only valid if shadowing that
18338fd1498Szrj      tag in an inner scope.  */
18438fd1498Szrj   ctsk_tagref,
18538fd1498Szrj   /* A reference to a tag, not previously declared in a visible
18638fd1498Szrj      scope.  */
18738fd1498Szrj   ctsk_tagfirstref,
18838fd1498Szrj   /* A definition of a tag such as "struct foo { int a; }".  */
18938fd1498Szrj   ctsk_tagdef,
19038fd1498Szrj   /* A typedef name.  */
19138fd1498Szrj   ctsk_typedef,
19238fd1498Szrj   /* An ObjC-specific kind of type specifier.  */
19338fd1498Szrj   ctsk_objc,
19438fd1498Szrj   /* A typeof specifier, or _Atomic ( type-name ).  */
19538fd1498Szrj   ctsk_typeof
19638fd1498Szrj };
19738fd1498Szrj 
19838fd1498Szrj /* A type specifier: this structure is created in the parser and
19938fd1498Szrj    passed to declspecs_add_type only.  */
20038fd1498Szrj struct c_typespec {
20138fd1498Szrj   /* What kind of type specifier this is.  */
20238fd1498Szrj   enum c_typespec_kind kind;
20338fd1498Szrj   /* Whether the expression has operands suitable for use in constant
20438fd1498Szrj      expressions.  */
20538fd1498Szrj   bool expr_const_operands;
20638fd1498Szrj   /* The specifier itself.  */
20738fd1498Szrj   tree spec;
20838fd1498Szrj   /* An expression to be evaluated before the type specifier, in the
20938fd1498Szrj      case of typeof specifiers, or NULL otherwise or if no such
21038fd1498Szrj      expression is required for a particular typeof specifier.  In
21138fd1498Szrj      particular, when typeof is applied to an expression of variably
21238fd1498Szrj      modified type, that expression must be evaluated in order to
21338fd1498Szrj      determine array sizes that form part of the type, but the
21438fd1498Szrj      expression itself (as opposed to the array sizes) forms no part
21538fd1498Szrj      of the type and so needs to be recorded separately.  */
21638fd1498Szrj   tree expr;
21738fd1498Szrj };
21838fd1498Szrj 
21938fd1498Szrj /* A storage class specifier.  */
22038fd1498Szrj enum c_storage_class {
22138fd1498Szrj   csc_none,
22238fd1498Szrj   csc_auto,
22338fd1498Szrj   csc_extern,
22438fd1498Szrj   csc_register,
22538fd1498Szrj   csc_static,
22638fd1498Szrj   csc_typedef
22738fd1498Szrj };
22838fd1498Szrj 
22938fd1498Szrj /* A type specifier keyword "void", "_Bool", "char", "int", "float",
23038fd1498Szrj    "double", "_Decimal32", "_Decimal64", "_Decimal128", "_Fract", "_Accum",
23138fd1498Szrj    or none of these.  */
23238fd1498Szrj enum c_typespec_keyword {
23338fd1498Szrj   cts_none,
23438fd1498Szrj   cts_void,
23538fd1498Szrj   cts_bool,
23638fd1498Szrj   cts_char,
23738fd1498Szrj   cts_int,
23838fd1498Szrj   cts_float,
23938fd1498Szrj   cts_int_n,
24038fd1498Szrj   cts_double,
24138fd1498Szrj   cts_dfloat32,
24238fd1498Szrj   cts_dfloat64,
24338fd1498Szrj   cts_dfloat128,
24438fd1498Szrj   cts_floatn_nx,
24538fd1498Szrj   cts_fract,
24638fd1498Szrj   cts_accum,
24738fd1498Szrj   cts_auto_type
24838fd1498Szrj };
24938fd1498Szrj 
25038fd1498Szrj /* This enum lists all the possible declarator specifiers, storage
25138fd1498Szrj    class or attribute that a user can write.  There is at least one
25238fd1498Szrj    enumerator per possible declarator specifier in the struct
25338fd1498Szrj    c_declspecs below.
25438fd1498Szrj 
25538fd1498Szrj    It is used to index the array of declspec locations in struct
25638fd1498Szrj    c_declspecs.  */
25738fd1498Szrj enum c_declspec_word {
25838fd1498Szrj   cdw_typespec /* A catch-all for a typespec.  */,
25938fd1498Szrj   cdw_storage_class  /* A catch-all for a storage class */,
26038fd1498Szrj   cdw_attributes,
26138fd1498Szrj   cdw_typedef,
26238fd1498Szrj   cdw_explicit_signed,
26338fd1498Szrj   cdw_deprecated,
26438fd1498Szrj   cdw_default_int,
26538fd1498Szrj   cdw_long,
26638fd1498Szrj   cdw_long_long,
26738fd1498Szrj   cdw_short,
26838fd1498Szrj   cdw_signed,
26938fd1498Szrj   cdw_unsigned,
27038fd1498Szrj   cdw_complex,
27138fd1498Szrj   cdw_inline,
27238fd1498Szrj   cdw_noreturn,
27338fd1498Szrj   cdw_thread,
27438fd1498Szrj   cdw_const,
27538fd1498Szrj   cdw_volatile,
27638fd1498Szrj   cdw_restrict,
27738fd1498Szrj   cdw_atomic,
27838fd1498Szrj   cdw_saturating,
27938fd1498Szrj   cdw_alignas,
28038fd1498Szrj   cdw_address_space,
28138fd1498Szrj   cdw_gimple,
28238fd1498Szrj   cdw_rtl,
28338fd1498Szrj   cdw_number_of_elements /* This one must always be the last
28438fd1498Szrj 			    enumerator.  */
28538fd1498Szrj };
28638fd1498Szrj 
28738fd1498Szrj /* A sequence of declaration specifiers in C.  When a new declaration
28838fd1498Szrj    specifier is added, please update the enum c_declspec_word above
28938fd1498Szrj    accordingly.  */
29038fd1498Szrj struct c_declspecs {
29138fd1498Szrj   source_location locations[cdw_number_of_elements];
29238fd1498Szrj   /* The type specified, if a single type specifier such as a struct,
29338fd1498Szrj      union or enum specifier, typedef name or typeof specifies the
29438fd1498Szrj      whole type, or NULL_TREE if none or a keyword such as "void" or
29538fd1498Szrj      "char" is used.  Does not include qualifiers.  */
29638fd1498Szrj   tree type;
29738fd1498Szrj   /* Any expression to be evaluated before the type, from a typeof
29838fd1498Szrj      specifier.  */
29938fd1498Szrj   tree expr;
30038fd1498Szrj   /* The attributes from a typedef decl.  */
30138fd1498Szrj   tree decl_attr;
30238fd1498Szrj   /* When parsing, the attributes.  Outside the parser, this will be
30338fd1498Szrj      NULL; attributes (possibly from multiple lists) will be passed
30438fd1498Szrj      separately.  */
30538fd1498Szrj   tree attrs;
30638fd1498Szrj   /* The pass to start compiling a __GIMPLE or __RTL function with.  */
30738fd1498Szrj   char *gimple_or_rtl_pass;
30838fd1498Szrj   /* The base-2 log of the greatest alignment required by an _Alignas
30938fd1498Szrj      specifier, in bytes, or -1 if no such specifiers with nonzero
31038fd1498Szrj      alignment.  */
31138fd1498Szrj   int align_log;
31238fd1498Szrj   /* For the __intN declspec, this stores the index into the int_n_* arrays.  */
31338fd1498Szrj   int int_n_idx;
31438fd1498Szrj   /* For the _FloatN and _FloatNx declspec, this stores the index into
31538fd1498Szrj      the floatn_nx_types array.  */
31638fd1498Szrj   int floatn_nx_idx;
31738fd1498Szrj   /* The storage class specifier, or csc_none if none.  */
31838fd1498Szrj   enum c_storage_class storage_class;
31938fd1498Szrj   /* Any type specifier keyword used such as "int", not reflecting
32038fd1498Szrj      modifiers such as "short", or cts_none if none.  */
32138fd1498Szrj   ENUM_BITFIELD (c_typespec_keyword) typespec_word : 8;
32238fd1498Szrj   /* The kind of type specifier if one has been seen, ctsk_none
32338fd1498Szrj      otherwise.  */
32438fd1498Szrj   ENUM_BITFIELD (c_typespec_kind) typespec_kind : 3;
32538fd1498Szrj   /* Whether any expressions in typeof specifiers may appear in
32638fd1498Szrj      constant expressions.  */
32738fd1498Szrj   BOOL_BITFIELD expr_const_operands : 1;
32838fd1498Szrj   /* Whether any declaration specifiers have been seen at all.  */
32938fd1498Szrj   BOOL_BITFIELD declspecs_seen_p : 1;
33038fd1498Szrj   /* Whether something other than a storage class specifier or
33138fd1498Szrj      attribute has been seen.  This is used to warn for the
33238fd1498Szrj      obsolescent usage of storage class specifiers other than at the
33338fd1498Szrj      start of the list.  (Doing this properly would require function
33438fd1498Szrj      specifiers to be handled separately from storage class
33538fd1498Szrj      specifiers.)  */
33638fd1498Szrj   BOOL_BITFIELD non_sc_seen_p : 1;
33738fd1498Szrj   /* Whether the type is specified by a typedef or typeof name.  */
33838fd1498Szrj   BOOL_BITFIELD typedef_p : 1;
33938fd1498Szrj   /* Whether the type is explicitly "signed" or specified by a typedef
34038fd1498Szrj      whose type is explicitly "signed".  */
34138fd1498Szrj   BOOL_BITFIELD explicit_signed_p : 1;
34238fd1498Szrj   /* Whether the specifiers include a deprecated typedef.  */
34338fd1498Szrj   BOOL_BITFIELD deprecated_p : 1;
34438fd1498Szrj   /* Whether the type defaulted to "int" because there were no type
34538fd1498Szrj      specifiers.  */
34638fd1498Szrj   BOOL_BITFIELD default_int_p : 1;
34738fd1498Szrj   /* Whether "long" was specified.  */
34838fd1498Szrj   BOOL_BITFIELD long_p : 1;
34938fd1498Szrj   /* Whether "long" was specified more than once.  */
35038fd1498Szrj   BOOL_BITFIELD long_long_p : 1;
35138fd1498Szrj   /* Whether "short" was specified.  */
35238fd1498Szrj   BOOL_BITFIELD short_p : 1;
35338fd1498Szrj   /* Whether "signed" was specified.  */
35438fd1498Szrj   BOOL_BITFIELD signed_p : 1;
35538fd1498Szrj   /* Whether "unsigned" was specified.  */
35638fd1498Szrj   BOOL_BITFIELD unsigned_p : 1;
35738fd1498Szrj   /* Whether "complex" was specified.  */
35838fd1498Szrj   BOOL_BITFIELD complex_p : 1;
35938fd1498Szrj   /* Whether "inline" was specified.  */
36038fd1498Szrj   BOOL_BITFIELD inline_p : 1;
36138fd1498Szrj   /* Whether "_Noreturn" was speciied.  */
36238fd1498Szrj   BOOL_BITFIELD noreturn_p : 1;
36338fd1498Szrj   /* Whether "__thread" or "_Thread_local" was specified.  */
36438fd1498Szrj   BOOL_BITFIELD thread_p : 1;
36538fd1498Szrj   /* Whether "__thread" rather than "_Thread_local" was specified.  */
36638fd1498Szrj   BOOL_BITFIELD thread_gnu_p : 1;
36738fd1498Szrj   /* Whether "const" was specified.  */
36838fd1498Szrj   BOOL_BITFIELD const_p : 1;
36938fd1498Szrj   /* Whether "volatile" was specified.  */
37038fd1498Szrj   BOOL_BITFIELD volatile_p : 1;
37138fd1498Szrj   /* Whether "restrict" was specified.  */
37238fd1498Szrj   BOOL_BITFIELD restrict_p : 1;
37338fd1498Szrj   /* Whether "_Atomic" was specified.  */
37438fd1498Szrj   BOOL_BITFIELD atomic_p : 1;
37538fd1498Szrj   /* Whether "_Sat" was specified.  */
37638fd1498Szrj   BOOL_BITFIELD saturating_p : 1;
37738fd1498Szrj   /* Whether any alignment specifier (even with zero alignment) was
37838fd1498Szrj      specified.  */
37938fd1498Szrj   BOOL_BITFIELD alignas_p : 1;
38038fd1498Szrj   /* Whether any __GIMPLE specifier was specified.  */
38138fd1498Szrj   BOOL_BITFIELD gimple_p : 1;
38238fd1498Szrj   /* Whether any __RTL specifier was specified.  */
38338fd1498Szrj   BOOL_BITFIELD rtl_p : 1;
38438fd1498Szrj   /* The address space that the declaration belongs to.  */
38538fd1498Szrj   addr_space_t address_space;
38638fd1498Szrj };
38738fd1498Szrj 
38838fd1498Szrj /* The various kinds of declarators in C.  */
38938fd1498Szrj enum c_declarator_kind {
39038fd1498Szrj   /* An identifier.  */
39138fd1498Szrj   cdk_id,
39238fd1498Szrj   /* A function.  */
39338fd1498Szrj   cdk_function,
39438fd1498Szrj   /* An array.  */
39538fd1498Szrj   cdk_array,
39638fd1498Szrj   /* A pointer.  */
39738fd1498Szrj   cdk_pointer,
39838fd1498Szrj   /* Parenthesized declarator with nested attributes.  */
39938fd1498Szrj   cdk_attrs
40038fd1498Szrj };
40138fd1498Szrj 
40238fd1498Szrj struct c_arg_tag {
40338fd1498Szrj   /* The argument name.  */
40438fd1498Szrj   tree id;
40538fd1498Szrj   /* The type of the argument.  */
40638fd1498Szrj   tree type;
40738fd1498Szrj };
40838fd1498Szrj 
40938fd1498Szrj 
41038fd1498Szrj /* Information about the parameters in a function declarator.  */
41138fd1498Szrj struct c_arg_info {
41238fd1498Szrj   /* A list of parameter decls.  */
41338fd1498Szrj   tree parms;
41438fd1498Szrj   /* A list of structure, union and enum tags defined.  */
41538fd1498Szrj   vec<c_arg_tag, va_gc> *tags;
41638fd1498Szrj   /* A list of argument types to go in the FUNCTION_TYPE.  */
41738fd1498Szrj   tree types;
41838fd1498Szrj   /* A list of non-parameter decls (notably enumeration constants)
41938fd1498Szrj      defined with the parameters.  */
42038fd1498Szrj   tree others;
42138fd1498Szrj   /* A compound expression of VLA sizes from the parameters, or NULL.
42238fd1498Szrj      In a function definition, these are used to ensure that
42338fd1498Szrj      side-effects in sizes of arrays converted to pointers (such as a
42438fd1498Szrj      parameter int i[n++]) take place; otherwise, they are
42538fd1498Szrj      ignored.  */
42638fd1498Szrj   tree pending_sizes;
42738fd1498Szrj   /* True when these arguments had [*].  */
42838fd1498Szrj   BOOL_BITFIELD had_vla_unspec : 1;
42938fd1498Szrj };
43038fd1498Szrj 
43138fd1498Szrj /* A declarator.  */
43238fd1498Szrj struct c_declarator {
43338fd1498Szrj   /* The kind of declarator.  */
43438fd1498Szrj   enum c_declarator_kind kind;
43538fd1498Szrj   location_t id_loc; /* Currently only set for cdk_id, cdk_array. */
43638fd1498Szrj   /* Except for cdk_id, the contained declarator.  For cdk_id, NULL.  */
43738fd1498Szrj   struct c_declarator *declarator;
43838fd1498Szrj   union {
43938fd1498Szrj     /* For identifiers, an IDENTIFIER_NODE or NULL_TREE if an abstract
44038fd1498Szrj        declarator.  */
44138fd1498Szrj     tree id;
44238fd1498Szrj     /* For functions.  */
44338fd1498Szrj     struct c_arg_info *arg_info;
44438fd1498Szrj     /* For arrays.  */
44538fd1498Szrj     struct {
44638fd1498Szrj       /* The array dimension, or NULL for [] and [*].  */
44738fd1498Szrj       tree dimen;
44838fd1498Szrj       /* The qualifiers inside [].  */
44938fd1498Szrj       int quals;
45038fd1498Szrj       /* The attributes (currently ignored) inside [].  */
45138fd1498Szrj       tree attrs;
45238fd1498Szrj       /* Whether [static] was used.  */
45338fd1498Szrj       BOOL_BITFIELD static_p : 1;
45438fd1498Szrj       /* Whether [*] was used.  */
45538fd1498Szrj       BOOL_BITFIELD vla_unspec_p : 1;
45638fd1498Szrj     } array;
45738fd1498Szrj     /* For pointers, the qualifiers on the pointer type.  */
45838fd1498Szrj     int pointer_quals;
45938fd1498Szrj     /* For attributes.  */
46038fd1498Szrj     tree attrs;
46138fd1498Szrj   } u;
46238fd1498Szrj };
46338fd1498Szrj 
46438fd1498Szrj /* A type name.  */
46538fd1498Szrj struct c_type_name {
46638fd1498Szrj   /* The declaration specifiers.  */
46738fd1498Szrj   struct c_declspecs *specs;
46838fd1498Szrj   /* The declarator.  */
46938fd1498Szrj   struct c_declarator *declarator;
47038fd1498Szrj };
47138fd1498Szrj 
47238fd1498Szrj /* A parameter.  */
47338fd1498Szrj struct c_parm {
47438fd1498Szrj   /* The declaration specifiers, minus any prefix attributes.  */
47538fd1498Szrj   struct c_declspecs *specs;
47638fd1498Szrj   /* The attributes.  */
47738fd1498Szrj   tree attrs;
47838fd1498Szrj   /* The declarator.  */
47938fd1498Szrj   struct c_declarator *declarator;
48038fd1498Szrj   /* The location of the parameter.  */
48138fd1498Szrj   location_t loc;
48238fd1498Szrj };
48338fd1498Szrj 
48438fd1498Szrj /* Used when parsing an enum.  Initialized by start_enum.  */
48538fd1498Szrj struct c_enum_contents
48638fd1498Szrj {
48738fd1498Szrj   /* While defining an enum type, this is 1 plus the last enumerator
48838fd1498Szrj      constant value.  */
48938fd1498Szrj   tree enum_next_value;
49038fd1498Szrj 
49138fd1498Szrj   /* Nonzero means that there was overflow computing enum_next_value.  */
49238fd1498Szrj   int enum_overflow;
49338fd1498Szrj };
49438fd1498Szrj 
49538fd1498Szrj /* A type of reference to a static identifier in an inline
49638fd1498Szrj    function.  */
49738fd1498Szrj enum c_inline_static_type {
49838fd1498Szrj   /* Identifier with internal linkage used in function that may be an
49938fd1498Szrj      inline definition (i.e., file-scope static).  */
50038fd1498Szrj   csi_internal,
50138fd1498Szrj   /* Modifiable object with static storage duration defined in
50238fd1498Szrj      function that may be an inline definition (i.e., local
50338fd1498Szrj      static).  */
50438fd1498Szrj   csi_modifiable
50538fd1498Szrj };
50638fd1498Szrj 
50738fd1498Szrj 
50838fd1498Szrj /* in c-parser.c */
50938fd1498Szrj extern void c_parse_init (void);
51038fd1498Szrj extern bool c_keyword_starts_typename (enum rid keyword);
51138fd1498Szrj 
51238fd1498Szrj /* in c-aux-info.c */
51338fd1498Szrj extern void gen_aux_info_record (tree, int, int, int);
51438fd1498Szrj 
51538fd1498Szrj /* in c-decl.c */
51638fd1498Szrj struct c_spot_bindings;
51738fd1498Szrj struct c_struct_parse_info;
51838fd1498Szrj extern struct obstack parser_obstack;
51938fd1498Szrj extern tree c_break_label;
52038fd1498Szrj extern tree c_cont_label;
52138fd1498Szrj 
52238fd1498Szrj extern bool global_bindings_p (void);
52338fd1498Szrj extern tree pushdecl (tree);
52438fd1498Szrj extern void push_scope (void);
52538fd1498Szrj extern tree pop_scope (void);
52638fd1498Szrj extern void c_bindings_start_stmt_expr (struct c_spot_bindings *);
52738fd1498Szrj extern void c_bindings_end_stmt_expr (struct c_spot_bindings *);
52838fd1498Szrj 
52938fd1498Szrj extern void record_inline_static (location_t, tree, tree,
53038fd1498Szrj 				  enum c_inline_static_type);
53138fd1498Szrj extern void c_init_decl_processing (void);
53238fd1498Szrj extern void c_print_identifier (FILE *, tree, int);
53338fd1498Szrj extern int quals_from_declspecs (const struct c_declspecs *);
53438fd1498Szrj extern struct c_declarator *build_array_declarator (location_t, tree,
53538fd1498Szrj     						    struct c_declspecs *,
53638fd1498Szrj 						    bool, bool);
53738fd1498Szrj extern tree build_enumerator (location_t, location_t, struct c_enum_contents *,
53838fd1498Szrj 			      tree, tree);
53938fd1498Szrj extern tree check_for_loop_decls (location_t, bool);
54038fd1498Szrj extern void mark_forward_parm_decls (void);
54138fd1498Szrj extern void declare_parm_level (void);
54238fd1498Szrj extern void undeclared_variable (location_t, tree);
54338fd1498Szrj extern tree lookup_label_for_goto (location_t, tree);
54438fd1498Szrj extern tree declare_label (tree);
54538fd1498Szrj extern tree define_label (location_t, tree);
54638fd1498Szrj extern struct c_spot_bindings *c_get_switch_bindings (void);
54738fd1498Szrj extern void c_release_switch_bindings (struct c_spot_bindings *);
54838fd1498Szrj extern bool c_check_switch_jump_warnings (struct c_spot_bindings *,
54938fd1498Szrj 					  location_t, location_t);
55038fd1498Szrj extern void finish_decl (tree, location_t, tree, tree, tree);
55138fd1498Szrj extern tree finish_enum (tree, tree, tree);
55238fd1498Szrj extern void finish_function (void);
55338fd1498Szrj extern tree finish_struct (location_t, tree, tree, tree,
55438fd1498Szrj 			   struct c_struct_parse_info *);
55538fd1498Szrj extern struct c_arg_info *build_arg_info (void);
55638fd1498Szrj extern struct c_arg_info *get_parm_info (bool, tree);
55738fd1498Szrj extern tree grokfield (location_t, struct c_declarator *,
55838fd1498Szrj 		       struct c_declspecs *, tree, tree *);
55938fd1498Szrj extern tree groktypename (struct c_type_name *, tree *, bool *);
56038fd1498Szrj extern tree grokparm (const struct c_parm *, tree *);
56138fd1498Szrj extern tree implicitly_declare (location_t, tree);
56238fd1498Szrj extern void keep_next_level (void);
56338fd1498Szrj extern void pending_xref_error (void);
56438fd1498Szrj extern void c_push_function_context (void);
56538fd1498Szrj extern void c_pop_function_context (void);
56638fd1498Szrj extern void push_parm_decl (const struct c_parm *, tree *);
56738fd1498Szrj extern struct c_declarator *set_array_declarator_inner (struct c_declarator *,
56838fd1498Szrj 							struct c_declarator *);
56938fd1498Szrj extern tree c_builtin_function (tree);
57038fd1498Szrj extern tree c_builtin_function_ext_scope (tree);
57138fd1498Szrj extern void shadow_tag (const struct c_declspecs *);
57238fd1498Szrj extern void shadow_tag_warned (const struct c_declspecs *, int);
57338fd1498Szrj extern tree start_enum (location_t, struct c_enum_contents *, tree);
57438fd1498Szrj extern bool start_function (struct c_declspecs *, struct c_declarator *, tree);
57538fd1498Szrj extern tree start_decl (struct c_declarator *, struct c_declspecs *, bool,
57638fd1498Szrj 			tree);
57738fd1498Szrj extern tree start_struct (location_t, enum tree_code, tree,
57838fd1498Szrj 			  struct c_struct_parse_info **);
57938fd1498Szrj extern void store_parm_decls (void);
58038fd1498Szrj extern void store_parm_decls_from (struct c_arg_info *);
58138fd1498Szrj extern void temp_store_parm_decls (tree, tree);
58238fd1498Szrj extern void temp_pop_parm_decls (void);
58338fd1498Szrj extern tree xref_tag (enum tree_code, tree);
58438fd1498Szrj extern struct c_typespec parser_xref_tag (location_t, enum tree_code, tree);
58538fd1498Szrj extern struct c_parm *build_c_parm (struct c_declspecs *, tree,
58638fd1498Szrj 				    struct c_declarator *, location_t);
58738fd1498Szrj extern struct c_declarator *build_attrs_declarator (tree,
58838fd1498Szrj 						    struct c_declarator *);
58938fd1498Szrj extern struct c_declarator *build_function_declarator (struct c_arg_info *,
59038fd1498Szrj 						       struct c_declarator *);
59138fd1498Szrj extern struct c_declarator *build_id_declarator (tree);
59238fd1498Szrj extern struct c_declarator *make_pointer_declarator (struct c_declspecs *,
59338fd1498Szrj 						     struct c_declarator *);
59438fd1498Szrj extern struct c_declspecs *build_null_declspecs (void);
59538fd1498Szrj extern struct c_declspecs *declspecs_add_qual (source_location,
59638fd1498Szrj 					       struct c_declspecs *, tree);
59738fd1498Szrj extern struct c_declspecs *declspecs_add_type (location_t,
59838fd1498Szrj 					       struct c_declspecs *,
59938fd1498Szrj 					       struct c_typespec);
60038fd1498Szrj extern struct c_declspecs *declspecs_add_scspec (source_location,
60138fd1498Szrj 						 struct c_declspecs *, tree);
60238fd1498Szrj extern struct c_declspecs *declspecs_add_attrs (source_location,
60338fd1498Szrj 						struct c_declspecs *, tree);
60438fd1498Szrj extern struct c_declspecs *declspecs_add_addrspace (source_location,
60538fd1498Szrj 						    struct c_declspecs *,
60638fd1498Szrj 						    addr_space_t);
60738fd1498Szrj extern struct c_declspecs *declspecs_add_alignas (source_location,
60838fd1498Szrj 						  struct c_declspecs *, tree);
60938fd1498Szrj extern struct c_declspecs *finish_declspecs (struct c_declspecs *);
61038fd1498Szrj 
61138fd1498Szrj /* in c-objc-common.c */
61238fd1498Szrj extern bool c_objc_common_init (void);
61338fd1498Szrj extern bool c_missing_noreturn_ok_p (tree);
61438fd1498Szrj extern bool c_warn_unused_global_decl (const_tree);
61538fd1498Szrj extern void c_initialize_diagnostics (diagnostic_context *);
61638fd1498Szrj extern bool c_vla_unspec_p (tree x, tree fn);
61738fd1498Szrj 
61838fd1498Szrj /* in c-typeck.c */
61938fd1498Szrj extern int in_alignof;
62038fd1498Szrj extern int in_sizeof;
62138fd1498Szrj extern int in_typeof;
62238fd1498Szrj 
62338fd1498Szrj extern tree c_last_sizeof_arg;
62438fd1498Szrj extern location_t c_last_sizeof_loc;
62538fd1498Szrj 
62638fd1498Szrj extern struct c_switch *c_switch_stack;
62738fd1498Szrj 
62838fd1498Szrj extern tree c_objc_common_truthvalue_conversion (location_t, tree);
62938fd1498Szrj extern tree require_complete_type (location_t, tree);
63038fd1498Szrj extern bool same_translation_unit_p (const_tree, const_tree);
63138fd1498Szrj extern int comptypes (tree, tree);
63238fd1498Szrj extern int comptypes_check_different_types (tree, tree, bool *);
63338fd1498Szrj extern bool c_vla_type_p (const_tree);
63438fd1498Szrj extern bool c_mark_addressable (tree, bool = false);
63538fd1498Szrj extern void c_incomplete_type_error (location_t, const_tree, const_tree);
63638fd1498Szrj extern tree c_type_promotes_to (tree);
63738fd1498Szrj extern struct c_expr default_function_array_conversion (location_t,
63838fd1498Szrj 							struct c_expr);
63938fd1498Szrj extern struct c_expr default_function_array_read_conversion (location_t,
64038fd1498Szrj 							     struct c_expr);
64138fd1498Szrj extern struct c_expr convert_lvalue_to_rvalue (location_t, struct c_expr,
64238fd1498Szrj 					       bool, bool);
64338fd1498Szrj extern tree decl_constant_value_1 (tree, bool);
64438fd1498Szrj extern void mark_exp_read (tree);
64538fd1498Szrj extern tree composite_type (tree, tree);
64638fd1498Szrj extern tree build_component_ref (location_t, tree, tree, location_t);
64738fd1498Szrj extern tree build_array_ref (location_t, tree, tree);
64838fd1498Szrj extern tree build_external_ref (location_t, tree, bool, tree *);
64938fd1498Szrj extern void pop_maybe_used (bool);
65038fd1498Szrj extern struct c_expr c_expr_sizeof_expr (location_t, struct c_expr);
65138fd1498Szrj extern struct c_expr c_expr_sizeof_type (location_t, struct c_type_name *);
65238fd1498Szrj extern struct c_expr parser_build_unary_op (location_t, enum tree_code,
65338fd1498Szrj     					    struct c_expr);
65438fd1498Szrj extern struct c_expr parser_build_binary_op (location_t,
65538fd1498Szrj     					     enum tree_code, struct c_expr,
65638fd1498Szrj 					     struct c_expr);
65738fd1498Szrj extern tree build_conditional_expr (location_t, tree, bool, tree, tree,
65838fd1498Szrj 				    location_t, tree, tree, location_t);
65938fd1498Szrj extern tree build_compound_expr (location_t, tree, tree);
66038fd1498Szrj extern tree c_cast_expr (location_t, struct c_type_name *, tree);
66138fd1498Szrj extern tree build_c_cast (location_t, tree, tree);
66238fd1498Szrj extern void store_init_value (location_t, tree, tree, tree);
66338fd1498Szrj extern void maybe_warn_string_init (location_t, tree, struct c_expr);
66438fd1498Szrj extern void start_init (tree, tree, int, rich_location *);
66538fd1498Szrj extern void finish_init (void);
66638fd1498Szrj extern void really_start_incremental_init (tree);
66738fd1498Szrj extern void finish_implicit_inits (location_t, struct obstack *);
66838fd1498Szrj extern void push_init_level (location_t, int, struct obstack *);
66938fd1498Szrj extern struct c_expr pop_init_level (location_t, int, struct obstack *,
67038fd1498Szrj 				     location_t);
67138fd1498Szrj extern void set_init_index (location_t, tree, tree, struct obstack *);
67238fd1498Szrj extern void set_init_label (location_t, tree, location_t, struct obstack *);
67338fd1498Szrj extern void process_init_element (location_t, struct c_expr, bool,
67438fd1498Szrj 				  struct obstack *);
67538fd1498Szrj extern tree build_compound_literal (location_t, tree, tree, bool,
67638fd1498Szrj 				    unsigned int);
67738fd1498Szrj extern void check_compound_literal_type (location_t, struct c_type_name *);
67838fd1498Szrj extern tree c_start_case (location_t, location_t, tree, bool);
67938fd1498Szrj extern void c_finish_case (tree, tree);
680*58e805e6Szrj extern tree build_asm_expr (location_t, tree, tree, tree, tree, tree, bool,
681*58e805e6Szrj 			    bool);
682*58e805e6Szrj extern tree build_asm_stmt (bool, tree);
68338fd1498Szrj extern int c_types_compatible_p (tree, tree);
68438fd1498Szrj extern tree c_begin_compound_stmt (bool);
68538fd1498Szrj extern tree c_end_compound_stmt (location_t, tree, bool);
68638fd1498Szrj extern void c_finish_if_stmt (location_t, tree, tree, tree);
68738fd1498Szrj extern void c_finish_loop (location_t, tree, tree, tree, tree, tree, bool);
68838fd1498Szrj extern tree c_begin_stmt_expr (void);
68938fd1498Szrj extern tree c_finish_stmt_expr (location_t, tree);
69038fd1498Szrj extern tree c_process_expr_stmt (location_t, tree);
69138fd1498Szrj extern tree c_finish_expr_stmt (location_t, tree);
69238fd1498Szrj extern tree c_finish_return (location_t, tree, tree);
69338fd1498Szrj extern tree c_finish_bc_stmt (location_t, tree *, bool);
69438fd1498Szrj extern tree c_finish_goto_label (location_t, tree);
69538fd1498Szrj extern tree c_finish_goto_ptr (location_t, tree);
69638fd1498Szrj extern tree c_expr_to_decl (tree, bool *, bool *);
69738fd1498Szrj extern tree c_finish_omp_construct (location_t, enum tree_code, tree, tree);
69838fd1498Szrj extern tree c_finish_oacc_data (location_t, tree, tree);
69938fd1498Szrj extern tree c_finish_oacc_host_data (location_t, tree, tree);
70038fd1498Szrj extern tree c_begin_omp_parallel (void);
70138fd1498Szrj extern tree c_finish_omp_parallel (location_t, tree, tree);
70238fd1498Szrj extern tree c_begin_omp_task (void);
70338fd1498Szrj extern tree c_finish_omp_task (location_t, tree, tree);
70438fd1498Szrj extern void c_finish_omp_cancel (location_t, tree);
70538fd1498Szrj extern void c_finish_omp_cancellation_point (location_t, tree);
70638fd1498Szrj extern tree c_finish_omp_clauses (tree, enum c_omp_region_type);
70738fd1498Szrj extern tree c_build_va_arg (location_t, tree, location_t, tree);
70838fd1498Szrj extern tree c_finish_transaction (location_t, tree, int);
70938fd1498Szrj extern bool c_tree_equal (tree, tree);
71038fd1498Szrj extern tree c_build_function_call_vec (location_t, vec<location_t>, tree,
71138fd1498Szrj 				       vec<tree, va_gc> *, vec<tree, va_gc> *);
71238fd1498Szrj extern tree c_omp_clause_copy_ctor (tree, tree, tree);
71338fd1498Szrj 
71438fd1498Szrj /* Set to 0 at beginning of a function definition, set to 1 if
71538fd1498Szrj    a return statement that specifies a return value is seen.  */
71638fd1498Szrj 
71738fd1498Szrj extern int current_function_returns_value;
71838fd1498Szrj 
71938fd1498Szrj /* Set to 0 at beginning of a function definition, set to 1 if
72038fd1498Szrj    a return statement with no argument is seen.  */
72138fd1498Szrj 
72238fd1498Szrj extern int current_function_returns_null;
72338fd1498Szrj 
72438fd1498Szrj /* Set to 0 at beginning of a function definition, set to 1 if
72538fd1498Szrj    a call to a noreturn function is seen.  */
72638fd1498Szrj 
72738fd1498Szrj extern int current_function_returns_abnormally;
72838fd1498Szrj 
72938fd1498Szrj /* In c-decl.c */
73038fd1498Szrj 
73138fd1498Szrj /* Tell the binding oracle what kind of binding we are looking for.  */
73238fd1498Szrj 
73338fd1498Szrj enum c_oracle_request
73438fd1498Szrj {
73538fd1498Szrj   C_ORACLE_SYMBOL,
73638fd1498Szrj   C_ORACLE_TAG,
73738fd1498Szrj   C_ORACLE_LABEL
73838fd1498Szrj };
73938fd1498Szrj 
74038fd1498Szrj /* If this is non-NULL, then it is a "binding oracle" which can lazily
74138fd1498Szrj    create bindings when needed by the C compiler.  The oracle is told
74238fd1498Szrj    the name and type of the binding to create.  It can call pushdecl
74338fd1498Szrj    or the like to ensure the binding is visible; or do nothing,
74438fd1498Szrj    leaving the binding untouched.  c-decl.c takes note of when the
74538fd1498Szrj    oracle has been called and will not call it again if it fails to
74638fd1498Szrj    create a given binding.  */
74738fd1498Szrj 
74838fd1498Szrj typedef void c_binding_oracle_function (enum c_oracle_request, tree identifier);
74938fd1498Szrj 
75038fd1498Szrj extern c_binding_oracle_function *c_binding_oracle;
75138fd1498Szrj 
75238fd1498Szrj extern void c_finish_incomplete_decl (tree);
75338fd1498Szrj extern tree c_omp_reduction_id (enum tree_code, tree);
75438fd1498Szrj extern tree c_omp_reduction_decl (tree);
75538fd1498Szrj extern tree c_omp_reduction_lookup (tree, tree);
75638fd1498Szrj extern tree c_check_omp_declare_reduction_r (tree *, int *, void *);
75738fd1498Szrj extern void c_pushtag (location_t, tree, tree);
75838fd1498Szrj extern void c_bind (location_t, tree, bool);
75938fd1498Szrj extern bool tag_exists_p (enum tree_code, tree);
76038fd1498Szrj 
76138fd1498Szrj /* In c-errors.c */
76238fd1498Szrj extern bool pedwarn_c90 (location_t, int opt, const char *, ...)
76338fd1498Szrj     ATTRIBUTE_GCC_DIAG(3,4);
76438fd1498Szrj extern bool pedwarn_c99 (location_t, int opt, const char *, ...)
76538fd1498Szrj     ATTRIBUTE_GCC_DIAG(3,4);
76638fd1498Szrj 
76738fd1498Szrj extern void
76838fd1498Szrj set_c_expr_source_range (c_expr *expr,
76938fd1498Szrj 			 location_t start, location_t finish);
77038fd1498Szrj 
77138fd1498Szrj extern void
77238fd1498Szrj set_c_expr_source_range (c_expr *expr,
77338fd1498Szrj 			 source_range src_range);
77438fd1498Szrj 
77538fd1498Szrj /* In c-fold.c */
77638fd1498Szrj extern vec<tree> incomplete_record_decls;
77738fd1498Szrj 
77838fd1498Szrj #if CHECKING_P
77938fd1498Szrj namespace selftest {
78038fd1498Szrj   extern void run_c_tests (void);
78138fd1498Szrj } // namespace selftest
78238fd1498Szrj #endif /* #if CHECKING_P */
78338fd1498Szrj 
78438fd1498Szrj 
78538fd1498Szrj #endif /* ! GCC_C_TREE_H */
786