home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / GnuSource / cc-61.0.1 / cc / tree.h < prev    next >
C/C++ Source or Header  |  1991-07-25  |  39KB  |  1,129 lines

  1. /* Front-end tree definitions for GNU compiler.
  2.    Copyright (C) 1989 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #include "machmode.h"
  21.  
  22. /* codes of tree nodes */
  23.  
  24. #define DEFTREECODE(SYM, STRING, TYPE, NARGS)   SYM,
  25.  
  26. enum tree_code {
  27. #include "tree.def"
  28.  
  29.   LAST_AND_UNUSED_TREE_CODE    /* A convienent way to get a value for
  30.                    NUM_TREE_CODE.  */
  31. };
  32.  
  33. #undef DEFTREECODE
  34.  
  35. /* Number of tree codes.  */
  36. #define NUM_TREE_CODES ((int)LAST_AND_UNUSED_TREE_CODE)
  37.  
  38. /* Indexed by enum tree_code, contains a character which is
  39.    `<' for a comparison expression, `1', for a unary arithmetic
  40.    expression, `2' for a binary arithmetic expression, `e' for
  41.    other types of expressions, `r' for a reference, `c' for a
  42.    constant, `d' for a decl, `t' for a type, `s' for a statement,
  43.    and `x' for anything else (TREE_LIST, IDENTIFIER, etc).  */
  44.  
  45. extern char **tree_code_type;
  46. #define TREE_CODE_CLASS(CODE)    (*tree_code_type[(int) (CODE)])
  47.  
  48. /* Number of argument-words in each kind of tree-node.  */
  49.  
  50. extern int *tree_code_length;
  51.  
  52. /* Names of tree components.  */
  53.  
  54. extern char **tree_code_name;
  55.  
  56. /* Codes that identify the various built in functions
  57.    so that expand_call can identify them quickly.  */
  58.  
  59. enum built_in_function
  60. {
  61.   NOT_BUILT_IN,
  62.   BUILT_IN_ALLOCA,
  63.   BUILT_IN_ABS,
  64.   BUILT_IN_FABS,
  65.   BUILT_IN_LABS,
  66.   BUILT_IN_FFS,
  67.   BUILT_IN_DIV,
  68.   BUILT_IN_LDIV,
  69.   BUILT_IN_FFLOOR,
  70.   BUILT_IN_FCEIL,
  71.   BUILT_IN_FMOD,
  72.   BUILT_IN_FREM,
  73.   BUILT_IN_MEMCPY,
  74.   BUILT_IN_MEMCMP,
  75.   BUILT_IN_MEMSET,
  76.   BUILT_IN_STRCPY,
  77.   BUILT_IN_STRCMP,
  78.   BUILT_IN_FSQRT,
  79.   BUILT_IN_GETEXP,
  80.   BUILT_IN_GETMAN,
  81.   BUILT_IN_SAVEREGS,
  82.   BUILT_IN_CLASSIFY_TYPE,
  83.   BUILT_IN_NEXT_ARG,
  84.   BUILT_IN_VARARGS,
  85.   BUILT_IN_CONSTANT_P,
  86.  
  87.   /* C++ extensions */
  88.   BUILT_IN_NEW,
  89.   BUILT_IN_VEC_NEW,
  90.   BUILT_IN_DELETE,
  91.   BUILT_IN_VEC_DELETE
  92. };
  93.  
  94. /* The definition of tree nodes fills the next several pages.  */
  95.  
  96. /* A tree node can represent a data type, a variable, an expression
  97.    or a statement.  Each node has a TREE_CODE which says what kind of
  98.    thing it represents.  Some common codes are:
  99.    INTEGER_TYPE -- represents a type of integers.
  100.    ARRAY_TYPE -- represents a type of pointer.
  101.    VAR_DECL -- represents a declared variable.
  102.    INTEGER_CST -- represents a constant integer value.
  103.    PLUS_EXPR -- represents a sum (an expression).
  104.  
  105.    As for the contents of a tree node: there are some fields
  106.    that all nodes share.  Each TREE_CODE has various special-purpose
  107.    fields as well.  The fields of a node are never accessed directly,
  108.    always through accessor macros.  */
  109.  
  110. /* This type is used everywhere to refer to a tree node.  */
  111.  
  112. typedef union tree_node *tree;
  113.  
  114. #define NULL_TREE (tree) NULL
  115.  
  116. /* Every kind of tree node starts with this structure,
  117.    so all nodes have these fields.
  118.  
  119.    See the accessor macros, defined below, for documentation of the fields.  */
  120.  
  121. struct tree_common
  122. {
  123.   union tree_node *chain;
  124.   union tree_node *type;
  125. #ifdef ONLY_INT_FIELDS
  126.   unsigned int code : 8;
  127. #else
  128.   enum tree_code code : 8;
  129. #endif
  130.  
  131.   unsigned side_effects_flag : 1;
  132.   unsigned constant_flag : 1;
  133.   unsigned permanent_flag : 1;
  134.   unsigned addressable_flag : 1;
  135.   unsigned volatile_flag : 1;
  136.   unsigned readonly_flag : 1;
  137.   unsigned unsigned_flag : 1;
  138.   unsigned asm_written_flag: 1;
  139.  
  140.   unsigned used_flag : 1;
  141.   unsigned raises_flag : 1;
  142.   unsigned static_flag : 1;
  143.   unsigned public_flag : 1;
  144.   unsigned private_flag : 1;
  145.   unsigned protected_flag : 1;
  146.  
  147.   unsigned lang_flag_0 : 1;
  148.   unsigned lang_flag_1 : 1;
  149.   unsigned lang_flag_2 : 1;
  150.   unsigned lang_flag_3 : 1;
  151.   unsigned lang_flag_4 : 1;
  152.   unsigned lang_flag_5 : 1;
  153.   unsigned lang_flag_6 : 1;
  154.   /* There is room for two more flags.  */
  155. };
  156.  
  157. /* Define accessors for the fields that all tree nodes have
  158.    (though some fields are not used for all kinds of nodes).  */
  159.  
  160. /* The tree-code says what kind of node it is.
  161.    Codes are defined in tree.def.  */
  162. #define TREE_CODE(NODE) ((enum tree_code) (NODE)->common.code)
  163. #define TREE_SET_CODE(NODE, VALUE) ((NODE)->common.code = (int) (VALUE))
  164.  
  165. /* In all nodes that are expressions, this is the data type of the expression.
  166.    In POINTER_TYPE nodes, this is the type that the pointer points to.
  167.    In ARRAY_TYPE nodes, this is the type of the elements.  */
  168. #define TREE_TYPE(NODE) ((NODE)->common.type)
  169.  
  170. /* Nodes are chained together for many purposes.
  171.    Types are chained together to record them for being output to the debugger
  172.    (see the function `chain_type').
  173.    Decls in the same scope are chained together to record the contents
  174.    of the scope.
  175.    Statement nodes for successive statements used to be chained together.
  176.    Often lists of things are represented by TREE_LIST nodes that
  177.    are chained together.  */
  178.  
  179. #define TREE_CHAIN(NODE) ((NODE)->common.chain)
  180.  
  181. /* Define many boolean fields that all tree nodes have.  */
  182.  
  183. /* In VAR_DECL nodes, nonzero means address of this is needed.
  184.    So it cannot be in a register.
  185.    In a FUNCTION_DECL, nonzero means its address is needed.
  186.    So it must be compiled even if it is an inline function.
  187.    In CONSTRUCTOR nodes, it means the elements are all constants suitable
  188.    for output as assembly-language initializers.
  189.    In LABEL_DECL nodes, it means a goto for this label has been seen 
  190.    from a place outside all binding contours that restore stack levels.
  191.    In ..._TYPE nodes, it means that objects of this type must
  192.    be fully addressable.  This means that pieces of this
  193.    object cannot go into register parameters, for example.  */
  194. #define TREE_ADDRESSABLE(NODE) ((NODE)->common.addressable_flag)
  195.  
  196. /* In a VAR_DECL, nonzero means allocate static storage.
  197.    In a FUNCTION_DECL, currently nonzero if function has been defined.
  198.    In a CONSTRUCTOR, nonzero means allocate static storage.  */
  199. #define TREE_STATIC(NODE) ((NODE)->common.static_flag)
  200.  
  201. /* In a CONVERT_EXPR or NOP_EXPR, this means the ndoe was made
  202.    implicitly and should not lead to an "unused value" warning.  */
  203. #define TREE_NO_UNUSED_WARNING(NODE) ((NODE)->common.static_flag)
  204.  
  205. /* In a VAR_DECL or FUNCTION_DECL,
  206.    nonzero means name is to be accessible from outside this module.
  207.    In an identifier node, nonzero means a external declaration
  208.    accesible from outside this module was previously seen
  209.    for this name in an inner scope.  */
  210. #define TREE_PUBLIC(NODE) ((NODE)->common.public_flag)
  211.  
  212. /* In any expression, nonzero means it has side effects or reevaluation
  213.    of the whole expression could produce a different value.
  214.    This is set if any subexpression is a function call, a side effect
  215.    or a reference to a volatile variable.
  216.    In a ..._DECL, this is set only if the declaration said `volatile'.  */
  217. #define TREE_SIDE_EFFECTS(NODE) ((NODE)->common.side_effects_flag)
  218.  
  219. /* Nonzero means this expression is volatile in the C sense:
  220.    its address should be of type `volatile WHATEVER *'.
  221.    If this bit is set, so is TREE_SIDE_EFFECTS.  */
  222. #define TREE_THIS_VOLATILE(NODE) ((NODE)->common.volatile_flag)
  223.  
  224. /* In a VAR_DECL, PARM_DECL or FIELD_DECL, or any kind of ..._REF node,
  225.    nonzero means it may not be the lhs of an assignment.
  226.    In a ..._TYPE node, means this type is const-qualified.  */
  227. #define TREE_READONLY(NODE) ((NODE)->common.readonly_flag)
  228.  
  229. /* Value of expression is constant.
  230.    Always appears in all ..._CST nodes.
  231.    May also appear in an arithmetic expression, an ADDR_EXPR or a CONSTRUCTOR
  232.    if the value is constant.  */
  233. #define TREE_CONSTANT(NODE) ((NODE)->common.constant_flag)
  234.  
  235. /* Nonzero means permanent node;
  236.    node will continue to exist for the entire compiler run.
  237.    Otherwise it will be recycled at the end of the function.  */
  238. #define TREE_PERMANENT(NODE) ((NODE)->common.permanent_flag)
  239.  
  240. /* In INTEGER_TYPE or ENUMERAL_TYPE nodes, means an unsigned type.
  241.    In FIELD_DECL nodes, means an unsigned bit field.  */
  242. #define TREE_UNSIGNED(NODE) ((NODE)->common.unsigned_flag)
  243.  
  244. /* Nonzero in a VAR_DECL means assembler code has been written.
  245.    Nonzero in a FUNCTION_DECL means that the function has been compiled.
  246.    This is interesting in an inline function, since it might not need
  247.    to be compiled separately.
  248.    Nonzero in a RECORD_TYPE, UNION_TYPE or ENUMERAL_TYPE
  249.    if the sdb debugging info for the type has been written.  */
  250. #define TREE_ASM_WRITTEN(NODE) ((NODE)->common.asm_written_flag)
  251.  
  252. /* Nonzero in a _DECL if the name is used in its scope.  */
  253. /* Nonzero in an expr node means inhibit warning if value is unused.  */
  254. #define TREE_USED(NODE) ((NODE)->common.used_flag)
  255.  
  256. /* Nonzero for a tree node whose evaluation could result
  257.    in the raising of an exception.  Not implemented yet.  */
  258. #define TREE_RAISES(NODE) ((NODE)->common.raises_flag)
  259.  
  260. /* These are currently used in classes in C++.  */
  261. #define TREE_PRIVATE(NODE) ((NODE)->common.private_flag)
  262. #define TREE_PROTECTED(NODE) ((NODE)->common.protected_flag)
  263.  
  264. #define TREE_LANG_FLAG_0(NODE) ((NODE)->common.lang_flag_0)
  265. #define TREE_LANG_FLAG_1(NODE) ((NODE)->common.lang_flag_1)
  266. #define TREE_LANG_FLAG_2(NODE) ((NODE)->common.lang_flag_2)
  267. #define TREE_LANG_FLAG_3(NODE) ((NODE)->common.lang_flag_3)
  268. #define TREE_LANG_FLAG_4(NODE) ((NODE)->common.lang_flag_4)
  269. #define TREE_LANG_FLAG_5(NODE) ((NODE)->common.lang_flag_5)
  270. #define TREE_LANG_FLAG_6(NODE) ((NODE)->common.lang_flag_6)
  271.  
  272. /* Define additional fields and accessors for nodes representing constants.  */
  273.  
  274. /* In an INTEGER_CST node.  These two together make a 64 bit integer.
  275.    If the data type is signed, the value is sign-extended to 64 bits
  276.    even though not all of them may really be in use.
  277.    In an unsigned constant shorter than 64 bits, the extra bits are 0.  */
  278. #define TREE_INT_CST_LOW(NODE) ((NODE)->int_cst.int_cst_low)
  279. #define TREE_INT_CST_HIGH(NODE) ((NODE)->int_cst.int_cst_high)
  280.  
  281. #define INT_CST_LT(A, B)  \
  282. (TREE_INT_CST_HIGH (A) < TREE_INT_CST_HIGH (B)            \
  283.  || (TREE_INT_CST_HIGH (A) == TREE_INT_CST_HIGH (B)        \
  284.      && ((unsigned) TREE_INT_CST_LOW (A) < (unsigned) TREE_INT_CST_LOW (B))))
  285.  
  286. #define INT_CST_LT_UNSIGNED(A, B)  \
  287. ((unsigned) TREE_INT_CST_HIGH (A) < (unsigned) TREE_INT_CST_HIGH (B)      \
  288.  || ((unsigned) TREE_INT_CST_HIGH (A) == (unsigned) TREE_INT_CST_HIGH (B) \
  289.      && ((unsigned) TREE_INT_CST_LOW (A) < (unsigned) TREE_INT_CST_LOW (B))))
  290.  
  291. struct tree_int_cst
  292. {
  293.   char common[sizeof (struct tree_common)];
  294.   long int_cst_low;
  295.   long int_cst_high;
  296. };
  297.  
  298. /* In REAL_CST, STRING_CST, COMPLEX_CST nodes, and CONSTRUCTOR nodes,
  299.    and generally in all kinds of constants that could
  300.    be given labels (rather than being immediate).  */
  301.  
  302. #define TREE_CST_RTL(NODE) ((NODE)->real_cst.rtl)
  303.  
  304. /* In a REAL_CST node.  */
  305. /* We can represent a real value as either a `double' or a string.
  306.    Strings don't allow for any optimization, but they do allow
  307.    for cross-compilation.  */
  308.  
  309. #define TREE_REAL_CST(NODE) ((NODE)->real_cst.real_cst)
  310.  
  311. #include "real.h"
  312.  
  313. struct tree_real_cst
  314. {
  315.   char common[sizeof (struct tree_common)];
  316.   struct rtx_def *rtl;    /* acts as link to register transfer language
  317.                    (rtl) info */
  318.   REAL_VALUE_TYPE real_cst;
  319. };
  320.  
  321. /* In a STRING_CST */
  322. #define TREE_STRING_LENGTH(NODE) ((NODE)->string.length)
  323. #define TREE_STRING_POINTER(NODE) ((NODE)->string.pointer)
  324.  
  325. struct tree_string
  326. {
  327.   char common[sizeof (struct tree_common)];
  328.   struct rtx_def *rtl;    /* acts as link to register transfer language
  329.                    (rtl) info */
  330.   int length;
  331.   char *pointer;
  332. };
  333.  
  334. /* In a COMPLEX_CST node.  */
  335. #define TREE_REALPART(NODE) ((NODE)->complex.real)
  336. #define TREE_IMAGPART(NODE) ((NODE)->complex.imag)
  337.  
  338. struct tree_complex
  339. {
  340.   char common[sizeof (struct tree_common)];
  341.   struct rtx_def *rtl;    /* acts as link to register transfer language
  342.                    (rtl) info */
  343.   union tree_node *real;
  344.   union tree_node *imag;
  345. };
  346.  
  347. /* Define fields and accessors for some special-purpose tree nodes.  */
  348.  
  349. #define IDENTIFIER_LENGTH(NODE) ((NODE)->identifier.length)
  350. #define IDENTIFIER_POINTER(NODE) ((NODE)->identifier.pointer)
  351. #define IDENTIFIER_VIRTUAL_P(NODE) TREE_LANG_FLAG_1(NODE)
  352.  
  353. struct tree_identifier
  354. {
  355.   char common[sizeof (struct tree_common)];
  356.   int length;
  357.   char *pointer;
  358. };
  359.  
  360. /* In a TREE_LIST node.  */
  361. #define TREE_PURPOSE(NODE) ((NODE)->list.purpose)
  362. #define TREE_VALUE(NODE) ((NODE)->list.value)
  363.  
  364. struct tree_list
  365. {
  366.   char common[sizeof (struct tree_common)];
  367.   union tree_node *purpose;
  368.   union tree_node *value;
  369. };
  370.  
  371. /* In a TREE_VEC node.  */
  372. #define TREE_VEC_LENGTH(NODE) ((NODE)->vec.length)
  373. #define TREE_VEC_ELT(NODE,I) ((NODE)->vec.a[I])
  374. #define TREE_VEC_END(NODE) (&((NODE)->vec.a[(NODE)->vec.length]))
  375.  
  376. struct tree_vec
  377. {
  378.   char common[sizeof (struct tree_common)];
  379.   int length;
  380.   union tree_node *a[1];
  381. };
  382.  
  383. /* Define fields and accessors for some nodes that represent expressions.  */
  384.  
  385. /* In a SAVE_EXPR node.  */
  386. #define SAVE_EXPR_CONTEXT(NODE) TREE_OPERAND(NODE, 1)
  387. #define SAVE_EXPR_RTL(NODE) (*(struct rtx_def **) &(NODE)->exp.operands[2])
  388.  
  389. /* In a RTL_EXPR node.  */
  390. #define RTL_EXPR_SEQUENCE(NODE) (*(struct rtx_def **) &(NODE)->exp.operands[0])
  391. #define RTL_EXPR_RTL(NODE) (*(struct rtx_def **) &(NODE)->exp.operands[1])
  392.  
  393. /* In a CALL_EXPR node.  */
  394. #define CALL_EXPR_RTL(NODE) (*(struct rtx_def **) &(NODE)->exp.operands[2])
  395.  
  396. /* In a CONSTRUCTOR node.  */
  397. #define CONSTRUCTOR_ELTS(NODE) TREE_OPERAND (NODE, 1)
  398.  
  399. /* In a BLOCK node.  */
  400. #define BLOCK_VARS(NODE) ((NODE)->exp.operands[0])
  401. #define BLOCK_TYPE_TAGS(NODE) ((NODE)->exp.operands[1])
  402. #define BLOCK_SUBBLOCKS(NODE) ((NODE)->exp.operands[2])
  403. #define BLOCK_SUPERCONTEXT(NODE) ((NODE)->exp.operands[3])
  404. /* Note: when changing this, make sure to find the places
  405.    that use chainon or nreverse.  */
  406. #define BLOCK_CHAIN(NODE) TREE_CHAIN (NODE)
  407.  
  408. /* In ordinary expression nodes.  */
  409. #define TREE_OPERAND(NODE, I) ((NODE)->exp.operands[I])
  410. #define TREE_COMPLEXITY(NODE) ((NODE)->exp.complexity)
  411.  
  412. struct tree_exp
  413. {
  414.   char common[sizeof (struct tree_common)];
  415.   int complexity;
  416.   union tree_node *operands[1];
  417. };
  418.  
  419. /* Define fields and accessors for nodes representing data types.  */
  420.  
  421. /* See tree.def for documentation of the use of these fields.
  422.    Look at the documentation of the various ..._TYPE tree codes.  */
  423.  
  424. #define TYPE_SIZE(NODE) ((NODE)->type.size)
  425. #define TYPE_MODE(NODE) ((NODE)->type.mode)
  426. #define TYPE_ALIGN(NODE) ((NODE)->type.align)
  427. #define TYPE_VALUES(NODE) ((NODE)->type.values)
  428. #define TYPE_DOMAIN(NODE) ((NODE)->type.values)
  429. #define TYPE_FIELDS(NODE) ((NODE)->type.values)
  430. #define TYPE_ARG_TYPES(NODE) ((NODE)->type.values)
  431. #define TYPE_METHOD_BASETYPE(NODE) ((NODE)->type.maxval)
  432. #define TYPE_OFFSET_BASETYPE(NODE) ((NODE)->type.maxval)
  433. #define TYPE_POINTER_TO(NODE) ((NODE)->type.pointer_to)
  434. #define TYPE_REFERENCE_TO(NODE) ((NODE)->type.reference_to)
  435. #define TYPE_MIN_VALUE(NODE) ((NODE)->type.minval)
  436. #define TYPE_MAX_VALUE(NODE) ((NODE)->type.maxval)
  437. #define TYPE_PRECISION(NODE) ((NODE)->type.precision)
  438. #define TYPE_PARSE_INFO(NODE) ((NODE)->type.parse_info)
  439. #define TYPE_SYMTAB_ADDRESS(NODE) ((NODE)->type.symtab_address)
  440. #define TYPE_NAME(NODE) ((NODE)->type.name)
  441. #define TYPE_NEXT_VARIANT(NODE) ((NODE)->type.next_variant)
  442. #define TYPE_MAIN_VARIANT(NODE) ((NODE)->type.main_variant)
  443. #define TYPE_BASETYPES(NODE) ((NODE)->type.basetypes)
  444. #define TYPE_NONCOPIED_PARTS(NODE) ((NODE)->type.noncopied_parts)
  445. #define TYPE_CONTEXT(NODE) ((NODE)->type.context)
  446. #define TYPE_LANG_SPECIFIC(NODE) ((NODE)->type.lang_specific)
  447.  
  448. /* In a RECORD_TYPE or UNION_TYPE, it means the type has BLKmode
  449.    only because it lacks the alignment requirement for its size.  */
  450. #define TYPE_NO_FORCE_BLK(NODE) ((NODE)->type.no_force_blk_flag)
  451.  
  452. /* Nonzero in a type considered volatile as a whole.  */
  453. #define TYPE_VOLATILE(NODE) ((NODE)->common.volatile_flag)
  454.  
  455. /* Means this type is const-qualified.  */
  456. #define TYPE_READONLY(NODE) ((NODE)->common.readonly_flag)
  457.  
  458. #define TYPE_LANG_FLAG_0(NODE) ((NODE)->type.lang_flag_0)
  459. #define TYPE_LANG_FLAG_1(NODE) ((NODE)->type.lang_flag_1)
  460. #define TYPE_LANG_FLAG_2(NODE) ((NODE)->type.lang_flag_2)
  461. #define TYPE_LANG_FLAG_3(NODE) ((NODE)->type.lang_flag_3)
  462. #define TYPE_LANG_FLAG_4(NODE) ((NODE)->type.lang_flag_4)
  463. #define TYPE_LANG_FLAG_5(NODE) ((NODE)->type.lang_flag_5)
  464. #define TYPE_LANG_FLAG_6(NODE) ((NODE)->type.lang_flag_6)
  465.  
  466. struct tree_type
  467. {
  468.   char common[sizeof (struct tree_common)];
  469.   union tree_node *values;
  470.   union tree_node *size;
  471.  
  472. #ifdef ONLY_INT_FIELDS
  473.   int mode : 8;
  474. #else
  475.   enum machine_mode mode : 8;
  476. #endif
  477.   unsigned char align;
  478.   unsigned char precision;
  479.  
  480.   unsigned no_force_blk_flag : 1;
  481.   unsigned lang_flag_0 : 1;
  482.   unsigned lang_flag_1 : 1;
  483.   unsigned lang_flag_2 : 1;
  484.   unsigned lang_flag_3 : 1;
  485.   unsigned lang_flag_4 : 1;
  486.   unsigned lang_flag_5 : 1;
  487.   unsigned lang_flag_6 : 1;
  488.  
  489.   union tree_node *pointer_to;
  490.   union tree_node *reference_to;
  491.   int parse_info;
  492.   int symtab_address;
  493.   union tree_node *name;
  494.   union tree_node *minval;
  495.   union tree_node *maxval;
  496.   union tree_node *next_variant;
  497.   union tree_node *main_variant;
  498.   union tree_node *basetypes;
  499.   union tree_node *noncopied_parts;
  500.   union tree_node *context;
  501.   /* Points to a structure whose details depend on the language in use.  */
  502.   struct lang_type *lang_specific;
  503. };
  504.  
  505. /* Define fields and accessors for nodes representing declared names.  */
  506.  
  507. #define DECL_NAME(NODE) ((NODE)->decl.name)
  508. #define DECL_PRINT_NAME(NODE) ((NODE)->decl.print_name)
  509. #define DECL_ASSEMBLER_NAME(NODE) ((NODE)->decl.assembler_name)
  510. /* The containing binding context; either a BINDING
  511.    or a RECORD_TYPE or UNION_TYPE.  */
  512. #define DECL_CONTEXT(NODE) ((NODE)->decl.context)
  513. #define DECL_FIELD_CONTEXT(NODE) ((NODE)->decl.context)
  514. /* In a FIELD_DECL, this is the field position, counting in bits,
  515.    of the bit closest to the beginning of the structure.  */
  516. #define DECL_FIELD_BITPOS(NODE) ((NODE)->decl.arguments)
  517. /* In a FIELD_DECL, this indicates whether the field was a bit-field and
  518.    if so, its type.  */
  519. #define DECL_BIT_FIELD_TYPE(NODE) ((NODE)->decl.result)
  520. /* In FUNCTION_DECL, a chain of ..._DECL nodes.  */
  521. /* VAR_DECL and PARM_DECL reserve the arguments slot
  522.    for language-specific uses.  */
  523. #define DECL_ARGUMENTS(NODE) ((NODE)->decl.arguments)
  524. /* In FUNCTION_DECL, holds the decl for the return value.  */
  525. #define DECL_RESULT(NODE) ((NODE)->decl.result)
  526. /* For a FUNCTION_DECL, holds the tree of BINDINGs.
  527.    For a VAR_DECL, holds the initial value.
  528.    For a PARM_DECL, not used--default
  529.    values for parameters are encoded in the type of the function,
  530.    not in the PARM_DECL slot.  */
  531. #define DECL_INITIAL(NODE) ((NODE)->decl.initial)
  532. /* For a PARM_DECL, records the data type used to pass the argument,
  533.    which may be different from the type seen in the program.  */
  534. #define DECL_ARG_TYPE(NODE) ((NODE)->decl.initial)   /* In PARM_DECL.  */
  535. /* These two fields describe where in the source code the declaration was.  */
  536. #define DECL_SOURCE_FILE(NODE) ((NODE)->decl.filename)
  537. #define DECL_SOURCE_LINE(NODE) ((NODE)->decl.linenum)
  538. /* Holds the size of the datum, as a tree expression.
  539.    Need not be constant.  */
  540. #define DECL_SIZE(NODE) ((NODE)->decl.size)
  541. /* Holds the alignment required for the datum.  */
  542. #define DECL_ALIGN(NODE) ((NODE)->decl.align)
  543. /* Holds the machine mode of a variable or field.  */
  544. #define DECL_MODE(NODE) ((NODE)->decl.mode)
  545. /* Holds the RTL expression for the value of a variable or function.  */
  546. #define DECL_RTL(NODE) ((NODE)->decl.rtl)
  547. /* Used in symout.c.  */
  548. #define DECL_BLOCK_SYMTAB_ADDRESS(NODE) ((NODE)->decl.block_symtab_address)
  549. /* Used in dbxout.c and sdbout.c.  */
  550. #define DECL_SYMTAB_INDEX(NODE) ((NODE)->decl.block_symtab_address)
  551. /* For PARM_DECL, holds an RTL for the stack slot or register
  552.    where the data was actually passed.  */
  553. #define DECL_INCOMING_RTL(NODE) ((NODE)->decl.saved_insns)
  554. /* For FUNCTION_DECL, if it is inline, holds the saved insn chain.  */
  555. #define DECL_SAVED_INSNS(NODE) ((NODE)->decl.saved_insns)
  556. /* For FUNCTION_DECL for built-in function.  */
  557. #define DECL_FUNCTION_CODE(NODE) \
  558.  ((enum built_in_function) (NODE)->decl.frame_size)
  559. #define DECL_SET_FUNCTION_CODE(NODE,VAL) \
  560.  ((NODE)->decl.frame_size = (int) (VAL))
  561. /* For FUNCTION_DECL, if it is inline,
  562.    holds the size of the stack frame, as an integer.  */
  563. #define DECL_FRAME_SIZE(NODE) ((NODE)->decl.frame_size)
  564. #define DECL_LANG_SPECIFIC(NODE) ((NODE)->decl.lang_specific)
  565.  
  566. /* In a VAR_DECL or FUNCTION_DECL,
  567.    nonzero means external reference:
  568.    do not allocate storage, and refer to a definition elsewhere.  */
  569. #define TREE_EXTERNAL(NODE) ((NODE)->decl.external_flag)
  570.  
  571. /* In VAR_DECL and PARM_DECL nodes, nonzero means declared `register'.
  572.    In LABEL_DECL nodes, nonzero means that an error message about
  573.    jumping into such a binding contour has been printed for this label.  */
  574. #define TREE_REGDECL(NODE) ((NODE)->decl.regdecl_flag)
  575.  
  576. /* Nonzero in a ..._DECL means this variable is ref'd from a nested function.
  577.    For VAR_DECL nodes, PARM_DECL nodes, and FUNCTION_DECL nodes.
  578.  
  579.    For LABEL_DECL nodes, nonzero if nonlocal gotos to the label are permitted.
  580.  
  581.    Also set in some languages for variables, etc., outside the normal
  582.    lexical scope, such as class instance variables.  */
  583. #define TREE_NONLOCAL(NODE) ((NODE)->decl.nonlocal_flag)
  584.  
  585. /* Nonzero in a FUNCTION_DECL means this function can be substituted
  586.    where it is called.
  587.    Nonzero in a VAR_DECL or PARM_DECL means this decl was made by inlining;
  588.    suppress any warnings about shadowing some other variable.  */
  589. #define TREE_INLINE(NODE) ((NODE)->decl.inline_flag)
  590.  
  591. /* Nonzero in a FIELD_DECL means it is a bit field, and must be accessed
  592.    specially.  */
  593. #define DECL_BIT_FIELD(NODE) ((NODE)->decl.bit_field_flag)
  594. /* In a LABEL_DECL, nonzero means label was defined inside a binding
  595.    contour that restored a stack level and which is now exited.  */
  596. #define DECL_TOO_LATE(NODE) ((NODE)->decl.bit_field_flag)
  597. /* In a FUNCTION_DECL, nonzero means a built in function.  */
  598. #define DECL_BUILT_IN(NODE) ((NODE)->decl.bit_field_flag)
  599. /* In a METHOD_DECL, indicates a function for which each instance has a pointer.  */
  600. #define DECL_VIRTUAL_P(NODE) ((NODE)->decl.virtual_flag)
  601.  
  602. /* Additional flags for language-specific uses.  */
  603. #define DECL_LANG_FLAG_0(NODE) ((NODE)->decl.lang_flag_0)
  604. #define DECL_LANG_FLAG_1(NODE) ((NODE)->decl.lang_flag_1)
  605. #define DECL_LANG_FLAG_2(NODE) ((NODE)->decl.lang_flag_2)
  606. #define DECL_LANG_FLAG_3(NODE) ((NODE)->decl.lang_flag_3)
  607. #define DECL_LANG_FLAG_4(NODE) ((NODE)->decl.lang_flag_4)
  608. #define DECL_LANG_FLAG_5(NODE) ((NODE)->decl.lang_flag_5)
  609. #define DECL_LANG_FLAG_6(NODE) ((NODE)->decl.lang_flag_6)
  610. #define DECL_LANG_FLAG_7(NODE) ((NODE)->decl.lang_flag_7)
  611. #define DECL_LANG_FLAG_8(NODE) ((NODE)->decl.lang_flag_8)
  612. #define DECL_LANG_FLAG_9(NODE) ((NODE)->decl.lang_flag_9)
  613.  
  614. struct tree_decl
  615. {
  616.   char common[sizeof (struct tree_common)];
  617.   char *filename;
  618.   int linenum;
  619.   union tree_node *size;
  620. #ifdef ONLY_INT_FIELDS
  621.   int mode : 8;
  622. #else
  623.   enum machine_mode mode : 8;
  624. #endif
  625.   unsigned char align;
  626.  
  627.   unsigned external_flag : 1;
  628.   unsigned nonlocal_flag : 1;
  629.   unsigned regdecl_flag : 1;
  630.   unsigned inline_flag : 1;
  631.   unsigned bit_field_flag : 1;
  632.   unsigned virtual_flag : 1;
  633.   unsigned lang_flag_0 : 1;
  634.   unsigned lang_flag_1 : 1;
  635.  
  636.   unsigned lang_flag_2 : 1;
  637.   unsigned lang_flag_3 : 1;
  638.   unsigned lang_flag_4 : 1;
  639.   unsigned lang_flag_5 : 1;
  640.   unsigned lang_flag_6 : 1;
  641.   unsigned lang_flag_7 : 1;
  642.   unsigned lang_flag_8 : 1;
  643.   unsigned lang_flag_9 : 1;
  644.  
  645.   union tree_node *name;
  646.   union tree_node *context;
  647.   union tree_node *arguments;
  648.   union tree_node *result;
  649.   union tree_node *initial;
  650.   char *print_name;
  651.   char *assembler_name;
  652.   struct rtx_def *rtl;    /* acts as link to register transfer language
  653.                    (rtl) info */
  654.   int frame_size;        /* For FUNCTION_DECLs: size of stack frame */
  655.   struct rtx_def *saved_insns;    /* For FUNCTION_DECLs: points to insn that
  656.                    constitutes its definition on the
  657.                    permanent obstack.  */
  658.   int block_symtab_address;
  659.   /* Points to a structure whose details depend on the language in use.  */
  660.   struct lang_decl *lang_specific;
  661. };
  662.  
  663. /* Objective-C structures */
  664.  
  665. /* KEYWORD_DECL */
  666. struct objc_tree_keyword_decl
  667. {
  668.   char common[sizeof (struct tree_common)];
  669.   union tree_node *arg_name;
  670.   union tree_node *key_name;
  671. };
  672.  
  673. /* INSTANCE_METHOD_DECL, CLASS_METHOD_DECL */
  674. struct objc_tree_method_decl
  675. {
  676.   char common[sizeof (struct tree_common)];
  677.   char *filename;
  678.   int linenum;
  679.   union tree_node *sel_name;
  680.   union tree_node *sel_args; 
  681.   union tree_node *add_args; 
  682.   union tree_node *mth_defn; 
  683.   union tree_node *encode_types; 
  684. };
  685.  
  686. /* CLASS_INTERFACE, CLASS_IMPLEMENTATION,
  687.    CATEGORY_INTERFACE, CATEGORY_IMPLEMENTATION,
  688.    PROTOCOL_INTERFACE */
  689. struct objc_tree_class_type
  690. {
  691.   char common[sizeof (struct tree_common)];
  692.   union tree_node *my_name;
  693.   union tree_node *super_name;
  694.   union tree_node *ivar_decls;
  695.   union tree_node *raw_ivars;
  696.   union tree_node *nst_method_chain;
  697.   union tree_node *cls_method_chain;
  698.   union tree_node *static_template;
  699.   union tree_node *category_list;
  700.   union tree_node *protocol_list;
  701. };
  702.  
  703. /* Define the overall contents of a tree node.
  704.    It may be any of the structures declared above
  705.    for various types of node.  */
  706.  
  707. union tree_node
  708. {
  709.   struct tree_common common;
  710.   struct tree_int_cst int_cst;
  711.   struct tree_real_cst real_cst;
  712.   struct tree_string string;
  713.   struct tree_complex complex;
  714.   struct tree_identifier identifier;
  715.   struct tree_decl decl;
  716.   struct tree_type type;
  717.   struct tree_list list;
  718.   struct tree_vec vec;
  719.   struct tree_exp exp;
  720.  };
  721.  
  722. extern char *oballoc ();
  723. extern char *permalloc ();
  724.  
  725. /* Lowest level primitive for allocating a node.
  726.    The TREE_CODE is the only argument.  Contents are initialized
  727.    to zero except for a few of the common fields.  */
  728.  
  729. extern tree make_node ();
  730.  
  731. /* Make a copy of a node, with all the same contents except
  732.    for TREE_PERMANENT.  (The copy is permanent
  733.    iff nodes being made now are permanent.)  */
  734.  
  735. extern tree copy_node ();
  736.  
  737. /* Make a copy of a chain of TREE_LIST nodes.  */
  738.  
  739. extern tree copy_list ();
  740.  
  741. /* Make a TREE_VEC.  */
  742.  
  743. extern tree make_tree_vec ();
  744.  
  745. /* Return the (unique) IDENTIFIER_NODE node for a given name.
  746.    The name is supplied as a char *.  */
  747.  
  748. extern tree get_identifier ();
  749.  
  750. /* Construct various types of nodes.  */
  751.  
  752. extern tree build_int_2 ();
  753. extern tree build_real ();
  754. extern tree build_real_from_string ();
  755. extern tree build_real_from_int_cst ();
  756. extern tree build_complex ();
  757. extern tree build_string ();
  758. extern tree build (), build1 ();
  759. extern tree build_nt (), build_parse_node ();
  760. extern tree build_tree_list (), build_decl_list ();
  761. extern tree build_op_identifier ();
  762. extern tree build_decl ();
  763. extern tree build_block ();
  764.  
  765. /* Construct various nodes representing data types.  */
  766.  
  767. extern tree make_signed_type ();
  768. extern tree make_unsigned_type ();
  769. extern tree signed_or_unsigned_type ();
  770. extern void fixup_unsigned_type ();
  771. extern tree build_pointer_type ();
  772. extern tree build_reference_type ();
  773. extern tree build_index_type (), build_index_2_type ();
  774. extern tree build_array_type ();
  775. extern tree build_function_type ();
  776. extern tree build_method_type ();
  777. extern tree build_offset_type ();
  778. extern tree build_complex_type ();
  779. extern tree array_type_nelts ();
  780.  
  781. /* Construct expressions, performing type checking.  */
  782.  
  783. extern tree build_binary_op ();
  784. extern tree build_indirect_ref ();
  785. extern tree build_unary_op ();
  786.  
  787. /* Given a type node TYPE, and CONSTP and VOLATILEP, return a type
  788.    for the same kind of data as TYPE describes.
  789.    Variants point to the "main variant" (which has neither CONST nor VOLATILE)
  790.    via TYPE_MAIN_VARIANT, and it points to a chain of other variants
  791.    so that duplicate variants are never made.
  792.    Only main variants should ever appear as types of expressions.  */
  793.  
  794. extern tree build_type_variant ();
  795.  
  796. /* Return the mode for data of a given size SIZE and mode class CLASS.
  797.    If LIMIT is nonzero, then don't use modes bigger than MAX_FIXED_MODE_SIZE.
  798.    The value is BLKmode if no other mode is found.  */
  799.  
  800. extern enum machine_mode mode_for_size ();
  801.  
  802. /* Given a ..._TYPE node, calculate the TYPE_SIZE, TYPE_SIZE_UNIT,
  803.    TYPE_ALIGN and TYPE_MODE fields.
  804.    If called more than once on one node, does nothing except
  805.    for the first time.  */
  806.  
  807. extern void layout_type ();
  808.  
  809. /* Given a hashcode and a ..._TYPE node (for which the hashcode was made),
  810.    return a canonicalized ..._TYPE node, so that duplicates are not made.
  811.    How the hash code is computed is up to the caller, as long as any two
  812.    callers that could hash identical-looking type nodes agree.  */
  813.  
  814. extern tree type_hash_canon ();
  815.  
  816. /* Given a VAR_DECL, PARM_DECL, RESULT_DECL or FIELD_DECL node,
  817.    calculates the DECL_SIZE, DECL_SIZE_UNIT, DECL_ALIGN and DECL_MODE
  818.    fields.  Call this only once for any given decl node.
  819.  
  820.    Second argument is the boundary that this field can be assumed to
  821.    be starting at (in bits).  Zero means it can be assumed aligned
  822.    on any boundary that may be needed.  */
  823.  
  824. extern void layout_decl ();
  825.  
  826. /* Fold constants as much as possible in an expression.
  827.    Returns the simplified expression.
  828.    Acts only on the top level of the expression;
  829.    if the argument itself cannot be simplified, its
  830.    subexpressions are not changed.  */
  831.  
  832. extern tree fold ();
  833.  
  834. /* Return an expr equal to X but certainly not valid as an lvalue.  */
  835.  
  836. extern tree non_lvalue ();
  837.  
  838. extern tree convert ();
  839. extern tree size_in_bytes ();
  840. extern tree size_binop ();
  841. extern tree size_int ();
  842. extern tree round_up ();
  843. extern tree get_pending_sizes ();
  844. extern tree get_permanent_types (), get_temporary_types ();
  845.  
  846. /* Type for sizes of data-type.  */
  847.  
  848. extern tree sizetype;
  849.  
  850. /* Concatenate two lists (chains of TREE_LIST nodes) X and Y
  851.    by making the last node in X point to Y.
  852.    Returns X, except if X is 0 returns Y.  */
  853.  
  854. extern tree chainon ();
  855.  
  856. /* Make a new TREE_LIST node from specified PURPOSE, VALUE and CHAIN.  */
  857.  
  858. extern tree tree_cons (), perm_tree_cons (), temp_tree_cons ();
  859. extern tree saveable_tree_cons (), decl_tree_cons ();
  860.  
  861. /* Return the last tree node in a chain.  */
  862.  
  863. extern tree tree_last ();
  864.  
  865. /* Reverse the order of elements in a chain, and return the new head.  */
  866.  
  867. extern tree nreverse ();
  868.  
  869. /* Returns the length of a chain of nodes
  870.    (number of chain pointers to follow before reaching a null pointer).  */
  871.  
  872. extern int list_length ();
  873.  
  874. /* integer_zerop (tree x) is nonzero if X is an integer constant of value 0 */
  875.  
  876. extern int integer_zerop ();
  877.  
  878. /* integer_onep (tree x) is nonzero if X is an integer constant of value 1 */
  879.  
  880. extern int integer_onep ();
  881.  
  882. /* integer_all_onesp (tree x) is nonzero if X is an integer constant
  883.    all of whose significant bits are 1.  */
  884.  
  885. extern int integer_all_onesp ();
  886.  
  887. /* integer_pow2p (tree x) is nonzero is X is an integer constant with
  888.    exactly one bit 1.  */
  889.  
  890. extern int integer_pow2p ();
  891.  
  892. /* type_unsigned_p (tree x) is nonzero if the type X is an unsigned type
  893.    (all of its possible values are >= 0).
  894.    If X is a pointer type, the value is 1.
  895.    If X is a real type, the value is 0.  */
  896.  
  897. extern int type_unsigned_p ();
  898.  
  899. /* staticp (tree x) is nonzero if X is a reference to data allocated
  900.    at a fixed address in memory.  */
  901.  
  902. extern int staticp ();
  903.  
  904. /* Gets an error if argument X is not an lvalue.
  905.    Also returns 1 if X is an lvalue, 0 if not.  */
  906.  
  907. extern int lvalue_or_else ();
  908.  
  909. /* save_expr (EXP) returns an expression equivalent to EXP
  910.    but it can be used multiple times within context CTX
  911.    and only evaluate EXP once.  */
  912.  
  913. extern tree save_expr ();
  914.  
  915. /* stabilize_reference (EXP) returns an reference equivalent to EXP
  916.    but it can be used multiple times
  917.    and only evaluate the subexpressions once.  */
  918.  
  919. extern tree stabilize_reference ();
  920.  
  921. /* Return EXP, stripped of any conversions to wider types
  922.    in such a way that the result of converting to type FOR_TYPE
  923.    is the same as if EXP were converted to FOR_TYPE.
  924.    If FOR_TYPE is 0, it signifies EXP's type.  */
  925.  
  926. extern tree get_unwidened ();
  927.  
  928. /* Return OP or a simpler expression for a narrower value
  929.    which can be sign-extended or zero-extended to give back OP.
  930.    Store in *UNSIGNEDP_PTR either 1 if the value should be zero-extended
  931.    or 0 if the value should be sign-extended.  */
  932.  
  933. extern tree get_narrower ();
  934.  
  935. /* Given MODE and UNSIGNEDP, return a suitable type-tree
  936.    with that mode.
  937.    The definition of this resides in language-specific code
  938.    as the repertoire of available types may vary.  */
  939.  
  940. extern tree type_for_mode ();
  941.  
  942. /* Given PRECISION and UNSIGNEDP, return a suitable type-tree
  943.    for an integer type with at least that precision.
  944.    The definition of this resides in language-specific code
  945.    as the repertoire of available types may vary.  */
  946.  
  947. extern tree type_for_size ();
  948.  
  949. /* Given an integer type T, return a type like T but unsigned.
  950.    If T is unsigned, the value is T.
  951.    The definition of this resides in language-specific code
  952.    as the repertoire of available types may vary.  */
  953.  
  954. extern tree unsigned_type ();
  955.  
  956. /* Given an integer type T, return a type like T but signed.
  957.    If T is signed, the value is T.
  958.    The definition of this resides in language-specific code
  959.    as the repertoire of available types may vary.  */
  960.  
  961. extern tree signed_type ();
  962.  
  963. /* This function must be defined in the language-specific files.
  964.    expand_expr calls it to build the cleanup-expression for a TARGET_EXPR.
  965.    This is defined in a language-specific file.  */
  966.  
  967. extern tree maybe_build_cleanup ();
  968.  
  969. /* Return the floating type node for a given floating machine mode.  */
  970.  
  971. extern tree get_floating_type ();
  972.  
  973. /* Given an expression EXP that may be a COMPONENT_REF or an ARRAY_REF,
  974.    look for nested component-refs or array-refs at constant positions
  975.    and find the ultimate containing object, which is returned.  */
  976.  
  977. extern tree get_inner_reference ();
  978.  
  979. /* Return the FUNCTION_DECL which provides this _DECL with its context,
  980.    or zero if none.  */
  981. extern tree decl_function_context ();
  982.  
  983. /* Return the RECORD_TYPE or UNION_TYPE which provides this _DECL
  984.    with its context, or zero if none.  */
  985. extern tree decl_type_context ();
  986.  
  987. /* Given the FUNCTION_DECL for the current function,
  988.    return zero if it is ok for this function to be inline.
  989.    Otherwise return a warning message with a single %s
  990.    for the function's name.  */
  991.  
  992. extern char *function_cannot_inline_p ();
  993.  
  994. /* Declare commonly used variables for tree structure.  */
  995.  
  996. /* An integer constant with value 0 */
  997. extern tree integer_zero_node;
  998.  
  999. /* An integer constant with value 1 */
  1000. extern tree integer_one_node;
  1001.  
  1002. /* An integer constant with value 0 whose type is sizetype.  */
  1003. extern tree size_zero_node;
  1004.  
  1005. /* An integer constant with value 1 whose type is sizetype.  */
  1006. extern tree size_one_node;
  1007.  
  1008. /* A constant of type pointer-to-int and value 0 */
  1009. extern tree null_pointer_node;
  1010.  
  1011. /* A node of type ERROR_MARK.  */
  1012. extern tree error_mark_node;
  1013.  
  1014. /* The type node for the void type.  */
  1015. extern tree void_type_node;
  1016.  
  1017. /* The type node for the ordinary (signed) integer type.  */
  1018. extern tree integer_type_node;
  1019.  
  1020. /* The type node for the unsigned integer type.  */
  1021. extern tree unsigned_type_node;
  1022.  
  1023. /* The type node for the ordinary character type.  */
  1024. extern tree char_type_node;
  1025.  
  1026. /* Points to the name of the input file from which the current input
  1027.    being parsed originally came (before it went into cpp).  */
  1028. extern char *input_filename;
  1029.  
  1030. /* Current line number in input file.  */
  1031. extern int lineno;
  1032.  
  1033. /* Nonzero for -pedantic switch: warn about anything
  1034.    that standard C forbids.  */
  1035. extern int pedantic;
  1036.  
  1037. /* Nonzero means can safely call expand_expr now;
  1038.    otherwise layout_type puts variable sizes onto `pending_sizes' instead.  */
  1039.  
  1040. extern int immediate_size_expand;
  1041.  
  1042. /* Points to the FUNCTION_DECL of the function whose body we are reading. */
  1043.  
  1044. extern tree current_function_decl;
  1045.  
  1046. /* Nonzero if function being compiled can call setjmp.  */
  1047.  
  1048. extern int current_function_calls_setjmp;
  1049.  
  1050. /* Nonzero means all ..._TYPE nodes should be allocated permanently.  */
  1051.  
  1052. extern int all_types_permanent;
  1053.  
  1054. /* Pointer to function to compute the name to use to print a declaration.  */
  1055.  
  1056. extern char *(*decl_printable_name) ();
  1057.  
  1058. /* In expmed.c */
  1059. extern tree make_tree ();
  1060.  
  1061. /* In stmt.c */
  1062.  
  1063. extern tree expand_start_stmt_expr ();
  1064. extern tree expand_end_stmt_expr ();
  1065. extern void expand_expr_stmt (), clear_last_expr ();
  1066. extern void expand_label (), expand_goto (), expand_asm ();
  1067. extern void expand_start_cond (), expand_end_cond ();
  1068. extern void expand_start_else (), expand_start_elseif ();
  1069. extern struct nesting *expand_start_loop ();
  1070. extern struct nesting *expand_start_loop_continue_elsewhere ();
  1071. extern void expand_loop_continue_here ();
  1072. extern void expand_end_loop ();
  1073. extern int expand_continue_loop ();
  1074. extern int expand_exit_loop (), expand_exit_loop_if_false ();
  1075. extern int expand_exit_something ();
  1076.  
  1077. extern void expand_start_delayed_expr ();
  1078. extern tree expand_end_delayed_expr ();
  1079. extern void expand_emit_delayed_expr ();
  1080.  
  1081. extern void expand_null_return (), expand_return ();
  1082. extern void expand_start_bindings (), expand_end_bindings ();
  1083. extern void expand_start_case (), expand_end_case ();
  1084. extern int pushcase (), pushcase_range ();
  1085. extern void expand_start_function (), expand_end_function ();
  1086.  
  1087. /* In fold-const.c */
  1088.  
  1089. extern tree invert_truthvalue ();
  1090.  
  1091. /* The language front-end must define these functions.  */
  1092.  
  1093. /* Function of no arguments for initializing lexical scanning.  */
  1094. extern void init_lex ();
  1095. /* Function of no arguments for initializing the symbol table.  */
  1096. extern void init_decl_processing ();
  1097.  
  1098. /* Functions called with no arguments at the beginning and end or processing
  1099.    the input source file.  */
  1100. extern void lang_init ();
  1101. extern void lang_finish ();
  1102.  
  1103. /* Function called with no arguments to parse and compile the input.  */
  1104. extern int yyparse ();
  1105. /* Function called with option as argument
  1106.    to decode options starting with -f or -W or +.
  1107.    It should return nonzero if it handles the option.  */
  1108. extern int lang_decode_option ();
  1109.  
  1110. /* Functions for processing symbol declarations.  */
  1111. /* Function to enter a new lexical scope.
  1112.    Takes one argument: always zero when called from outside the front end.  */
  1113. extern void pushlevel ();
  1114. /* Function to exit a lexical scope.  It returns a BINDING for that scope.
  1115.    Takes three arguments:
  1116.      KEEP -- nonzero if there were declarations in this scope.
  1117.      REVERSE -- reverse the order of decls before returning them.
  1118.      FUNCTIONBODY -- nonzero if this level is the body of a function.  */
  1119. extern tree poplevel ();
  1120. /* Function to add a decl to the current scope level.
  1121.    Takes one argument, a decl to add.
  1122.    Returns that decl, or, if the same symbol is already declared, may
  1123.    return a different decl for that name.  */
  1124. extern tree pushdecl ();
  1125. /* Function to return the chain of decls so far in the current scope level.  */
  1126. extern tree getdecls ();
  1127. /* Function to return the chain of structure tags in the current scope level. */
  1128. extern tree gettags ();
  1129.