1 /* Definitions for CHILL parsing and type checking.
2 Copyright (C) 1992, 93, 94, 98, 1999 Free Software Foundation, Inc.
4 This file is part of GNU CC.
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)
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.
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, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
24 /* Usage of TREE_LANG_FLAG_?:
26 " TYPE_FIELDS_READONLY (in ARRAY_TYPE, RECORD_TYPE or UNION_TYPE)
27 " C_DECLARED_LABEL_FLAG
28 " C_TYPE_VARIABLE_SIZE
29 2: C_TYPE_FIELDS_VOLATILE (in RECORD_TYPE or UNION_TYPE)
30 " ELSE_LABEL_SPECIFIED (in CASE selector expression)
32 4: CH_USE_SEIZEFILE_RESTRICTED
34 5: CH_DERIVED_FLAG (in EXPR or DECL)
37 /* Usage of TYPE_LANG_FLAG_?:
39 1: C_TYPE_VARIABLE_SIZE
43 5: CH_ENUM_IS_NUMBERED
47 /* Language-dependent contents of an identifier. */
49 struct lang_identifier
51 /* These match the fields in c-tree.h. */
52 struct tree_identifier ignore;
53 tree outer_value, local_value, implicit_decl;
54 tree error_locus, limbo_value;
56 /* These are Chill-specific. */
62 /* Macros for access to language-specific slots in an identifier. */
64 /* The outer_value is a chain of decls (normally a single decl),
65 that have been granted into the scope surrounding all modules. */
66 #define IDENTIFIER_OUTER_VALUE(NODE) \
67 (((struct lang_identifier *)(NODE))->outer_value)
68 #define IDENTIFIER_LOCAL_VALUE(NODE) \
69 (((struct lang_identifier *)(NODE))->local_value)
70 #define IDENTIFIER_IMPLICIT_DECL(NODE) \
71 (((struct lang_identifier *)(NODE))->implicit_decl)
72 #define IDENTIFIER_ERROR_LOCUS(NODE) \
73 (((struct lang_identifier *)(NODE))->error_locus)
74 #define IDENTIFIER_FORBID(NODE) \
75 (((struct lang_identifier *)(NODE))->forbid)
77 /* The nesting level increates by one for every nested 'group'.
78 Predefined declarations have level -1; the global scope is level 0.
80 #define DECL_NESTING_LEVEL(DECL) \
81 ((DECL)->decl.vindex ? TREE_INT_CST_LOW((DECL)->decl.vindex) : -1)
83 /* Nesting of things that can have an ON-unit attached. */
84 extern int action_nesting_level;
86 /* The DECL_NAME of a FIELD_DECL that represents the ELSE part of a variant. */
87 #define ELSE_VARIANT_NAME ridpointers[(int) RID_ELSE]
89 /* For a LABEL_DECL: action_nesting_level of its target. */
90 #define DECL_ACTION_NESTING_LEVEL(NODE) ((NODE)->decl.saved_insns.i)
92 #define DECL_OLD_PREFIX(DECL) ((DECL)->decl.initial)
93 #define DECL_NEW_PREFIX(DECL) ((DECL)->decl.result)
94 #define DECL_POSTFIX(DECL) ((DECL)->decl.arguments)
95 extern tree ALL_POSTFIX;
96 #define DECL_SEIZEFILE(DECL) ((DECL)->decl.size)
97 #define DECL_POSTFIX_ALL(DECL) (DECL_POSTFIX(DECL) == ALL_POSTFIX)
98 #define DECL_OLD_NAME(DECL) decl_old_name(DECL)
99 /* For a siezefile name this means restricted usage of this file.
100 In this case, the USE_SEIZE_FILE directive will not be copied
101 into the grant file */
102 #define CH_USE_SEIZEFILE_RESTRICTED(NODE) TREE_LANG_FLAG_4(NODE)
103 extern tree decl_old_name PROTO ((tree));
105 /* for selective granting, mark as already granted */
106 #define CH_ALREADY_GRANTED(NODE) TREE_LANG_FLAG_4(NODE)
108 /* to store the receiving process of that signal
109 at definition time */
110 #define IDENTIFIER_SIGNAL_DEST(NODE) \
111 (((struct lang_identifier *)(NODE))->signal_dest)
113 /* indicates a signal with no data */
114 #define IDENTIFIER_SIGNAL_DATA(NODE) \
115 (((struct lang_identifier *)(NODE))->signal_data)
117 /* In identifiers, C uses the following fields in a special way:
118 TREE_PUBLIC to record that there was a previous local extern decl.
119 TREE_USED to record that such a decl was used.
120 TREE_ADDRESSABLE to record that the address of such a decl was used. */
122 /* Nonzero means reject anything that Z.200 Recommendation forbids. */
125 /* the prototypical CHILL INSTANCE type */
126 extern tree instance_type_node;
128 /* Non-zero if type or expr depends on non-resolved identifier. */
129 #define UNSATISFIED(expr) \
130 (UNSATISFIED_FLAG (expr) || TREE_CODE (expr) == IDENTIFIER_NODE)
131 #define UNSATISFIED_FLAG(expr) TREE_LANG_FLAG_3 (expr)
133 /* Non-zero in a TREE_LIST if part of a labelled structure tuple. */
134 #define TUPLE_NAMED_FIELD(LIST) TREE_LANG_FLAG_1(LIST)
136 /* In an ARRAY_TYPE, RECORD_TYPE or UNION_TYPE, nonzero if any component
138 #define TYPE_FIELDS_READONLY(type) TREE_LANG_FLAG_1 (type)
140 /* True if TYPE has the "read-only property." */
141 #define TYPE_READONLY_PROPERTY(TYPE) \
142 (TYPE_READONLY (TYPE) || TYPE_FIELDS_READONLY (TYPE))
144 /* In a RECORD_TYPE or UNION_TYPE, nonzero if any component is volatile. */
145 #define C_TYPE_FIELDS_VOLATILE(type) TREE_LANG_FLAG_2 (type)
147 /* In a CASE selector expression, nonzero if any alternative specifies (ELSE) for
149 #define ELSE_LABEL_SPECIFIED(expr) TREE_LANG_FLAG_2 (expr)
151 /* CH_CHARS_TYPE_P(TYPE) is true iff TYPE is a character string type.
153 There is no essential difference between a string and a (one-dimensional)
154 character array, at least for non-varying types. I don't know where
155 the Chill designers got the idea that it was useful to make a distinction.
156 (I suspect packing might be involved, but on a byte-adressable machine
157 we don't care.) Since we want the same code to be generated for
158 char arrays as for char strings, we use the same representation for
159 both. But we still need to distinguish them for the sake a Chill
160 type checking. We do that using TYPE_STRING_FLAG. */
162 #define MARK_AS_STRING_TYPE(TYPE) (TYPE_STRING_FLAG (TYPE) = 1)
164 #define CH_CHARS_TYPE_P(type) \
165 (TREE_CODE (type) == ARRAY_TYPE && TREE_CODE(TREE_TYPE(type)) == CHAR_TYPE \
166 && TYPE_STRING_FLAG (type))
168 /* True if TYPE is CHARS(1). */
169 #define CH_CHARS_ONE_P(TYPE) (CH_CHARS_TYPE_P(TYPE) \
170 && integer_zerop (TYPE_MAX_VALUE (TYPE_DOMAIN (TYPE))))
172 /* True if TYPE is a bitstring (BOOLS or BIT) type.
173 The TYPE_STRING_FLAG is used to distinguish a bitstring from a powerset. */
175 #define CH_BOOLS_TYPE_P(type) \
176 (TREE_CODE (type) == SET_TYPE && TYPE_STRING_FLAG (type))
178 /* True if TYPE is BOOLS(1). */
179 #define CH_BOOLS_ONE_P(TYPE) (CH_BOOLS_TYPE_P(TYPE) \
180 && integer_zerop (TYPE_MAX_VALUE (TYPE_DOMAIN (TYPE))))
182 /* Value is nonzero if TYPE is a CHILL string type.
183 See CH_CHARS_TYPE_P and CH_BOOLS_TYPE_P above. */
185 #define CH_STRING_TYPE_P(type) \
186 ((TREE_CODE (type) == ARRAY_TYPE || TREE_CODE (type) == SET_TYPE) \
187 && TYPE_STRING_FLAG (type))
189 /* In a RECORD_TYPE, a sorted array of the fields of the type. */
190 struct lang_type_record
193 tree tasking_code_decl;
201 struct lang_type_record rec;
212 /* A tasking type's corresponding tasking_code_variable has its
213 decl pointer in here. */
214 #define DECL_TASKING_CODE_DECL(DECL) (DECL_LANG_SPECIFIC(DECL))
216 /* A pointer to an as-yet undefined type. */
217 extern tree unknown_type_node;
219 /* The CHILL type INT (either integer_type_node or
220 short_integer_type_node). */
221 extern tree chill_integer_type_node;
222 extern tree chill_unsigned_type_node;
224 /* Nonzero for FIELD_DECL node means that this FIELD_DECL is
225 a member of a union construct. */
226 #define TREE_UNION_ELEM(NODE) ((NODE)->decl.regdecl_flag) /* overloaded! */
228 /* Mark which labels are explicitly declared.
229 These may be shadowed, and may be referenced from nested functions. */
230 #define C_DECLARED_LABEL_FLAG(label) TREE_LANG_FLAG_1 (label)
232 /* Record whether a type was written with nonconstant size.
233 Note that TYPE_SIZE may have simplified to a constant. */
234 #define C_TYPE_VARIABLE_SIZE(type) TYPE_LANG_FLAG_1 (type)
236 #define DECL_WEAK_NAME(DECL) DECL_LANG_FLAG_0(DECL)
238 /* These are for FUNCTION_DECLs. */
239 #define CH_DECL_GENERAL(DECL) DECL_LANG_FLAG_1(DECL)
240 #define CH_DECL_SIMPLE(DECL) DECL_LANG_FLAG_2(DECL)
241 #define CH_DECL_RECURSIVE(DECL) DECL_LANG_FLAG_3(DECL)
242 #define CH_FUNCTION_SETS_RESULT(DECL) DECL_LANG_FLAG_6(DECL)
244 /* For a CONST_DECL, indicates that it was implicitly declared
245 in a SET mode declaration, and it should not be explicitly granted. */
246 #define CH_DECL_ENUM(DECL) DECL_LANG_FLAG_3(DECL)
248 /* in a FIELD_DECL use DECL_LANG_FLAG_4 to mark FORBID in a grant-statement */
249 #define CH_DECL_FORBID(DECL) DECL_LANG_FLAG_4(DECL)
251 /* in an ALIAS_DECL use DECL_LANG_FLAG_4 to mark decl was granted */
252 #define CH_DECL_GRANTED(DECL) DECL_LANG_FLAG_4(DECL)
254 /* (in a non-FIELD_DECL) note that this decl was hidden by push_module(). */
255 #define DECL_HIDDEN_BY_MODULE(decl) DECL_LANG_FLAG_4 (decl)
257 /* Record in each node resulting from a binary operator
258 what operator was specified for it. */
259 #define C_EXP_ORIGINAL_CODE(exp) ((enum tree_code) TREE_COMPLEXITY (exp))
261 /* Store a value in that field. */
262 #define C_SET_EXP_ORIGINAL_CODE(exp, code) \
263 (TREE_COMPLEXITY (exp) = (int)(code))
265 /* Record whether a typedef for type `int' was actually `signed int'. */
266 #define C_TYPEDEF_EXPLICITLY_SIGNED(exp) DECL_LANG_FLAG_1 ((exp))
268 /* For FUNCTION_TYPE, a hidden list of types of arguments. The same as
269 TYPE_ARG_TYPES for functions with prototypes, but created for functions
270 without prototypes. */
271 #define TYPE_ACTUAL_ARG_TYPES(NODE) TYPE_NONCOPIED_PARTS (NODE)
273 /* For FUNCTION_TYPE or METHOD_TYPE, a list of the
274 (names of) exceptions that this type can raise. */
275 #define TYPE_RAISES_EXCEPTIONS(NODE) ((NODE)->type.minval)
277 /* For UNION_TYPE, the list of tag fields that distinguishes the members. */
278 #define TYPE_TAGFIELDS(NODE) ((NODE)->type.minval)
280 /* For RECORD_TYPE, the tag values that select it. */
281 #define TYPE_TAG_VALUES(NODE) TYPE_BINFO(NODE)
283 /* For VAR_DECL, TYPE_DECL, FUNCTION_DECL, indicates that
284 the DECL was read from a seizefile but not seized */
285 #define CH_DECL_NOTDECLARED(DECL) DECL_LANG_FLAG_5(DECL)
287 /* For FUNCTION_DECL's, mark as PROCESSEs. */
288 #define CH_DECL_PROCESS(DECL) DECL_LANG_FLAG_7(DECL)
290 /* For TYPE_DECL's, mark as SIGNALs. */
291 #define CH_DECL_SIGNAL(DECL) DECL_LANG_FLAG_7(DECL)
293 /* Macros using terminology of the CHILL Blue Book. */
295 /* A class is either Null, All, M-value, M-derived, or M-reference,
296 where M is some mode (type). */
299 CH_ALL_CLASS, CH_NULL_CLASS,
300 CH_VALUE_CLASS, CH_DERIVED_CLASS, CH_REFERENCE_CLASS
303 typedef struct ch_class {
304 enum ch_class_kind kind;
305 tree mode; /* The 'M' in M-value, M-derived, or M-reference. */
308 struct mode_chain; /* Forward reference */
310 #define CH_IS_REFERENCE_MODE(MODE) (TREE_CODE (MODE) == POINTER_TYPE)
311 #define CH_IS_BOUND_REFERENCE_MODE(MODE) \
312 (TREE_CODE (MODE) == POINTER_TYPE && TREE_TYPE(MODE) != void_type_node)
313 #define CH_IS_PROCEDURE_MODE(MODE) (TREE_CODE (MODE) == FUNCTION_TYPE)
314 #define CH_IS_INSTANCE_MODE(MODE) (CH_SIMILAR (MODE, instance_type_node))
315 #define CH_IS_BUFFER_MODE(MODE) (TYPE_LANG_FLAG_3(MODE))
316 #define CH_IS_EVENT_MODE(MODE) (TYPE_LANG_FLAG_4(MODE))
317 /* This is TRUE if the set is numbered, which makes pred/succ
319 #define CH_ENUM_IS_NUMBERED(MODE) (TYPE_LANG_FLAG_5(MODE))
321 /* for ACCESS, and TEXT mode */
322 #define CH_IS_ACCESS_MODE(MODE) (TYPE_LANG_FLAG_2(MODE))
323 #define CH_IS_TEXT_MODE(MODE) (TYPE_LANG_FLAG_6(MODE))
324 #define CH_IS_ASSOCIATION_MODE(MODE) (CH_SIMILAR (MODE, association_type_node))
325 #define CH_IS_USAGE_MODE(MODE) (CH_SIMILAR (MODE, usage_type_node))
326 #define CH_IS_WHERE_MODE(MODE) (CH_SIMILAR (MODE, where_type_node))
328 /* for RECORD or ARRAY type */
329 #define CH_TYPE_NONVALUE_P(MODE) (TYPE_LANG_FLAG_0(MODE))
331 /* CH_NOVELTY is the novelty of a mode: NULL_TREE means the novelty is nil;
332 otherwise a TYPE_DECL matching the defining occurrence of a newmode. */
333 #define CH_NOVELTY(MODE) TYPE_CONTEXT(MODE)
335 /* Set the novelty of MODE to NOVELTY (which is assumed to be non-nil). */
336 #define SET_CH_NOVELTY(MODE, NOVELTY) (CH_NOVELTY (MODE) = (NOVELTY))
337 #define SET_CH_NOVELTY_NONNIL(MODE, NOVELTY) (CH_NOVELTY (MODE) = (NOVELTY))
339 /* CH_DERIVED_FLAG is true the class of EXPR is X-derived for some X. */
340 #define CH_DERIVED_FLAG(EXPR) TREE_LANG_FLAG_5(EXPR)
342 #define CH_HAS_REFERENCING_PROPERTY(MODE) \
343 (TREE_CODE (MODE) == POINTER_TYPE) /* incomplete FIXME! */
345 /* CH_COMPATIBLE(EXPR, MODE) is true if the class of EXPR is
346 "compatible" with the type MODE. */
347 #define CH_COMPATIBLE(EXPR, MODE) chill_compatible(EXPR, MODE)
348 #define CH_COMPATIBLE_CLASSES(EXPR1, EXPR2) chill_compatible_classes(EXPR1, EXPR2)
349 #define CH_STATIC_MODE(MODE) 1 /* for now */
350 #define CH_SIMILAR(MODE1, MODE2) chill_similar(MODE1, MODE2, 0)
351 #define CH_ROOT_MODE(MODE) chill_root_mode(MODE)
352 #define CH_RESULTING_CLASS(C1, C2) chill_resulting_class(C1, C2)
353 #define CH_ROOT_RESULTING_CLASS(E1, E2) \
354 CH_RESULTING_CLASS (chill_expr_class(E1), chill_expr_class(E2))
355 #define CH_RESULTING_MODE(MODE1, MODE2) chill_resulting_mode(MODE1, MODE2)
356 #define CH_V_EQUIVALENT(MODE1, MODE2) (CH_SIMILAR(MODE1, MODE2) \
357 && CH_NOVELTY(MODE1) == CH_NOVELTY(MODE2))
358 #define CH_EQUIVALENT(MODE1, MODE2) \
359 (!integer_zerop (chill_equivalent (MODE1, MODE2, 0)))
360 #define CH_RESTRICTABLE_TO(MODE1, MODE2) \
361 CH_EQUIVALENT(MODE1, MODE2) /* && some more stuff FIXME! */
363 /* pass an OFFSET_TYPE or REFERENCE_TYPE's underlying type to SCALAR_P */
364 #define CH_READ_COMPATIBLE(modeM, modeN) chill_read_compatible(modeM, modeN)
366 #define SCALAR_P(TYPE) (TYPE != NULL_TREE \
367 && (TREE_CODE (TYPE) == INTEGER_TYPE \
368 || TREE_CODE (TYPE) == REAL_TYPE \
369 || TREE_CODE (TYPE) == ENUMERAL_TYPE \
370 || TREE_CODE (TYPE) == BOOLEAN_TYPE \
371 || TREE_CODE (TYPE) == CHAR_TYPE \
372 || TREE_CODE (TYPE) == POINTER_TYPE \
373 || TREE_CODE (TYPE) == INSTANCE_TYPE))
374 #define CH_REFERABLE(EXPR) chill_referable(EXPR)
375 #define CH_LOCATION_P(EXPR) chill_location (EXPR)
377 /* Standard named or nameless data types of the C compiler. */
379 /* Nonzero means `$' can be in an identifier. */
381 extern int dollars_in_ident;
383 /* Nonzero means allow type mismatches in conditional expressions;
384 just make their values `void'. */
386 extern int flag_cond_mismatch;
388 /* Nonzero means don't recognize the keyword `asm'. */
390 extern int flag_no_asm;
392 /* Nonzero means warn about implicit declarations. */
394 extern int warn_implicit;
396 /* Nonzero means give string constants the type `const char *'
397 to get extra warnings from them. These warnings will be too numerous
398 to be useful, except in thoroughly ANSIfied programs. */
400 extern int warn_write_strings;
402 /* Nonzero means warn about sizeof (function) or addition/subtraction
403 of function pointers. */
405 extern int warn_pointer_arith;
407 /* Nonzero means warn for all old-style non-prototype function decls. */
409 extern int warn_strict_prototypes;
411 /* Nonzero means warn about multiple (redundant) decls for the same single
412 variable or function. */
414 extern int warn_redundant_decls;
416 /* Nonzero means warn about extern declarations of objects not at
417 file-scope level and about *all* declarations of functions (whether
418 extern or static) not at file-scope level. Note that we exclude
419 implicit function declarations. To get warnings about those, use
422 extern int warn_nested_externs;
424 /* Nonzero means warn about pointer casts that can drop a type qualifier
425 from the pointer target type. */
427 extern int warn_cast_qual;
429 /* Warn about traditional constructs whose meanings changed in ANSI C. */
431 extern int warn_traditional;
433 /* Warn about *printf or *scanf format/argument anomalies. */
435 extern int warn_format;
437 /* Warn about a subscript that has type char. */
439 extern int warn_char_subscripts;
441 /* Warn if a type conversion is done that might have confusing results. */
443 extern int warn_conversion;
445 /* Warn if switch labels aren't complete, or are duplicated */
447 extern int warn_switch;
449 /* Nonzero means do some things the same way PCC does. */
451 extern int flag_traditional;
453 /* Nonzero means warn about suggesting putting in ()'s. */
455 extern int warn_parentheses;
457 /* Nonzero means we are reading code that came from a system header file. */
458 extern int system_header_p;
460 /* One means range checking is on; <= 0 off; -1 permanently off. */
461 extern int range_checking;
463 /* 0 means empty checking is off, else it is on */
464 extern int empty_checking;
466 /* 1 means -fruntime-checking specified (default), o means -fno-runtime-checking */
467 extern int runtime_checking_flag;
469 /* Type node for boolean types. */
471 extern tree boolean_type_node;
472 extern tree signed_boolean_type_node;
474 extern tree string_one_type_node;
475 extern tree bitstring_one_type_node, bit_zero_node, bit_one_node;
477 extern tree float_type_node, double_type_node;
478 extern tree void_type_node, ptr_type_node, const_ptr_type_node;
480 /* a VOID_TYPE node, packaged in a TREE_LIST. */
482 extern tree void_list_node;
484 /* Chill language-specific tree codes. */
485 #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) SYM,
486 enum chill_tree_code {
487 __DUMMY = LAST_AND_UNUSED_TREE_CODE,
488 #include "ch-tree.def"
493 enum chill_built_in_function
495 DUMMY_FIRST_CHILL_BUILT_IN = END_BUILTINS,
501 BUILT_IN_ALLOCATE_GLOBAL_MEMORY,
502 BUILT_IN_ALLOCATE_MEMORY,
509 BUILT_IN_COPY_NUMBER,
524 BUILT_IN_GETASSOCIATION,
526 BUILT_IN_GETTEXTACCESS,
527 BUILT_IN_GETTEXTINDEX,
528 BUILT_IN_GETTEXTRECORD,
533 BUILT_IN_ISASSOCIATED,
547 BUILT_IN_QUEUE_LENGTH,
551 BUILT_IN_RETURN_MEMORY,
553 BUILT_IN_SETTEXTACCESS,
554 BUILT_IN_SETTEXTINDEX,
555 BUILT_IN_SETTEXTRECORD,
556 BUILT_IN_SEQUENCIBLE,
568 BUILT_IN_WRITERECORD,
572 /* name of additional (compiler generated) arguments for
573 functions which may propagate exceptions. */
574 #define CALLER_FILE "__CALLER_FILE__"
575 #define CALLER_LINE "__CALLER_LINE__"
577 /* field-name strings for the fields of the structure which
578 represents a CHILL VARYING array. The angle brackets assure
579 that no user-defined structure can match this one.
580 This field holds, at runtime, the current length of the
581 array, in UNITS, not including the length itself. It's an
583 #define VAR_LENGTH "__var_length"
585 /* This field is statically allocated to the user-defined
586 size, but contains valid array entries starting from the
587 first allocated space, proceeding for VAR_LENGTH bytes.
588 There are no holes in the data; the user isn't allowed
589 to store beyond the first available entry. */
591 #define VAR_DATA "__var_data"
593 /* This field is the name of the array, encapsulated in the CHILL
594 structure used to represent an array type parameter. */
595 /*#define ARRAY_DATA "__array_data"*/
597 /* The CHILL INSTANCE type is composed of two CHILL integer
598 fields, the process_type (set by the user with the
599 process_type compiler directive, and the proc_copy field,
600 which is set by the start_process call's first parameter. */
601 #define INS_PTYPE "__proc_type"
602 #define INS_COPY "__proc_copy"
604 /* This is the actual array type inside the VARYING struct */
605 #define CH_VARYING_ARRAY_TYPE(TYPE) TREE_TYPE (TREE_CHAIN (TYPE_FIELDS (TYPE)))
607 /* Identifiers which hold the VAR_LENGTH and VAR_DATA strings. */
608 extern tree var_length_id;
609 extern tree var_data_id;
611 /* A RANGE_EXPR representing an ELSE in a case label. */
612 extern tree case_else_node;
614 #if 0 /* changed to function */
615 /* return non-zero if type is a compiler-generated VARYING array record */
616 #define CH_VARYING_TYPE_P(type) (TREE_CODE (type) == RECORD_TYPE && \
617 DECL_NAME (TYPE_FIELDS (type)) == \
618 get_identifier (VAR_LENGTH) && \
619 DECL_NAME (TREE_CHAIN (TYPE_FIELDS (type))) == \
620 get_identifier (VAR_DATA) && \
621 TREE_CHAIN (CH_VARYING_ARRAY_TYPE (type)) == NULL_TREE)
625 /* in c-aux-info.c */
626 extern void gen_aux_info_record PROTO((tree, int, int, int));
629 extern tree combine_strings PROTO((tree));
630 extern void constant_expression_warning PROTO((tree));
631 extern void decl_attributes PROTO((tree, tree));
632 extern void declare_function_name PROTO((void));
634 extern char *get_directive_line PROTO((FILE *));
636 extern tree shorten_compare PROTO((tree *, tree *, tree *, enum tree_code *));
639 extern tree short_integer_type_node, integer_type_node;
640 extern tree long_integer_type_node, long_long_integer_type_node;
641 extern tree short_unsigned_type_node, unsigned_type_node;
642 extern tree long_unsigned_type_node, long_long_unsigned_type_node;
643 extern tree ptrdiff_type_node;
644 extern tree unsigned_char_type_node, signed_char_type_node, char_type_node;
645 extern tree wchar_type_node, signed_wchar_type_node, unsigned_wchar_type_node;
646 extern tree float_type_node, double_type_node, long_double_type_node;
647 extern tree void_type_node, ptr_type_node, const_ptr_type_node;
648 extern tree default_function_type;
649 extern tree double_ftype_double, double_ftype_double_double;
650 extern tree int_ftype_int, long_ftype_long;
651 extern tree void_ftype_ptr_ptr_int, int_ftype_ptr_ptr_int;
652 extern tree void_ftype_ptr_int_int, string_ftype_ptr_ptr;
653 extern tree int_ftype_string_string, int_ftype_cptr_cptr_sizet;
654 /* Nodes for boolean constants TRUE and FALSE */
655 extern tree boolean_true_node, boolean_false_node;
657 extern tree global_function_decl;
660 extern void except_init_pass_2 PROTO((void));
661 extern void push_handler PROTO((void));
662 extern void pop_handler PROTO((int));
665 extern int flag_local_loop_counter;
666 extern void push_loop_block PROTO((void));
667 extern void pop_loop_block PROTO((void));
668 extern void build_loop_start PROTO((tree));
669 extern void top_loop_end_check PROTO((tree));
670 extern void build_loop_end PROTO((void));
671 extern void build_loop_iterator PROTO((tree, tree, tree, tree, int, int, int));
672 extern void begin_loop_scope PROTO((void));
673 extern void end_loop_scope PROTO((tree));
674 extern void nonvalue_begin_loop_scope PROTO((void));
675 extern void nonvalue_end_loop_scope PROTO((void));
677 extern tree build_enumerator PROTO((tree, tree));
678 extern tree builtin_function PROTO((const char *, tree, enum built_in_function function_, const char *));
679 extern tree c_build_type_variant PROTO((tree, int, int));
680 extern int c_decode_option PROTO((int, char **));
681 extern void c_mark_varargs PROTO((void));
682 extern void clear_parm_order PROTO((void));
683 extern tree combine_parm_decls PROTO((tree, tree, int));
684 extern int complete_array_type PROTO((tree, tree, int));
685 extern void declare_parm_level PROTO((int));
686 extern tree define_label PROTO((char *, int, tree));
687 extern void delete_block PROTO((tree));
688 extern void finish_decl PROTO((tree));
689 extern tree finish_enum PROTO((tree, tree));
690 extern void finish_function PROTO((int));
691 extern tree finish_struct PROTO((tree, tree));
692 extern tree get_parm_decls PROTO((void));
693 extern tree get_parm_info PROTO((int));
694 extern tree getdecls PROTO((void));
695 extern tree gettags PROTO((void));
696 extern int global_bindings_p PROTO((void));
697 extern tree grokfield PROTO((char *, int, tree, tree, tree));
698 extern tree groktypename PROTO((tree));
699 extern tree groktypename_in_parm_context PROTO((tree));
700 extern tree implicitly_declare PROTO((tree));
701 extern void init_decl_processing PROTO((void));
702 extern void insert_block PROTO((tree));
703 extern void keep_next_level PROTO((void));
704 extern int kept_level_p PROTO((void));
705 extern tree lookup_label PROTO((tree));
706 extern tree lookup_name PROTO((tree));
707 extern tree maybe_build_cleanup PROTO((tree));
708 extern void parmlist_tags_warning PROTO((void));
709 extern void pending_xref_error PROTO((void));
710 extern void pop_chill_function_context PROTO((void));
711 extern tree poplevel PROTO((int, int, int));
713 extern void print_lang_decl PROTO((FILE *,tree, int));
714 extern void print_lang_identifier PROTO((FILE *,tree, int));
715 extern void print_lang_type PROTO((FILE *,tree, int));
717 extern void push_chill_function_context PROTO((void));
718 extern void push_parm_decl PROTO((tree));
719 extern tree pushdecl PROTO((tree));
720 extern tree pushdecl_top_level PROTO((tree));
721 extern void pushlevel PROTO((int));
722 extern void set_block PROTO((tree));
723 extern tree shadow_label PROTO((tree));
724 extern void shadow_record_fields PROTO((tree));
725 extern void shadow_tag PROTO((tree));
726 extern void shadow_tag_warned PROTO((tree, int));
727 extern tree start_enum PROTO((tree));
728 extern int start_function PROTO((tree, tree, int));
729 extern tree start_decl PROTO((tree, tree, int));
730 extern tree start_struct PROTO((enum tree_code, tree));
731 extern void store_parm_decls PROTO((void));
732 extern tree xref_tag PROTO((enum tree_code, tree));
735 extern tree build_array_ref PROTO((tree, tree));
736 extern tree build_c_cast PROTO((tree, tree));
737 extern tree build_chill_modify_expr PROTO((tree, tree));
738 extern tree build_chill_component_ref PROTO((tree, tree));
739 extern tree build_component_ref PROTO((tree, tree));
740 extern tree build_compound_expr PROTO((tree));
741 extern tree build_conditional_expr PROTO((tree, tree, tree));
742 extern tree build_function_call PROTO((tree, tree));
743 extern tree build_indirect_ref PROTO((tree, char *));
744 extern tree build_modify_expr PROTO((tree, enum tree_code, tree));
745 extern tree build_unary_op PROTO((enum tree_code, tree, int));
746 extern tree c_alignof PROTO((tree));
747 extern tree c_alignof_expr PROTO((tree));
748 extern void c_expand_asm_operands PROTO((tree, tree, tree, tree, int, char *, int));
749 extern tree c_sizeof PROTO((tree));
750 extern void c_expand_return PROTO((tree));
751 extern tree c_expand_start_case PROTO((tree));
752 extern tree common_type PROTO((tree, tree));
753 extern tree copy_novelty PROTO((tree, tree));
754 extern tree default_conversion PROTO((tree));
755 extern void finish_init PROTO((void));
756 extern tree parser_build_binary_op PROTO((enum tree_code, tree, tree));
757 extern tree pop_init_level PROTO((int));
758 extern void process_init_default PROTO((tree));
759 extern void process_init_element PROTO((tree));
760 extern void push_init_level PROTO((int));
761 extern void really_start_incremental_init PROTO((tree));
762 extern void set_init_index PROTO((tree, tree));
763 extern void set_init_label PROTO((tree));
764 extern void start_init PROTO((tree, tree, int));
765 extern void store_init_value PROTO((tree, tree));
766 extern tree valid_array_index_p PROTO((tree, tree, const char *, int));
768 /* in ch/actions.c */
769 extern int grant_only_flag;
770 extern void allocate_lang_decl PROTO((tree));
771 extern tree build_chill_abs PROTO((tree));
772 extern tree build_chill_array_ref_1 PROTO((tree, tree));
773 extern tree build_chill_array_ref PROTO((tree, tree));
774 extern tree build_chill_bin_type PROTO((tree));
775 extern tree build_chill_binary_op PROTO((enum chill_tree_code, tree, tree));
776 extern tree build_chill_card PROTO((tree));
777 extern tree build_chill_case_expr PROTO((tree, tree, tree));
778 extern tree build_cause_exception PROTO((tree, int));
779 extern tree build_chill_exception_decl PROTO((const char *));
780 extern tree build_chill_function_call PROTO((tree, tree));
781 extern tree build_chill_length PROTO((tree));
782 extern tree build_chill_indirect_ref PROTO((tree, tree, int));
783 extern tree build_chill_lower PROTO((tree));
784 extern tree build_chill_max PROTO((tree));
785 extern tree build_chill_min PROTO((tree));
786 extern tree build_chill_num PROTO((tree));
787 extern tree build_chill_repetition_op PROTO((tree, tree));
788 extern tree build_chill_sizeof PROTO((tree));
789 extern tree build_chill_slice PROTO((tree, tree, tree));
790 extern tree build_chill_slice_with_range PROTO((tree, tree, tree));
791 extern tree build_chill_slice_with_length PROTO((tree, tree, tree));
792 extern tree build_chill_struct_type PROTO((tree));
793 extern tree build_chill_unary_op PROTO((enum chill_tree_code, tree));
794 extern tree build_chill_upper PROTO((tree));
795 extern tree build_exception_variant PROTO((tree, tree));
796 extern tree build_generalized_call PROTO((tree, tree));
797 extern tree build_lang_decl PROTO((enum chill_tree_code, tree, tree));
798 extern tree build_rts_call PROTO((const char *, tree, tree));
799 extern tree build_varying_struct PROTO((tree));
800 extern void chill_check_decl PROTO((tree));
801 extern tree chill_convert_for_assignment PROTO((tree, tree, const char *));
802 extern void chill_expand_return PROTO((tree, int));
803 extern void chill_expand_result PROTO((tree, int));
804 extern void chill_handle_case_default PROTO((void));
805 extern void chill_handle_case_label PROTO((tree, tree));
806 extern int chill_varying_string_type_p PROTO((tree));
807 extern int chill_varying_type_p PROTO((tree));
808 extern int ch_singleton_set PROTO((tree));
809 extern tree check_expression PROTO((tree, tree, tree));
810 extern void check_missing_cases PROTO((tree));
811 extern tree check_non_null PROTO((tree));
812 extern tree check_range PROTO((tree, tree, tree,tree));
813 extern void cond_type_range_exception PROTO((tree));
814 extern void expand_cause_exception PROTO((tree));
815 extern tree finish_chill_binary_op PROTO((tree));
816 extern tree finish_chill_unary_op PROTO((tree));
817 extern tree high_domain_value PROTO((tree));
818 extern tree low_domain_value PROTO((tree));
819 extern tree maybe_array_ref PROTO((tree, tree));
820 extern void maybe_chill_check_decl PROTO((tree));
821 extern tree powersetlen PROTO((tree));
822 extern tree test_range PROTO((tree, tree, tree));
823 /* in ch/convert.c */
824 extern tree build_array_type_for_scalar PROTO((tree));
825 extern tree convert PROTO((tree, tree));
826 extern tree convert_from_reference PROTO((tree));
827 extern tree convert_to_class PROTO((ch_class, tree));
828 extern const char *display_int_cst PROTO((tree));
831 extern tree build_enumerator PROTO((tree, tree));
832 extern tree chill_munge_params PROTO((tree, tree, tree));
833 extern tree build_chill_function_type PROTO((tree, tree, tree, tree));
834 extern tree decl_temp1 PROTO((tree, tree, int, tree, int, int));
835 extern void do_based_decls PROTO((tree, tree, tree));
836 extern void do_chill_outparms PROTO((void));
837 extern tree do_decl PROTO((tree, tree, int, int, tree, int));
838 extern void do_decls PROTO((tree, tree, int, int, tree, int));
839 extern void expand_chill_outparms PROTO((void));
840 extern void find_granted_decls PROTO((void));
841 extern void finish_chill_function PROTO((void));
842 extern tree finish_enum PROTO((tree, tree));
843 extern void fixup_chill_parms PROTO((tree));
844 extern void finish_outer_function PROTO((void));
845 extern unsigned get_type_precision PROTO((tree, tree));
846 extern tree grok_chill_fixedfields PROTO((tree, tree, tree));
847 extern tree grok_chill_variantdefs PROTO((tree, tree, tree));
848 extern void layout_enum PROTO((tree));
849 /* extern tree lookup_remembered_decl PROTO((HOST_WIDE_INT, tree)); */
850 extern void lookup_and_expand_goto PROTO((tree));
851 extern tree lookup_tag_fields PROTO((tree, tree));
852 extern void lookup_and_handle_exit PROTO((tree));
853 extern tree massage_param_node PROTO((tree, tree));
854 extern void pop_module PROTO((void));
855 extern void print_mode PROTO((tree));
856 extern tree push_extern_function PROTO((tree, tree, tree, tree, int));
857 extern void push_extern_process PROTO((tree, tree, tree, int));
858 extern void push_extern_signal PROTO((tree, tree, tree));
859 extern void push_granted PROTO((tree, tree));
860 extern tree push_modedef PROTO((tree, tree, int));
861 extern tree push_module PROTO((tree, int));
862 extern void push_parms PROTO((tree, tree, tree));
863 extern void push_syndecl PROTO((tree, tree, tree));
864 extern int result_never_set;
865 extern void save_expr_under_name PROTO((tree, tree));
866 extern tree set_module_name PROTO((tree));
867 extern int start_chill_function PROTO((tree, tree, tree, tree, tree));
868 extern void start_outer_function PROTO((void));
869 extern void switch_to_pass_2 PROTO((void));
872 extern void chill_check_no_handlers PROTO((void));
873 extern void chill_finish_on PROTO((void));
874 extern void chill_handle_on_labels PROTO((tree));
875 extern void chill_reraise_exceptions PROTO((tree));
876 extern void chill_start_default_handler PROTO((void));
877 extern void chill_start_on PROTO((void));
878 extern void expand_goto_except_cleanup PROTO((int));
879 extern int is_handled PROTO((tree));
882 extern tree build_chill_addr_expr PROTO((tree, const char *));
883 extern tree build_chill_arrow_expr PROTO((tree, int));
884 extern tree build_component_ref PROTO((tree, tree));
885 extern tree build_chill_compound_expr PROTO((tree));
886 extern tree build_chill_descr PROTO((tree));
887 extern void build_chill_descr_type PROTO((void));
888 extern void build_chill_inttime_type PROTO((void));
889 extern tree build_compare_expr PROTO((enum tree_code,
891 extern tree build_compare_discrete_expr PROTO((enum tree_code,
893 extern tree check_case_selector PROTO((tree));
894 extern tree check_case_selector_list PROTO((tree));
895 extern tree check_have_mode PROTO((tree, const char *));
896 extern void init_chill_expand PROTO((void));
897 extern void chill_expand_assignment PROTO((tree, enum chill_tree_code, tree));
898 extern void expand_assignment_action PROTO((tree, enum chill_tree_code, tree));
899 extern int compare_int_csts PROTO((enum chill_tree_code,
901 extern void expand_varying_length_assignment PROTO((tree, tree));
902 extern tree force_addr_of PROTO((tree));
903 extern tree resolve_component_ref PROTO((tree));
904 extern tree truthvalue_conversion PROTO((tree));
905 extern tree varying_to_slice PROTO((tree));
908 extern void chill_finish_compile PROTO((void));
909 extern void chill_seize PROTO((tree, tree, tree));
910 extern void start_outer_function PROTO((void));
911 extern void finish_chill_seize PROTO((tree));
912 extern void chill_grant PROTO((tree,tree, tree, tree));
913 extern void set_default_grant_file PROTO((void));
914 extern void set_identifier_size PROTO((int));
915 extern void write_grant_file PROTO((void));
916 extern void write_spec_module PROTO((tree, tree));
919 extern tree string_index_type_dummy;
920 extern tree integer_minus_one_node;
921 extern int flag_old_strings;
922 extern void GNU_xref_begin PROTO((void));
923 extern void GNU_xref_end PROTO((void));
924 extern tree build_chill_array_type PROTO((tree, tree, int, tree));
925 extern tree build_chill_struct_type PROTO((tree));
926 extern tree build_chill_pointer_type PROTO((tree));
927 extern tree build_chill_range_type PROTO((tree, tree, tree));
928 extern tree build_chill_reference_type PROTO((tree));
929 extern tree build_simple_array_type PROTO((tree, tree, tree));
930 extern tree const_expr PROTO((tree));
931 extern tree get_identifier3 PROTO((const char *, const char *, const char *));
932 extern tree layout_chill_array_type PROTO((tree));
933 extern tree layout_chill_range_type PROTO((tree, int));
934 extern tree layout_chill_pointer_type PROTO((tree));
935 extern tree layout_chill_struct_type PROTO((tree));
936 extern tree layout_chill_variants PROTO((tree));
937 extern tree layout_powerset_type PROTO((tree));
938 extern tree lookup_interface PROTO((tree));
939 extern tree maybe_building_objc_message_expr PROTO((void));
940 extern void maybe_objc_check_decl PROTO((tree));
941 extern int maybe_objc_comptypes PROTO((tree, tree));
942 extern int recognize_objc_keyword PROTO((void));
945 extern tree use_seizefile_name;
946 extern tree current_seizefile_name;
947 extern tree build_chill_string PROTO((int, const char *));
948 extern int check_newline PROTO((void));
949 extern tree get_chill_filename PROTO((void));
950 extern tree get_chill_linenumber PROTO((void));
951 extern void register_seize_path PROTO((const char *));
952 extern void reinit_parse_for_function PROTO((void));
953 extern void mark_use_seizefile_written PROTO((tree));
956 extern void begin_chill_loop PROTO((tree, tree));
957 extern tree build_chill_iterator PROTO((tree, tree, tree, int, int, int));
958 extern void end_chill_loop PROTO((void));
959 extern tree get_unique_identifier PROTO((const char *));
962 extern tree access_recordmode PROTO((tree));
963 extern void invalidate_access_recordmode PROTO((tree));
964 extern tree access_indexmode PROTO((tree));
965 extern tree access_dynamic PROTO((tree));
966 extern tree association_init_value;
967 extern tree association_type_node;
968 extern tree build_access_mode PROTO((tree, tree, int));
969 extern tree build_chill_associate PROTO((tree, tree, tree));
970 extern tree build_chill_connect PROTO((tree, tree, tree, tree));
971 extern tree build_chill_create PROTO((tree));
972 extern tree build_chill_delete PROTO((tree));
973 extern tree build_chill_disconnect PROTO((tree));
974 extern tree build_chill_dissociate PROTO((tree));
975 extern tree build_chill_eoln PROTO((tree));
976 extern tree build_chill_existing PROTO((tree));
977 extern tree build_chill_gettextaccess PROTO((tree));
978 extern tree build_chill_getassociation PROTO((tree));
979 extern tree build_chill_gettextindex PROTO((tree));
980 extern tree build_chill_gettextrecord PROTO((tree));
981 extern tree build_chill_getusage PROTO((tree));
982 extern tree build_chill_indexable PROTO((tree));
983 extern tree build_chill_isassociated PROTO((tree));
984 extern tree build_chill_modify PROTO((tree, tree));
985 extern tree build_chill_outoffile PROTO((tree));
986 extern tree build_chill_readable PROTO((tree));
987 extern tree build_chill_readrecord PROTO((tree, tree));
988 extern tree build_chill_readtext PROTO((tree, tree));
989 extern tree build_chill_sequencible PROTO((tree));
990 extern tree build_chill_settextaccess PROTO((tree, tree));
991 extern tree build_chill_settextindex PROTO((tree, tree));
992 extern tree build_chill_settextrecord PROTO((tree, tree));
993 extern tree build_chill_variable PROTO((tree));
994 extern tree build_chill_writeable PROTO((tree));
995 extern tree build_chill_writerecord PROTO((tree, tree));
996 extern tree build_chill_writetext PROTO((tree, tree));
997 extern void build_enum_tables PROTO((void));
998 extern tree build_text_mode PROTO((tree, tree, int));
999 extern tree check_text_length PROTO((tree));
1000 extern void init_access_location PROTO((tree, tree));
1001 extern void init_text_location PROTO((tree, tree));
1002 extern void inout_init PROTO((void));
1003 extern tree text_dynamic PROTO((tree));
1004 extern tree text_indexmode PROTO((tree));
1005 extern tree text_length PROTO((tree));
1006 extern tree usage_type_node;
1007 extern tree where_type_node;
1010 extern tree get_type_of PROTO((tree));
1011 extern void set_yydebug PROTO((int));
1012 extern void yyerror PROTO((char *));
1014 extern int ignoring;
1015 extern int seen_action;
1016 extern int build_constructor;
1017 extern void possibly_define_exit_label PROTO((tree));
1018 extern void to_global_binding_level PROTO((void));
1020 /* in ch/satisfy.c */
1021 extern tree satisfy_decl PROTO((tree, int));
1023 /* in ch/tasking.c */
1024 extern void add_taskstuff_to_list PROTO((tree, const char *, tree, tree, tree));
1025 extern void process_buffer_decls PROTO((tree, tree, int));
1026 extern tree buffer_element_mode PROTO((tree));
1027 extern void invalidate_buffer_element_mode PROTO((tree));
1028 extern tree build_buffer_descriptor PROTO((tree, tree, tree));
1029 extern tree build_buffer_type PROTO((tree, tree));
1030 extern void build_delay_action PROTO((tree, tree));
1031 extern tree build_delay_case_start PROTO((tree, tree));
1032 extern void build_delay_case_end PROTO((tree));
1033 extern void build_delay_case_label PROTO((tree, int));
1034 extern tree build_event_type PROTO((tree));
1035 extern void build_receive_case_end PROTO((tree, tree));
1036 extern int build_receive_case_if_generated PROTO((void));
1037 extern tree build_receive_case_label PROTO((tree, tree));
1038 extern tree build_receive_case_start PROTO((tree));
1039 extern void expand_continue_event PROTO((tree));
1040 extern void expand_send_buffer PROTO((tree, tree, tree, tree, tree));
1041 extern void expand_send_signal PROTO((tree, tree, tree, tree, tree));
1042 extern void build_start_process PROTO((tree, tree, tree, tree));
1043 extern tree build_copy_number PROTO((tree));
1044 extern tree build_gen_code PROTO((tree));
1045 extern tree build_gen_inst PROTO((tree, tree));
1046 extern tree build_gen_ptype PROTO((tree));
1047 extern void build_instance_type PROTO((void));
1048 extern tree build_process_header PROTO((tree, tree));
1049 extern void build_process_wrapper PROTO((tree, tree));
1050 extern tree build_proc_type PROTO((tree));
1051 extern tree build_queue_length PROTO((tree));
1052 extern tree build_signal_descriptor PROTO((tree, tree));
1053 extern tree build_signal_struct_type PROTO((tree, tree, tree));
1054 extern tree build_tasking_struct PROTO((void));
1055 extern tree chill_taskingcode_type_node;
1056 extern tree check_queue_size PROTO((tree));
1057 extern tree generate_tasking_code_variable PROTO((tree, tree *, int));
1058 extern tree get_signal_type_name PROTO((tree));
1059 extern tree get_struct_type_name PROTO((tree));
1060 extern tree get_tasking_code_name PROTO((tree));
1061 extern tree make_process_struct PROTO((tree, tree));
1062 extern tree make_signal_struct PROTO((tree));
1063 extern tree max_queue_size PROTO((tree));
1064 extern void tasking_init PROTO((void));
1065 extern void tasking_registry PROTO((void));
1066 extern void tasking_setup PROTO((void));
1068 /* in ch/timing.c */
1069 extern tree abs_timing_type_node;
1070 extern tree after_stack;
1071 extern void build_after_end PROTO((void));
1072 extern void build_after_start PROTO((tree, int));
1073 extern void build_after_timeout_start PROTO((void));
1074 extern void build_at_action PROTO((tree));
1075 extern void build_cycle_end PROTO((tree));
1076 extern tree build_cycle_start PROTO((tree));
1077 extern tree build_timeout_preface PROTO((void));
1078 extern void build_timesupervised_call PROTO((tree, tree));
1079 extern tree duration_timing_type_node;
1080 extern void timing_init PROTO((void));
1083 extern tree build_alias_decl PROTO((tree, tree, tree));
1084 extern tree build_bitstring_type PROTO((tree));
1085 extern tree build_powerset_type PROTO((tree));
1086 extern tree build_string_type PROTO((tree, tree));
1087 extern tree decl_check_rename PROTO((tree, tree));
1088 extern tree discrete_count PROTO((tree));
1089 extern int list_length PROTO((tree));
1090 extern tree munge_exit_label PROTO((tree));
1091 extern tree save_if_needed PROTO((tree));
1093 /* in ch/typeck.c */
1094 extern tree build_array_from_set PROTO((tree));
1095 extern tree build_chill_array_ref PROTO((tree, tree));
1096 extern tree build_chill_bitref PROTO((tree, tree));
1097 extern tree build_chill_cast PROTO((tree, tree));
1098 extern tree chill_equivalent PROTO((tree, tree, struct mode_chain*));
1099 extern tree build_init_struct PROTO((void));
1100 extern tree build_readonly_type PROTO((tree));
1101 extern int chill_compatible PROTO((tree, tree));
1102 extern int chill_compatible_classes PROTO((tree, tree));
1103 extern ch_class chill_expr_class PROTO((tree));
1104 extern tree chill_give_type_to_expr PROTO((tree, tree));
1105 extern tree chill_expand_tuple PROTO((tree, tree));
1106 extern ch_class chill_expr_class PROTO((tree));
1107 extern int chill_location PROTO((tree));
1108 extern tree chill_max_vary_array_index PROTO((tree));
1109 extern int chill_read_compatible PROTO((tree, tree));
1110 extern int chill_referable PROTO((tree));
1111 extern tree chill_root_mode PROTO((tree));
1112 extern ch_class chill_resulting_class PROTO((ch_class, ch_class));
1113 extern tree chill_resulting_mode PROTO((tree, tree));
1114 extern int chill_similar PROTO((tree, tree, struct mode_chain*));
1115 extern int discrete_type_p PROTO((tree));
1116 extern tree initializer_constant_valid_p PROTO((tree, tree));
1117 extern tree convert_to_discrete PROTO((tree));
1118 extern tree smash_dummy_type PROTO((tree));
1119 extern tree string_assignment_condition PROTO((tree, tree));
1120 extern tree type_for_mode PROTO((enum machine_mode, int));
1121 extern tree type_for_size PROTO((unsigned, int));
1122 extern int valid_array_index PROTO((tree, tree));
1123 extern void validate_varying_array_ref PROTO((tree, tree));
1126 extern void expand_function_end PROTO((char *, int, int));
1127 extern void expand_function_start PROTO((tree, int));
1128 extern void init_function_start PROTO((tree, char *, int));
1129 extern void pop_function_context PROTO((void));
1130 extern void push_function_context PROTO((void));
1132 /* in integrate.c */
1133 extern void output_inline_function PROTO((tree));
1136 extern void remember_end_note PROTO((tree));
1139 extern void announce_function PROTO((tree));
1140 extern int floor_log2_wide PROTO((unsigned HOST_WIDE_INT));
1141 extern void rest_of_compilation PROTO((tree));
1144 extern void make_function_rtl PROTO((tree));
1147 extern void init_iterators PROTO((void));
1148 extern int mark_addressable PROTO((tree));
1149 extern tree chill_result_decl;
1151 extern rtx label_rtx PROTO((tree));
1153 extern void permanent_allocation PROTO((int));
1155 #ifndef SET_WORD_SIZE
1156 #define SET_WORD_SIZE BITS_PER_WORD
1161 struct module *next_module; /* Next module, in order of their beginning. */
1162 struct module *prev_module; /* The surrounding module, if any. */
1164 tree prefix_name; /* Usually same as name, expect for nested modules.
1165 Used to generate DECL_ASSEMBLER_NAMEs. */
1166 /* procedure_seen indicates a procedure or process was declared.
1167 After this, no SEIZE, DCL, SYN, NEWMODE, SYNMODE statement is allowed */
1171 /* The value of current_nesting_level inside the module. */
1174 /* A chain contain one ALIAS_DECL for each 'GRANT foo->bar'.
1175 The DECL_NAME is get_identifier("bar"), and the DECL_INITIAL
1176 is get_identifier("bar"). Only used in pass 1. */
1180 extern struct module *current_module;
1182 /* fold a tree to constant as much as possible */
1183 extern tree deep_fold PROTO((tree));
1185 extern const char * const gnuchill_version;