Change HANDLE_PRAGMA macro so that it supports USE_CPPLIB
[official-gcc.git] / gcc / ch / ChangeLog
blobff424696a4b437a95612647701d3a27791730be4
1 Wed Sep 02 09:25:29 1998  Nick Clifton  <nickc@cygnus.com>
3         * lex.c (check_newline):  Change how HANDLE_PRAGMA is called.
4         Generate warning messages if unknown pragmas are encountered.
5         (pragma_getc): New function: retrieves characters from the
6         input stream.  Defined when HANDLE_PRAGMA is defined.
7         (pragma_ungetc): New function: replaces characters back into the
8         input stream.  Defined when HANDLE_PRAGMA is defined.
10 Mon Aug 31 15:35:16 1998  Dave Brolley  <brolley@cygnus.com>
12         * decl.c (layout_chill_variants): Calculate nlables properly.
14 Mon Jul 27 17:21:01 1998  Dave Brolley  <brolley@cygnus.com>
16         * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
17         element type.
19 Mon Jul 13 14:20:12 1998  Nick Clifton  <nickc@cygnus.com>
21         * lang-options.h: Format changed to match changes in gcc/toplev.c
22         to implement a --help option.
24 Wed Jul  8 02:58:35 1998  Jeffrey A Law  (law@cygnus.com)
26         * lang.c (lang_init_options): New function.
28 Wed Jun 10 12:08:09 1998  Dave Brolley  <brolley@cygnus.com>
30         * lang-options.h: Remove -I.
31         * ch-tree.h (c_decode_option): New argc/argv interface.
32         * decl.c (c_decode_option): New argc/argv interface.
33         * lang.c (lang_decode_option):  New argc/argv interface.
35 Wed May 27 10:33:41 1998  Dave Brolley  <brolley@cygnus.com>
37         * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
38         chill_handle_multi_case_label_range were reversed.
40         * Make-lang.in (chill): Use the correct gcc in the driver script.
42 Thu May 21 14:40:44 1998  Dave Brolley  <brolley@cygnus.com>
44         * convert.c (digest_array_tuple): Move conversion to
45         chill_convert_for_assignment.
47         * actions.c (chill_convert_for_assignment): Allow conversion of array
48         constructor to bitstring constructor for assignment to array of packed bits.
50 Thu May 14 13:57:51 1998  Dave Brolley  <brolley@cygnus.com>
52         * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
54 Wed May 13 14:07:51 1998  Dave Brolley  <brolley@cygnus.com>
56         * typeck.c (build_chill_slice): Adjust slice index to account for the
57         lower bound of the array.
59         * actions.c (chill_expand_assignment): Convert function arguments to the
60         correct types.
61         (chill_expand_assignment): Ditto.
63 Mon May 11 16:20:57 1998  Dave Brolley  <brolley@cygnus.com>
65         * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
66         of the array_type to the slice_type.
67         (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
68         of bits.
70         * loop.c (build_loop_iterator): Disallow location enumeration for
71         bit-packed arrays.
73         * convert.c (digest_array_tuple): Allow conversion of an array tuple
74         to a bitstring for assignment to a packed array of bits.
76 Mon May  4 16:28:58 1998  Dave Brolley  <brolley@cygnus.com>
78         * ch-tree.def (PACKED_ARRAY_REF): New tree code.
79         * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
80         (chill_location): Handle PACKED_ARRAY_REF.
81         (apply_chill_array_layout): Allow PACK for arrays of single bits.
82         * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
83         (invalid_operand): Check PACKED_ARRAY_REF operands.
84         * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
86 Thu Apr 23 15:33:20 1998  Dave Brolley  <brolley@cygnus.com>
88         * typeck.c (apply_chill_field_layout): Only integral fields can be packed
89         to the bit level.
91 Tue Apr 21 14:30:10 1998  Jeffrey A Law  (law@cygnus.com)
93         * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
94         (init_decl_processing): Handle TI types.
95         * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
96         (type_for_size): Handle TI types.
97         (type_for_mode): Handle TI types.
99 Mon Apr 20 13:12:26 1998  Dave Brolley  <brolley@cygnus.com>
101         * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
102         int.
104         * actions.c (chill_convert_for_assignment): Check that the rhs is not
105         a type declaration.
107 Tue Apr 14 13:17:44 1998  Dave Brolley  <brolley@cygnus.com>
109         * lex.c (init_parse): Now returns char* containing the filename.
111         * typeck.c (get_type_precision): Declare.
112         (apply_chill_field_layout): Use the minimum number of bits necessary to
113         represent discrete types as the natural length of the field.
115 Thu Apr  9 12:46:55 1998  Dave Brolley  <brolley@cygnus.com>
117         * lex.c (finput): Move definition here from toplev.c
118         (init_parse): New function replaces init_lex.
119         (init_parse): Add code to open source file.
120         (finish_parse): New function.
121         (close_input_file): File was being closed more than once.
123         * lang.c (finput): Declare.
124         * ch-tree.h (init_lex): Remove.
125         
127 Wed Apr  8 14:47:33 1998  Dave Brolley  <brolley@cygnus.com>
129         * actions.c (compute_else_range): Fix loop index error.
130         (chill_handle_multi_case_label_range): Move error checking to
131         chill_handle_multi_case_label.
132         (chill_handle_multi_case_else_label): Convert ELSE range values to
133         the type of the corrersponding CASE selector.
135 Wed Apr  8 13:02:50 1998  Jeffrey A Law  (law@cygnus.com)
137         * actions.c (sizetype_tab): Do not declare.
138         * lang.c (lang_print_xnode): New function.
140 Mon Mar 23 14:43:06 1998  Dave Brolley  <brolley@cygnus.com>
142         * grant.c (decode_layout): New function.
143         (grant_array_type): Call decode_layout to export layout information to
144         the grant file.
145         (decode_decl): Ditto
147 Fri Mar 20 16:06:41 1998  Dave Brolley  <brolley@cygnus.com>
149         * parse.c (parse_tuple_element): Call had arguments in wrong order.
151 Thu Mar 19 13:42:33 1998  Dave Brolley  <brolley@cygnus.com>
153         * typeck.c (apply_chill_array_layout): Use
154         TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
155         the word size.
157 Wed Mar 18 16:25:48 1998  Dave Brolley  <brolley@cygnus.com>
159         * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
160         fields.
162         * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
163         proper places.
165 Tue Mar 17 14:16:08 1998  Dave Brolley  <brolley@cygnus.com>
167         * parse.c (gen_label_rtx): Declare before use.
168         (emit_jump): Declare before use.
169         (emit_label): Declare before use.
170         (parse_case_label_list): Pass in CASE selector so we can mark it as having
171         an (ELSE) label if necessary.
172         (parse_case_label_specification): Pass in the CASE selector list so that
173         the CASE selectors can be passed to parse_case_label_list.
174         (parse_multi_dimension_case_action): Modify to generate branching code in
175         one pass.
176         (parse_case_expression): Compute (ELSE) range before generating CASE expression.
177         (parse_variant_alternative): Remove error for (ELSE) specified.
179         * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
181         * decl.c (layout_chill_variants): Add code to check compatibility of ranges
182         and discrete mode names.
184         * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
186         * actions.h (build_multi_case_selector_expression): Make it extern.
187         (chill_handle_multi_dimension_case_label): Remove.
188         (compute_else_ranges): New function.
190         * actions.c (update_else_range_for_int_const): New function.
191         (update_else_range_for_range): New function.
192         (update_else_range_for_range_expr): New function.
193         (update_else_range_for_type): New function.
194         (compute_else_range): New function.
195         (compute_else_ranges): New function.
196         (chill_handle_multi_case_else_label): New function
197         (chill_handle_multi_case_label_range): Don't generate tests for conditions
198         which are always true or false.
199         (chill_handle_multi_case_label): Ditto.
200         (chill_handle_multi_case_label): Implement (ELSE) label support.
201         (chill_handle_multi_case_label): First argument is now the selector tree not
202         its VALUE.
203         (chill_handle_multi_dimension_case_label): Removed.
204         (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
205         reversed on entry, so reverse it here.
207 Tue Mar 10 15:02:26 1998  Dave Brolley  <brolley@cygnus.com>
209         * actions.c (chill_handle_multi_case_label_range): Add more error checking.
210         (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
211         (chill_handle_multi_case_label): Improve Error handling.
213 Mon Mar  9 12:39:00 1998  Dave Brolley  <brolley@cygnus.com>
215         * actions.c (chill_handle_multi_case_label_range): Added.
216         (chill_handle_multi_case_label): Add support for discrete ranges and
217         discrete modes.
219         * typeck.c (apply_chill_array_layout): Added more error checking.
220         (apply_chill_field_layout): Added more error checking.
222 Wed Mar  4 16:08:26 1998  Dave Brolley  <brolley@cygnus.com>
224         * convert.c (convert): Call build_simple_array_type with new argument.
226         * ch-tree.h(build_simple_array_type): Add argument for array layout.
228         * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
229         (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
230         (apply_chill_array_layout): New function to implement array layout.
231         (layout_chill_array_type): Call apply_chill_array_layout and reset
232         TYPE_ATTRIBUTES to NULL_TREE.
233         (build_chill_array_type): Extend to handle one array layout per index mode.
234         (smash_dummy_type): Call build_simple_array_type with new argument.
236         * satisfy.c (satisfy): Call SATISFY on array layout tree.
238 Wed Feb 25 14:36:41 1998  Dave Brolley  <brolley@cygnus.com>
240         * typeck.c (next_struct_offset): Added.
241         (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
242         or POS layout to a structure field.
243         (layout_chill_struct_type): Add call to apply_chill_field_layout.
245         * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
246         in the field layout tree.
248         * parse.c (pack_warn_printed): Remove.
249         (nopack_warn_printed): Remove.
250         (step_warn_printed): Remove.
251         (pos_warn_printed): Remove.
252         (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
254         * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
255         field declarations.
257 Thu Feb 19 17:33:06 1998  Dave Brolley  <brolley@cygnus.com>
259         * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
260         (parse_opt_mode): Removed incorrect comment about association of array
261         layouts with nested array elements.
262         (parse_opt_mode): Allow for one layout per index mode specified.
264 Wed Feb 18 23:48:57 1998  Richard Henderson  <rth@cygnus.com>
266         * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependancy. 
268 Wed Feb 18 17:35:05 1998  Dave Brolley  <brolley@cygnus.com>
270         * parse.c (parse_field): Get rid of warning for multiple case selectors.
272         * decl.c (layout_chill_variants): Fix loop indexing error.
273         
274 Mon Feb 16 15:54:47 1998  Dave Brolley  <brolley@cygnus.com>
276         * parse.c (parse_case_expression): Remove code which checked for
277         unimplemented (ELSE) label.
278         (parse_case_expression): Add code to handle multi dimensional case
279         expression.
281         * expr.c (check_case_selector_list): Fixed to return a list of the
282         selectors which were checked.
283         (chill_expand_case_expr): Remove "sorry" message for multi dimension
284         case.
285         (chill_expand_case_expr): Reverse order of case alternatives.
286         (chill_expand_case_expr): Add "error" message for multiple case
287         selectors.
289         * actions.h (build_chill_multi_dimension_case_expr): Added.
291         * actions.c (build_multi_case_selector_expression): Renamed from
292         build_multi_case_expression.
293         (chill_handle_multi_dimension_case_label): Call above function by its
294         new name.
295         (build_chill_case_expr): Don't reverse the list elements here. It may
296         not be necessary.
297         (build_chill_multi_dimension_case_expr): New function implements multi
298         dimensional case expression.
300 Thu Feb 12 15:44:50 1998  Dave Brolley  <brolley@cygnus.com>
302         * parse.c (parse_case_action): Implement multi-dimension CASE action.
303         (parse_multi_dimension_case_action): Added.
304         (parse_single_dimension_case_action): Added based on code moved from
305         parse_case_action.
307         * expr.c (check_case_selector_list): Added.
309         * ch-tree.h (check_case_selector_list): Added.
311         * actions.h (chill_handle_single_dimension_case_label): Added.
312         (chill_handle_multi_dimension_case_label): Added.
314         * actions.c (chill_handle_single_dimension_case_label): Added.
315         (chill_handle_multi_case_label): Added.
316         (chill_handle_multi_case_label_list): Added.
317         (build_multi_case_expression): Added.
318         (chill_handle_multi_dimension_case_label): Added
320 Fri Feb  6 16:43:41 1998  Dave Brolley  <brolley@cygnus.com>
322         * actions.c (sizetype_tab): Fix declaration to match gcc changes.
324 Thu Feb  5 14:03:00 1998  Dave Brolley  <brolley@cygnus.com>
326         * decl.c (chill_tree_code_type):  Change this to be an array of char like
327         the tree_code_type in the rest of gcc.
329         * ch-tree.def (chill_tree_code_type): See decl.c.
331 Thu Jan 29 15:34:18 1998  Dave Brolley  <brolley@cygnus.com>
333         * tasking.c (error_with_decl): Correct prototype.
334         (build_gen_ptype): Reverse arguments.
336         * lang.c (chill_real_input_filename): Add definition.
337         (chill_print_error_function): Correct second argument.
338         (lang_init): Set chill_real_input_filename.
340         * expr.c (NULL): Protect definition with #ifndef.
342         * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
343         (init_decl_processing): Change last argument to 'sizeof(char)'.
344         
346 Tue Nov 25 10:44:19 1997  Nick Clifton  <nickc@cygnus.com>
348         * Make-lang.in (mostlyclean): Use && to seperate commands, so that 
349         if the directory change fails, the rule will not loop.
351 Mon Mar  3 12:08:19 1997  Fred Fish  <fnf@cygnus.com>
353         * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
354         spaces and use single tab character on some lines.
355         (cc1chill): Ditto.
357 Tue Nov 26 05:12:40 1996  Wilfried Moser  <moser@rtl.cygnus.com>
359         * tasking.c (build_receive_buffer_case_label): Rework in a manner,
360         that the buffer location gets evaluated only once, in
361         build_receive_buffer_case_end. 
363         * typeck.c (build_chill_bin_type): Rework.
364         (layout_chill_range_type): Process BIN mode.
365         (build_chill_array_type): Remove checking of layout. This is done
366         at the parse.
368         * parse.c (parse_on_exception_list): Don't allow ON name:.
369         (parse_opt_layout): Parse POS and STEP and return a tree instead
370         of int.
372         * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
374         * grant.c (print_integer_type): Take care of BIN.
376         * expr.c (build_chill_descr): Make descr static if requested
377         location is static.
378         (build_chill_length): Process text mode name and text location as
379         described in Z.200/1992.
380         (build_compare_expr): Don't allow < <= > >= for composite modes.
382         * decl.c (grok_chill_fixedfields): Remove checking of
383         layout. This is done at the parser.
385         * convert.c (digest_structure_tuple): Take care of wrong (probably
386         array) tuple. Printing error may cause sigsegv.
388         * ch-tree.h: Change prototypes of grok_chill_fixedfields and
389         build_chill_array_type (layout is passed now as a tree instead of
390         int).
392 Fri Nov 15 15:17:44 1996  Per Bothner  <bothner@deneb.cygnus.com>
394         * convert.c (display_int_cst):  Check that val is INTEGER_CST.
395         (digest_array_tuple):  Some extra error checks (i.e. that indexes
396         are constant).  If dynamic mode, result is not constant.
398 Mon Oct 28 12:48:06 1996  Jeffrey A Law  (law@cygnus.com)
400         * typeck.c (signed_or_unsigned_type): If the given type already
401         as the correct signedness, then just return it.
403         * typeck.c ({un,}signed_type): If can't do anything, call
404         signed_or_unsigned_type.
406 Fri Sep  6 02:50:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
408         * typeck.c (build_chill_cast): In case of rangecheck, take care of 
409         constant expression (when defining a SYN).
411 Thu Sep  5 04:30:32 1996  Wilfried Moser  <moser@rtl.cygnus.com>
413         * parse.c (define__PROCNAME__): New function to define a SYNONYM
414         __PROCNAME__ (__procname__) which is a character string containing
415         the name of the current procedure. This is quit the same as 
416         __FUNCTION__ in C.
417         (parse_proc_body): Add call to define__PROCNAME__.
419         * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
420         modes on one side and procedures on the other side..
422 Wed Jul 24 01:13:51 1996  Wilfried Moser  <moser@rtl.cygnus.com>
424         * typeck.c: Replace all local variables and arguments named `index'
425         with `idx', `index' gets replaced by `strchr' which makes debugging
426         somehow difficult.
427         (valid_array_index_p): New argument to indicate that we are processing
428         LENGTH (varying string) on the lefthand side of an assignment. The
429         index check is different in this case.
430         (build_chill_cast): In case of expression conversion do an OVERFLOW
431         check with the limits of the target mode.
433         * ch-tree.h: New prototype for valid_array_index_p.
435         * actions.c (expand_varying_length_assignment): Add new argument to
436         call to valid_array_index_p to indicate we are processing
437         LENGTH on the lefthand side of an assignment.
439         * loop.c: Rename loop_stack to loopstack to avoid clashes with
440         global variable ../stmt.c:loop_stack.
442 Tue Jun 18 23:04:06 1996  Per Bothner  <bothner@deneb.cygnus.com>
444         * expr.c (resolve_component_ref):  Set TREE_SIDE_EFFECTS properly.
446 Mon Jun 10 15:01:51 1996  Per Bothner  <bothner@deneb.cygnus.com>
448         * typeck.c (build_chill_reference_type):  Copy novelty for reference.
449         * satisfy.c (satisfy):  If REFERENCE_TYPE, copy novelty.
451 Thu May 30 04:55:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
453         * typeck.c (valid_array_index_p): For varying character strings
454         we must check if the index is less then the actual length instead
455         of less equal.
457 Wed May 15 06:07:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
459         * ch-tree.h: Add prototype for test_range.
461         * inout.c (process_io_list): Fix duplicate function call if
462         writetext argument is a function returning a varying string.
464 Tue May 14 21:08:47 1996  Per Bothner  <bothner@deneb.cygnus.com>
466         Re-do string comparisons.  Old way could re-use temporary
467         (SAVE_EXPR created for an argumnet is variable) prematurely.
468         * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR):  New codes.
469         * decl.c (init_decl_processing):  Remove __eqstring, __gestring,
470         __gtstring, __lestring, __ltstring, __nestring declarations.
471         * expr.c (build_char_array_expr):  Rename to build_compare_string_expr.
472         Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
473         (chill_expand_expr):    Implement STRING_EQ_EXPR, STRING_LT_EXPR.
474         (build_compare_expr):  Use new build_char_array_expr name.
476 Mon Apr  8 14:08:30 1996  Per Bothner  <bothner@kalessin.cygnus.com>
478         Cleanup of April 5 fix:
479         * actions.c (test_range):  New function.
480         (check_range):  Simplify to use test_range.
481         * convert.c (digest_powerset_tuple):  Move error message from here ...
482         (check_ps_range):  ... to here.  Also, simplify to use test_range.
484 Fri Apr  5 03:41:05 1996  Wilfried Moser  <moser@rtl.cygnus.com>
486         * convert.c (check_ps_range): New function to perform range check
487         of powerset tuple elements. This is quite the same as check_range,
488         however, the actions on rangefail are different.
489         (digest_powerset_tuple): Call check_ps_range.
491         * loop.c (build_loop_iterator): Chaeck if location enumeration
492         is requested for BOOLS(n) and print an error message.
494 Wed Mar  6 17:46:48 1996  Per Bothner  <bothner@kalessin.cygnus.com>
496         * parse.c (parse_primval):  Emit error if !ignore (before: pass==2).
498         Implement parameterised array and string modes (using LANG_TYPE).
499         * parse.c (parse_opt_mode):  Handle parameterized arrays and strings.
500         * grant.c (decode_mode):  Support extended use of LANG_TYPE.
501         * satisfy.c (cycle_error_print):  Ignore non-decls in chain.
502         (safe_satisfy_decl):  No error if non-decl (pointer type) in cycle.
503         (satisfy):  Return immediately if laid out non-pointer type.
504         (satisfy case LANG_TYPE):  Handle paramertised mode.
505         (satisfy case POINTER_TYPE/REFERENCE_TYPE):  Push type on chain;
506         return immediately if already in chain.
507         * typeck.c (smash_dummy_type):  Handle parameterized modes and CHAR(N).
508         Change return type (can now return error_mark_node).
509         (build_readonly_type):  Return return value from smash_dummy_type.
510         * ch-tree.h:  Change smash_dummy_type return type.
512 Tue Mar  5 22:31:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
514         * typeck.c (build_chill_slice):  Re-do index_type calculation.
515         * typeck.c (layout_chill_range_type):  Use compare_int_csts rather
516         than tree_int_cst_lt to avoid signed/unsigned problems.
518         * typeck.c (copy_novelty):  Use copy_node rather than build_type_node.
519         * typeck.c (smash_dummy_type):  Use copy_novelty for NEWMODE of range.
521         * decl.c (init_decl_processing): More portable sizetype initialization.
523         * tree.c (build_string_type):  Generalize to also create bitstrings.
524         Return error_mark_node if an argument is an ERROR_MARK.
525         (build_bitstring_type):  Simplify - just call build_string_type.
527 Tue Mar  5 03:48:32 1996  Wilfried Moser  <moser@blues.cygnus.com>
529         * actions.c (warn_unhandled): Add missing assignment.
531         * loop.c (build_loop_iterator): In case of IN, check if
532         expression has a mode, otherwise make an error.
534 Mon Mar  4 23:12:03 1996  Per Bothner  <bothner@kalessin.cygnus.com>
536         *  convert.c (digest_powerset_tuple):  Check tuple elements
537         for compatibility;  if compatible, call convert.
539 Thu Feb 29 23:39:54 1996  Per Bothner  <bothner@kalessin.cygnus.com>
541         Simplify NOVELTY representation.
542         * ch-tree.h (CH_NOVELTY):  Re-implement as plain TYPE_CONTEXT.
543         (CH_NOVELTY_FLAG):  Removed.  (Just use CH_NOVELTY.)
544         * decl.c (push_modedef):  Make copy even for SYNMODE.
545         but not for internal typedefs (indicated by make_newmode==-1).
546         * tasking.c:  Call push_modedef with make_newmode==-1.
547         * typeck.c (chill_novelty):  Remove.
548         (smash_dummy_type):  Removed unused event/buffer stuff.  Update.
549         * grant.c (decode_decl), inout.c (build_io_types),
550         expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
551         tasking.c (build_instance_type):  Simplify using new CH_NOVELTY.
553         Solidify READ mode handling.
554         * decl.c (do_decl, push_syndecl, start_chill_function):
555         Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
556         * typeck.c (build_chill_slice):  Set TREE_READONLY appropriately.
557         (build_chill_array_ref_1, build_chill_bitref):  Likewise.
558         (build_chill_cast):  Set TREE_READONLY depending on result type (only).
559         * convert (convert_from_reference, convert):  Likewise.
560         * expr.c (resolve_component_ref):  Set TREE_READONLY appropriately.
561         (build_chill_function_call):  Error if OUT/INOUT arg is TREE_READONLY.
562         * actions.c (chill_expand_assignment):  Also error if TREE_READONLY.
563         Use convert_from_reference.
564         
565 Thu Feb 29 11:14:09 1996  Per Bothner  <bothner@kalessin.cygnus.com>
567         * parse.c (parse_do_action):  DO WITH expressions are evaluated in
568         outer scope.  Also call save_if_needed.
569         * decl.c (shadow_record_fields);  Fix and simplify.
571 Tue Feb 27 22:19:40 1996  Per Bothner  <bothner@cygnus.com>
573         * convert.c (display_int_cst):  Gereralize to wider range of ints.
575 Thu Feb 22 06:12:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
577         * convert.c (digest_array_tuple): Take care of type == error_mark_node.
579         * decl.c (do_decl): In case of chill_varying_type_p, check if
580         type of fixed part is error mark and do nothing in this case.
582         * lex.c (convert_bitstring): Don't complain when length of
583         bitstring is 0 (BOOLS(0) is a valid mode).
585         * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
586         (domain) is error mark.
588         * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
589         error_mark_node, just return.
591 Tue Feb 20 00:01:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
593         * parse.c (parse_variant_alternative): When checking for ELSE take
594         care of tagless variants.
596 Mon Feb 19 05:54:45 1996  Wilfried Moser  <moser@rtl.cygnus.com>
598         * parse.c (parse_case_action): Check if ELSE was specified
599         in a case label list (this is only valid for array tuples).
600         (parse_case_expression): Deto.
601         (parse_variant_alternative): Deto.
603 Tue Feb 13 17:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
605         * typeck.c (chill_location):  Cleanup.  Neither SLICE_EXPR nor
606         BIT_FIELD_REF are referable, even if their base strings are.
608 Fri Feb  9 02:25:33 1996  Wilfried Moser  <moser@rtl.cygnus.com>
610         * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
611         checking the expression.
613         * convert.c (convert): Set TREE_CONSTANT when taking the
614         address of a function.
616         * decl.c (start_chill_function): Check if the mode is really
617         a mode to avoid subsequent segfaults.
619         * typeck.c (string_assignment_condition): Add checking of
620         bitstring length.
622 Thu Feb  8 01:37:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
624         * actions.c (build_cause_exception): Print warning of unhandled
625         exception only once for each exception.
627 Mon Feb  5 22:17:13 1996  Per Bothner  <bothner@kalessin.cygnus.com>
629         * tree.c (discrete_count), ch-tree.h:  New function.
630         * expr.c (build_concate_expr, build_chill_repetition_op,
631         chill_expand_expr):  Use discrete_count;  make sure arguments
632         to size_binop are sizetype.
633         (powersetlen):  Trvialize using discrete_count.
635         * inout.c (process_io_list):  Use new assign_temp function.
636         * inout.c (build_enum_tables):  Avoid taking address of array_ref,
637         which sometimes gets optimized to a constant.
639         * expr.c (finish_chill_unary_op):  Call convert_to_class on argument.
640         Remove some obsolete TREE_UNSIGNED stuff.
641         * lex.c (convert_integer):  Removed more TREE_UNSIGNED stuff.
643 Thu Feb  1 15:11:20 1996  Doug Evans  <dje@charmed.cygnus.com>
645         * lex.c (check_newline): Return result of HANDLE_PRAGMA.
647 Wed Jan 31 17:13:25 1996  Per Bothner  <bothner@kalessin.cygnus.com>
649         * decl.c (char_array_type_node, wchar_array_type_node):  Removed.
650         (init_decl_processing):  Remove array_domain_type;  don't set
651         char_array_type_node or wchar_array_type_node.
652         * decl.c (init_decl_processing):  Use fixup_unsigned_type to
653         simplify code to create boolean_type_node and char_type_node.
655 Mon Jan 29 14:20:10 1996  Doug Evans  <dje@charmed.cygnus.com>
657         * lex.c (check_newline): Pass character after `#pragma' to
658         HANDLE_PRAGMA.  Don't call get_directive_line if at end of line.
660 Fri Jan 26 05:56:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
662         * expr.c (build_chill_function_call): Add check and error for
663         actual argument is a TYPE_DECL.
665         * parse.c (parse_set_mode): Print a warning if the set mode contains
666         numbered and unnumbered set elements.
668 Wed Jan 24 05:10:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
670         * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
672         * decl.c (layout_enum): Add check for negative values if
673         enum is numbered and duplicate values in an enum. 
675 Mon Jan 15 06:21:52 1996  Wilfried Moser  <moser@rtl.cygnus.com>
677         * actions.c (chill_expand_assignment): Add check for lefthand side
678         of an assignment is a location.
680         * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
681         not "concat_expr".
683         * expr.c (is_really_instance): New function to check if a datum
684         is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
685         for this case.
686         (build_chill_component_ref): call is_really_instance.
688 Wed Jan 10 13:47:14 1996  Per Bothner  <bothner@kalessin.cygnus.com>
690         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  Removed;  now in ../tree.h.
692 Mon Jan  8 15:29:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
694         * expr.c (build_char_array_expr):  Add save_if_needed's if varying.
695         Also, remove unused len0 and len1.
697 Mon Dec 11 17:36:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
699         * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
700         build_chill_getassociation, build_chill_getusage,
701         build_chill_gettextrecord,  build_chill_gettextaccess:  Simplify
702         - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
704         * parse.c (parse_action):  Minor simplification.
706 Thu Dec  7 00:02:47 1995  Wilfried Moser  <moser@rtl.cygnus.com>
708         * parse.c (parse_action): In case of CALL, do a check if there
709         is really a function call.
711 Tue Dec  5 05:06:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
713         * convert.c (display_int_cst): Fix printing of control sequence.
715 Thu Nov 30 21:07:57 1995  Per Bothner  <bothner@kalessin.cygnus.com>
717         * grant.c (decode_constant, decode_constant_selective):  Make work
718         for REAL_IS_NOT_DOUBLE case.
720         * decl.c (CHILL_INT_IS_SHORT):  New macro.
721         (init_decl_processing):  Use CHILL_INT_IS_SHORT.
722         Change name of integer_type_node from _cint to long.
724 Mon Nov 27 17:07:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
726         * loop.c (top_loop_end_check):  Check while condition *after*
727         getting next powerset element.
729 Mon Nov 27 05:29:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
731         * parse.c (parse_receive_case_action): Fix typo in error message.
733         * convert.c (display_int_cst): Format characters like strings in
734         grant.c(decode_constant).
736         * grant.c: Remove the old forbid stuff.
738         * lex.c (readstring): Fix reading of '^^'.
740         * parse.c (parse_procedure_mode): nreverse param_types.
742 Thu Nov 23 05:39:57 1995  Wilfried Moser  <moser@rtl.cygnus.com>
744         * actions.c (chill_expand_assignment): Check for assigning to
745         location with non-value mode.
747         * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
748         Add new and change some prototypes.
750         * decl.c (init_nonvalue_struct): New function to generate
751         initialisation code for non-value structs.
752         (init_nonvalue_array): New function to generate initialisation
753         code for non-value array's.
754         (do_decl): Call one of the above mentioned functions in case
755         we have a mode with the non-value property.
756         (start_chill_function): Print error message if a non-value mode
757         gets returned without LOC and check for arguments of non-value
758         modes only gets passed by LOC.
760         * grant.c (print_proc_tail): Fix for procedure returning LOC.
762         * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
763         association_type_node.
764         (invalidate_access_recordmode): New function to set the
765         record mode of an ACCESS to error_mark_node in case of
766         record mode has the non-value property.
767         (build_text_mode): Set CH_TYPE_NONNVALUE_P.
768         (build_access_mode, build_chill_gettextaccess): Deto.
769         (check_exprlist): Correct processing of repetition factor.
771         * lex.c (readstring): Correct processing of control
772         sequences of the form '^([H | D | O | B]'xx)'.
774         * loop.c: Cleanup iterator handling (done by Per).
775         (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
776         functions for starting and ending a loop scope in case
777         of initialising an array with non-value property.
779         * parse.c (check_end_label): Remove '\n' from error message.
780         (parse_loc_declaration): Print error in case of loc-identity
781         declaration without initialisation or with keyword INIT.
782         (parse_do_action): Clean up iterator handling (done by Per).
784         * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
785         message in case of TYPE_DECL is a signal and the mode has the
786         non-value property.
787         (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
788         the array type if the array element mode has the non-value
789         property.
790         (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
791         type if one of the fields have the non-value property. If the
792         record is a buffer mode and the element mode of the buffer has
793         the non-value-p., invalidate it (see
794         tasking.c (invalidate_buffer_element_mode). Same for access modes.
796         * tasking.c (build_signal_descriptor): If the signal type have
797         the non-value property, do nothing.
798         (build_receive_signal_case_label): Don't do an assignment if the
799         signal type have the non-value property.
800         (build_receive_buffer_case_label): Add check for buffer element
801         mode is ERROR_MARK.
802         (expand_send_buffer): Deto.
803         (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
804         (invalidate_buffer_element_mode): New function to set type of
805         buffer element mode to error_mark_node.
806         (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
808 Wed Nov 15 13:26:20 1995  Jeffrey A Law  (law@cygnus.com)
810         * inout.c (intsize_of_charsexpr): Move declaration to top
811         of file to avoid error from solaris2.5 cc.
813 Thu Nov  9 02:50:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
815         * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
816         mode, temporarily reset maximum_field_alignment to 0 before
817         layouting it to be compatible with the runtime library.
819         * inout.c (build_chill_gettextaccess): Deto.
821 Mon Nov  6 04:12:06 1995  Wilfried Moser  <moser@rtl.cygnus.com>
823         * decl.c (do_decl): If type is READonly, add check if an
824         ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
825         and print an error if this is true. Variables of this modes
826         may not be declared READonly.
827         Add check for mode is one of the above and an init value was
828         given. This is also not allowed.
829         Add initialisation of variables of the above modes during
830         runtime. This influence the mechanism for detecting to
831         build a constructor. 
832         (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
833         BUFFER, and EVENT mode must not be READonly.
834         (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
835         TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
836         (declare_predefined_file): Move to inout.c.
837         (init_decl_processing): Add definitions for new built-in's.
838         (finish_outer_function): Build a constructor only if
839         build_constructor is set.
841         * except.c: On Linux native, setjmp is __setjmp.
843         * expr.c (build_chill_component_ref): New function. It gets called
844         from parse.c instead of build_component_ref. Functions checks if the
845         user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
846         EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
847         (build_chill_floatcall): New function to resolve CHILL's floating
848         point builtin calls (SIN, COS, TAN, etc.).
849         (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
850         build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
851         GETSTACK, and TERMINATE built-in's.
852         (build_generalized_call): Process new built-in's.
854         * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
855         (decode_mode_selective): deto.
857         * inout.c: Completely rewritten for implementing Chapter 7 of
858         Z.200 (input and output).
859         
860         * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
861         parsing numbers.
863         * lex.h (enum rid): Add RID_ASSOCIATION.
865         * parse.c: New flag build_constructor to indicate if a constructor
866         should be generated at the end of compilation or not. See
867         decl.c(do_decl).
868         (parse_begin_end_block): Don't emit a line note.
869         (parse_primval): Call build_chill_component_ref instead of
870         build_component_ref.
871         (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
872         modes, USAGE modes, WHERE modes.
874         * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
875         ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
876         (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
878         * typeck.c (extract_constant_from_buffer): Fix thinko in case 
879         of ! BYTES_BIG_ENDIAN.
880         (build_chill_cast): Implement representation conversion between
881         INT's and REAL's.
882         (chill_similar): Add check of ACCESSes.
883         (layout_chill_range_type): Check for real ranges and print
884         sorry message.
886         * Make-lang.in: Change compiler version.
887         chill also depends on Makefile.
889         * chill.in: Process command line option -Xlinker like -Tdata.
891         * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
892         CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
893         Add some prototypes.
894         (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
895         BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT. 
896         Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
898         * gperf, hash.h: Remove definition of WHERE.
899         
900 Thu Oct  5 06:22:19 1995  Wilfried Moser  <moser@rtl.cygnus.com>
902         * grant.c (decode_constant_selective): Add some newlines
903         to generated SPEC MODULE.
905 Wed Oct  4 18:16:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
907         * decl.c (pop_chill_function_context):  Remove some bogosity.
909 Wed Oct  4 05:14:00 1995  Wilfried Moser  <moser@rtl.cygnus.com>
911         * grant.c (print_integer_selective): In case of a RANGE of
912         a SET mode, try to find and grant the parent mode.
913         (grant_seized_identifier): Dont write it out, if the identifier
914         doesn't have a seize file (it may come from a SPEC MODULE
915         defined in the compilation unit).
917 Fri Sep 22 14:04:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
919         * actions.c (check_non_null):  Wrap expr in SAVE_EXPR if needed.
921 Wed Sep 20 13:51:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
923         * expr.c (force_addr_of):  Optimize an INDIRECT_REF using
924         convert_to_pointer rather than convert (which in case of
925         a REFERENCE_TYPE would losingly call convert_from_reference).
927 Wed Sep 20 04:03:58 1995  Wilfried Moser  <moser@rtl.cygnus.com>
929         * inout.c (build_chill_writetext): In case of character string:
930         Add processing of a concatenation including varying character
931         strings.
932         (intsize_of_charsexpr, get_max_size): New functions to determine
933         the maximum size of varying character strings.
935         * grant.c (decode_constant, decode_constant_selective): Add
936         processing of COMPONENT_REF.
938         * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
939         for SYNONYM's with STRUCT mode.
941 Mon Sep 18 17:25:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
943         * expr.c (force_addr_of):  Optimize of value is INDIRECT_REF.
944         * typeck.c (build_chill_slice):  Call mark_addressable.
946 Mon Sep 18 14:38:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
948         * expr.c (chill_expand_expr):  Make a copy before calling __psslice
949         if the array is neither referable nor BLKmode.
950         (build_set_expr):  Renamed to ...
951         (build_compare_set_expr):  Allow one opperand to be boolean.
952         (build_compare_expr):  Check both operands for SET_EXPR,
953         before checking for discrete types (for -fold-strings).
955 Fri Sep 15 11:35:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
957         * satisfy.c (safe_satisfy_decl):  For a CONST_DECL, set TREE_TYPE
958         to error_mark_node or error.
960 Fri Sep 15 00:26:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
962         * grant.c (decode_constant_selective): Add processing of
963         TREE_OPERAND (val, 0).
965 Wed Sep 13 14:24:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
967         * ch-tree.h (CH_IS_INSTANCE_MODE):  Redefine to use CH_SIMILAR.
968         * convert.c (convert):  Use CH_IS_INSTANCE_MODE.
969         * inout.c (build_chill_writetext):  Likewise.
970         * tasking.c (build_receive_case_start, build_delay_case_start):  Ditto.
971         * parse.c (parse_start_action):  Remove redundant tests.
972         * tasking.c (build_start_process):  Also test that optset is instance.
973         (build_copy_number, build_proc_type, expand_send_signal):  Use
974         CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
975         * actions.c, convert.c (instance_type_node):  Remove redundant
976         extern declaration.
977         
978 Wed Sep 13 14:19:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
980         * regression.awk2:  Use \ line-continuation-markers
981         to remove gratuitous gawk dependency.
983 Mon Sep 11 17:26:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
985         * typeck.c (build_chill_modify_expr):  Use force_addr_of.
986         (mark_addressable):  Handle INDIRECT_REF of ADDR_EXPR.
988         * typeck.c (check_case_value), ch-tree.h:  Moved to ...
989         * actions.c (check_case_value):  ... here.  Also check for
990         compatibility with selector (which is passed as extra argument).
991         (chill_handle_case_label_range):  Take selector argument,
992         and use it to call check_case_value.
993         (chill_handle_case_label):  Take extra selector argument.
994         * ch-tree.h (chill_handle_case_labe):  Add prototype.
995         * except.c expr.c, parse.c:  Remove chill_handle_case_label prototypes.
996         * actions.c, except.c, expr.c, parse.c: Pass extra selector
997         argument to function calls as needed.
999 Mon Aug 28 02:47:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1001         * grant.c (decode_constant_selective): Fix a bug in writing items
1002         to grant file.
1004 Thu Aug 24 04:52:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1006         * parse.c (parse_case_expression): Print warning only in
1007         pass 1.
1009         * actions.c (print_missing_cases): Correct printing of
1010         character ranges.
1012 Wed Aug 23 15:26:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1014         * parse.c (parse_case_label_list):  Take extra parameter to
1015         indicate if we're parsing a tuple or a case-label-spec.
1016         If former, don't allow '(' EXPR ')' ',' but backup instead.
1017         (parse_case_label_specification, parse_tuple_element):
1018         Pass appropriate new argument to parse_case_label_list.
1020 Wed Aug 23 06:08:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1022         * inout.c (build_chill_readtext): Add processing of BOOL's and
1023         CHARS(n).
1025         * grant.c (decode_constant): Process nonprintable characters
1026         in a STRING_CST.
1028 Fri Aug 11 15:26:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1030         * except.c (initialize_exceptions):  Name setjmp "setjmp" and not
1031         "__builtin_setjmp" (which is not recognized by expand_call).
1033 Wed Aug  9 23:35:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1035         * loop.c (end_loop_scope):  Need to call kept_level_p,
1036         in argument to poplevel.
1038 Wed Aug  9 05:48:30 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1040         * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
1041         file might be empty). Install chill.install instead.
1043 Tue Aug  8 21:46:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1045         * loop.c (end_loop_scope):  Do poplevel *after* expand_end_bindings.
1047 Tue Aug  8 00:51:09 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1049         * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
1050         of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
1052         * decl.c (start_chill_function): Likewise ...
1054 Mon Aug  7 18:35:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1056         * tasking.c (build_process_wrapper):  Also set DECL_ASSEMBLER_NAME
1057         of PARM_DECL, since otherwise dbxout_symbol_name may barf.
1059 Mon Jul 31 14:32:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1061         * loop.c:  Re-written implementation of powerset iteration.
1062         (declare_temps):  iter_var is now integer index into bitstring,
1063         and powerset_temp just uses save_expr (normally needs no temp).
1064         (top_loop_end_check):  Pass index to start searching (from iter_var)
1065         to library function, instead of dependning on latter to clear old bits.
1066         (increment_temps):  UNless DOWN, increment iter_var.
1067         * decl.c (init_decl_processing):  Declare new types for
1068         __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
1070 Mon Jul 31 12:47:28 1995  Per Bothner  <bothner@cygnus.com>
1072         * convert.c (digest_array_tuple):  Set TREE_STATIC if possible.
1074 Fri Jul 28 05:11:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1076         * lex.c (readstring): Process integer literals starting with
1077         H', D', or B' within a control sequence.
1079 Thu Jul 27 23:08:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1081         * parse.c (parse_do_action):  Don't call push_action, but defer
1082         push_handler until begin_loop_scope.
1083         Call parse_opt_handler here, to move handler scope inside loop block.
1084         (parse_action):  After do_action, nothing to do now.
1085         * loop.c (begin_loop_scope):  Also call push_handler here.
1086         (declare_temps):  Copy derived flag to user_var.
1087         (declare_temps):  For POWERSET, always copy to temporary (even if
1088         constant), since the runtime clears bits from it.
1090         * expr.c (build_chill_sizeof):  Use convert_to_class.
1091         * satisfy.c (safe_satisfy_decl):  Cleanup handling of CONST_DECL -
1092         set proper value of CH_DECL_FLAG on both the decl and its value.
1094         * convert.c (digest_array_tuple); Slightly better errors.
1095         
1096 Wed Jul 26 22:13:39 1995  Per Bothner  <bothner@cygnus.com>
1098         * expr.c (expand_packed_set):  Also allocate the CONSTRUCTOR itself.
1099         (fold_set_expr):  Simplify accordingly.
1100         (build_concat_expr):  Constant fold bitstring CONCAT_EXPRs.
1102 Thu Jul 13 12:21:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1104         * typeck.c (build_chill_slice):  Use build1 instead of build.
1105         * typeck.c (xtract_constant_from_buffer):  Pass correct precision
1106         to lshift_double.
1108         * typeck.c (expand_constant_to_buffer):  Handle RANGE_EXPR index.
1109         * convert.c (digest_array_tuple):  Generate RANGE_EXPR as index
1110         for tuples with ranges.
1112 Thu Jun 29 23:41:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1114         * typeck.c (build_chill_slice):  Re-implement to use casts
1115         instead of build_chill_array_ref_1 (which doesn't always work).
1116         * convert.c (convert):  Remove old bugs code.
1118 Tue Jun 27 05:00:04 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1120         * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
1121         expression so that a possible handler at the if action will
1122         be found.
1123         (parse_proc_body): New argument to indicate if the function
1124         raises exceptions or not. In case the function will raise
1125         exception: start a handler, parse the function and generate
1126         code for reraising the exceptions (call chill_reraise_exceptions).
1128         * except.c (chill_reraise_exceptions): New function to generate
1129         code for reraising exceptions are specified at the function 
1130         definition.
1131         
1132         * ch-tree.h: Add prototype for chill_reraise_exceptions.
1134         * decl.c (build_chill_function_type): When the function (type)
1135         raise an exception, generate two new arguments (additional to the
1136         formal parameters), the filename and linenumber of the caller.
1137         (start_chill_function): likewise...
1139         * expr.c (build_chill_function_call): If the called function raises
1140         exceptions, give current filename and linnumber as aditional
1141         arguments.
1143         * actions.c (build_cause_exception): Handle case when function
1144         propagates the exception.
1146         * grant.c (print_proc_tail, print_proc_tail_selective): If the
1147         function(type) raises exceptions, don't process the last to
1148         parmeters of the formal argument list, they are compiler
1149         generated.
1151         * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
1152         the exception lists are equal.
1154 Thu Jun 22 19:27:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1156         * loop.c (flag_local_loop_counter):  Change default to 1.
1157         (end_loop_scope):  Set 'keep' parameter in poplevel call.
1158         (declare)_temps):  Don't set IDENTIFIER_LOCAL_VALUE, since that
1159         is handled (correctly!) by pushdecl.
1160         (begin_loop_scope):  Call pushlevel here,
1161         * parse.c (parse_do_action):  Move pushlevel so only called for WITH.
1162         * decl.c (struct scope):  Remove n_incomplete field and its uses.
1163         (pushdecl):  Re-write to use proclaim_decl.  Remove old C-isms.
1164         (init_decl_processing):  Re-name integer_type_node as "_cint" to
1165         remove complaint from pushdecl about chill_integer_type_node as "int".
1167 Tue Jun 20 18:15:58 1995  Doug Evans  <dje@canuck.cygnus.com>
1169         * Make-lang.in (chill-runtime): Restore patch to disable building of
1170         runtime libraries for cross compilers.  This patch should remain
1171         until a build of a freshly checked out devo "just works".
1173 Mon Jun 19 06:01:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1175         * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
1177         * decl.c (init_decl_processing): Remove builtin function
1178         __cause_exception. New builtin functions __cause_ex1 and
1179         __unhandled_ex.
1181         * except.c (is_handled): Return 0 when no handler found,
1182         1, if the handler is in local scope and 2, if function
1183         may propagate the exception.
1185         * actions.c (build_cause_exception): New argument to
1186         indicate if a warning should be printed when
1187         causing an unhandled exception. Call is_handled here.
1189         * ch-tree.h: Change prototype for build_cause_exception.
1190         New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
1191         identifier already has been written to grant file.
1193         * grant.c (write_spec_module): If not GRANT ALL specified,
1194         write only this identifiers to grant file which are
1195         neccessary to form a prober grant file. This will shorten
1196         grant files and speed up compilation.
1197         (decode_constant_selective, decode_mode_selective,
1198         get_type_selective, decode_decl_selective,
1199         grant_array_type_selective, get_tag_value_selective,
1200         print_enumeral_selective, print_integer_selective, 
1201         print_struct_selective, print_proc_tail_selective,
1202         grant_one_decl_selective): New functions.
1204         * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
1205         directives to grant file.
1207         * parse.c (parse_on_exception_list): Fis constructing of
1208         exceptions list.
1210 Wed Jun 14 15:21:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1212         * typeck.c (valid_array_index_p):  Check for syntax error, where
1213         index is a mode, rather than a value.
1215         * expr.c (build_chill_binary_op_1):  Remove unused function.
1217 Sat Jun 10 11:36:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1219         * except.c (is_handled):  New function.
1220         Various fixes here and there to make it work.
1222         * parse.c (parse_param_name_list):  Set DECL_ASSEMBLER_NAME.
1223         (Otherwise dbxout may crash.)
1225         * satisfy.c (satisfy case FUNCTION_TYPE):  Check for non-type result.
1226         * decl.c (start_chill_function):  If result type was error_mark,
1227         kludge type chill_os result_decl to avoid extra errors.
1228         * actions.c (chill_expand_result, chill_expand_return):  If type of
1229         chill_result_decl is error_mark, do nothing.
1231         * typeck.c (chill_similar): Fix thinko in recent change.
1233         * config-lang.in (diff_exclude):  Remove ch/lex.c - now it's a
1234         true source file, and is never longer generated with [f]lex.
1236         * regression.sh:  Pass -s to make clean (to make it silent).
1237         Explicitly call gawk, instead of depending of '#!' to work.
1238         Add --objdir flags.  Never send mail to bill.
1240 Thu Jun  8 15:08:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1242         * typeck.c (chill_similar):  Add extra parameter.  Use to to prevent
1243         infinite recursion.
1244         (chill_equivalent, chill_l_equivalent):  Also add new parameter.
1245         * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT):  Modify to match.
1247 Tue Jun  6 17:14:49 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1249         * loop.c (declare_temps):  If -flocal-loop-counter, make sure to
1250         pushdecl the new variable (created with decl_temp1).
1251         And fix the type of the local variable for powerset iteration.
1253 Tue Jun  6 15:07:19 1995  Per Bothner  <bothner@cygnus.com>
1255         * typeck.c (mark_addressable):  Handle ADDR_EXPR inside
1256         NOP_EXPR inside INDIRECT_EXPR.  For TRUTH_ANDIF_EXPR,
1257         TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
1258         (which is used for range-checks and suchlike).
1260 Thu Jun  1 02:45:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1262         * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
1263         GE_EXPR (don't do invert_truthvalue, just switch operands).
1265 Wed May 31 14:00:38 1995  Doug Evans  <dje@canuck.cygnus.com>
1267         * lang-options.h: New file.
1268         * lang-specs.h: New file.
1270 Wed May 24 01:45:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1272         * actions.c (assign_stack_temp):  Remove unneeded declaration.
1274 Tue May 23 00:17:38 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1276         * parse.c (parse_on_exception_list):  Return list of exception
1277         names in pass 1, not in pass 2.  (Return non-NULL dummy if pass 2.)
1278         (parse_on_alternatives):  Call chill_handle_on_labels even if ignoring.
1279         (parse_opt_handler):  Likewise for chill_start_default_handler.
1280         * except.c (push_handler):  Clear on_alt_list only if pass 1.
1281         (chill_handle_on_labels):  Build on_alt_list in pass 1,
1282         retrieve it in pass 2.
1284         Fix so that decl_temp1 does not expand_decl_init, which calls
1285         free_temp_slots, which loses in the middle on an expression.
1286         * decl.c (finish_decl):  Don't call expand_decl_init.
1287         (do-decl):  Do initialization assignment even if stack variable.
1288         * parse.c (parse_loc_declaration):  Call free_temp_slots.
1290         * decl.c (finish_decl), ch-tree.h:  Remove last two always-NULL
1291         parameters.  Cleanup never-used code.
1292         * decl.c, except.c:  Update calls to finish_decl.
1294         * decl.c (case_else_node):  Define new variable.
1295         (init_decl_processing):  Initialize it.
1296         (make_chill_variants): If variant label is case_else_node (i.e. it
1297         is (ELSE):), treat that as an ELSE variant.
1298         * ch-tree.h (case_else_node):  Declare case_else_node.
1299         * parse.c (parse_case_label):  Use case_else_node.
1301 Mon May 22 10:18:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1303         * grant.c (print_proc_tail):  Also call print_proc_exceptions.
1304         (decode_decl):  Don't explicitly call print_proc_exceptions for
1305         FUNCTION_DECL.
1306         (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
1308         * actions.c (chill_convert_for_assignment):  Use save_if_needed,
1309         instead of save_expr, in case value is a reference.
1311         * typeck.c (build_chill_slice):  Fix old thinko (missing call to
1312         build_pointer_type).
1314         * actions.c (size_int):  Remove unused and conflicting prototype.
1316 Wed May 17 16:23:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1318         * actions.c (chill_convert_for_assignment):  Call save_expr if
1319         range_checking (twice).
1321 Tue May 16 11:33:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1323         * typeck.c (layout_chill_range_type):  Re-organize error checking.
1324         Add extra parameter to indicate if non-constant bounds are allowed.
1325         If bounds are bad, set them to the min_value of the parent.
1326         * ch-tree.h (layout_chill_range_type):  Update declaration.
1327         * satisfy.c (satisfy):    Update call of layout_chill_range_type.
1328         * typeck.c (build_chill_range_type):  Likewise.
1329         * tree.c (build_string_type):  Likewise.
1331 Tue May 16 00:37:51 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1333         * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
1335 Mon May 15 12:54:32 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1337         * satisfy.c (satisfy):  Supress error message for REF <error_mark>.
1338         * decl.c (push_modedef):  Check for TREE_CODE != ERROR_MARK, instead
1339         of against error_mark_node.  (smash_dummy_type can copy error marks.)
1340         (finish_decl):  Simplify C-derived check for incomplete type,
1341         and suppress if it is an ERROR_MARK.
1342         Don't call rest_of_decl_compilation if type is an ERROR_MARK.
1344 Sun May 14 22:52:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1346         * convert.c (convert):  Handle array types with different modes.
1348 Thu May 11 15:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1350         * loop.c (build_loop_iterator):  Handle the case of a non-local
1351         loop counter having reference type.
1353 Thu May 11 07:04:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1355         * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
1356         build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
1357         to avoid erros when assigning to (comparing with) NEWMODEd INT's.
1359 Mon May  8 15:27:16 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1361         * expr.c (build_chill_card):  Do constant folding, if possible.
1362         (build_max_min):  Do constant folding for MIN/MAX of powersets.
1364 Mon May  8 06:57:21 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1366         * expr.c (build_chill_sizeof): Add corect processing of a
1367         SIGNAL definition without data.
1369 Sat May  6 16:27:10 1995  Doug Evans  <dje@canuck.cygnus.com>
1371         * Make-lang.in (maintainer-clean): Renamed from realclean.
1373 Tue May  2 06:16:23 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1375         * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
1376         otherwise "handler stack" will get out of sync.
1378 Mon Apr 24 09:51:07 1995  Per Bothner  <bothner@rtl.cygnus.com>
1380         Fixes to support module-level non-static temporary variables.
1381         * parse.c (parse_loc_declaration):  If all_static_flag and not
1382         resursive, tell do_decls to make new decl static.
1383         * decl.c (do_decl):  Don't use maybe_static function to force static.
1384         (do_decl):  Don't let initialization count as "using" the variable.
1385         (maybe_static):  Removed.
1386         (finish_decl):  Call expand_decl and expand_decl_init if needed
1387         (as it will be for non-static temporaries).
1389 Fri Apr 21 21:02:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1391         * convert.c, expr,c typeck.c (expand_decl):  Remove usused declaration.
1393 Fri Apr 21 02:27:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1395         * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
1396         LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
1397         GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
1399 Thu Apr 20 15:29:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1401         * parse.c (yytext, finput):  Remove unused declarations.
1403         * parse.c (proc_action_level):  New variable.
1404         (parse_proc_body):  New function.  Common code from
1405         parse_procedure_definition and parse_process_definition moved here.
1406         Save, set, and restore proc_action_level from action_nesting_level.
1407         (parse_action case RETURN):  Pass proc_action_level to
1408         expand_goto_except_cleanup.
1410 Thu Apr 20 06:02:20 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1412         * grant.c (really_grant_this): Add processing of LABEL_DECL's
1413         (don't grant them).
1415 Tue Apr 18 18:16:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1417         * lex.c ( convert_bitstring):  Use BYTES_BIG_ENDIAN rather
1418         than BITS_BIG_ENDIAN to layout bits within bitstring.
1419         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
1420         Likewise.
1422 Sun Apr 16 19:55:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1424         * decl.c (finish_chill_function):  If currently global_function_decl,
1425         don't set outer_function to global_function_decl.
1427 Wed Apr 12 22:45:06 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1429         * decl.c (start_chill_function):  Normal functions are nested.
1430         (finish_chill_function):  No longer takes a 'nested' parameter.
1431         Normal functions are nested.
1432         Never call permanent_allocation, since it does little good (all normal
1433         functions are nested), and trashes some things we need.
1434         (finish_outer_function):  Update call to finish_chill_function.
1435         * grant.c (chill_finish_compile):  Likewise.
1436         * tasking.c (build_process_wrapper):  Likewise.
1437         * parse.c (end_function):  Likewise.
1438         * ch-tree.h (finish_chill_function):  Update declaration.
1440         * parse.c (parse_asm_clobbers):  Re-enable.
1441         (expand_asm_operands):  function.
1442         (parse_asm_action):  Re-enable.  Don't do anything in pass 1.
1444         * typeck.c (build_chill_slice):  Do constant folding.
1445         Also, work around problem where expand_expr constant folds ARRAY_REF.
1446         (sort_constructor):  Remove unused function.
1448         * expr.c (chill_expand_expr case CONCAT_EXPR):  Make sure we
1449         emit_block_move if needed with correct size.
1451         * inout.c (build_chill_io_list_type):  Simplify.
1453         * lex.c (check_newline):  Uncomment some dwarf stuff,
1454         which needs get_directive_line, which we no longer have.
1456 Wed Apr  5 16:05:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1458         * Makefile.in (C_OBJS, xcc1chill):  Removed.  We no longer
1459         link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
1461         * expr.c (build_chill_component_ref):  Renamed to build_component_ref.
1462         (chill_truthvalue_conversion):  Renamed to truthvalue_conversion.
1463         * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
1464         typeck.c:  Update accordingly.
1465         * typeck.c (valid_array_index_p):  We only need to save_expr (index)
1466         if we're range-checking.
1467         * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
1468         mark_addressable, initializer_constant_valid_p, check_case_value,
1469         type_for_size, type_for_mode):  New functions, copied from
1470         ../c-common.c and ../c-typeck.c.
1472         * lang.c (incomplete_type_error):  New.  (Was in c-common.o.)
1473         * decl.c (constant_expression_warning):  New.  (Was in c-common.o.)
1475         * lang.c (string_index_type_dummy):  Remove definition from here.
1476         * tree.c (string_index_type_dummy):  Define here instead.
1477         * lang.c (lang_init):  Move init of string_index_type_dummy
1478         (which is too late) from here ...
1479         * decl.c (init_decl_processing): ... to here.
1481         * decl.c (signed_boolean_type_node):  New variable.
1482         (init_decl_processing):  Initialize it.
1484         * parse.c:  Comment out ASM action support, for now.
1486         * loop.c (maybe_skip_loop):  Make return void, not int.
1487         Use build_compare_discrete_expr.
1488         (increment_temps):  Use chill_expand_assignment.
1490 Thu Mar 30 23:28:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1492         * decl.c (do_decl):  If default-initializing variable-length
1493         string to "" (or []), make it lifetime_bound.
1495 Thu Mar 30 02:51:59 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1497         * parse.h, hash.h, gperf: New compiler directives
1498         EMPTY_ON and EMPTY_OFF.
1500         * lex.c: New variables empty_checking and runtime_checking_flag.
1501         (ch_lex_init): Initialize empty_checking and range_checking 
1502         when switching from pass 1 to 2.
1503         (read_directive): Add processing of EMPTY_OFF/ON.
1505         * expr.c (build_chill_indirect_ref): New argument do_empty_check
1506         to indicate if null pointer checking should be done or not.
1507         It's not always necessary to do a null pointer check.
1509         * decl.c (lookup_name): Add argument to call to
1510         build_chill_indirect_ref.
1511         (shadow_record_fields): ...
1512         * parse.c (parse_primval): ...
1513         * tasking.c (build_process_wrapper): ...
1514         (build_receive_buffer_case_label): ...
1516         * ch-tree.h: Change prototype of build_chill_indirect_ref.
1517         Add declaration of runtime_checking_flag and empty_checking.
1519         * actions.c (check_non_null): Do null pointer checking only 
1520         when enabled (empty_checking != 0).
1522 Wed Mar 29 15:18:23 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1524         * actions.c (chill_expand_assignment):  Add 'else' so we don't do
1525         regular assignment in addition to spacial assignment (e.g. for slices).
1527         * ch-tree.h (convert_to_discrete):  Add declaration.
1528         * typeck.c (convert_to_discrete):  New function.
1529         (valid_array_index_p):  Use convert_to_discrete.  Also simplify.
1530         (build_chill_slice):  Say sorry if variable-length bitstring.
1531         (build_chill_slice_with_length):  Re-do bounds check.
1532         * expr.c (check_case_selector):  Re-write to use convert_to_discrete.
1533         (build_chill_num, build_chill_pred_or_succ):  Use convert_to_discrete.
1535         * decl.c (do_decl):  Don't do redundant chill_convert_for_assignment.
1537 Wed Mar 29 00:00:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1539         * expr.c (build_chill_num): need_unsigned have to be set for
1540         characyer strings of length 1 too. Happens when compiling
1541         with -fold-strings and do NUM(a(i)).
1543         * parse.c (parse_loc_declaration): Print error message only
1544         in pass 1.
1545         (parse_mode): Likewise ...
1547         * tasking.c (build_tasking_message_type): Temporarily reset
1548         maximum_field_alignment to get proper aligned temp. variables
1549         gets passed to runtime system.
1551 Tue Mar 28 00:08:06 1995  Per Bothner  <bothner@cygnus.com>
1553         * typeck.c (my_build_array-ref):  Merged into build_chill_array_ref_1.
1554         But don't convert index to integer_type_node.  And we don't need to
1555         check the we're given an array.
1556         * typeck.c (valid_array_index_p):  If flag_old_strings, convert
1557         chars(1) to char and bools(1) to bool before index checking.
1559 Sun Mar 26 22:42:39 1995  Per Bothner  <bothner@cygnus.com>
1561         * ch-tree.h (struct module):  Added next module field.
1562         * decl.c (first_mdoule, next_module):  New global variables.
1563         (switch_to_pass_2):  Re-initialize next_module.
1564         (push_module):  In pass 2, reuse the same module objects from pass 1.
1566         * decl.c (declare_predefined_file):  Set DECL_IN_SYSTEM_HEADER.
1568         * typeck.c (valid_array_index_p):  Do range check on original index,
1569         before we convert to domain type.
1571 Fri Mar 24 11:43:39 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1573         * parse.c (parse_fixed_field):  New function.
1574         (parse_variant_field_list):  New function replaces parse_simple_fields.
1575         (parse_variant_alternative, parse_field):  Update to use new functions.
1576         (parse_field):  Error message if neither CASE nor NAME.
1578         * actions.c (check_non_null):  New function - checks for NULL pointers.
1579         * ch-tree.h (check_non_null):  New declaration.
1580         * tasking.c (expand_send_signal):  Call check_non_null.
1581         * expr.c (build_chill_indirect_ref, build_chill_function_call):  Same.
1582         * lex.h (enum rid):  Add RID_EMPTY.
1583         * lex.c (init_lex):  Initialize ridpointers[RID_EMPTY].
1585         * lex.c (read_directive):  Remove 2 calls of to_global_binding_level
1587 Wed Mar 22 16:36:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1589         * tasking.c (tasking_list):  Change to chain of TREE_VEcs, rather than
1590         chain of (nested) TREE_LIST nodes.
1591         (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
1592         TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE):  New macros.
1593         (tasking_setup, tasking_registry, add_taskstuff_to_list):  Use them.
1595         * ch-tree.h (C_TYPE_FIELDS_READONLY):  Rename to TYPE_FIELDS_READONLY.
1596         (TYPE_READONLY_PROPERTY):  New macro, to match Z.200 concept.
1597         * typeck.c (build_chill_modify_expr):  Don't check for read-only-ness,
1598         since it is redundant for chill_expand_assignment and breaks
1599         reach-bound initialization in do_decl.
1600         (my_build_array_ref):  Simplify by using TYPE_READONLY_PROPERTY.
1601         (layout_chill_array_type):  Set TYPE_FIELDS_READONLY if appropriate.
1602         * actions.c (chill_expand_assignment):  Check TYPE_READONLY_PROPERTY
1603         instead of TREE_READONLY of the target's type.
1604         * expr.c (build_chill_function_call):  Likewise.
1605         * inout.c (build_chill_readtext):  Likewise.
1606         * decl.c (do_decl):  Likewise, to check if init is required.
1608         * typeck.c (build_chill_bitref):  Removed unused RANGE_EXPR hack.
1610 Wed Mar 22 07:52:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1612         * tasking.c (build_start_process): Get a unique identifier for
1613         the start arguments.
1615 Tue Mar 21 07:36:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1617         * expr.c (fold_set_expr): At label build_result: Add setting unused
1618         bits to 0. This is the same as the runtime library does.
1620         * parse.c (expect): Function returns now int, 0, if the expected
1621         token was not got, 1 when it was found.
1622         (parse_synonym_definition): In case of syntax error (missing =),
1623         set expr to NULL_TREE and mode to error_mark to avoid subsequent
1624         segfaults.
1626         * chill.texi: Add chapter about differences to Z.200/1988.
1628 Mon Mar 20 18:01:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1630         * lang.c (chill_print_error_function):  New function, to report
1631         module name if not inside a function.
1632         (lang_init):  Set print_error_function to chill_print_error_function.
1634         * tasking.c (max_queue_size, buffer_element_mode):  Cleanup
1635         to remove unreachable code.
1637         * grant.c (chill_finish_compile):  Avoid doing a lookup_name
1638         to find init function (which got broken by recent nesting re-org).
1640         * decl.c (poplevel):  Push and pop function context around
1641         call to output_inline_function (as done for C and C++).
1643 Thu Mar 16 17:56:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1645         * parse.c (parse_pass_1_2):  If unknown top-level token, skip pass 2.
1647 Wed Mar  8 13:54:33 1995  Doug Evans  <dje@canuck.cygnus.com>
1649         * Make-lang.in (chill-runtime): Temporarily disable building of
1650         runtime libraries for cross compilers.
1652 Mon Mar  6 23:36:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1654         * parse.c, decl.c:  Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
1656         * configure:  Merge in tolerance for new flags (e.g. --x-libraries).
1658 Sat Mar  4 15:47:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1660         * expr.c (build_chill_arrow_expr):  Error if pass == 1.
1662 Thu Mar  2 19:28:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1664         * decl.c (do_decl):  Setting seen_action must be done in pass 1.
1665         (save_decl):  Don't set DECL_CONTEXT to global_function_decl.
1666         (start_chill_function):  Simplify due to above change.
1668         * parse.c (parse_case_label):  Hack to distinguish (ELSE) from (*).
1669         * grant.c (decode_constant):  Emit ELSE in case label.
1671         * parse.c (serious_errors):  New global variable.
1672         * parse.c (to_global_binding_level):  Set serious_errors.
1673         (parse_pass_1_2):  Exit after pass 1 if serious_errors > 0.
1674         * lex.c (readstring):  Recover from unterminstaed control sequence.
1676 Tue Feb 28 17:08:08 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1678         Re-write of module-level actions.  No longer generate a module
1679         function for module-level actions.  Instead, put them inside
1680         a new global dummy function.  Nest everything logically inside it.
1682         * lex.h, grant.c (chill_module_name):  Removed declaration.
1683         * grant.c (write_spec_module):  Instead use current_module->name.
1684         * grant.c (chill_start_module_code, chill_finish_module_code):
1685         Removed.
1686         * grant.c (chill_finish_compile):  Make rtl for global function.
1688         * actions,c (push_action):  Don't call chill_start_module_code.
1689         * expr.c (build_chill_function_call, build_generalized_call):
1690         Likewise.
1691         * parse.c (INIT_ACTION):  Likewise.
1693         * parse.c (seen_action):  New variable.
1694         * parse.c (end_function):  Always call pop_chill_function_context.
1695         (parse_procedure_definition):  Always call push_chill_function_context.
1696         (parse_modulion):  Parse optional handler.
1697         (parse_modulion, parse_spec_module):  Do find_granted_decls.
1698         (parse_action):  Set seen_action if global and a real action.
1699         ([arse_program):  Call start_outer_function and finish_outer_function.
1701         * ch-tree.h:  Appropriate updates.
1703         * tasking.c (generate_tasking_code_variable):  Make it lifetime-bound.
1704         (build_process_header):  Always push_chill_function_context;
1705         we are now always nested.
1706         (build_process_wrapper):  Always pop_chill_function_context.
1708         * tasking.c (build_start_process):  Only expand_start_bindings and
1709         expand_end_bindings if pass 2.
1711         * decl.c (global_function_decl):  New variable.
1712         (do_decl):  Implement reach-bound initialization of static variables.
1713         (start_chill_function):  Set DECL_CONTEXT to NULL if
1714         it would be global_function_decl (so as to not confuse gcc backend).
1715         (start_chill_function, finish_chill_function):  If compiling
1716         global_function_decl in pass 2 and !seen_action, suppress it.
1717         (set_module_name):  New function.
1718         (global_bindings_p):  Re-defined to check against global_function_decl.
1719         (start_outer_function, finish_outer_function):  New functions.
1721 Tue Feb 28 16:00:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1723         * typeck.c (build_chill_modify_expr):  Inline logic from
1724         chill_expand_array_assignment,
1725         * actions.c (chill_expand_array_assignment):  Removed.
1726         (chill_expand_assignment):  Remove call to removed function.
1728         * lex.c (reinit_parse_for_function):  Removed empty unused function.
1729         * decl.c (start_chill_function):  Don't call removed function.
1731 Tue Feb 28 00:29:51 1995  Per Bothner  <bothner@cygnus.com>
1733         * configure:  Merge in code for calculating host, build, and
1734         target and canon_{host,build,target} from ../configure.  
1735         Fix calculation of mainsrcdir.  Host canon_* variables
1736         to merge in build-make (as in ../configure).
1738 Sun Feb 26 18:59:02 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1740         * typeck.c (expand_constant_to_buffer):  Use new function
1741         get_set_constructor_bytes.
1743 Tue Feb 21 01:41:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1745         * inout.c (build_chill_writetext): Add processing of
1746         conditional expressions in argument list.
1748         * parse.c (parse_opt_name_string): Print error message only 
1749         in pass 1.
1751         * chill.texi: Add chapter about compiler directives.
1753 Tue Feb 14 16:45:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1755         * decl.c (start_chill_function):  Set FUNCTION_NEEDS_STATIC_CHAIN
1756         unless nested.
1758         * decl.c (decl_temp1):  Make lifetime_bound iff static.
1760 Fri Feb  3 04:30:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1762         * grant.c (really_grant_this, search_in_list): New static
1763         functions to determine if a decl should be written to 
1764         grant file.
1765         (write_spec_module): Add call to really_grant_this.
1767 Fri Jan 27 00:06:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1769         * actions.c (check_expression): Apply Per's patch.
1770         (chill_expand_result): New argument to indicate if we come
1771         from a RETURN or RESULT action. Change various error messages.
1773         * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
1774         New argument for chill_expand_result.
1776         * chill.in: In case of -fgrant-only, clear library, libpath and
1777         startfile to avoid warnings from gcc.
1779         * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
1781         * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
1783         * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
1784         and subsequent SEIZEs to grant file, if the seize file is
1785         used restricted.
1787         * lex.c (read_directive): Process new compiler directive
1788         USE_SEIZE_FILE_RESTRICTED.
1789         (handle_use_seizefile_directive): Same as above.
1790         (yywrap): Don't write USE_SEIZE_FILE directive to grant file
1791         if this seize file is used restricted.
1793         * parse.c (parse_action, case RETURN): Change RETURN expr action
1794         to RESULT expr; RETURN. This enables range checking and
1795         exception delivery in case of rangefail.
1797 Tue Jan 17 07:38:27 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1799         * decl.c (init_decl_processing): Add definition of
1800         library function __inbitstring (see expr.c).
1802         * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
1803         __inpowerset fir POWERSET's and function __inbitstring for
1804         BITSTRING's. In case of POWERSET's we must not do a rangecheck,
1805         in case of BITSTRING's we have to do one.
1806         (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
1807         statement with no effect).
1809 Fri Jan 13 13:35:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1811         * actions.c (check_expression):  Simplify result.
1813         * ch-tree.h (SET_CH_NOVELTY_NONNIL):  New macro.
1814         * expr.c, timing.c, typeck.c:  Use SET_CH_NOVELTY_NONNIL.
1816         * typeck.c (valid_array_index_p), ch-tree.h:  Change interface
1817         to return modified index expression.  Call error if out-of-range.
1818         * actions.c, typeck.c:  Modify
1819         for new valid_array_index_p interface.
1821         * actions.c (build_chill_slice):  Copy novelty of index type.
1823 Fri Jan 13 13:04:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1825         * convert.c (digest_array_tuple):  Allow mode name in array
1826         tuple label.  Print error message instead of aborting.
1828         * parse.c (parse_body):  Error message only if pass 1.
1830         * decl.c (check_identifier), ch-tree.h:  Remove.  Unused.
1832 Wed Jan 11 14:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1834         * parse.c (parse_modulion):  Undo yesterday's change (to allow
1835         an ON-handler to follow) until we re-implement module.  
1837 Tue Jan 10 17:23:55 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1839         * loop.c (declare_temps):  Remove bogus prohibition against
1840         iterating over BOOL arrays.
1842         * parse.c (parse_semi_colon):  Make it a pedwarn (instead of an
1843         error) if a semi-colon is missing before an END.
1844         (parse_action):  Likewise.
1845         * parse.c (parse_modulion):  Allow an ON-handler to follow.
1847         * parse.c (parse_set_mode):  Use parse_expression to get
1848         values for number set elements.
1850         * expr.c (build_compare_expr):  Make sure result has
1851         CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
1852         (finish_chill_binary_op):  Likewise for IN_EXPR.
1854 Tue Jan 10 04:46:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1856         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
1857         checking the argument.
1858         (chill_expand_assignment): Take care of a newmoded dst_offset
1859         when calling __pscpy and a newmoded from_pos when calling
1860         __setpowersetbits.
1862         * expr.c (chill_expand_expr): When calling __psslice take care
1863         of a newmoded min_value.
1865         * parse.c (parse_name_string): Print error message only in 
1866         pass 1.
1868 Tue Jan  3 19:56:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1870         * typeck.c (build_chill_array_ref_1):  Use varying_to_slice
1871         instead of building a VRAY_ARRAY_REF node.
1872         * ch-tree.def (VARY_ARRAY_REF):  Removed.
1873         * actions.c (chill_expand_assignment):  Will never call
1874         expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
1875         (expand_assignment_to_varying_array):  Removed.
1876         * convert.c (convert):  Remove unneeded VARY_ARRAY_REF support.
1877         * expr.c (chill_expand_expr):  Likewise.
1879 Tue Jan  3 19:50:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1881         * parse.c (parse_iteration):  Set step_value to NULL if missing.
1882         * loop.c (ITER_TYPE):  Remove DO_RANGE.
1883         (build_loop_iterator):  Implement old DO_RANGE in terms of DO_STEP.
1884         (begin_loop_scope):  Don't return on error.
1885         (build_loop_iterator):   Calculate loop variable type using
1886         resulting classes (as in Z200), rather than precision.
1888         * loop.c (initialzie_iter_var, bottom_loop_end_check):  For DO_STEP,
1889         make iter_var one less to avoid overflow.
1890         * loop.c (build_loop_iterator):  If !flag_local_loop_counter,
1891         declare a new variable if needed, as allowed by Z200 (1984).
1893         * ch-tree.h (ch_class):  Add typedef.
1895         * typeck.c (chill_resulting_class):  New function.
1896         (chill_root_resulting_class):  Remove.
1897         * ch-tree.h (CH_RESULTING_CLASS):  New macro.
1898         (CH_ROOT_RESULTING_CLASS):  Re-implement using CH_RESULTING_CLASS.
1900 Tue Jan  3 19:36:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1902         * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
1903         Change interface to take IDENTIFIER tree node, rather char char*.
1904         (check_expression): Change (simplify) callers appropriately.
1905         * parse.c (parse_action), typeck.c (valid_array_index_p):  Likewise.
1906         * lex.h (enum rid):  Add RID_ASSERTFAIL.
1907         * lex.c (init_lex):  Enter RID_ASSERTFAIL.
1908         * parse.c (parse_action case ASSERT):  Fix thinko TRUTH_ANDIF_EXPR
1909         to TRUTH_ORIF_EXPR.  Use RID_ASSERTFAIL.
1911         * typeck.c (discrete_type_p):  Re-implement using INTEGRAL_TYPE_P.
1913 Tue Jan  3 19:20:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1915         Move checking for modeless tuples in invalid contexts from parser
1916         to semantic function check_have_mode (for better error recovery):
1917         * expr.c (check_have_mode), ch-tree.h:  New function.
1918         * satisfy.c (safe_satisfy_decl):  Use check_have_mode.
1919         * expr.c (build_compare_expr, finish_chill_binary_op,
1920         finish_chill_unary_op):  Likewise.
1921         * parse.c (parse_primval):  Don't complain about mode-less tuple here.
1923 Tue Jan  3 17:36:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1925         * expr.c (varying_to_slice):  Support varying arrays whose
1926         lower bound is non-zero.
1928         * parse.c (parse_body):  Allow (with warning) definition to
1929         follow action.
1931         * expr.c (check_case_selector), ch-tree.h:  New function.
1932         (chill_expand_case_expr):  Use it.
1933         * parse.c (parse_case_action):  Likewise.
1935 Fri Dec 23 00:47:54 1994  Wilfried Moser  <moser@rtl.cygnus.com>
1937         * actions.c (chill_expand_return): Change error message.
1939         * ch-tree.h: Change prototypes of do_decl and do_decls.
1941         * convert.c (convert): Add missing initialisation of
1942         variable orig_e_constant.
1944         * decl.c: Change all calls to do_decl.
1945         (maybe_static): New function to process the ALL_STATIC_ON/OFF
1946         compiler directives.
1947         (do_decls): New argument.
1948         (do_decl): New argument and process reachbound and lifetime
1949         bound initialisation.
1951         * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
1952         ALL_STATIC_OFF.
1954         * grant.c: Change all calls to do_decl.
1956         * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
1957         directive.
1959         * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
1960         do_decls.
1962         * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
1964         * tasking.c: Change all calls to do_decl.
1966 Mon Dec 19 23:13:58 1994  Wilfried Moser  <moser@rtl.cygnus.com>
1968         * parse.c (parse_procedure_definition): Save chill_at_module_level
1969         flag, set ot to 0 and restore it at the end of function.
1970         A sequence BEGIN x: PROC () RETURN; END x; END; at module level
1971         have produced an error.
1973         * expr.c (build_chill_repetition_op): Fix typo in error message.
1975 Tue Dec 13 12:26:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1977         * actions.c (expand_assignment_to_varying_array):  Fix thinko:
1978         build_chill_array_ref -> build_chill_array_ref_1.
1980 Sun Dec 11 23:04:27 1994  Per Bothner  <bothner@rtl.cygnus.com>
1982         * actions.c (chill_expand_assignment):  Simplify the lhs if it is
1983         a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
1985 Thu Dec  8 13:45:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1987         * loop.c, ch-tree.h (build_loop_iterator):  Fix to return void.
1988         If start_exp is ERROR_MARK, return.
1989         * expr.c (build_generalized_call):  More robust on syntax errors.
1991 Tue Dec  6 02:33:23 1994  Wilfried Moser  <moser@rtl.cygnus.com>
1993         * inout.c (build_chill_readtext): In case of reading a SET mode
1994         pass ignore_case flag to runtime library.
1996 Tue Nov 29 14:41:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
1998         * parse.c (parse_receive_case_action):  Print error only if pass==1.
1999         * decl.c (push_scope_decls):  Use error_with_file_and_line
2000         to get correct line number of SEIZE.
2002 Mon Nov 28 16:59:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2004         * expr.c (resolve_component_ref):  Call fold on result.
2006         * expr.c (resolve_component_ref):  Use check_expression.
2007         * actions.c (chill_convert_for_assignment):  Likewise.
2008         * actions.c (cond_exception), ch-tree.h:  Removed.
2009         * actions.c (check_expression):  First part of COMPOUND_EXPR
2010         should be boolean_type_node;  void_type_node loses in SAVE_EXPRs.
2012         * actions.c (chill_convert_for_assignment):
2013         Check string_assignment_condition for varying strings too.
2015         * typeck.c (build_chill_cast):  If the types have different sizes,
2016         don't allow nondiscrete->discrete conversion, and only allow
2017         discrete->nondiscrete if input expression is constant.
2019         * typeck.c (chill_similar):  Don't use losing array_type_nelts.
2021         * ch-tree.h (ELSE_VARIANT_NAME):  New.
2022         * convert.c, decl.c, grant.c:  Use ELSE_VARIANT_NAME.
2023         * decl.c (handle_one_level):  Recurse on ELSE_VARIANT_NAME too.
2025         Reduce dependencies on ../c-typeck.c:
2026         * expr.c:  Fix c_expand_start_case -> expand_start_case.
2027         Fix c_expand_expr_stmt -> expand_expr_stmt.
2028         (build_chill_indirect_ref):  Call convert instead of build_c_cast.
2029         * loop.c (bottom_loop_end_check):  Don't use build_modify_statement.
2030         * expr.c, except.c, typeck.c:  Don't call default_conversion.
2031         * typeck.c (string_assignment_condition):  Fix build_component_ref ->
2032         build_chill_component_ref.
2033         * decl.c:  Fix build_indirect_ref -> build_chill_indirect_ref (twice).
2034         * decl.c:  Don't set unused constructor_no_implicit (from c-typeck.c).
2035         * decl.c:  Don't call declare_function_name.
2037         * parse.c: Don't always keep a valid token in terminal_buffer[0].
2038         The extra look-ahead may have made the parser faster, but caused
2039         some problems synchronizing with the lexer.  Specifically:
2040         (PEEK_TOKEN):  Now calls an optimized variant of peek_token_(0).
2041         (next_token_):  Don't call peek_token_.  Renamed to forward_token_.
2042         (NEXT_TOKEN):  Renamed to FORWARD_TOKEN.
2043         (parse_program):  Don't call yylex yet.
2045         * parse.c (parse_action):  Re-do case ASSERT.
2046         Fix c_expand_expr_stmt -> expand_expr_stmt.
2048         * lex.l:  Re-written to not use [f]lex, and renamed to ...
2049         * lex.c:  ... new lexer.
2050         * Makefile.in, Make-lang.in:  Remove [f]lex crud.
2052         * lex.h (enum rid), lex.c (init_lex):  Added RID_ELSE.
2054 Tue Nov 22 15:19:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2056         * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
2058 Fri Nov 18 14:27:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2060         * parse.c (parse_structure_node):  Simpler, and more robust.
2062 Wed Nov 16 14:40:52 1994  Ian Lance Taylor  (ian@cygnus.com)
2064         * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
2065         not at compile time.
2066         * typeck.c (expand_constant_to_buffer): Likewise.
2067         extract_constant_from_buffer): Likewise.
2069 Tue Nov 15 14:41:53 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2071         * convert.c (convert):  Call build_chill_range_type rather than
2072         build_index_2_type (which has obstack and canonicalization problems).
2073         * expr.c (build_chill_pred_or_succ):  Convert expr to root class
2074         before arithmetic.
2075         * loop.c (declare_temps):  If location iterated over is not
2076         a location, make a temporary variable for it.
2078 Mon Nov 14 16:33:47 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2080         * typeck.c, ch-tree.h (chill_equivalent):  Change to return
2081         a tree (a Boolean expression).  Also, add some missing tests.
2082         * ch-tree.h (CH_EQUIVALENT):  Modify accordingly.
2084         * expr.c (chill_expand_expr case CONCAT_EXPR):  When the 2nd operand
2085         is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
2086         Also, replace MEM (which is not a mode) by Pmode.
2088         * ch-tree.h, typeck.c (chill_comptypes):  Removed.
2089         * convert.c (convert):  Remove calls to chill_comptypes.
2091 Fri Nov 11 13:06:29 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2093         * grant.c (write_grant_file): Call pfatal_with_name instead
2094         of abort when something goes wrong when opening or writing
2095         the grant file.
2096         unlink grant file if something goes wrong during writing
2097         (i.e. device full).
2099         * Make-lang.in (CHILL_SRCS): Add timing.c
2101         * ch-tree.h: Add prototype for chill_tasking_type_node.
2102         * lex.l (equal_number): Use chill_tasking_type_node instead of
2103         integer_type_node for converting the result.
2104         Print error messages in pass 2, in pass 1 no error will be
2105         detected.
2106         * tasking.c: New variable chill_tasking_type_node for all
2107         generated tasking related variables.
2108         Use chill_tasking_type_node instead of chill_unsigned_type_node.
2110         * expr.c (chill_expand_expr): Apply Per's change.
2112         * expr.c (build_chill_sizeof): In case of error just
2113         return error_makr_node.
2114         Set CH_DERIVED_FLAG at the result.
2116         * timing.c (build_after_timeout_start): Clear the the timeout
2117         level to know if we are in the action part of AFTER statement
2118         or in the TIMEOUT part.
2120         * typeck.c (build_chill_slice_with_length): Convert the class
2121         of the result to class of first value in expression.
2123         * inout.c (build_chill_writetext, build_chill_readtext): Use stack
2124         temporary variables for the iolist so that they can get reused in
2125         subsequent calls. Emit code immediately instead of building a 
2126         compound expr.
2128 Fri Nov  4 12:00:54 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2130         * expr.c (build_chill_function_call):  Don't set TREE_TYPE
2131         of assignment to void_type_node - it confuses save_expr.
2132         * decl.c (init_decl_processing):  Removed unused code.
2133         * parse.c:  Changes to avoid warnings.
2135         * grant.c (chill_finish_module_code):  Minor simplification.
2136         * lex.l (readstring):  Set *len to 1 on error.
2138 Thu Nov  3 01:05:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2140         * grant.c (decode_decl): Add granting of BASED declarations.
2142 Wed Nov  2 12:14:31 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2144         * expr.c (build_chill_lower_or_upper):  Take more care to
2145         ensure result has the right class.
2146         (build_chill_pred_or_succ):  Be more careful to get the right
2147         resulting class, and check bounds using *root* mode.
2149         * typeck.c (build_chill_slice_with_range):  Check that array
2150         really is an array or string.
2151         (build_chill_slice_with_length):  Likewise.
2153         * typeck.c (extract_constant_from_buffer):  Fix calculation of
2154         SET_TYPE size.  (Cannot depend on 1-byte TYPE_PRECISION field.)
2156 Wed Nov  2 05:33:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2158         * Make-lang.in: Change version of compiler.
2160         * ch-tree.h: Add new prototypes.
2162         * decl.c (init_decl_processing): Remove timing related 
2163         initialisations. Add call to timing_init.
2165         * parse.c (parse_action): Process AFTER action.
2167         * tasking.c (build_receive_case_start,
2168         build_receive_signal_case_label, build_receive_buffer_case_label,
2169         build_delay_case_start, build_delay_action, expand_send_buffer):
2170         Add processing of timesupervision.
2171         (tasking_init): Change definitions of runtime   functions.
2173         * timing.c (timing_init): New function for initialisation of
2174         timing related stuff.
2175         (build_cycle_start, build_cycle_end): Changed due to
2176         implementation of timesupervision.
2177         (build_after_start, build_after_timeout_start, build_after_end):
2178         Implement the AFTER action.
2179         (build_timeout_preface, build_timesupervised_call): New functions
2180         to handle timesupervision in case of blocking system calls (i.e.
2181         SEND buffer action, RECEIVE CASE action etc.).
2182         
2183 Thu Oct 27 12:50:24 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2185         * expr.c (build_chill_repetition_op):  Fix repeating all-zero
2186         bitstring with orig_len!=1.  Also, call build_boring_bitstring
2187         if original string was all ones, using one range.  Also:
2188         Cannot use one-bit TYPE_PRECISION to get bitstring length.
2190 Tue Oct 25 14:11:07 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2192         * convert.c (convert):  When converting BOOL constant to
2193         bit-string, bit_one_node and bit_zero_node were switched.
2194         * actions.c (chill_expand_assignment):  Use force_addr_of,
2195         not build_chill_addr_expr - latter yields bogus error.
2197 Fri Oct 21 14:26:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2199         * expr.c (build_chill_indirect_ref):  Check for POINTER_TYPE (only)
2200         after converting from REFERENCE_TYPE.
2201         * expr.c (build_compare_expr):  Convert to common mode *after*
2202         we've checked compatibility.
2204 Fri Oct 21 02:29:15 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2206         * lex.l (check_newline): Use getc instead of getlc to read
2207         the filename in a # line name directive to avoid possibly
2208         downcaseing of a filename.
2210 Thu Oct 20 05:37:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2212         * expr.c (build_chill_indirect_ref): Add check for really
2213         dereferencing a pointer.
2215         * convert.c (convert): Take care of TREE_CONSTANT of a
2216         SYNONYM having mode ARRAY () VARYING something.
2218 Mon Oct 17 02:30:38 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2220         * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for 
2221         boolean_true_node and boolean_false_node. TRUE and FALSE have
2222         the BOOL derived class.
2224         * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
2225         of NUM. NUM delivers the INT derived class.
2227         * grant.c (write_spec_module): Add writing of
2228           <> USE_SEIZE_FILE "x.grt" <>
2229           SEIZE ALL;
2230         to generated grant file.
2232 Thu Oct 13 14:45:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2234         * convert.c (convert_from_reference):  Make non-static.
2235         * ch-tree.h (convert_from_reference):  Add prototype.
2236         * parse.c (parse_name):  If the decl is a REFERENCE_TYPE, just
2237         call convert_from_reference - and not a full-scale convert.
2239         * convert.c (convert):  Only call digest_array_tuple if ARRAY_TYPE.
2240         * typeck.c (chill_expand_tuple):  Print error if type is
2241         neither array, struct, or powerset.
2243         * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
2244         UNDEFINED_EXPR):  Call preserve_temp_slots for temp targets.
2245         If target is not MEM, make temp (even if not REG) to simplify
2246         - and don't copy original target to temp target first.  (Not needed.)
2248         * lang.c (maybe_objc_comptypes):  Just return -1.
2250 Wed Oct 12 12:24:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2252         * tasking.c (tasking_setup):  Fix breakage from previous check-in.
2254 Tue Oct 11 16:00:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2256         * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
2257         timing.c, typeck.c:  Change build1 (ADDR_EXPR, ptr_type_node, XX)
2258         to force_addr_of (XX).  Add call to mark_addressable where needed
2259         for other calls to build 1 (ADDR_EXPR, TYPE, XX).
2261 Thu Oct  6 06:36:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2263         * inout.c (build_chill_writetext): Remove processing
2264         of POWERSET's.
2266 Tue Oct  4 14:08:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2268         * convert.c (convert):  If flag_old_strings, support converting
2269         CHARS(1) and BOOLS(1) to INT.
2271 Fri Sep 30 01:44:51 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2273         * inout.c (build_chill_readtext): Add check for item is
2274         referable and not READonly. Add processing of BITSTRINGs.
2276 Mon Sep 26 16:19:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2278         * expr.c (build_chill_descr):  Add missing call to mark_addressable.
2279         * loop.c (toop_loop_end_check):  Replace build1 (ADDR_EXPR ...)
2280         with call to force_addr_of (which calls mark_addressable).
2281         * expr.c (build_chill_descr, build_chill_inttime):  Likewise.
2282         * inout.c (build_chill_writetext):  Likewise.
2284 Mon Sep 26 05:19:21 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2286         * grant.c (print_struct): Move printing of VARYING from
2287         here ...
2288         * grant.c (grant_array_type): ... to here.
2290 Mon Sep 26 00:09:08 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2292         * ch-tree.h (force_addr_of):  New prototype.
2293         * expr.c (force_addr_of):  Call mark_addressable.  Make non-static.
2294         * inout.c (build_chill_writetext):  Use force_addr_of.
2296 Sun Sep 25 23:41:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2298         * except.c (push_handler), actions.h:  Removed unused parameter.
2299         * actions.c (push_action):  Remove unused paramater.
2300         * parse.c, actions.c:  Remove no-longer-used parameter to
2301         calls to push_handler and push_action.
2303         * decl.c (push_extern_process):  Only build types in pass 1.
2304         * tasking.c (build_process_header):  Only build types in pass 1.
2305         * tasking.c (build_start_process):  Do pushdecl/popdecl etc
2306         even after an error (to maintain consistency between passes).
2308         * convert.c (convert_to_boolean):  Allow any integral input type.
2310 Sat Sep 24 22:47:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2312         * typeck.c (extract_constant_from_buffer):  Add (somewhat kludgey)
2313         support for UNION_TYPE.  (Patch from Wilfried.)
2314         Also, reverse RECORD_TYPE constructor list.
2316 Fri Sep 23 19:06:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2318         * expr.c (build_concat_expr):  Fix calculation of result_size.
2320 Wed Sep 21 00:54:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2322         Give up on trying to use the cleanup mechanism in stmt.c to
2323         make sure the exception handler get unlinked on goto/exit/return.
2324         Instead, do it ourselves.  (Much simpler.)
2325         * except.c, ch-tree.h (action_nesting_level):  New global.
2326         * ch-tree.h (DECL_ACTION_NESTING_LEVEL):  New macro.
2327         * decl.c (define_label):  Set DECL_ACTION_NESTING_LEVEL.
2328         * except.c (expand_goto_except_cleanup):  New function.
2329         (cleanup_chain):  New variable.
2330         (push_handler, pop_handler):  Adjust action_nesting_level.
2331         (emit_setup_handler):  Push cleanup.
2332         (chill_finish_on):  Pop cleanup.
2333         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
2334         Call expand_goto_except_cleanup.
2335         * parse.c (parse_action):  Before RETURN, call
2336         expand_goto_except_cleanup.
2338 Mon Sep 19 00:59:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2340         * lex.l (equal_number):  Make sure converted synonym
2341         is on permanent obstack.
2342         * typeck.c (extract_constant_from_buffer):  Fix INTEGER_TYPE
2343         loop to traverse in big-endian order.
2345 Sat Sep 17 20:48:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2347         * typeck.c (build_chill_cast):  Call mark_addressable.
2348         * expr.c (build_chill_function_call):  Call mark_addressable.
2350 Thu Sep 15 23:47:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2352         * typeck.c (expand_constant_to_buffer):  Fix an endian-ness
2353         problem for INTEGER_CST.
2354         (extract_constant_from_buffer):  Likewise.
2356 Thu Sep 15 22:59:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2358         * decl.c (pushlevel):  Do different things depending on
2359         actual parameter.
2360         * decl.c, parse.c, tasking.c:  Change argument to to pushlevel to 1.
2361         * actions.c (push_action):  Take new parameter.
2362         * except.c (push_handler):  Likewise.
2363         * parse.c:  Change calls to push_action and push_handler.
2364         * loop.c (begin_loop_scope):  Always call expand_start_bindings.
2365         * loop.c (end_loop_scope):  Always call expand_end_bindings.
2366         * except.c (emit_setup_handler):  Add a cleanup to
2367         unlink from exception stack if we return/exit/goto from here.
2368         * loop.c (begin_loop_scope):  Move pushlevel from here ...
2369         * parse.c (parse_do_action): ... to here.
2371         Clean up do-decl interface (for decl_temp1).
2372         * parse.c (parse_loc_declaration):  If global_bindings_p (),
2373         treat as static.
2374         * decl.c (do_decl):  Don't test global_bindings_p ().
2376         * decl.c (keep_next_level_flag, keep_next_if_subblocks):
2377         Not used.  Removed.
2378         (struct scope::keep, scope::keep_if_subblocks):  Likewise.
2379         (keep_next_level):  Likewise.
2380         (kept_level_p, pushlevel, poplevel):  Simplify.
2382         * decl.c (init_decl_processing):  Don't call init_iterators.
2383         * Makefile.in (C_OBJS):  Don't get ../c-iterator.o - not needed.
2385 Thu Sep 15 05:54:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2387         * lex.l (readstring): Add processing of control sequence
2388         in character string literals. The granting mechanism writes
2389         this to grant files.
2391 Tue Sep 13 06:19:42 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2393         * expr.c (compare_records): In case of -fpack do always
2394         a memcmp instead of comparing each field of the
2395         structure. If the structure is a variant structure, 
2396         issue a warning.
2398 Mon Sep 12 13:15:09 1994  Per Bothner  (bothner@cygnus.com)
2400         * grant.c (write_spec_module):  Add cast, to avoid PCC warning.
2401         * grant.c (header_template):  Don't use ANSI-specific string
2402         literal concatenation.
2404 Fri Sep  9 01:53:30 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2406         * tasking.c (get_process_wrapper_name): New function.
2407         (add_taskstuff_to_list): Add a new argument, which is
2408         the entrypoint of a process.
2409         (build_process_header): Change PROCESS arguments to be
2410         like arguments of a function. There will be a wrapper
2411         which is the real entry point for a PROCESS. This wrapper
2412         is automatically build after a PROCESS definition and gets
2413         as argument a pointer to a structure looking like the 
2414         arguments of the PROCESS. This wrapper will call the
2415         PROCESS (see build_process_wrapper).
2416         (build_process_wrapper): New function (see above).
2417         (build_start_process): Change processing of arguments.
2418         (tasking_setup): Add processing of a different entry point
2419         in case of PROCESSes.
2421         * parse.c (parse_process_definition): Add call to
2422         build_process_wrapper.
2423         * parse.c (end_function): Remove the poplevel() call.
2424         build_process_header no longer makes the corresponding
2425         pushlevel().
2427         * grant.c (print_proc_tail): Remove special processing
2428         of PROCESSes, they look now like normal functions.
2430         * decl.c (init_decl_processing): Add declaration of memcmp
2431         function.
2433         * ch-tree.h: Add new prototype for build_process_wrapper,
2434         change prototypes for add_taskstuff_to_list and
2435         build_process_header.
2437         * grant.c (write_spec_module): Write GNUCHILL and gcc
2438         version into grant file.
2440         * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and 
2441         GNUCHILL_VERSION to ch/Makefile.
2442         * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
2444         * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
2445         will get generated every time a new Makefile will get 
2446         generated.
2447         * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
2448         Make-lang.in.
2450         * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
2451         to the compiler to avoid generation of an object file.
2453 Thu Sep  8 12:07:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2455         * convert.c (display_int_cst), ch-tree.h:  New function.
2456         * convert.c (digest_array_tuple):  Use digest_int_cst to
2457         provide better error messages.  Return error_mark_node on error.
2458         * grant.c (decode_const):  Simplify by using digest_int_cst.
2459         * grant.c (format_character, find_assoc):  Removed.
2461         * decl.c (do_decl):  Add missing TREE_CHAIN.
2463         * decl.c (finish_incomplete_decl):  Removed.
2464         (init_decl_processing):  Don't set incomplete_decl_finalize_hook.
2465         (finish_decl):  Remove old C-specific code to deduce size of
2466         array from initialization.
2467         (complete_array_type):  Just make it abort.
2469         * except.c (finish_handler_array):  Avoid calling C-specific kludge
2470         complete_array_type.
2472         * convert.c (digest_constructor):  Rename, and re-write to:
2473         (digest_array_tuple, convert):  No longer use the code in
2474         ../c-typeck.c;  use a Chill-only implementation (sigh).
2476         * typeck.c (chill_expand_tuple):  Remove unneeded call to
2477         complete_array_type.
2479         * expr.c (fold_set_expr), grant.c (decode_constant),
2480         typeck.c (expand_constant_to_buffer):  Update name of called
2481         function unpack_set_constructor to get_set_constructor_bits.
2482         * expr.c (powersetlen ):  Remove redundant call to convert.
2484         * ch-tree.h (unpack_set_constructor):  Removed obsolete declaration.
2486         * inout.c (build_chill_writetext):  Handle 64-bit integer literals
2487         by trying to convert them to a smaller type.
2489         * lex.l (convert_number):  Always use long long type (possibly
2490         unsigned) to avoid problems with constant folding truncation.
2492 Mon Sep  5 08:08:22 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2494         * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
2495         Add new prototype (see tasking.c).
2497         * expr.c (build_generalized_call): Add processing of
2498         BUILT_IN_QUEUE_LENGTH.
2500         * tasking.c (build_queue_length): New function.
2502         * tasking.c (tasking_init): Add new external function definition.
2504 Thu Sep  1 15:38:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2506         * lex.l (default_lex):  New function.  Progress towards
2507         getting rid of [f]lex.
2509         * lex.l (convert_number):  Use mul_double and add_double.
2510         Set result type to a reasonable type in which the literal
2511         will fit.  Give error message if literal is too big.
2513         * lex.l (equal_number):  Switch (temporarily) to permanent obstack.
2515         * typeck.c (build_chill_slice_with_range):  Check for empty
2516         slice *after* we have checked for upper/lower limit in range.
2518         * grant.c (decode_mode):  Remove unused code.  (BOOL and
2519         CHAR ranges are represented as INTEGER_TYPEs.)
2521         * tasking.c (build_process_header):  Add missing call to
2522         expand_start_bindings.
2523         * parse.c (end_function):  Add missing expand_end_bindings.
2525 Wed Aug 31 17:25:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2527         * decl.c (init_decl_processing):  Set set_alignment.
2529 Tue Aug 30 16:40:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2531         * actions.c (print_missing_cases, check_missing_cases,
2532         BITARRAY_TEST, BITARRAY_SET):  New functions and macros,
2533         to check for completeness of case actions and expressions.
2534         * decl.c (c_decode_option, init_decl_processing):
2535         Don't set warn_switch.
2536         * expr.c (chill_expand_case_expr):  Call check_missing_cases
2537         instead of check_for_full_enumeration_handling.
2538         * parse.c (parse_case_actions):  Call check_missing_cases.
2540         * expr.c (build_chill_binary_op):  Remove some dead code.
2541         * expr.c (chill_truthvalue_conversion):  Call build_chill_binary_op
2542         instead of build_binary_op.
2543         * ch-tree.h (binary_op_error, build_binary_op):  Unused.  Removed.
2545         * parse.c (end_function):  Use kept_level_p in parameter to
2546         poplevel.  This reverts a June 13 change.
2548 Fri Aug 26 11:50:19 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2550         * configure: Ignore --without, as ../configure does.
2552 Wed Aug 24 01:17:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2554         * lex.l: Change rule for decimal numbers to allow identifiers
2555         to start with an underscore (_).
2557 Fri Aug 19 16:38:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2559         * tasking.c (build_receive_signal_case_label):  Remove backwards
2560         chill_convert_for_assignment (which converted whatever garbage
2561         was in the *target* to the type of the signal argument!).
2563 Fri Aug 19 07:10:43 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2565         * inout.c (build_chill_io_list_type, build_enum_tables),
2566         tasking.c (build_tasking_struct): Temporarily reset
2567         maximum_field_alignment to 0, so that the compiler-built
2568         data structures needed by the RTS can be independent of -fpack.
2570 Thu Aug 18 13:39:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2572         * typeck.c (build_init_struct):  Temporarily reset
2573         maximum_field_alignment to 0, so that the compiler-built
2574         data structures needed by the RTS can be independent of -fpack.
2576 Wed Aug 17 23:48:33 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2578         * parse.c (parse_primval, expect, parse_on_exception_list):
2579         Print error message only in pass 2.
2581 Wed Aug 17 13:47:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2583         * decl.c (switch_to_pass_2):  Revert June 13 change,
2584         (Don't exit after pass 1 if an error was found.)
2586         * ch-tree.def (SLICE_EXPR):  New tree-code.
2587         * typeck.c (build_chill_slice):  For building a slice of a
2588         bit-string, just generate a SLICE_EXPR.
2589         * decl.c (init_decl_processing):  Declare __pscpy.
2590         * actions.c (chill_expand_assignment):  Handle a SLICE_EXPR
2591         on the LHS of assignment, by calling __pscpy.
2592         * expr.c (chill_expand_expr):  Handle SLICE_EXPR (as a RHS
2593         value) by using __psslice to copy slice to a temp.
2595 Wed Aug 17 05:52:44 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2597         * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
2598         * expr.c (build_chill_length): Enable LENGTH built-in to process
2599         Buffers and Events too (Z.200/1992).
2600         * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
2601         a linux system the previous version was not able to run.
2602         * tasking.c: Correct processing of infinite buffer- and event-length
2603         to avoid RANGEFAIL warning.
2605 Thu Aug 11 11:46:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2607         * parse.c (parse_if_expression_body):  Don't call the C-specific
2608         build_conditional_expr.  Just do build_nt (COND_EXPR, ...).
2609         * convert.c (convert):  Convert a COND_EXPR by converting
2610         each branch.
2612         * convert.c (convert):  Don't call convert before
2613         convert_to_reference.  It's apt to do weird and unneedful things.
2614         * convert.c (convert):  If the expression is varying, just call
2615         varying_to_slice, which simplifies quite a bit.
2617         * ch-tree.h (varying_to_slice):  Add prototype.
2618         * typeck.c (varying_to_slice):  Remove prototype.
2620         * satisfy.c (satisfy):  Move case PAREN_EXPR from type 'e'
2621         to type '1'.
2623         * except.c (emit_setup_handler):  Temporarily reset the
2624         maximum_field_alignment to zero so the compiler's exception
2625         data structures can be compatible with the run-time system,
2626         even when we're compiling with -fpack.
2628         * expr.c (compare_records):  Call saved_if_needed on operands.
2630         * expr.c (build_set_expr case NE_EXPR):  Don't use __nepowerset
2631         which has been reimplemented to just call __eqpowerset and
2632         invert the result.  Inline this new implementation by
2633         handling as EQ_EXPR, and inverting the result.
2634         * decl.c (init_decl_processing):  Don't define unused __eqpowerset.
2636         * typeck.c (valid_array_index_p):  The TRUTH_ANDIF_EXPR has
2637         type boolean_type_node, not void_type_node.  (Fixing this
2638         avoids a crash in the back-end.)
2640         * grant.c (decode_constant):  In a CALL_EXPR, if the argument
2641         list is not a TREE_LIST (as in string repetiation), don't
2642         emit parentheses.
2644 Wed Aug 10 13:13:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2646         * decl.c (proclaim_decl):  Use CH_DECL_ENUM to check that a
2647         CONST_DECL is from a SET definition.  (This is safer than
2648         checking that the type is ENUMERAL_TYPE, because synonym
2649         definitions may have a NULL TREE_TYPE.)
2650         Also, if we have duplicate enums whose types are identical,
2651         this is an error.
2652         * decl.c (proclaim_decl, pushdecllist, push_scope_decls):  Add
2653         an extra 'quiet' parameter, which is true if we're called from
2654         bind_sub_modules.  (In that case an error message about duplicated
2655         decls would be repeated later, so suppress it.)
2657         * parse.c (stmt_count):  Removed, not used.
2658         (INIT_ACTION):  Call emit_line_note only if !ignoring.
2659         (parse_begin_end_block):  Do INIT_ACTION even if ignoring.
2661 Fri Aug  5 12:39:11 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2663         * parse.c (parse_untyped_expr):  Add missing semi-colon.
2665 Thu Aug  4 17:40:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2667         * parse.c (parse_untyped_expr):  Fix various problem for the
2668         case that we see a '(':  Add missing 'case' keyword.
2669         Only recurse if '(' is followed by 'if', 'case' or '[',
2670         and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
2672         * parse.c (parse_send_action):  Remove extra nreverse.
2674 Thu Jul 28 04:00:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2676         * expr.c (build_allocate_global_memory_call, build_allocate_memory_call): 
2677         Add new checks.
2679 Tue Jul 26 22:48:15 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
2681         * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
2682         Added a missing call to `require' as well.
2684 Tue Jul 19 10:30:12 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
2686         * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
2687         the extern declaration in the flex skeleton.
2689 Mon Jul 18 23:06:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2691         * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
2692         Check the type of the instance expr using CH_COMPATIBLE,
2693         and not just == instance_type_node.  (This allows
2694         the expression to have mode READ INSTANCE).
2695         * tasking.c (build_instance_type):  Give instance_type_node
2696         a non-null novelty (i.e. different from a struct).
2697         * tasking.c (build_receive_case_start, build_delay_case_start):
2698         Check that for a location using CH_LOCATION_P.
2700 Mon Jul 18 13:22:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
2702         * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
2703         to modify a tree code.
2705 Mon Jul 18 11:24:57 1994  Bill Cox  (bill@rtl.cygnus.com)
2707         * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
2708           comparison.
2710 Mon Jul 18 05:40:15 1994  Doug Evans  (dje@canuck.cygnus.com)
2712         * decl.c (warn_bad_function_cast): Define so cc1chill will link.
2714 Thu Jul 14 18:37:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2716         * parse.c (parse_send_action):  Do tree_cons *before* checking
2717         for end of loop.
2719 Mon Jul 11 15:33:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2721         * convert.c (digest_structure_tuple):  Don't use convert to
2722         coerce initial value,  use chill_convert_for_assignment instead.
2723         (Thus we also get range_checking.)
2725         * expr.c (build_chill_card):  Use force_addr_of instead of
2726         build_chill_addr_expr.
2728         * loop.c (build_temporary_variable):  Stylistic tweak.
2729         * loop.c (maybe_make_for_temp):  Initialize temp using
2730         explicitly, not using assignment.  Avoids a problem if
2731         the expression is read-only.
2732         * typeck.c (smash_dummy_type):  Always used the saved TYPE_NAME
2733         and CH_NOVELTY_FLAG.
2735 Wed Jul  6 20:12:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2737         * expr.c, ch-tree.h (finish_chill_unary_op):  New function,
2738         based on code ripped out of build_chill_unary_op.
2739         (build_chill_unary_op):  Call finish_chill_unary_op unless pass==1.
2740         * satisfy.c (satisfy):   Call finish_chill_unary_op when needed. 
2742 Mon Jun 27 11:29:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2744         * tree.c (save_if_needed), ch-tree.h:  New function.
2745         * typeck.c (build_chill_slice_with_range,
2746         build_chill_slice_with_length):  Call save_if_neeed on array arg.
2747         * expr.c (varying_to_slice):  Re-write to use save_if_needed.
2749         * typeck.c (extract_constant_from_buffer):  Handle BOOLEAN_TYPE.
2751 Mon Jun 27 01:11:10 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2753         * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
2754         that it is always the same, regardless if compiled with -fpack
2755         or not.
2757 Tue Jun 14 16:44:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2759         * lex.l (yywrap):  Kludge to work around mis-synchronization
2760         between lexer (which read ahead) and parser:  Don't emit
2761         (left-over) uze_seizefile directives at the end of file.
2763         * typeck.c (build_chill_array_ref):  Allow the derived
2764         array indexing syntax for arrays of bit strings.
2765         Add a comment explaining why.
2767         * typeck.c, ch-tree.h (string_assignment_condition):  Change
2768         the interface.  Return a boolean expression (which can be
2769         used in a conditional at run-time);  never expand anything.
2771         * actions.c (chill_convert_for_assignment):  Check
2772         string_assignment_condition here, rather than in callers.
2773         * actions.c (chill_expand_assignment):  Don't need to check
2774         string_assignment_condition here.
2775         * expr.c (build_chill_function_call):  Likewise.
2776         * satisfy.c (safe_satisfy_decl):  Update accordingly.
2777         * decl.c (do_decl):  Simplify testing and conversion by
2778         deferring everything to chill_convert_for_assignment.
2780         * parse.c:  Combine the two variables 'ignore_exprs' and
2781         'ignore_actions' into one variable called 'ignoring'.
2782         * ch-tree.h:  Add 'extern int ignoring'.
2783         * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
2784         Rename ignore_actions and ignore_exprs to ignoring.
2785         Remove unneeded extern declarations.
2786         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
2787         build_chill_arrow_expr, build_generalized_call, build_delay_action,
2788         build_buffer_type, build_event_type):  I changed my mind.  It is
2789         cleaner to check for 'ignoring' in the parser, rather than here.
2790         * parse.c (parse_action, parse_primval, parse_opt_mode):
2791         Therefore we must check for ignoring here.
2792         * parse.c (parse_loc_declaration):  Set ignoring in pass 2
2793         when parsing the mode.
2794         
2795         * tasking.c (generate_tasking_code_variable):  Do arithmetic
2796         on signal_code etc using unsigned rather than signed shorts.
2798         * grant.c (static char* current_grant_modename):  Removed.
2799         * grant.c (decode_decl case CONST_DECL):  Remove error message.
2801         * Make-lang.in (CHILL_SRCS):  Add $(srcdir)/ch/parse.c.
2802         * Makefile.in:  Fix dependencies for parse.o.
2803         Remove some duplicate dependencies for $(TREE_H).
2805 Mon Jun 13 14:25:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2807         * typeck.c (build_chill_cast):  Allow a value cast between
2808         non-discrete object of the same size, but with a pedwarn.
2809         * typeck.c (bit_string_assignment_condition,
2810         char_string_assignment_condition):  Merge near-duplicate functions
2811         and place the code in string_assignment_condition.
2813         * decl.c (parm_flag, declare_parm_level, in_param_level_p):
2814         Removed.  Not used.
2815         * decl.c (start_chill_function, finish_chill_function):  Make
2816         parameter level have same nesting level as body, as required by Z200.
2817         * decl.c (switch_to_pass_2):  Always exit if an error has been found.
2818         * decl.c (pop_module):  Copy DECL_SEIZEFILE to a new ALIAS_DECL
2819         generated from GRANT ALL.
2820         * decl.c (lookup_name_for_seizing):  Don't seize from
2821         the nesting level of builtins (predefined objects).
2822         * decl.c (lookup_name_for_seizing):  Make more robust on error.
2824         * decl.c (start_chill_function):  MAKE DECL_NAME (chill_result_decl)
2825         be 'RESULT' (or 'result').  This makes it more accessible from gdb.
2826         Also, use do_decl to declare it, so that debugging symbols are
2827         generated.  And, re-arrange so that actions that need to
2828         be done both passes (such as push_levels) use the same code.
2830         * parse.c (get_type_of):  If ignore_exprs, don't lookup name.
2831         * parse.c (end_function):  Fix poplevel params.
2832         * parse.c (expect):  Don't read forwards on an error.
2833         * parse.c (parse_field):  Don't define two tag_list locals!
2834         * parse.c (parse_pass_1_2):  Better error message.
2836         * parse.c (parse_mode, parse_opt_mode):  Have parse_mode call
2837         parse_opt_mode, rather than vice versa.  If parse_opt_mode
2838         returns NULL_EXPR, then parse_mode gives an error.
2839         Change parse_opt_mode (and any functions it calls) to only
2840         return NULL_TREE if there is no mode (even on ignore_exprs).
2841         (parse_set_mode, parse_structure_mode, parse_procedure_mode):
2842         Never return NULL_EXPR.
2843         * tasking.c (build_buffer_type, build_event_type):  Return
2844         void_type_node instead of NULL_EXPR if ignore_exprs is true.
2846         * parse.c (parse_synonym_definition):  Call parse_untyped_expr
2847         only if we have a mode.
2848         * parse.c (parse_send_action):  Parse list of untyped_expr's,
2849         rather than a list of (typed) expressions.
2850         * parse.c (parse_primval):  Emit error if '[' seen without
2851         preceding mode name.  (If this is to be allowed, call
2852         parse_untyped_expr instead.)
2854         * parse.c (parse_array_index):  Renamed to ...
2855         (parse_index_mode):  ... to match Z200 terminology.
2856         Re-write to resolve some of the nastier ambiguities,
2857         and allow things like ' CHAR(10) : CHAR(20) '.
2859         * parse.c (parse_tuple_element):  Change interface to return
2860         reversed list, so don't call nreverse.
2861         * parse.c (parse_tuple):  No longer nreverse element list here.
2862         * parse.c (parse_opt_element_list):  Do nreverse here instead.
2863         * parse.c (parse_case_label_list):  Call nreverse at end.
2865 Fri Jun 10 15:36:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2867         * typeck.c (chill_similar):  Remove bogus "else".
2869 Wed Jun  8 00:01:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2871         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  New macro (and comment)
2872         to make it clearer that we are using TYPE_MAX_VALUE in a special way.
2873         * typeck.c (build_chill_slice):  Use TYPE_ARRAY_MAX_SIZE.
2874         * expr.c (chill_expand_expr case CONCAT_EXPR):  Likewise.
2875         * convert.c (convert):  When converting a fixed string/array
2876         to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
2877         of (the type of) the padding.
2878         * convert.c (convert): If the concatenation is non-constant, use
2879         the low-level 'build' to set the type of the result (which is usually
2880         a fixed-size array) rather than depend on build_chill_binary_op
2881         to figure it out (it's unable to simplify the size to a constant).
2883 Mon Jun  6 18:16:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2885         * lang.c (lang_decode_option):  Let -fspecial_UC imply
2886         -fno-ignore-case without requiring it explicitly.
2887         * lang.c (lang_decode_option):  Support (experimentally)
2888         the -fpack and -fno-pack flags.
2890 Thu Jun  2 20:49:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
2892         * configure: Add support for --program-prefix and --program-suffix.
2894 Tue May 31 18:12:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2896         * convert.c (digest_constructor):  Check that initial value
2897         is compatible with element mode before calling convert.
2898         * typeck.c (chill_compatible):  A string mode is not compatible
2899         with an untyped constructor.
2900         * decl.c (do_decl):  Clean up error messages.  Use error_with_decl.
2902         * ch-tree.h:  Fix inconsistencies: bool_true_node ->
2903         boolean_true_node, and bool_false_node -> boolean_false_node.
2904         * typeck.c (valid_array_index_):  Minor simplification.
2906 Tue May 31 04:33:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2908         * inout.c (build_chill_writetext): Add correct processing 
2909         of POWERSET RANGE (setmode).
2911         * lex.l (same_file): Add searching for file(s) in
2912         seize_path_list.
2914 Fri May 27 14:22:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2916         * Make-lang.c (CHILL.mostlyclean, CHILL.distdir):  Don't list
2917         yacc/bison output files, since the grammer is no longer in yacc.
2918         * config-lang.in (diff_excludes):  Likewise.
2920 Thu May 26 16:38:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2922         * gperf, hash.h, lex.l, parse.h:  Rename PROCESS_TYPE token
2923         (in some files spelled PROCESS_TYPE_ to avoid clashes
2924         with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
2926 Thu May 26 02:18:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2928         * timing.c (build_cycle_start): Change call to __define_timeout.
2929         * decl.c (init_decl_processing): Change definitions of
2930         __define_timeout and __wait_timeout.
2932 Wed May 25 11:53:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2934         Replace yacc-based parser with a recursive-decent parser.
2935         (This may seem backwards, but Chill [like C++] is not a
2936         language that is remotely LALR(1).  Using a R-D parser
2937         allows us to use look-ahead and to back-up to resolve the
2938         difficult ambiguities.)
2939         * parse.y:  Removed.
2940         * parse.c, parse.h:  New files, containing new r-d parser.
2941         * Makefile.in:  Update accordingly.
2942         * actions.c (chill_convert_for_assignment):  Don't return
2943         NULL_EXPR if ignore_exprs is true.  It simplifies the parser
2944         if we consistently reserve NULL_EXPR for a missing expression.
2945         * expr.c (build_chill_function_call):  Likewise.
2947         * lex.l:  Tweaks for new parser.
2948         * lex.l (prepare_paren_colon, paren_paren_colon_level,
2949         paren_level):  Ugly hack no longer needed.
2951         * expr.c (build_chill_function_call):  Cleanup.
2952         Call chill_convert_for_assignment to convert IN/INOUT
2953         paramaters on both input and output.  For LOC parameters,
2954         give error if actual is a non-referable location.
2955         * actions.c (convert_for_assignment):  Add new parameter (a
2956         "place" string used in error messages).
2957         * actions.c (adjust_parm_or_field):  Removed.
2958         * actions.c (chill_expand_assignment):  Take just a single LHS,
2959         and move support for multiple assignments to ...
2960         (expand_assignment_action): ... here.  Some cleaning up.
2961         * timing.c (build_cycle_start):  Adjust accordingly.
2962         * actions.c (expand_assignment_to_varying_array):  Likewise.
2963         * tasking.c (many places): Ditto.
2964         * ch-tree.h:  Fix declarations appropriately.
2966         * parse.c (parse_defining_occurrence_list):  Return a single
2967         IDENTIFIER_NODE (instead of a singleton list) in the common
2968         case.  Minor complication to save a minor amount of space.
2969         * decl.c (do_based_decls):  Move guts of code into ...
2970         (do_based_decl):  ... this new function.
2971         * decl.c (do_decls):  Handle either IDENTIFIER_NODE or a TREE_LIST.
2972         * decl.c (push_syndecl):  Replace by ...
2973         (push_syndecl):  ... (which only supports a single name).
2974         (push_modedef):  Only handle a single name.
2975         * tasking.c (build_process_header, build_signal_struct_type):
2976         Adjust accordingly.
2978         * expr.c (build_generalized_call):  Handle string repetition.
2979         * expr.c (build_chill_repetition_op):  Change interface.
2980         * grant.c (decode_constant):  Allow parameter list to be
2981         a non-TREE_LIST.  (Used for string repetition.)
2983 Wed May 25 11:28:48 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2985         * lex.l (make_identifier):  Replaced by ...
2986         (read_identifier, handle_name): ... new functions.
2987         * lex.l: Parse an identifiers using read_identifier using
2988         read_identifier and handle_name, rather than having [f]lex
2989         do it.  (One reason is that lex uses a fixed-size buffer.)
2991         * lex.l (read_directive, skip_directive):  New functions.
2992         Use them to parse compiler-directives, instead of rather
2993         ugly and useless use of lexer start conditions.
2995 Tue May 24 22:36:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
2997         * decl.c (unnamed_module_number):  Renamed to ...
2998         (module_number):  .. and make non-static.
2999         (push_module):  Always increment module_number.
3000         * lex.l (yywrap):  Print warning if no modules seen.
3002         * decl.c (pop_module):  Don't set DECL_SEIZEFILE of granted
3003         decl to current_seizefile_name (which is unreliable).
3004         * grant.c (chill_grant):  Set it here instead.
3006         * expr.c (fold_set_expr):  Use int_size_in_bytes instead of
3007         TYPE_PRECISION (which is not defined for a SET_TYPE).   
3009 Fri May 20 15:21:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3011         Cleanup to remove need for variables in common storage.
3012         * decl.c:  Remove unused use of current_obstack.
3013         * actions.c (maybe_chill_check_decl):  Remove unused function.
3014         * actions.h, lang.c:  Remove uses of doing_chill_thang.
3015         * ch-tree.h (void_list_node):  Make extern (rather than common).
3016         * decl.c (void_list_node):  Add definition.
3018 Thu May 19 06:54:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3020         * configure (build): Build canon_host and canon_target
3021         to pass it to all subsequently generated Makefiles (needed
3022         for testsuite/execute in case of cross build).
3024 Wed May 18 13:27:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3026         * grant.c (decode_mode):  Remove.  It checks the TYPE_NAME of
3027         the input type, which loses with the no-longer-new 2-pass
3028         implementation, since the input "type" could be an IDENTIFIER_NODE.
3029         * grant.c (raw_decode_mode):  Rename to decode_mode.
3031 Tue May 17 13:19:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3033         * typeck.c (chill_location):  Neither a STRING_CST nor a
3034         CONSTRUCTOR is a location.
3035         * typeck.c (chill_root_mode):  Convert a function to a
3036         pointer-to-function.
3037         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3038         build_chill_arrow_expr):  If ignore_exprs, return operand
3039         rather than NULL_EXPR.  This makes it easier for the parser to
3040         distinguish missing expressions.
3041         * expr.c (build_max_min):  Convert the lower bound of a
3042         set to a long before calling run-time routine.
3043         * expr.c (build_chill_pred_or_succ):  Use discrete_type_p
3044         to check the argument type.
3045         * expr.c (build_chill_arrow_expr):  If argument is not a location,
3046         do a predwarn if it is a STRING_CST or has function type.
3048 Tue May 17 06:05:13 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3050         * configure (build): Remove building of canon_host and canon_target.
3051         It doesn't work in any case.
3053 Mon May 16 02:10:35 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3055         * configure (build): Build canon_host and canon_target
3056         to pass it to all subsequently generated Makefiles (needed
3057         for testsuite/execute in case of cross build).
3058         * Make-lang.in (chill-runtime): Change chill to CHILL in the case
3059         statement to build chill-runtime automatically.
3061 Mon May  9 15:30:08 1994  Doug Evans  (dje@canuck.cygnus.com)
3063         * Makefile.in (FLAGS_TO_PASS): Define.
3064         (OBJDEPS): Define.
3065         (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
3066         * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
3067         (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
3069 Sun May  8 13:05:00 1994  Per Bothner  (bothner@cygnus.com)
3071         * Make-lang.in (cc1chill):  Should not depend on libgcc.a.
3073 Thu May  5 18:58:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3075         * decl.c (copy_lang_decl):  New (dummy) function.
3077 Mon May  2 14:33:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3079         * parse.y (sendaction):   Fix thinko (in sense of condition).
3080         * tasking.c (build_receive_case_label):  Another thinko.        
3082         * parse.y (optsigdest):  Force ignore_exprs to 0 while parsing
3083         the (signal-)name.
3085         * decl.c (build_chill_function_type):  Don't call layout_type
3086         (since that may prevent parameter or result types being
3087         properly satisfied).
3088         * satisfy.c (satisfy):  Layout FUNCTION_TYPEs.
3089         * parse.y (procmode):  Call build_chill_pointer_type, rather
3090         than build_pointer_type (which incorrectly sets TYPE_SIZE). 
3092         * parse.y (get_type_of):  Handle TYPE_DECL (again).
3093         * parse.y (optresultspec):  Call build_chill_reference_type, rather
3094         than build_reference_type (which incorrectly sets TYPE_SIZE).
3095         * parse.y (range_or_mode):  Rename to plain range, since it
3096         no longer matches modename.
3097         * actions.c (chill_handle_case_label_range):  New function, with
3098         functionality moved out of chill_handle_case_label.
3099         * actions.c (chill_handle_case_label):  Handle here the case that
3100         the label_value is a TYPE_DECL (modename).   Also clean up some.
3101         * typeck.c (build_chill_slice_with_length):  Convert max_index
3102         to the type of min_value.  (Old code broke on varying strings.)
3104 Sun May  1 13:53:36 1994  Doug Evans  (dje@canuck.cygnus.com)
3106         * Makefile.in (BC_OBJS): Delete all references
3107         (OBJS): Cat ../stamp-objlist to get language independent files.
3108         (../cc1chill): Delete dependency on $(OBJS).
3109         * Make-lang.in (cc1chill): Depend on stamp-objlist.
3111 Sat Apr 30 14:50:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3113         * lex.h, lex.c:  Remove lastiddecl.
3114         * lex.l (name_type_signal):  Simplify.  We no longer check for
3115         TYPENAME or SIGNALNAME (which was unreliable with two passes).
3116         Also rename to make_identifier.
3117         * parse.y:  Cleaned up grammar to not need SIGNALNAME or TYPENAME.
3118         * Makefile.in (stamp-parse);  One conflict fewer!
3119         * parse.y (rccase_label_flag):  Moved to tasking.c.
3120         * parse.y (rccase_label):  Move most of the logic to
3121         build_receive_case_label in tasking.c.
3122         * parse.y (sendaction):  Re-write to not depend on SIGNALNAME.
3124         * parse.y (name):  Do name lookup here (and not in location).
3125         * parse.y:  Replace most uses of NAME by higher-level non-terminals:
3126         simple_name_string, name_string, defining_occurrence, or name.
3128         * tasking.c (build_receive_signal_case_label,
3129         build_receive_buffer_case_label):  New functions, split out from
3130         build_receive_case_label.
3131         * tasking.c (build_receive_case_label):  Change parameters
3132         and return type.  Moved stuff here (from the parser).
3133         * tasking.c (struct rc_state_type):  Removed had_errors.
3134         Return error_mark_node instead.
3135         * tasking.c (build_rccase_set_error), ch-tree.h:  Removed.
3137         * expr.c (build_generalized_call):  If func is a signal type,
3138         call build_signal_descriptor.
3140         * parse.y (arrayindex):  Renamed to index_mode, to match Z.200.
3141         * parse.y (ioindexmode):  Removed;  use index_mode instead.
3142         * expr.c (build_generalized_call):  If args is a RANGE_EXPR,
3143         we have either a slice or a range mode, depending on func.
3144         * parse.y (index_mode):  If we got an 'expr', only allow a name,
3145         or a range mode.
3146         * parse.y (call):  A slice with both end points can be a range
3147         mode, so defer handling to build_generalized_call (or index_mode).
3149         * typeck.c (build_chill_slice_with_length):  Fix type-checking.
3150         * typeck.c (chill_novelty):  Undo (part of) change of April 28:
3151         The novelty of a range mode is the novlety of the parent.
3152         * typeck.c (chill_root_mode):  Don't return integer_type_node
3153         if argument has non-nil novelty.
3155         * decl.c (global_bindings_p):  Return -1 as true, for the sake
3156         of variable_size (in ../stor-layout.c).
3158 Fri Apr 29 13:42:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3160         * parse.y:  Remove TYPENAME and modename.  These are now plain
3161         NAMEs.  Modify parsing actions appropriately.
3162         * expr.c (build_generalized_call):  Handle the case that
3163         TREE_CODE (func) == TYPE_DECL (as in a cast).
3164         * lex.l (name_type_signal):  Never return TYPENAME.
3165         * parse.y (get_type_of):  If pass 1, just return the argument.
3167         * decl.c (do_decl):  If an initializer has the wrong type,
3168         replace it by NULL_TREE, to avoid subsequent errors.
3170 Thu Apr 28 15:21:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3172         * Makefile.in: Add new file timing.c to rules.
3173         * timing.c: New file. Implements the timing actions AT,
3174           CYCLE and AFTER.
3175         * decl.c (init_decl_processing): Add new builtin function
3176           descriptions.
3177         * expr.c (build_chill_indirect_ref): Change error message and
3178           add check agains an IDENTIFIER_NODE.
3179         * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
3180           They are no longer needed.
3181         * grant.c (print_integer_type): Add processing of builtin types
3182           DURATION and TIME.
3183         * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
3184         * parse.y (timingactions): split up to afteraction, ataction
3185           and cycleaction.
3186         * parse.y (afteraction): New rule.
3187         * parse.y (ataction): New rule and put actions in.
3188         * parse.y (cycleaction): New rule and put actions in.
3189         * parse.y (sendaction): Add code for SEND buffer.
3190         * parse.y (rccase_label): Change error processing.
3191         * tasking.c (build_gen_inst): More checks.
3192         * tasking.c (build_gen_code): Add checking for argument is a 
3193           PROCESS or a SIGNAL.
3194         * tasking.c (struct rc_state_type): Add new fields for easier
3195           error processing.
3196         * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
3197         * tasking.c (build_rccase_set_error), ch-tree.h: New function.
3198         * tasking.c (build_receive_case_label): Add processing of BUFFER's.
3199         * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
3200           New functions to process the end of a RECEIVE CASE action in case
3201           of BUFFER's and SIGNAL's.
3202         * tasking.c (build_receive_case_end): Do only general processing and
3203           call one of the above mentioned functions.
3204         * tasking.c (build_delay_case_start, build_delay_case_label,
3205           build_delay_case_end): Rewritten due to new implementation of events.
3206         * tasking.c (build_delay_action): Rewritten due to new implementation
3207           of EVENT's.
3208         * tasking.c (expand_send_buffer), ch-tree.h: New function.
3209         * timing.c (build_at_action, build_cycle_start, build_cycle_end),
3210           ch-tree: New functions.
3212 Thu Apr 28 14:11:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3214         * typeck.c (smash_dummy_type):  Handle the special case of a
3215         NEWMODE of a range mode, as required by Z200, by creating a
3216         new parent mode with the new novelty (and casting the min
3217         and max of the range to teh new parent mode).
3218         * typeck.c (chill_novelty, chill_root_mode):  Remove special
3219         kludges for of NEWMODE ranges.
3220         * expr.c (build_chill_lower_or_upper):  New function, combining
3221         the "guts" of build_chill_lower and build_chill_upper.
3222         * expr.c (build_chill_lower_or_upper):  Simplify;  no longer
3223         need to kludge the novelties.
3225         * typeck.c (valid_array_index_p):  A string index expression
3226         need not be Compatible with the index type;  only similar.
3228         * decl.c (layout_chill_variants):  If error seen, skip stuff
3229         (rather than aborting or crashing).
3230         * decl (push_modedef):  If newdecl's type is an error mark,
3231         continue rather than aborting.
3233 Thu Apr 28 02:07:42 1994  Doug Evans  (dje@cygnus.com)
3235         * Make-lang.in: Update of directory reorg from fsf.
3236         * config-lang.in: Ditto.
3238 Mon Apr 25 13:09:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3240         * typeck.c (chill_similar):  Check RECORD_TYPEs properly,
3241         * convert.c (convert):  If all else fails, just call convert1.
3242         Thus we can now convert RECORD_TYPEs (assuming they are similar).
3244         * parse.y, lex.l:  Remove BUFFERNAME (use location/expr instead).
3245         * parse.y:  Re-do BUFFER handling (similar to previous EVENT change).
3246         * grant.c (raw_decode_mode):  Re-do BUFFER mode handling.
3247         * ch-tree (lang_type_record):  Removed max_queue_size field.
3248         * tasking.c (build_buffer_type):  Re-write.
3249         * tasking.c (max_queue_size):  Fix to support buffer modes.
3250         * tasking.c (buffer_element_mode), ch-tree.h:  New function.
3251         * tasking.c ch-tree.h (expand_send_buffer):  Now has 3 parameters.
3252         * parse.y (modename):  No longer match SIGNALNAME.  Instead, add it
3253         to name and simple_name_string.  This removes a reduce/reduce conflict.
3254         * Makefile.in (stamp-parse):  Expect fewer conlicts.
3256         * lex.l (yywrap):  Move check for circularly seizeing current
3257         grant-file from here ...
3258         * lex.l (handle_use_seizefile_directive):  ... to here.
3259         This is to avoid calling stat on a not-yet written grantfile,
3260         now that we're using same_file (which calls stat).
3261         * grant.c (set_use_this_gf):  Removed.
3262         * grant.c (set_default_grant_file):  Set grant_file_name here,
3263         because we need it earlier (due to above lexer change).
3265         * typeck.c (layout_chill_struct_type):  Remove useless code to
3266         remove zero-width bitfield (which messes up CONST_DECLs).
3268 Sat Apr 23 13:16:39 1994  Bill Cox  (bill@rtl.cygnus.com)
3270         * Makefile.in (check): Assure that 'ld' is available before checking.
3272 Thu Apr 21 13:23:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3274         * grant.c (print_an_int):  Removed.
3275         (raw_decode_mode):  Generalized to use decode_constant
3276         instead of print_an_int.
3277         (decode_constant):  Print directly, instead of calling print_an_int.
3278         * parse.y (event_list):  Fix syntax.
3279         * parse.y (optqueuesize):  Default is NULL_TREE, not zero.
3280         * tasking.c (check_queue_size):  New function, for error checking.
3281         * ch-tree.h:  Add declaration for check_queue_size.
3282         * satisfy.c (satisfy case RECORD_TYPE):  Satisfy constant fields
3283         (used for queue size of EVENT and BUFFER), and call check_queue_size.
3285 Tue Apr 19 13:42:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3287         Re-implement EVENT modes to support general EVENT objects
3288         (and not just EVENT names), according to Z200.  (Not finished!)
3289         * tasking.c, ch-tree.h (max_queue_size):  New function.
3290         * parse.y (dcalternative, event_list, event_list_head):  New
3291         implementation of DELAY CASE, avoiding parsing ambiguities.
3292         (call, locdec, delayaction):  Remove old EVENTNAME kludges.
3293         * lex.l (name_type_signal):  Remove EVENTNAME recognition.
3294         * tasking.c (build_event_type):  Re-written.
3295         * typeck.c (chill_similar), decl.c (print_lang_type):
3296         Use new max_queue_size function.
3297         * typeck.c (layout_chill_struct_size):  Ignore CONST_DECL.
3298         * tasking.c (build_delay_action):  Preliminary changes - just to
3299         make it compile.  FIXME!
3300         * grant.c (raw_decode_mode):  Use new max_queue_size function.
3301         Move EVENT support from LANG_TYPE to RECORD_TYPE.
3302         * ch-tree.h (process_event_decls):  Removed.
3304 Tue Apr 19 11:44:01 1994  Bill Cox  (bill@rtl.cygnus.com)
3306         * regression.sh: Complete previous change - eliminate all
3307           references to objdir as a user parameter.
3309 Mon Apr 18 10:17:55 1994  Bill Cox  (bill@cygnus.com)
3311         * Makefile.in (check): Simplified regression.sh call.
3312         * regression.sh: Change command-line parsing.  Default
3313           srcdir to the script's path.  Calculate objdir
3314           internally - don't pass it in.
3316 Thu Apr 14 13:30:19 1994  Wilfried Moser  (moser@phishhead.cygnus.com)
3318         * expr.c (build_chill_duration): Add range checking.
3320         * lex.l (init_lex): Add predefined names DURATION and TIME.
3321         * lex.h (enum rid): Add RID_DURATION and RID_TIME.
3322         * ch-tree.h: Add prototypes and externals.
3323         * decl.c (init_decl_processing): Add builtin function
3324         descriptions.
3325         * expr.c (build_generalized_call): Add processing of some
3326         builtin's.
3327         * expr.c (build_chill_abstime): New function to process builtin
3328         ABSTIME.
3329         * expr.c (build_chill_inttime_type): New function to built type
3330         for the INTTIME builtin.
3331         * expr.c (build_chill_inttime): New function to process builtin
3332         INTTIME. 
3333         * expr.c (build_chill_duration): New function to process builtin's
3334         MILLISECS, SECS, MINUTES, HOURS and DAYS.
3336 Tue Apr 12 11:55:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3338         * lex.l (chill_same_grant_file):  Rename to same_file.  Change to
3339         take two files names rather than two DECLs.  Also check that the
3340         filesystems (st_dev) are equal.  Finally, make static.
3341         * lex.l (handle_use_seizefile_directive):  Check for duplicate
3342         USE_SEIZE_FILE directives using same_file.
3343         * decl.c (pop_module):  Remove dubious call to chill_same_grant_file.
3345 Sun Apr 10 17:19:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3347         * decl.c, ch-tree.h (chill_result_decl):  New variable.  Used to
3348         store RESULT value.  (Cannot use DECL_RESULT;  see comment in decl.c.)
3349         * actions.c (chill_expand_result, chill_expand_return):
3350         Use chill_result_decl appropriately.
3351         * ch-tree.h, decl.c, actions.c (saved_result_rtx):  Removed.
3352         Subsumed by chill_result_decl.
3354         * expr.c (chill_expand-expr case CONCAT_EXPR):  Generate temporary
3355         using the mode of the result type, and don't assume it is BLKmode.
3357 Fri Apr  8 17:46:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3359         * actions.c (chill_expand_assignment):  Check for compatibility
3360         _after_ "expanding out" a binary operation.  This fixes
3361         the case "STRING //:= CHAR".
3363         * lex.l (equal_number):  Convert symbol to integer_type_node, to
3364         force the value to be INT-derived (and avoid novelty conflicts).
3366 Mon Apr  4 22:06:31 1994  Per Bothner  (bothner@cygnus.com)
3368         * ch-tree.h (CH_FUNCTION_SETS_RESULT):  New flag.
3369         * ch-actions.c (chill_expand_return), ch-tree.h:  Extra
3370         parameter, indicates if implicit return at end of function.
3371         * ch-parse.y:  Modify accordingly.
3372         * ch-actions.c (chill_expand_return):  Various improvements.
3374         * decl.c, ch-tree.h (result_never_set):  New variable.
3375         * actions.c (chill_expand_result, chill_expand_return):  Clear it.
3376         * ch-parse.y (end_function):  Warn if no RETURN or RESULT action.
3378         * decl.c, ch-tree.h (saved_result_rtx):  New variable.
3379         * decl.c (start_chill_function):  Use saved_result_rtx as return
3380         value if there is a RESULT in a REG that might get clobbered.
3381         * actions.c (chill_expand_result):  Save result in saved_result_rtx
3382         or assign to DECL_RESULT as appropriate.
3383         * decl.c, ch-tree.h (current_function_returns_value,
3384         current_function_returns_null, current_extern_inline):
3385         Don't use.  Only define first two to allow linking with ch-typeck.c.
3387         * typeck.c (chill_l_equivalent):  Add forward declaration.
3389 Fri Apr  1 11:02:27 1994  Wilfried Moser  (fs_moser at rcsw47)
3391         * lex.l (readstring): Handle control sequence in all cases (Z.200
3392         5.2.4.4 page 54).
3394 Fri Apr  1 13:11:27 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3396         * configure:  Simplify and fix the logic for looping through
3397         sub-directories.
3399 Thu Mar 31 18:59:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3401         * ch-tree.h (CH_L_EQUIVALENT):  Moved from typeck.c.
3402         * typeck.c (chill_similar):  Add support for checking
3403         FUNCTION_TYPEs for similarity.  Also, treat
3404         pointer-to-function-type the same as function-type.
3406 Thu Mar 31 11:22:56 1994  Wilfried Moser  (fs_moser at rcsw47)
3408         * ch-tree.h: Change prototype of function expand_send_signal.
3409         * parse.y: Change calls to expand_send_signal.
3410         * tasking.c (expand_send_signal): Change handling of optsetto
3411         argument. New argument signame to get a possible destination
3412         process for the signal.
3414 Wed Mar 30 14:54:48 1994  Wilfried Moser  (fs_moser at rcsw1j)
3416         * tasking.c (make_process_struct): Change error message in case of
3417         a process argument has other attribute then IN or LOC.
3418         * tasking.c (build_start_process): Add check that the optset is
3419         referable in case it is specified (this makes
3420         noncompile/start_.ch working).
3422 Tue Mar 29 13:24:27 1994  Wilfried Moser  (fs_moser at rcsw1h)
3424         * Makefile.in: Change version string to 1.2.1
3425         * ch-tree.h (enum chill_built_in_function): Delete no longer valid
3426           entries. 
3427         * ch-tree.h: Change prototype for build_chill_readtext.
3428         * decl.c (init_decl_processing): Add builtin_function _readstring,
3429           _readunixstd and READTEXT.
3430         * expr.c (build_generalized_call): Add processing of READTEXT.
3431           Delete handling of no longer valid builtin_functions.
3432         * gperf: Remove keyword READTEXT.
3433         * parse.y: Remove token READTEXT.
3434         * inout.c (build_chill_io_list_type): Add building type for
3435           READTEXT. 
3436         * inout.c (build_chill_readtext): Implement the function
3437           (partial).
3438         * inout.c (build_chill_writetext): Do some cleanups.
3440 Tue Mar 29 12:30:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3442         * typeck.c (build_chill_cast):  Re-arrange, to support casts
3443         of const integer to type of different size, if there is
3444         an integral type of the desired size:  Go through the
3445         const conversion code.
3447         * actions.c (adjust_parm_or_field):  Move support for LOC to ...
3448         * expr.c (build_chill_function_call): ... here.
3449         Fix a number of bugs in OUT/INOUT handling.
3451         * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
3452         parse.y (location), typeck.c (chill_comptypes):  Remove unused
3453         support for ENCAPSULATED_ARRAY_P.
3454         * typeck.c (build_chill_array_parm_type), ch-tree.h:  Remove; unused.
3456         * ch-tree.h, decl.c (shadow_record_fields), decl.c
3457         (shadow_record_fields), expr.c (chill_expand_case_expr,
3458         build_chill_function_call), grant.c (chill_finish_compile),
3459         typeck.c (build_empty_string, build_init_struct):  Rename magic 
3460         identifiers of the form "<...>" to "__..." for better portability.
3462         * actions.c (adjust_parm_or_field):  Remove extraneous
3463         call to build_chill_repetition_op.
3464         * expr.c (build_chill_function_call):  Some simplifictions
3465         (since neither valtail nor typetail can be NULL).
3466         Clean up error message for OUT//INOUT not location to use only 1 line.
3467         Add error message for OUT/INOUT if type is READonly.
3468         * typeck.c (build_chill_modify_expr):  Simplify.
3470 Sun Mar 27 19:30:25 1994  Bill Cox  (bill@rtl.cygnus.com)
3472         * Makefile.in: Clean up generally.  Assure that
3473           runtime is built before running regressions.
3474           Build correct parameters to regression.sh.
3475           Remove a lot of 'clean' cruft.
3476         * Make-lang.in, config-lang.in: New files for
3477           subdirectory architecture.
3479 Sat Mar 26 10:39:12 1994  Bill Cox  (bill@rtl.cygnus.com)
3481         * Makefile.in (check): Build correct parameters for regression.sh.
3483 Fri Mar 25 10:13:06 1994  Bill Cox  (bill@rtl.cygnus.com)
3485         * configure: Also mark regression.awk3 as executable.
3486         * regression.sh: Add comments about command-line options.
3487           Calculate srcdir correctly, defaulting to the script's path.
3488           Add OPT flag to pass to the Makefiles, to specify the
3489           compiler's optimization level, and -O  and -O2 options.
3490           Delete GLOBAL flag and tests.  Use a different make.log
3491           file for optimized and unoptimized test results.  Add the
3492           compiler's host and target triples to the report header.
3494 Wed Mar 23 21:41:26 1994  Bill Cox  (bill@rtl.cygnus.com)
3496         * expr.c (build_chill_function_call): Handle INOUT and OUT
3497           parameters better (for the rangefail test, at least).
3499 Wed Mar 23 14:13:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3501         * regression.sh (srcdir, objdir):  Fixed hard-wired paths.
3502         (grep args):  Changed [XYZ-] to [-XYZ] for SCO.
3504 Wed Mar 23 13:34:18 1994  Bill Cox  (bill@rtl.cygnus.com)
3506         * expr.c (build_generalized_call): Revert previous change.
3507           To do this correctly, we need a new parsing mechanism, and
3508           C++ initializer technology.
3510 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
3512         * expr.c (build_generalized_call): Be sure we're inside the
3513           module-level function before calling build_gen_inst, for
3514           example.
3516 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
3518         * regression.sh (dodirectory): Count the gcov and abort tests
3519           among the .dat files.
3521 Tue Mar 22 15:39:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3523         * satisfy.c (safe_satisfy_decl):  When checking that a SYN
3524         value fits in a specified discrete type, don't convert first,
3525         and use compare_int_csts instead of tree_int_cst_lt.
3527 Tue Mar 22 15:25:38 1994  Bill Cox  (bill@rtl.cygnus.com)
3529         * configure: Generate better .gdbinit files.
3531 Tue Mar 22 11:59:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3533         * actions.c (check_range):  Don't emit dynamic checks
3534         if not current_function_decl.
3536         * parse.y (arrayindex):  Allow expr (error is emitted
3537         at semantic level if not the NAME of a type).
3538         * typeck.c (build_chill_cast):  Re-enable some casts.
3539         * satisfy.c (safe_satisfy_decl):  Remove redundant CONST check.
3541 Tue Mar 22 11:46:28 1994  Bill Cox  (bill@rtl.cygnus.com)
3543         * configure: Access the utils directory correctly.
3544         * expr.c (build_compare_expr): Reenable compatibility test.
3546 Tue Mar 22 11:24:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3548         * typeck.c (valid_array_index_p):  Call
3549         build_compare_discrete_expr instead of build_compare_expr.
3550         * typeck.c (build_chill_cast):  Improve logic.
3551         * satisfy.c (safe_satisfy_decl):  Simplify test.
3553 Tue Mar 22 10:17:58 1994  Bill Cox  (bill@rtl.cygnus.com)
3555         * actions.c (chill_expand_assignment): Correct detection of
3556           string assignment case.
3557         * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
3558           the actual parameters need to be converted to the unsigned long
3559           type explicitly.  Do that.    
3560         * satisfy.c (safe_satisfy_decl): Correct range-checking code.
3562 Mon Mar 21 16:25:07 1994  Bill Cox  (bill@rtl.cygnus.com)
3564         * Makefile.in: Correct prediction of grammar conflicts.
3565         * actions.c(check_range): Fix reference to NULL_TREE pointer.
3566           And allow compile-time errors even if range_checking is off.
3567         * parse.y: Clean up some comments.
3568         * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
3570 Mon Mar 21 13:29:23 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3572         * typeck.c (layout_chill_range_type):  Instead of tree_int_cst_lt
3573         use compare_int_csts (which is more robust when signedness differs).
3574         Also, convert the bounds *after* doing range checking.
3576         * ch-tree.def (SET_IN_EXPR):  New.
3577         * expr.c (chill_expand_expr):  Code to expand SET_IN_EXPR,
3578         moved from expand_expr in ../expr.c.  Also add some extra
3579         conversions (because we're now using build_chill_function-call).
3580         * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c: 
3581         Use SET_IN_EXPR in place of IN_EXPR.
3583         * expr.c (build_compare_discrete_expr), ch-tree.h:  New function,
3584         with code moved from build_compare_expr.
3585         * expr.c (build_compare_expr):  Re-enable compatibility test.
3587 Mon Mar 21 11:02:33 1994  Bill Cox  (bill@rtl.cygnus.com)
3589         * Makefile.in: Rewrite byacc related rules.
3590         * actions.c (chill_convert_for_assignment): Use the
3591           referenced type only for generating range checks.
3592         * configure: Add 'utils' directory to SUBDIRS variable.
3594 Sun Mar 20 21:49:59 1994  Bill Cox  (bill@rtl.cygnus.com)
3596         * actions.c (check_range): Call build_compare_expr rather than
3597           build_binary_op.
3598           (adjust_parm_or_field): Call convert_for_assignment rathern than
3599           convert, to get the range-checking.
3600         * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
3601           Generate a compile-time message if possible.
3602           (build_compare_expr): Comment out compatibility test - should
3603           not be needed in here.  Fix a couple of typos.  Add some types
3604           to some build calls.
3606 Sun Mar 20 11:48:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3608         * decl.c (init_decl_processing):  Clean up parameter type
3609         list for __setbitpowerset,
3611         * typeck.c (chill_compatible_classes):  Allow the M-reference
3612         to be compatible with the N-value class, with suitable M and N.
3613         * typeck.c (build_chill_slice):  Don't smash a void TREE_TYPE.
3614         (We don't need to, and it causes confusion.)
3616         * expr.c (build_compare_expr):  Fix thinko.  Add save_exprs.
3618         * expr.c (build_compare_expr):   Fix a transcription bug
3619         (for converting NULL INSTANCEs).  Also #include convert.h.
3621         * expr.c (compare_int_csts):  New.  Compare INTEGER_CSTs.
3622         Works even if their types have different TREE_UNSIGNED.
3623         * expr.c (finish_chill_binary_op):  Moved code dealing with
3624         the comparison operators from here ...
3625         * expr.c (build_compare_expr):  ... to new function here.
3626         Also, for discrete types, tries to Do The Right Thing, even for
3627         differing values of TYPE_PRECISION and TREE_UNSIGNED.
3628         the code from lay
3629         * ch-tree.h:  Declare new functions.
3630         * typeck.c (valid_array_index_p):  Various cleanups,
3631         including using new build_parse_expr.
3632         * parse.y:  Use new build_compare_expr.
3634         * inout.c (build_chill_writetext):  Handle REFERENCE_TYPE args.
3636 Sun Mar 20 08:54:27 1994  Bill Cox  (bill@rtl.cygnus.com)
3638         * actions.c (expand_assignment_to_varying_array): 
3639           Call build_chill_array_ref to get index checking.
3640           (chill_convert_for_assignment): Delete unused errstr
3641           variable.
3642           (chill_expand_assignment): Call build_chill_array_ref
3643           to get runtime index checking.
3644           (expand_varying_length_assignment): Use new interface
3645           to varying_array_index_p.
3646         * ch-tree.h (varying_array_index_p): New proto.
3647         * convert.c (convert): Call build_chill_array_ref
3648           to get runtime index checking.
3649         * expr.c (build_chill_pred_or_succ): Fix cond tree
3650           to have consistent operand types.
3651         * typeck.c (valid_array_index_p): Change interface to pass
3652           validity conditions back on caller's TREE_LIST.  We
3653           cannot link the conditions to anything which a
3654           layout_type routine will expand, since that will occur
3655            before the exception handler is set up.
3656           Change calls to valid_array_index_p also.
3658 Fri Mar 18 14:40:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3660         * actions.c, except.c, loop.c, tasking.c:  Call
3661         build_chill_function_call instead of the C-specific
3662         build_function_call.
3663         * except.c (initialize_exceptions):  Fix parmtype of __builtin_setjmp.
3664         * loop.c (top_loop_end_check):  Coerce library function arg.
3665         * convert.c, expr.c:  Re-write to avoid calls to C-specific
3666         function build_unary_op (e.g. by calling build1 directly).
3668         * typeck.c (chill_equivalent):  Change to force failure
3669         for non-matching integral types (even if not ranges).
3671         * typeck.c, ch-tree.h (build_chill_slice):  Make non-static.
3672         * expr.c (varying_to_slice):  Call build_chill_slice (and not
3673         build_chill_slice_with_length, which does bunches of range
3674         checking and does not allow the length to be zero).
3675         * convert.c (convert):  Fix off-by-one error.
3676         * actions.c (chill_expand_array_assignment):  Minor cleaning up.
3678 Fri Mar 18 00:12:48 1994  Per Bothner  (bothner@deneb.cygnus.com)
3680         * decl.c (init_decl_processing):  __lepowerset and __ltpowerset
3681         take *two* pointer parameters, not one.
3682         * satisfy.c (satisfy):  Only call the appropriate layout routine
3683         if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
3684         * typeck.c (build_chill_slice_with_length):  Fix Bill's previous fix.
3686 Thu Mar 17 17:29:43 1994  Bill Cox  (bill@rtl.cygnus.com)
3688         * expr.c (build_chill_function_call): Give function call the correct
3689           type tree.
3690         * typeck.c (build_chill_slice_with_length): Restore dynamic range
3691           checking, so it doesn't obscure the CONSTANTness of the length.
3693 Wed Mar 16 17:23:31 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3695         * typeck.c (build_chill_slice), expr.c (chill_expand_expr
3696         [case CONCAT_EXPR]):  Remove kludge setting slice size upper bound
3697         in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
3698         * typeck.c (build_chill_slice):  Use TYPE_MAX_VALUE of
3699         array_type if needed for size upper bound of slice_type.
3700         * expr.c (build_concat_expr):  Improve calculation of size upper bound.
3702         * typeck.c (valid_array_index_p):  Check compatibility using
3703         correct types.
3704         * typeck.c (build_chill_slice_with_length);  For now revert
3705         calling valid_array_index_p on length.  (It makes it harder 
3706         to realize when the slice is constant length.)
3707         * expr.c (build_chill_indirect_expr):  Minor tweak.  (This
3708         seems to work around a weird C compiler bug. ??)
3710         * expr.c (build_chill_function_call):  Cleanup so it doesn't
3711         call build_function_call (in c-typeck.c).
3712         * typeck.c, expr.c:  Use build_chill_function_call instead of
3713         build_function_call (in c-typeck.c).
3715         * parse.y (discrete_mode):  Move some of the rules from
3716         non_array_mode into new non-terminal.
3717         (arrayindex):  Use discrete_mode (with NAME and TYPENAME) to
3718         avoid some misparses.
3719         * ch-tree.h (SLICE_PTR, SLICE_LENGTH):  Removed;  unused.
3720         * convert.c (digest_structure_tuple):  Add missing parameter.
3721         * decl.c (comptypes):  Remove unused prototype.
3722         * decl.c (build_chill_function_type):  Handle NULL return_type
3723         correctly (convert to void_type_node).
3724         * decl.c (init_decl_processing):  layout boolean_type_node *after*
3725         we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
3727 Wed Mar 16 16:08:22 1994  Bill Cox  (bill@rtl.cygnus.com)
3729         * ch-tree.h: Add prototype.
3730         * convert.c (convert): Correct calculation of padding length.
3731         * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
3732           parse.y where it belongs.  This permits the removal of a kludge
3733           in make_process_struct.
3734         * lex.l, parse.y: Call to_global_level for several errors.  Add
3735           code to output error in only one pass.
3736         * tasking.c (make_process_struct): Delete kludge inserted on
3737           March 8.
3738           (build_receive_case_end): Add Wilfried's check for errors.
3740 Tue Mar 15 08:42:12 1994  Bill Cox  (bill@rtl.cygnus.com)
3742         * actions.c: Fix comment.
3743           (build_rts_call): Ifdef it out - never used.
3744           (expand_varying_length_assignment): call valid_array_index_p.
3745           rather than validate_varying_array_ref.
3746         * ch-tree.h: Fix prototype for valid_array_index_p.
3747         * expr.c (chill_expand_expr): Call build_chill_array_ref to get
3748           index validation.
3749           (build_hill_lower, build_chill_upper): Return value now inherits
3750           the novelty of the input parameter.
3751           (varying_to_slice): Use CH_NOVELTY macro rather than calling
3752           chill_novelty directly.
3753         * grant.c (newstring): Make len unsigned and cast xmalloc parameter
3754           to unsigned.
3755           (print_integer_type): Pass string value as APPEND's second parameter.
3756           (decode_decl): Pass a boolean expression as print_proc_tail's
3757           first parameter.
3758           (chill_finish_module_code): Make xmalloc's parameter unsigned.
3759         * lex.l: Pass sizes to xmalloc as unsigned ints.  Pass second
3760           parameter to in_word_set as unsigned.
3761         * loop.c (build_loop_start): Check top_loop_end_check return value.
3762         * parse.y: Add casts to int for third do_decls parameter, fifth
3763           build_loop_iterator parameter, etc.
3764         * tasking.c (build_receive_case_end): Chack cond_stack before popping.
3765         * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
3766           valid_array_index): Delete them.  They're now unused.
3767           (valid_array_index_p): Add function, call it everywhere that an
3768           array index is checked.
3769           (build_chill_slice): Restore old functionality where varying_to_slice
3770           is called to handle slices of varying arrays, rather than handling
3771           handling them here.
3772           (build_chill_slice_with_range, build_chill_slice_with_length):
3773           Check range limits for TREE_CONST before calling tree_int_cst_lt.
3774           Delete now-obsolete checks of constant indices.
3776 Mon Mar 14 17:26:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3778         * parse.y (modeless_expr):  New rule to allow ([...]) and (if...)
3779         to count as untyped_exprs.  (This is not really permitted by the
3780         Blue Book, but has been requested by customers.)
3782 Thu Mar 10 10:11:02 1994  Bill Cox  (bill@rtl.cygnus.com)
3784         * chill.texi: Document new command-line options.
3785         * expr.c (build_chill_num): Set unsigned parameter for
3786           type_for_size call correctly (unsigned for enums).
3787         * lang.c (lang_decode_option): Add command-line options to
3788           enable/disable runtime range-checking.
3789         * lex.l: Eat more whitespace.
3791 Thu Mar 10 09:41:37 1994  Bill Cox  (bill@rtl.cygnus.com)
3793         * Makefile.in: Have rules to make parse.h, y.tab.c and other
3794           derived files.  This allows the gcc/configure list of CHILL
3795           files machinery to work.
3796         * ch-tree.h (permanent_allocation): Add a parameter flag.
3797         * decl.c (finish_chill_function, finish_decl): Provide the 
3798           new permanent_allocation flag.
3799           (poplevel): Return early, avoid a seg fault.
3800         * lex.l (NORMAL): Replace this whole state with the predefined 
3801           INITIAL state.  Force compilation state to global level after
3802           compiler directive error - prevents endless loop on error.
3803           (handle_use_seizefile_directive): Rewrite for readability.
3804           (chill_same_grant_file): Reindent.
3805           Generally handle whitespace differently.
3806         * regression.prpt: Print ten PR numbers per line.  The report's
3807           getting too long.
3809 Wed Mar  9 09:58:51 1994  Bill Cox  (bill@rtl.cygnus.com)
3811         * decl.c (do_decl): Suppress the string-assignment-condition
3812           error - it was too often seen.
3813         * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
3814           runtime-changing length (as in a slice), get the parent array's
3815           allocation size from its type tree.
3816         * typeck.c (build_chill_slice): Support VARYING arrays.  Pass
3817           parent array's static allocation size along in the slice type.
3819 Wed Mar  9 08:54:24 1994  Bill Cox  (bill@rtl.cygnus.com)
3821         * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
3823 Tue Mar  8 11:51:10 1994  Bill Cox  (bill@rtl.cygnus.com)
3825         * expr.c (build_chill_sizeof): Fix typo in error msg, add
3826           some whitespace.
3827         * lex.l (name_type_signal): Add debug output.
3828         * parse.y (call):  Allow EVENTNAME and BUFFERNAME parameters
3829           to a call, so that SIZE () works on them.
3830         * tasking.c (make_process_struct): Force ignore_exprs non-zero
3831           when processing a SEIZEd PROCESS declaration.  This prevents
3832           grox-fixed_fields from returning a NULL, and indirectly protects
3833           the chill_integer_type_node tree from corruption.
3835 Mon Mar  7 19:14:05 1994  Bill Cox  (bill@rtl.cygnus.com)
3837         * Makefile.in: Use the 'all' target to build the runtime 
3838           library and chillrt0.o.
3839         * README: Explain rules for files in this directory.
3840         * addtest, addtest.man, build-release, 
3841           chill.regress.cron: Move to utils subdirectory.
3842         * expr.c (build_chill_function_call): Mark the INOUT
3843           temporary so it doesn't get optimized into a
3844           register.  Fixes the execute/inout.ch bug.
3845         * typeck.c (layout_chill_range_type): Restrict it
3846           from complaining about an empty string type's
3847           bounds (0:-1).
3849 Mon Mar  7 09:06:39 1994  Bill Cox  (bill@rtl.cygnus.com)
3851         * Makefile.in (compiler): Restore this target.
3852           (OBJS, BC_OBJS): Delete unused variables.
3853           Add $(FLAGS_TO_PASS) to sub-make invocations.
3854         * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
3855           tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
3857 Sat Mar  5 18:37:50 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3859         * except.c (finish_handler_array): When computing address of
3860         the array ex_decl, don't call build_array_ref.
3862 Sat Mar  5 17:43:36 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3864         * loop.c (declare_temps): Force powerset temp to memory.
3866 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
3868         * typeck.c (layout_chill_range_type): Convert highval and
3869           lowval to a common type before range-checking them.
3871 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
3873         * ch-tree.h: Add loop-related prototypes.
3874         * decl.c, grant.c: Fix -Wall violations.
3875         * parse.y: Fix format of %type directives.
3877 Fri Mar  4 10:04:18 1994  Wilfried Moser  (fs_moser at rcsw1h)
3879         * Makefile.in: Update version number.
3880         * expr.c: Fix a comment.
3881         * inout.c (build_chill_writetext): Add handling of a REAL.
3882         * lex.l (INITIAL): Remove all code to discard 'header lines'.
3883           no longer needed.
3884         * parse.y (optheader): Remove - it's obsolete, as is the
3885           HEADEREL token definition.
3887 Fri Mar  4 09:41:18 1994  Bill Cox  (bill@rtl.cygnus.com)
3889         * addtest: Fix suffix removal when suffix is .c186.
3890         * regression.sh: Allow for underscores on PR filenames.
3891         * typeck.c: Check in the rewrite mentioned earlier.
3893 Thu Mar  3 09:42:10 1994  Wilfried Moser  (fs_moser at rcsw1h)
3895         * tasking.c (build_process_header): Build a debug structure
3896           for easier access to PROCESS parameters.
3898 Thu Mar  3 09:42:10 1994  Bill Cox  (bill@rtl.cygnus.com)
3900         * typeck.c (*string_assignment_condition): Complete rewrite
3901           of a verbose first draft.
3903 Wed Mar  2 16:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
3905         * actions.c (adjust_return_value): Simplify.
3906           Delete references to CH_RETURNS_LOC, extra parameters to
3907           push_extern_function and start_chill_functions.
3908           (convert_for_assignment): Check whether to generate runtime
3909           range-checking code.  Handle reference_type in convert call.
3910           (chill_expand_assignment): Produce an INDIRECT_REF for a
3911           reference_type on the LHS.  Delete conversions subsumed by
3912           convert_for_assignment.
3913         * ch-tree.h: Delete parameters from prototypes.
3914         * decl.c (print_lang_decl): Print out signal flag.
3915           (push_extern_function, start_chill_function): Delete
3916           extra parameters, references to CH_RETURNS_LOC.
3917         * grant.c (chill_finish_compile): Delete extra parameter.
3918         * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
3919           push_extern_function and start_chill_functions.
3920         * regression.sh (checkprms): Skip PRMS discrepancies if we
3921           can't access PRMS for some reason.
3922         * satisfy.c: Correct indentation.
3923         * tasking.c (build_process_header): Delete extra parameters
3924           passed to push_extern_function and start_chill_functions.
3926 Wed Mar  2 10:33:50 1994  Bill Cox  (bill@rtl.cygnus.com)
3928         * addtest: Require a fill filename.  Be more careful about
3929           adding the same test twice.
3930         * expr.c: Add FIXME to comment.
3931         * regression.sh: Add configure script call.
3933 Tue Mar  1 16:24:20 1994  Wilfried Moser  (fs_moser at rcsw1h)
3935         * Makefile.in: Change version of chill to 1.1.2
3936         * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
3938 Tue Mar  1 07:34:56 1994  Bill Cox  (bill@rtl.cygnus.com)
3940         RETURN of LOC value is only half-baked.  Stay tuned...
3941         * actions.c (adjust_parm_or_field): Add to comment.
3942           (adjust_return_value): New function for issuing errors about
3943           RETURN and RESULT expressions.  Also converts them.
3944           (chill_expand_result, chill_expand_return): Call new
3945           adjust_return_value function.
3946         * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
3947           New parameter for push_extern_function and start_chill_function.
3948         * decl.c (push_extern_function, start_chill_function): New parameter
3949           to say whether return value is a LOC.
3950         * expr.c (build_chill_indirect_ref): Further qualify the issuing
3951           of the error message.
3952         * grant.c (raw_decode_mode): Move test for instance mode under 
3953           STRUCT handling.
3954           (start_chill_module_code, chill_finish_compile): Add new
3955           parameter to start_chill_function calls.
3956         * parse.y (get_type_of): Do lookup_name more often.
3957           (quasi_pdef, procedure, procmode, optresultspec): Set 
3958           CH_RETURNS_LOC flag.
3959           (optresultattr): Code keywords as a bitmask.
3960         * tasking.c (build_process_header): Add new parameter to
3961           start_chill_function call.
3963 Sat Feb 26 12:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
3965         * Makefile.in: Replace undefined $(RM) with rm -f.
3966         * configure: Make sure scripts are executable.
3967         * regression.sh: Make variables to invoke make 
3968           and awk.  Don't process a directory if it 
3969           doesn't exist.
3971 Fri Feb 25 14:48:48 1994  Bill Cox  (bill@rtl.cygnus.com)
3973         * Makefile.in (check): Force the building of ../gcov and
3974           ../xgcc before testing.  Move the printf dependency here
3975           since we don't need it until we're testing.
3976         * addtest: Strip suffix from each input filename.
3977         * decl.c (do_decl): Correct error checking.  Call
3978           string_assignment_condition for some of it.
3979         * tasking.c (build_gen_inst): Add ability to pass an integer
3980           for either the process ID or the copy number.  If a number
3981           is passed, range-check it against the CHILL unsigned type
3982           limits.
3983           (build_buffer_descriptor): Add draft code to check the buffer
3984           name for correctness.
3986 Wed Feb 23 15:07:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3988         New cleaner solution to the following problem:
3989         Chill allows an action to be followed by an ON-handler.
3990         But we don't know if an action has a handler until we've parsed
3991         its end, yet we want to generate extra code to set up an
3992         exception handling contour only if needed.  The old solution
3993         would generate code for the action into an rtl sequence, and then
3994         splice in the exception-setup code if we later found we needed it.
3995         This has a few problems (for example it confuses the management
3996         of stack temporaries), and is ugly.  Now that the compiler is 2-pass
3997         we have a cleaner solution:  In pass 1, we remember which actions
3998         were followed by ON-handlers.  In pass 2, we use this information
3999         to generate appropriate code before an action.
4000         * except.c (push_handler, pop_handler):  In pass 1, set up data
4001         structures (global_handler_list) to remember if an action has an
4002         ON-handler.  In  pass 2, digest this information, and setup
4003         handler if needed.
4004         * except.c, actions.h (pop_handler):  Take an extra int arg.
4005         * except.c (emit_setup_handler):  New function, with code (moved
4006         from chill_start_on) to emit code before an action that has a handler.
4007         * except.c (except_init_pass_2):  New function.
4008         * parse.y (pass1_2):  Call except_init_pass_2 before pass 2.
4009         * parse.y (POP_UNUSED_ON_CONTEXT):  Don't call pop_sequence.
4010         * parse.y:  Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
4011         in pass 1 as well as pass 2.
4012         * parse.y (BEGIN ... END):  Re-arrange logic to avoid block_stack
4013         (local to ../stmt.c) getting out of sync.
4014         * actions.c (push_action):  Don't need to emit a NOP,
4015         now that we're no longer moving sequences around.
4016         * actions.c (push_action):  Call push_handler even in pass one.
4018 Wed Feb 23 11:06:14 1994  Bill Cox  (bill@rtl.cygnus.com)
4020         * decl.c (do_decl): Check for possible overflow in initializing
4021           a declared variable.
4022         * expr.c (build-chill_indirect_ref): Add error message for
4023           a syntax error that C programmers converting to CHILL are
4024           quite likely to make.
4025         * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
4026           seg-faulting.
4028 Tue Feb 22 17:54:43 1994  Bill Cox  (bill@rtl.cygnus.com)
4030         * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
4031           defined.  Build chill script differently, and build an install script.
4032           Add an action to run the regression test.
4033         * actions.c (chill_expand_assignment): Change
4034           string_assignment_condition call.
4035         * ch-tree.h: Add prototype.
4036         * expr.c (build_chill_function_call): Change
4037           string_assignment_condition call.
4038         * satisfy.c (safe_satisfy_decl): Add check that string INIT value
4039           will fit in the declared mode.
4040         * typeck.c (string_assignment_condition): Add flag to disable
4041           runtime code generation.  Add code to generate runtime test.
4043 Mon Feb 21 14:04:20 1994  Bill Cox  (bill@rtl.cygnus.com)
4045         * Makefile.in (check): Add target to trigger a regression test.
4047 Mon Feb 21 13:54:20 1994  Bill Cox  (bill@rtl.cygnus.com)
4049         * decl.c (do _based_decls): Add error check for
4050           decls BASED on a PROC or PROCESS name.
4052 Mon Feb 21 13:24:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4054         * grant.c (chill_finish_compile): Bypass handling
4055           module-level code if an earlier error has made
4056           is useless.
4057         * tasking.c (build_start_process): Generate error, 
4058           return if process name unknown.
4060 Mon Feb 21 14:29:41 1994  Wilfried Moser  (fs_moser at rcsw47)
4062         * expr.c (build_generalized_call): Use 
4063           build_arrow_expr semantics for ADDR () builtin.
4065 Mon Feb 21 12:49:14 1994  Bill Cox  (bill@rtl.cygnus.com)
4067         * tasking.c (build_gen_inst): Output correct
4068           constructor for GEN_INST.
4070 Mon Feb 21 08:14:59 1994  Wilfried Moser  (fs_moser at rcsw47)
4072         * lex.l (yywrap): Fix punctuation error.
4074 Sun Feb 20 19:58:14 1994  Bill Cox  (bill@rtl.cygnus.com)
4076         * regression.sh: Fix cvs update-related commands.
4077           Have cron job always perform the update, so it's
4078           always reporting on the current state of the 
4079           sources.
4080         * typeck.c (string_assignment_condition): Allow a 
4081           mis-match if the LHS is varying.
4083 Fri Feb 18 18:10:04 1994  Bill Cox  (bill@rtl.cygnus.com)
4085         * actions.c (expand_chill_assignment): Add call to test the
4086           string assignment condition.
4087         * expr.c (build_chill_function_call):  Add call to test the
4088           string assignment condition.
4089         * regression.awk2: Report WITHDRAWN PRs as well.
4090         * regression.sh: Delete extra commentary about FEEDBACK PRs.
4091         * typeck.c (string_assignment_condition): Add function to
4092           perform the check.
4094 Fri Feb 18 16:30:40 1994  Bill Cox  (bill@rtl.cygnus.com)
4096         * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
4097           and exclude them from the regression test report.  Mark them
4098           in the list of PRs as 'W' status.
4100 Thu Feb 17 09:13:42 1994  Wilfried Moser  (fs_moser at rcsw47)
4102         * Makefile.in: Define a version number.  Build chill script
4103           differently.  Makefile depends upon ../configure, not configure.
4104         * chill.in: Define some new flags.
4106 Wed Feb 16 19:44:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4108         * grant.c (decode_constant): Restore a 'return result' statement
4109           that seems to have gotten lost.
4111 Wed Feb 16 12:37:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4113         * ch-tree.h (various STRING-type macros):  Use new TYPE_STRING_FLAG.
4115         * typeck.c (make_chill_array_type):  Remove unused args.
4116         Simplify to build only one-dimensionsal arrays, so change
4117         index list to single index.  Call layout_chill_array_type
4118         if pass!=1.  And rename to:  build_simple_array_type.
4119         * typeck.c (layout_chill_array_type):  Only recurse
4120         if TREE_TYPE has not been laid out.
4121         * typeck.c (build_chill_array_type):  Update accordingly.
4122         * typeck.c (build_chill_slice):  Replace calls to build_array_type
4123         (which does hash-canonicalization, which breaks if we later set
4124         the TYPE_STRING_FLAG) by calls to build_simple_array_type.
4125         * convert.c (convert):  The same.
4127         * grant.c (decode_constant):  Clean up.  Remove remnants of switch
4128         on TREE_TYPE of the value, and fold those cases into first switch.
4130 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
4132         * Makefile.in: Add printf as a dependency of ../cc1chill.
4133         * regression.sh: Make srcdir and objdir really work.
4135 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
4137         * expr.c (build_char_array_expr): Fix spelling
4138           error in error msg.
4139         * tree.c (build_string_type): Make check for overlarge
4140           string more robust.
4142 Wed Feb 16 02:37:43 1994  Mike Stump  (mrs@cygnus.com)
4144         * grant.c (decode_constant): Remove useless tests
4145         for STRING_TYPE (which isn't used by anyone, including CHILL).
4147 Tue Feb 15 15:35:07 1994  Bill Cox  (bill@cygnus.com)
4149         * build-release:  Add refinements to checkout commands.
4150         * decl.c (init_decl_processing): Move initialization of
4151           chill_unsigned_type_node before 1st call to build_string_type.
4152         * tree.c (build_string_type): Add compile-time test of string
4153           allocated length.
4154         * typeck.c (layout_chill_range_type): Add compile-time range limit
4155           checking.
4157 Tue Feb 15 08:55:37 1994  Bill Cox  (bill@cygnus.com)
4159         * Makefile.in:  Add stamp-chill-objs as a dependency of ../cc1chill.
4160         * regression.sh: Rename test directory names.
4162 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
4164         * Makefile.in: Change interface with parent directory's
4165           Makefile, decoupling the lists of each others' files.
4167 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
4169         * lex.l: Delete obsolete comment.
4170         * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
4171           instance constructor.
4173 Mon Feb 14 04:04:16 1994  Bill Cox  (bill@rtl.cygnus.com)
4175         * lex.l (maybe_number): Add octal to numbers
4176           handled by Feb 1 change.
4178 Sat Feb 12 16:24:22 1994  Bill Cox  (bill@rtl.cygnus.com)
4180         * actions.c, convert.c, decl.c, expr.c, lex.l,
4181           tasking.c, typeck.c: gcc -Wall cleanups.
4182         * ch-tree.h: Change loop-related prototypes.
4183         * loop.c, parse.y: Rewrite to set up correct loop scope.
4184           Fix error path where loop variable not declared.
4186 Fri Feb 11 11:12:29 1994  Bill Cox  (bill@rtl.cygnus.com)
4188         * Makefile.in: Add rule to build printf.  Make it a dependency
4189           of ../cc1chill.
4190         * printf.c: New tool for regression testing script.
4191         * regression.sh: Look for print in ${objdir}.
4193 Thu Feb 24 17:31:12 1994  Wilfried Moser  (fs_moser at rcsw1j)
4195         * tasking.c (build_gen_inst): Allow integer expression as argument
4196           1 to this function. This was a change request to get rid of
4197           unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
4198           or STRUCT (t UINT, c UINT).
4200 Thu Feb 10 09:49:31 1994  Bill Cox  (bill@rtl.cygnus.com)
4202         * regression.awk3: Recognize upper-case PRMS state names.
4204 Wed Feb  9 15:26:19 1994  Bill Cox  (bill@cygnus.com)
4206         * parse.y (dowithaction): Allow EXIT from DO WITH.
4208 Tue Feb  8 13:13:54 1994  Bill Cox  (bill@rtl.cygnus.com)
4210         * configure: Change to require grant.c for evidence that we've
4211           found the source directory.
4212         * decl.c (init_decl_processing): delete unused builtin_slice
4213           function declaration.
4214         * expr.c (chill_expand_expr): Calculate powerset's length
4215           correctly, calling powersetlen to do it.
4216         * regression.sh: Replace BASE references with objdir references.
4217         * typeck.c (build_chill_slice): Build the compound expression
4218           in the right order.
4220 Mon Feb  7 15:56:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4222         * expr.c (build_chill_lower, build_chill_upper): Handle
4223           LOC parameter types.
4224         * regression.sh: Correct path to executable sub-shell-scripts.
4226 Mon Feb  7 11:33:47 1994  Bill Cox  (bill@rtl.cygnus.com)
4228         * regression.sh: Pervasive changes to allow for separate
4229           source and object directories.
4231 Wed Feb  2 17:5620 1994  Bill Cox  (bill@rtl.cygnus.com)
4233         * decl.c (find_implied_typed): Delete obsolete reference to
4234           PROCESS_TYPE.
4235         * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
4236           obsolete.
4238 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
4240         * Makefile.in: Delete bogus runtime/Makefile lines.
4241         * configure: Build testsuite directory.
4243 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
4245         * configure: Correct srcdir for chill.examples directory.
4247 Wed Feb  2 11:24:57 1994  Wilfried Moser  (fs_moser at rcsw47)
4249         * ch-parse.y (rule call): Add
4250               BUFFERNAME LPRN untyped_expr RPRN
4251           to enable generating a descriptor same as for SIGNALS.
4252         * ch-tasking.c (generate_tasking_code variable,
4253           decl_tasking_code_variable): Implement overflow check of
4254           taskingcode in case a tasking code is specified with the
4255           compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
4256           PROCESS_TYPE.
4258 Wed Feb  2 09:31:37 1994  Bill Cox  (bill@rtl.cygnus.com)
4260         * configure: Add ${srcdir} to Makefile.in's path.
4261         * loop.c: Delete unused whitespace.
4263 Tue Feb  1 17:09:41 1994  Bill Cox  (bill@rtl.cygnus.com)
4265         * expr.c (string_char_rep): Process STRING_CST correctly.
4267 Tue Feb  1 15:29:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4269         * expr.c (build_boring_bitstring):  New function.
4270         * expr.c (build_chill_repetition_op):  Fix a number of bugs in
4271         implementation of bitstring repetition.
4272         Also, implement repetition of Booleans.
4274 Tue Feb  1 15:28:21 1994  Bill Cox  (bill@rtl.cygnus.com)
4276         * configure: Delete code to check for gas or ld.  Add code to
4277           store a config.status file in each configured subdirectory.
4278         * expr.c (): Spell concatbitstring as concatps, which is the
4279           runtime routine name.
4280         * regression.sh: Force use of GNU make.
4282 Tue Feb  1 15:22:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4284         * tasking.c: Mark compiler-generated temps to prevent
4285           GRANTing them.
4287 Tue Feb  1 17:38:51 1994  Wilfried Moser  (fs_moser at rcsw1j)
4289         * lex.l (equal_number): Improve check for number after = in a
4290           compiler directive.
4291         * tasking.c (build_tasking_struct): Make field TaskValue
4292           pointer to chill_unsigned_type_node.
4293         * tasking.c (generate_tasking_code_variable): Declare tasking
4294           code variable as chill_unsigned_type_node.
4295         * tasking.c (decl_tasking_code_variable): Declare tasking
4296           code variable as chill_unsigned_type_node.
4298 Mon Jan 31 14:01:58 1994  Bill Cox  (bill@rtl.cygnus.com)
4300         * addtest (update_Makefile): No longer build actions - they're
4301           now in pattern rules.
4302         * ch_makedepend: Do the grep first, to avoid processing non
4303           USE_SEIZE_FILE lines.
4304         * configure: Pervasive rewrite to support configuring regression
4305           test directories.
4307 Mon Jan 31 04:35:53 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4309         * typeck.c (build_chill_slice): Compute EXTENT correctly.
4311 Sun Jan 30 14:33:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4313         * tasking.c (build_gen_inst): Return a typed tuple with
4314           INSTANCE type.
4316 Sun Jan 30 12:01:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4318         * actions.c (chill_expand_assignment): Recognize LENGTH builtin
4319           in the left hand side, pass it to
4320           expand_varying_length_assignment.
4321           (expand_varying_length_assignment): Clean up bitrot.
4322         * convert.c (convert): Revert most recent change.
4323         * loop.c (maybe_skip_loop): New function, split out of
4324           begin_chill_loop.  Add conditional to skip processing an empty 
4325           VARYING array.
4326         * parse.y (assignaction): Delete code to recognize LENGTH
4327           on left-hand-side.
4328         * typeck.c (validate_varying_array_ref): Correct misleading comment.
4330 Sat Jan 29 10:54:06 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4332         * typeck.c (build_chill_slice): Pass a valid identifier to
4333         `get_unique_identifier'.
4335         * convert.c (convert): Rename LENGTH variable to MAXIDX, and
4336         use correct value for VAR_LENGTH when initializing a varying array.
4338         * decl.c (do_decl): Set DECL_COMMON.
4340         * actions.c (check_range): Temporarily inhibit warnings so the
4341         compiler doesn't warn the user about useless range checks that it
4342         might create.  It's far easier for the compiler to figure out that
4343         a range check need not be done than it is for us to try to figure
4344         it out for ourselves.
4346         * expr.c (build_concat_expr): Generalize to handle bitstrings.
4347         (scalar_to_string): New function.
4348         (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
4349         library call (__concatbitstring).
4351 Sat Jan 29 08:43:54 1994  Bill Cox  (bill@rtl.cygnus.com)
4353         * ch_makedepend: Fix the 'sed' command so that seize file
4354           name can be delimited by double quotes as well as apostrophes.
4356 Thu Jan 27 17:26:19 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4358         * typeck.c (my_build_array_ref):  Do constant folding.
4360 Thu Jan 27 16:24:24 1994  Bill Cox  (bill@rtl.cygnus.com)
4362         * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
4363           decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
4364           lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
4365           tree.c, typeck.c: New 'Copyright' line for 1994.
4367 Thu Jan 27 14:12:07 1994  Mike Stump  (mrs@cygnus.com)
4369         * configure: Don't configure this directory with this configure,
4370         just subdirectories and cleanup.
4371         * Makefile.in (Makefile): Run config.status in parent directory,
4372         if we need rebuilding.
4374 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4376         * decl.c (bind_sub_modules): Need a parameter on the recursive call.
4377           Thanks, Zoo!  
4379 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4381         * expr.c (build_concat_expr): Fix SunOS portability problem.
4383 Wed Jan 26 14:57:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4385         * convert.c (digest_powerset_tuple):  New function, used to set
4386         TREE_CONSTANT and TREE_STATIC properly.
4387         (digest_structure_tuple, convert (NULL to instance, non-varying
4388         to varying)):  Set TREE_CONSTANT and TREE_STATIC when appropriate.
4389         * expr.c (varying_to_slice):  Preserve novelty of slice type.
4390         * expr.c (build_concat_expr):  Make sure class of result is
4391         correct (including correct novelty).
4392         * satisfy.c (safe_satisfy_decl):  If value of CONST_DECL is
4393         not TREE_CONSTANT, emit an error.
4394         * typeck.c (build_chill_slice):  Preserve novelty of result.
4395         * typeck.c (build_chill_slice):  Simplify for varying argument
4396         (by using varying_to_slice).
4397         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
4398         New functions.
4399         * typeck.c (build_chill_cast): Use above new functions to convert
4400         constant expressions.
4401         * typeck.c (copy_novelty), ch-tree.h:  New function.
4402         * chill.texi:  Update for new constant conversion semantics.
4404 Tue Jan 25 14:00:02 1994  Wilfried Moser  (fs_moser at rcsw1j)
4406         * ch-decl.c (init_decl_processing): Add new builtin function
4407           DESCR. Add call to build_chill_descr_type.
4408         * ch-expr.c: Add function build_chill_descr_type, which actually
4409           build the type the DESCR builtin returns.
4410           Add function build_chill_descr, which process the DESCR builtin.
4411         * ch-expr.c (build_chill_length): Add code to enable
4412           LENGTH (bitstring). 
4413         * ch-expr.ch (build_generalized_call): Add processing of DESCR
4414           builtin.
4415         * ch-grant.c: Add code to avoid producing of unnecessary grant
4416           files.
4417         * ch-tree.h: Add enum for builtin function DESCR. Add prototype
4418           for build_chill_descr.
4419         * ch-inout.c (build_chill_io_list_type): Change generation of the
4420           type passed to runtime library according to the new definition.
4421         * ch-inout.c (build_chill_writetext): Change processing of format
4422           string that a character constant is allowed as format string if
4423           compiler gets called with -fold-strings option.
4424         * ch-inout.c (build_chill_writetext): Change processing of
4425           integers in case NEWMODE x = INT.
4426         * ch-inout.c (build_chill_writetext): Remove processing of ranges.
4427         * ch-inout.c (build_chill_writetext): Add processing of
4428           bitstrings.
4430 Tue Jan 25 09:07:10 1994  Mike Stump  (mrs@cygnus.com)
4432         * Makefile.in (all, OBSTACK): Build interesting things be default,
4433         and make sure we include OBSTACK.
4435 Sun Jan 23 12:35:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4437         * grant.c (decode_constant):  Handle RANGE_EXPR.
4438         Simplify handling of CONSTRUCTOR.
4440         * typeck.c (build_chill_slice):  Use build_chill_array_ref_1,
4441         not build_chill_array_ref.
4443 Sat Jan 22 16:23:30 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4445         * parse.y:  Generate a RANGE_EXPR (instead of a confusing
4446         TREE_LIST) to indicate a range in case and tuple lables.
4447         * actions.c (chill_handle_case_label), convert.c (digest_constructor):
4448         Update accordingly to handle these RANGE_EXPRs.
4449         * satisfy.c (satisfy):  Don't call finish_chill_binary_op
4450         for a RANGE_EXPR.
4452 Fri Jan 21 15:39:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4454         * expr.c (force_addr_of):  New function, to encapsulate passing
4455         by reference a powerset or string  to a library function.
4456         * expr.c (build_min_max, build_set_expr):  Use force_addr_of.
4457         * expr.c (chill_expand_expr case CONCAT_EXPR):  Fix passing of
4458         rtl modes.  (Old code fails on 64-bit Alpha.)
4459         * expr.c (build_chill_function_call):  Remove bogues check for
4460         READonly variable passed as parameter.
4461         * expr.c (build_set_expr):  Merge common code.
4462         * parse.y (string repetition):  Fix logic for 2-pass scheme.
4463         * expr.c (finish_chill_binary_op), grant.c (decode_constant),
4464         satisfy.c (satisfy):  Handle REPLICATE_EXPR.
4465         * chill.texi:  Fix typo.
4467 Mon Jan 17 13:55:48 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
4469         * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
4470         tree.c can find ch-tree.h.
4472 Sat Jan 15 15:34:11 1994  Mike Stump  (mrs@rtl.cygnus.com)
4474         * configure: Fix problem so that building in a separate directory
4475         works.
4477 Sat Jan 15 09:51:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4479         * Makefile.in: Recurse down into runtime to
4480           create its Makefile, and to clean up.
4481         * configure: Recurse into runtime to make its Makefile.
4483 Sat Jan 15 09:15:22 1994  Bill Cox  (bill@rtl.cygnus.com)
4485  << This set of CHILL frontend sources is now the
4486     maintainable and master set. Accept no substitutes! >>
4487         * Makefile.in, configure: Completely rewritten
4488           to be invoked by gcc/Makefile.in and 
4489           gcc/configure.
4490         * addtest (update_ChangeLog): Fix insertion
4491           of the '*'.
4492         * regression.sh: Add global option to suppress results of
4493           proprietary tests.
4494         * cpy.sh: Add necessary edits to files as they
4495           are copied down.
4496         * actions.c, ch-tree.def, ch-tree.h, convert.c,
4497           decl.c, except.c, expr.c, grant.c, inout.c,
4498           lang.c, lex.h, lex.l, loop.c, parse.y,
4499           satisfy.c, tasking.c, typeck.c: Latest
4500           versions from the repository. 
4502 Fri Jan 14 12:28:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4504         * addtest: Fix insertion of line into ChangeLog.
4505         * configure: Add a script.
4506         * Makefile.in: Hack from ../Makefile.in
4507         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
4508         * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
4510 Mon Jan 10 11:38:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4512         * build-release: Rewrite for easier tailoring.
4514 Wed Jan  5 08:38:21 1994  Bill Cox  (bill@cygnus.com)
4516         * actions.c, convert.c, decl.c, except.c, expr.c,
4517           inout.c, loop.c, parse.y, satisfy.c, typeck.c:
4518           Current versions from devo/gcc.
4520 Wed Dec 29 14:07:10 1993  Bill Cox  (bill@rtl.cygnus.com)
4522         * addtest: Don't add comment headers to source or .dat files
4523           if they're already present.
4525 Wed Dec 29 13:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
4527         * mktg_leads: New file.
4528         * regression.sh, regression.awk2: Updated status report scripts.
4529         * addtest: New script to add a test to a directory.
4530         * ch_makedepend: Add full path to ch_decomment.
4531         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
4532           lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
4533           Updated copies of actual sources.
4534         * chill.brochure, chill.texi: Update with current status.
4535         * cpy.sh: Script for updating copies of sources.
4536         * chill.patches: New script for creating a patch release.
4537           Pretty rough.
4539 Wed Dec  8 09:35:54 1993  Bill Cox  (bill@rtl.cygnus.com)
4541         * build-release: Delete lots of unused regression-testing cruft.
4542         * chill.brochure: Initial draft of marketing brochure.
4543         * chill.patches: Preliminary script for building patch sets
4544           for CHILL.
4545         * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
4546           building a tcov report on the CHILL compiler.
4548 Sun Nov 21 08:34:33 1993  Bill Cox  (bill@rtl.cygnus.com)
4550         * Makefile.in: Adjust gperf rule for names in this directory.
4551         * ch_decomment.l: New file.  Ignores CHILL comments.
4552           Executable is used bu ch_makedepend.
4553         * ch_makedepend: New script.  Makes CHILL dependencies for
4554           Makefiles.
4555         * gperf, hash.h: New files about lexer tokens.
4556         * regression.sh: Delete notes justifying non-summing
4557           report rows.
4558         * regression.awk2: Report PRMS status when there are
4559           missing test results.
4560         * regression.awk3: Add #! line, so this can be used separately.
4561         * Other files: latest versions copied from devo/gcc.
4563 Sat Oct 30 15:02:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
4565         * chill.texi:  Add new node about conversions. 
4567 Fri Oct 29 14:17:31 1993  Bill Cox  (bill@cygnus.com)
4569         * chill.regress.cron: Change path to executable, enable PR report.
4570         * regression.awk2: Add terminating periods to messages.
4571         * regression.sh: Change path to testsuites.  Add disclaimer at end
4572           of report.  Print explicit lists of resolved/unresolved PRs.
4574 Thu Oct 28 09:22:20 1993  Bill Cox  (bill@rtl.cygnus.com)
4576         * regression.sh: More PR-related status is printed.
4578 Thu Oct 21 19:24:02 1993  Bill Cox  (bill@rtl.cygnus.com)
4580         * regression.sh: Simplify the paths, make the source
4581           and test files accessed separately from the executables.
4583 Wed Oct 20 16:35:30 1993  Bill Cox  (bill@rtl.cygnus.com)
4585         * regression.sh: Finally fix the file-delete problem.
4586           Thanks, Jeffrey!
4587         * build-release: Make more verbose, fix comment.
4589 Mon Oct 18 00:21:24 1993  Bill Cox  (bill@cygnus.com)
4591         * regression.sh: Build linker if -U option.  Put stderr
4592           into make.log files, too.  Also report on Z.200 examples.
4593         * regression.awk3: New script to help build release note.
4595 Fri Oct 15 16:33:54 1993  Bill Cox  (bill@cygnus.com)
4597         * regression.sh, regression.prpt: Output PR status only
4598           conditionally.  Add command-line flag for CVS updates.
4600 Thu Oct 14 07:53:59 1993  Bill Cox  (bill@rtl.cygnus.com)
4602         * regression.sh: Count PRs accurately.
4603         * Makefile.in: New file.
4605 Sat Oct  9 19:46:58 1993  Bill Cox  (bill@rtl.cygnus.com)
4607         * regression.awk?: Add program fragments for
4608           report of PRMS/test exceptions.
4609         * regression.sh: Add options and PRMS reports.
4611 Fri Oct  8 06:44:41 1993  Bill Cox  (bill@rtl.cygnus.com)
4613     Create chill frontend directory, populate it.
4614     Later, the chill-specific frontend files will be moved here.
4616         * chill: Moved here from gcc directory.
4617         * chill.regress.cron: Add crontab file for regression tests.
4618         * regression.sh: Add regression test control script.
4621 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
4623 Sat Jan 15 14:54:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4625         * ch-*.*: All of these files are now moved to the ch subdirectory.
4626         Further update changes should be recorded in the ch/ChangeLog file.
4628 Fri Jan 14 21:09:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4630         * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
4631         ch-satisfy.c, ch-typeck.c:  Undo all of initializer-related changes
4632         that Tiemann did earlier this month.
4633         * c-typeck.c (really_start_incremental_init):  Save
4634         constructor_elements and (old value of) constructor_stack
4635         on constructor_stack, to allow for nested initializers.
4636         * ch-convert.c (digest_constructor):  If we need a varying
4637         array, and have a constructor (for the array elements),
4638         make sure to use convert so that the constructor gets
4639         wrapped in an implicit record constructor.
4640         * ch-decl.c (do_decl):  If there is no initializer for a
4641         varying array (or bitstring), create default constructor.
4643         * ch-expr.c (build_chill_lower):  Fix thinko for ARRAY_TYPE.
4644         * ch-satisfy.c (safe_satisfy_decl):  Make sure that we make
4645         original decl to check if we need to make an rtl.
4647         * ch-typeck.c (build_chill_array_ref_1), ch-tree.h:  New function
4648         which does the actual work for build_chill_array_ref (which
4649         now just loops over an argument list).
4650         * ch-actions.c, ch-expr.c, ch-inout.c:  Use build_chill_array_ref_1
4651         instead of build_chill_array_ref where appropriate.
4652         * ch-actions.c, ch-expr.c, ch-typeck.c:  Make operand 1 of a
4653         VARY_ARRAY_REF is a single index, not an index list.
4655         * ch-grant.c (__init_list):  Renamed to _ch_init_list, to
4656         avoid a conflict on the Alpha.
4658 Wed Jan 12 10:19:35 1994  Bill Cox  (bill@rtl.cygnus.com)
4660         * ch-lex.l (WS): Add BS, VT and CR to definition of 
4661           whitespace.
4662           (convert_number): Allow for uppercase hex digits.
4664 Tue Jan 11 19:43:55 1994  Bill Cox  (bill@cygnus.com)
4666         * ch-actions.c (lookup_and_handle_exit): Correct
4667           conditional so error messages are output.
4668         * ch-expr.c (build_chill_addr_expr): Add error message.
4669         * ch-grant.c (chill_finish_module_code): Avoid abort by
4670           giving the init_list constructor a type.
4671           (chill_finish_compile): Delete unused code.
4672         * ch-lex.l: Make most build_init_2 calls from the
4673           permanent obstack, so that enumeration values endure.
4674         * ch-loop.c (build_chill_iterator): Add several error
4675           messages.
4677 Tue Jan 11 12:31:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4679         * ch-expr.c, ch-typeck.c:  Rewrite some instances of
4680         'struct ch_class class = chill_expr_class (expr);' to
4681         'struct ch_class class; class = chill_expr_class (expr);'
4682         to work around a bug in /usr/ucb/cc on SunOS4.
4684 Mon Jan 10 18:29:36 1994  Bill Cox  (bill@rtl.cygnus.com)
4686         * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
4687         * ch-expr.c (expand_packed_set): Add new parameter to pass
4688           set's minimum ordinal value.  Fix loop invariant problem.
4689           (fold_set_expr): Change to add new parameter to 
4690           expand_packed_set call.
4691         * ch-grant.c: Move extern declaration to ch-tree.h.
4692         * ch-lex.l (convert_bitstring): Also output the bitstring
4693           if yydebug is set.
4694         * ch-tree.h: Add prototype.
4696 Mon Jan 10 11:29:41 1994  Bill Cox  (bill@rtl.cygnus.com)
4698         * ch-inout.c: Fix comment.
4699         * ch-tree.h: Add prototype.
4701 Sun Jan  9 18:22:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4703         * ch-tree.h (chill_expr_class):  New prototype.
4704         * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
4705         Convert result to correct class.
4706         * ch-expr.c (build_chill_repetition_op):  Preserve CH_DERIVED_FLAG.
4707         Also, fix some bugs for bitstrings (with ranges).
4709         (Patches from Tiemann.)
4710         * ch-convert.c (convert1):  New function to force TREE_TYPE.
4711         (convert):  Use convert1 where appropriate.
4712         * ch-typeck.c:  Formatting change.
4713         * ch-parse.y (build_chill_constructor):  Fix thinko.
4715         * ch-expr.c (varying_to_slice):  If array is not referable,
4716         call save_expr on it, rather than stabilize_reference.
4717         * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
4718         Don't force value to value class if mode is not explicitly
4719         specified.  Also, make sure convert etc is only done once.
4721 Sat Jan  8 16:37:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4723         * ch-decl.c (build_chill_function_type):  Don't call
4724         build_function_type, because it does hash canonicalization,
4725         which once in a while looses badly.
4726         * tree.c (build_function_type):  Remove no-longer-needed test
4727         for doing_chill_thang.
4729         * ch-tree.h (CH_DERIVED_FLAG):  New flag.
4730         * ch-tree.h (enum ch_expr_class):  Renamed to ch_class_kind.
4731         (struct ch_class):  New type, used to represent a Chill
4732         'class' as a first-class value.
4733         (CH_ROOT_RESULTING_MODE):  Replaced by CH_ROOT_RESULTING_CLASS.
4734         * ch-typeck.c (chill_expr_class):  Change interface to return
4735         a struct ch_class.
4736         (chill_compatible, chill_compatible_classes):  Update accordingly.
4737         (chill_root_resulting_mode):  Replace by ....
4738         (chill_root_resulting_class):  ... new function.
4739         * ch-convert.c (convert_to_class):  New function.
4740         * ch-decl.c (layout_enum):  Mark enum values with CH_DERIVED_FLAG.
4741         * ch-lex.l (string_or_int):  Rename to string_or_char.
4742         * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
4743         convert_float, convert_number):  Set CH_DERIVED_FLAG for literals.
4744         * ch-expr.c (finish_chill_binary_op):  Use convert_to_class.
4745         * ch-satisfy.c (safe_satisfy_decl):  For CONST_DECL, make sure
4746         DECL_INITIAL gets set to result of convert.
4747         Also, clear CH_DERIVED_FLAG for SYN value.
4748         * expr.c (store_constructor):  If a [power]set is exactly one
4749         word long, use single-word move.
4751 Sat Jan  8 08:38:29 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4753         * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
4755 Wed Jan  5 05:18:46 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4757         * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
4758         ARRAY_TYPE before assuming so.  Also, subtract 1 from LENGTH in
4759         computation of SLICE_END.
4761         * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
4763         * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
4765         * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
4766         for unary set operations).
4768         * ch-expr.c (build_chill_array_expr): Take new argument FORCE.  All
4769         callers changed.  All callers changed.
4771         * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
4772         being NULL_TREE until we've started walking the list of values via
4773         the loop over VARIANTs.
4775         * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
4776         treat it as an enum value (and hence constant).  Also, only set
4777         TREE_STATIC if the constructor is indeed constant.
4778         * c-typeck.c (chill_initializer_constant_valid_p): If we see a
4779         VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
4780         recurse on the DECL_INITIAL.
4782 Wed Jan  5 01:24:50 1994  Bill Cox  (bill@cygnus.com)
4784         * Makefile.in: Add CHILL to LANGUAGES variable.
4785         * ch-actions.c (check_range): Call build_binary_op instead of
4786           fold, build to get the common types chosen.
4787           (cond_range_exception, cond_overflow_exception,
4788            cond_type_range_exception): Delete, obsolete.
4789           (chill_convert_for_assignment): Enable this, get particular
4790           about when to generate rangecheck code.
4791         * ch-expr.c (build_chill_function_call): Sketch in where to
4792           perform chill_convert_for_assignment on actual parameters.
4793           (build_chill_addr_expr): Correct compiler warning.
4794         * ch-loop.c (build_chill_iterator): Add runtime check for
4795           negative loop step expression.
4796         * ch-tree.h: Add prototype.
4797         * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
4798           A varying array's length field counts the NUMBER of active array
4799           array entries, not the byte-length of them.
4801 Tue Jan  4 17:57:39 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4803         * ch-decl.c (do_decl): Call `suspend_momenary' if the
4804         converted constructor must live on the permanent_obstack.
4805         * ch-convert.c (convert): When building a new SET_TYPE
4806         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
4807         * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
4809         * ch-typeck.c (chill_location): CONSTRUCTORS that are static
4810         are locations.
4811         * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
4812         on permanent_obstack if necessary.
4814         * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
4815         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
4817         * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
4818         the patch below helped to mess up.
4820         * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
4821         (build_chill_addr_expr): Take new argument ERRORMSG.
4822         All callers changed.  Also, call `build_chill_addr_expr' where
4823         we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
4824         that now calls `mark_addressable' automagically.
4826         * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
4827         This is needed because variables may appear in initialization
4828         statements, and their DECL_INITIALs are their values at
4829         initialization time.
4830         * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
4831         to handle VAR_DECLs as initializers.
4833         * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
4834         they aren't destroyed for later use.
4836 Tue Jan  4 15:25:30 1994  Bill Cox  (bill@cygnus.com)
4838         * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
4839           parameter for varying_array_ref calculations.
4840           (build_chill_indirect_ref): Prevent seg fault due to syntax error.
4841         * ch-typeck.c (build_chill_slice_with_range): Correct issuance
4842           of bogus error in votrics.
4843           (build_chill_slice_with_length): Change for debug tracability.
4845 Tue Jan  4 02:43:37 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4847         * ch-convert.c (digest_structure_tuple): Fix phasing problem in
4848         handling variant record initializers.
4849         (various places): Change `pop_init_level' calls to match
4850         `push_init_level' wrt implicit variable.
4852         * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
4853         `integer_type_node' before using it in comparisons.  FIXME: should
4854         this be done in `chill_max_vary_array_index' by default?
4856 Tue Jan  4 00:24:14 1994  Bill Cox  (bill@cygnus.com)
4858         * ch-actions.c: Fix comments.
4859         * ch-parse.y: Define caseaction_flag.
4860           (caseaction): Create new caseaction_flag node at the start, 
4861           then free it at the end.  Check it before the ELSE code.
4862           (expanded_case_label): Check the flag here.  If set in either
4863           place, generate a jump to the end of the case.
4864         * ch-typeck.c (build_chill_slice_with_length,
4865           build_chill_slice_with_range): Add lots of compile-time
4866           parameter range checking.
4868 Mon Jan  3 21:49:04 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4870         * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
4871         implicit==0 everywhere, not 1.
4872         (digest_constructor): Ditto.
4874         * ch-actions.c (check_range): Permit limits to be NULL_TREE.
4875         Also, hack out some dead code.
4876         * ch-typeck.c (build_chill_slice): Check varying and non-varying
4877         slice constructs for range failures.
4878         (build_chill_slice_with_range): Reindented, but not changed.
4880         * ch-typeck.c (chill_max_vary_array_index): New function.
4881         * ch-expr.c (chill_expand_expr): Call it.
4883         * ch-decl.c (var_data_id, var_length_id): New variables.
4884         (init_decl_processing): Initialize them.  All calls to
4885         get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
4886         by references to these variables.  This simplifies the code
4887         w/o obscuring anything.
4889 Mon Jan  3 21:24:44 1994  Bill Cox  (bill@cygnus.com)
4891         * c-typeck.c: Fix comment.
4892         * ch-actions.c (chill_expand_assignment): Error assigning to 
4893           READONLY location.  (PR_3903)  Pass filename, linenumber 
4894           to setbitpowerset runtime routine.    
4895         * ch-decl.c (init_decl_processing): Add filename, linenumber
4896           parameters to setbitpowerset prototype.
4897         * ch-expr.c (build_chill_function_call): Error when passing a
4898           READonly location as a LOC or INOUT parameter.
4899         * ch-parse.y (mode): Correct code marking type as readonly.
4901 Mon Jan  3 19:03:55 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4903         * ch-actions.c (chill_expand_assignment): Disable code that defeats
4904         building varying array references.
4905         * ch-expr.c (chill_expand_expr): Add rangecheck code to
4906         VARY_ARRAY_REF case.
4907         * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
4908         function (in this case, `validate_varying_array_ref') when we're
4909         doing a `build_' operation.
4911         * ch-typeck.c (validate_varying_array_ref): Simplify interface
4912         since INDEX parameter can never meaningfully be an INDEXLIST.
4913         * ch-actions.c (expand_varying_length_assignment): Caller changed.
4914         
4915 Mon Jan  3 07:29:45 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4917         * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
4918         * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
4919         if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
4920         (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
4921         call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD).  This
4922         can happen when constructors are output incrementally.
4923         * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
4924         * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
4925         CONSTRUCTORS.
4927 Sun Jan  2 08:17:09 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4929         * ch-convert (digest_structure_tuple): Handle SET_TYPEs.  Also, call
4930         `convert' so we can handle INSTANCE types (and other anomolies)
4931         correctly.
4933         * ch-convert.c (digest_structure_tuple): Fixed variant
4934         structure initialization.  Also fixed a typo (TYPE_NAME
4935         was being used on a FIELD_DECL instead of DECL_NAME).
4936         * c-typeck.c (initializer_constant_valid_p): Pass missing
4937         ENDTYPE argument on recursive call.
4938         (set_init_field): New function, needed by ch-convert.c change above.
4940         * ch-decl.c (layout_chill_variants): Added a FIXME next to an
4941         almost certain typo.
4943         * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
4944         TREE_CONSTANT for static references.
4945         * ch-except.c (chill_start_on): Change calls to
4946         `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
4947         which has CHILL semantics.
4948         * ch-convert.c (convert): Ditto (albeit in some disabled code).
4950 Sat Jan  1 21:26:43 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4952         * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
4953         TREE_CODE of DECL in case it's altered by actions in the switch.
4955         * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan.  CVS log
4956         mentions where to find code that triggers this case.
4958         * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
4959         well.
4961         * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
4962         we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
4963         (digest_constructor): Ditto.
4965 Sat Jan  1 10:29:19 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
4967         * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
4968         so that CONSTRUCTORS are properly handled before being used.
4970         * ch-convert.c (chill_start_init): New function.  All callers to
4971         `start_init' changed to call this function instead.
4972         (digest_struct_tuple): Defend against initialization machinery
4973         mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
4974         IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots.  This is
4975         needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
4976         can be refered to throughout the compilation unit.  Also remove an
4977         extraneous call to `process_init_element' erroneously added to the
4978         variant record sub-loop.
4979         (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
4980         CONSTRUCTORS of SET_TYPE.
4981         * ch-parse.y (build_chill_constructor): Refix typo.  Also set
4982         TREE_STATIC if at top level.
4984         * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
4985         TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
4986         should have been called.
4988         * ch-convert.c (digest_struct_tuple): Restore code which tracks 
4989         field initializations so that the compiler can deduce what variant
4990         initializations to assume.
4992         * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
4993         when we push into a scope that has a DECL with a CONSTRUCTOR as its
4994         DECL_INIT.
4996         * ch-parse.y (build_chill_constructor): Change the name of the
4997         parameter to something more meaningful.  Fix typo.  Also, handle case
4998         where element is an untyped CONSTRUCTOR.
5000         * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
5001         constant ADDR_EXPRs.
5002         (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
5003         on JBUF_REF (instead of calling `build1' which does not).
5005         * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
5007         * ch-typeck.c (chill_expand_tuple): Deleted.
5008         * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
5009         instead, use initialization machinery for CONSTRUCTORS that
5010         come through here.
5011         * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
5012         that are created here.
5013         * ch-satisfy (satisfy): Abort in case we would have called
5014         chill_expand_tuple.  FIXME: some other code is needed here,
5015         but I don't know what yet.
5017         * ch-parse.y (build_chill_constructor): New function to
5018         propagate TREE_CONSTANT bits to CONSTRUCTORS.
5019         (untyped_expr rule): Use it.
5020         (primval rule): Use it.
5022         * ch-decl.c (do_decl): Call `finish_init'.
5023         * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
5024         this function, make sure the initialization machinery is set up.
5026         * ch-convert.c (digest_structure_tuple, digest_constructor): Add
5027         missing prototypes.
5029 Fri Dec 31 11:31:01 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
5031         * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
5032         as being TREE_CONSTANT.  Otherwise it gets bounded by the initializer
5033         code.
5035         * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
5036         * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
5037         rewritten to work with GCC's initialization code.  The basic change
5038         was to keep the initializers in sync with the initialization
5039         machinery that `process_init_element' imposes.  Both of these
5040         functions now return `void'.
5041         * ch-convert.c (convert): Changed calls to `digest_...' functions.
5043         FIXME: the code handling UNION_TYPE (and variant records) has not
5044         been tested yet.
5046 Fri Dec 31 15:32:56 1993  Bill Cox  (bill@rtl.cygnus.com)
5048         * ch-lex.l (convert_number): Output the converted number if 
5049           yydebug is enabled.
5050         * ch-parse.y (signaldef): Set ignore_exprs correctly for a 
5051           SIGNAL declaration.
5053 Fri Dec 31 13:17:48 1993  Bill Cox  (bill@cygnus.com)
5055         * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
5056           a RETURN without a value (which cannot have an exception
5057           handler) from a RETURN with a value (which can).  Eliminate
5058           some shift/reduce and reduce/reduce conflicts.
5060 Thu Dec 30 17:42:32 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
5062         * ch-inout.c (build_chill_writetext): Deal with 2 cases where
5063         types returned from `type_for_size' are not expected.  FIXME.
5064         * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
5065         This is required when range checking is enabled.
5067 Thu Dec 30 14:28:25 1993  Bill Cox  (bill@rtl.cygnus.com)
5069         DELAY CASE works now.
5070         * ch-decl.c (init_decl_processing): Move rest of tasking-related
5071           initialization into tasking_init().
5072         * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
5073           (optsetprio): New non-terminal.
5074         * ch-tasking.c (get_task_name): Delete, obsolete.
5075           (build_instance_type): build pointer to instance type also.
5076           (build_receive_case_start): Cleanup per -Wall messages.
5077           (build_receive_case_label): Move between start and end functions.
5078           (build_delay_case_start): Pass SET name and priority also.
5079           Generally update to correct functioning.
5080           (build_delay_case_label): Move between start and end fucntions, 
5081           correct its functioning.
5082           (build_delay_case_end): Correct the code.
5083           (tasking_init): Lots of tasking-related code moved here from
5084           init_decl_processing.
5085         * ch-tree.h: Update, add prototypes.
5087 Wed Dec 29 10:13:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5089         * ch-expr.c (build_chill_indirect_ref): Revert change which
5090           failed full regression testing.
5091         * ch-lex.l (name_type_signal): Add debug output.
5092         * ch-parse.y (structured_variable): Add a debug variable.
5094 Wed Dec 29 02:05:51 1993  Bill Cox  (bill@rtl.cygnus.com)
5096         * ch-decl.c (get_next_decl): Revert change which failed full
5097           regression testing.
5099 Tue Dec 28 18:20:14 1993  Bill Cox  (bill@rtl.cygnus.com)
5101         DELAY actions work now.
5102         * ch-decl.c: Correct spelling in comments.
5103           (get_next_decl): NULL out the decl's TREE_CHAIN before returning
5104           it, to prevent accidental access to the remembered_decls.
5105           (init_decl_processing): Add wait_event to runtime functions.
5106         * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
5107           becoming a seg fault.
5108         * ch-grant.c: Correct a comment.
5109         * ch-loop.c: Delete/correct comments.
5110         * ch-parse.y (delaycaseaction): Add push/poplevel calls.  Turn 'sorry'
5111           into rough draft of actual code.
5112           (delayaction): Don't make a new scope here, use get_unique_identifier
5113           instead.
5114           (locdec): process event decls here, too.
5115           (mode): Add code to forbid READonly EVENT and BUFFER decls.  Delete
5116           code which required EVENTs and BUFFERs to be declared at global scope.
5117           (simple_name_string): Add an EVENTNAME.
5118         * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
5119           becoming a seg fault.
5120         * ch-tasking.c (tasking_setup): Add the event queue's max. length
5121           as the 'entry_point' parameter in the list.
5122           (build_receive_case_start, build_receive_case_label): Defer
5123           calling runtime routine until we know whether we have a signal
5124           or a buffer to wait for.
5125           (build_delay_case_start, build_delay_case_end, 
5126            build_delay_case_label, build_delay_action,
5127            process_event_decls): Added functions.
5128         * ch-typeck.c (chill_similar): Allow all integers of differing
5129           precisions to be similar.
5131 Thu Dec 23 18:00:40 1993  Bill Cox  (bill@rtl.cygnus.com)
5133         * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
5134           options.  Delete C-specific defines.  Disable piping from
5135           pre-processor to cc1chill (even if -pipe is specified), since cc1chill
5136           rewinds its input for its second pass.  Piping still works
5137           from cc1chill to as.
5139 Thu Dec 23 12:31:55 1993  Bill Cox  (bill@rtl.cygnus.com)
5141         * ch-tasking.c (decl_tasking_code_variable): Assure that the
5142           tasking_code variable is allocated on the permanent obstack.
5143           (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
5144           queue length (passed as the entry_point parameter).
5145           Other changes to variable names to increase 'self-documentation'
5146           the only kind GNU CHILL will get, for a while..
5148 Wed Dec 22 10:46:31 1993  Bill Cox  (bill@rtl.cygnus.com)
5150         * ch-decl.c (do_seize): Delete - it's unused.  Fix comments.
5151         * ch-loop.c (build_chill_iterator): Convert BY expression
5152           so loop involving a SET works.  Additional errors generated
5153           for numbered SET expression as start or end expression.
5154         * ch-tree.h: Prototypes for future DELAY functions.
5155         * ch-typeck.c: Standard indentation.
5157 Tue Dec 21 15:30:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5159         * ch-actions.c (build_cause_exception):  New function.
5160         (expand_cause_exception):  Re-write to use build_cause_exception.
5161         (check_expression, check_range):  New functions.
5162         (chill_convert_for_assignment):  New function.
5163         * ch-expr.c (build_chill_pred_or_succ):  New function.
5164         (build_chill_succ, build_chill_pred):  Removed.
5165         (build_generalized_call):  Use build_chill_pred_or_succ.
5166         * ch-lex.h, ch-lex.l (init_lex):  Add RID_OVERFLOW and RID_RANGEFAIL.
5167         * ch-lex.l (init_lex):  Use new macro to make more terse.
5168         * ch-typeck.c (chill_equivalent):  New function.
5169         Also check that ranges have the same bounds.
5170         * ch-typeck.c (my_build_array_ref):  Add optional range-checking.
5171         * ch-typeck.c (chill_location):  Handle COMPOUND_EXPR properly.
5172         Return 2 if also a referable.
5173         * ch-typeck.c (chill_referable):  Re-define to use chill_location.
5174         * ch-tree.h (CH_EQUIVALENT):  Re-defined to use chill_equivalent.
5176         * dbxout.c (dbxout_type):  Output the type attribute "@S;" to
5177         distinguish a string from a char array, and to distinguish a
5178         bitstring from regulat (power)set.  (Needed for Chill.)
5179         * dbxout.c (dbxout_type):  Only check for baseclasses in
5180         type.binfo is a vector.  (It is used in Chill for tagged unions.)
5182 Fri Dec 17 09:56:07 1993  Bill Cox  (bill@rtl.cygnus.com)
5184         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
5185           ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
5186           ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
5187           Fix -Wall problems.
5188         * ch-actions.c (chill_expand_assignment): Error if assigning
5189           a value to a BUFFER or EVENT variable.
5190         * ch-expr.c (invalid_left_operand): Delete, unused.
5191         * ch-grant.c (tasking_setup): Call build_enum_tables.
5192         * ch-inout.c (get_final_type_and_range, build_enum_tables,):
5193           New functions.
5194           (build_chill_writetext): Lots of changes to support other
5195           basic CHILL data types.
5196         * ch-loop.c (build_chill_iterator): Lots of new code to check
5197           the expressions in a STEP loop.
5198         * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
5199           names in receivecasealternative.  Generate error messages
5200           if they're mixed in the same receive case.
5201           (process_buffer_decl): Renamed from build_buffer_decl.
5202         * ch-tree.h: Fix prototypes.
5203         * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
5204           correctly.  Thanks Per!
5206 Wed Dec 15 15:05:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5208         * ch-decl.c (push_scope_decls):  Re-arrange some more, so
5209         that normal SEIZES (without ALL) are handled before SEIZE ALL.
5211 Wed Dec 15 13:01:22 1993  Bill Cox  (bill@rtl.cygnus.com)
5213         * ch-loop.c (declare_temps): Calculate end-of-array pointer
5214           using correct type (NOT chill_integer_type).
5215           (begin_chill_loop): Build loop-bypass expression in the
5216           type of the start expression, not in the unsigned type.
5218 Tue Dec 14 15:41:32 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5220         * ch-decl.c (push_scope_decls):  Re-arrange so that normal
5221         (non-seize) declarations are proclaim_decl'd *before* we
5222         handle the ALIAS_DECLs for seizes.  The advantage is
5223         that we can now test for (an approximation) to the
5224         'seizeable' concept, thus avoiding duplicate definitions
5225         when a module has both GRANTs and SEIZE ALL.
5227         * ch-expr.c (build_chill_arrow_expr): No longer re-write
5228         addr-of-conversion to pointer-conversion-of-addr.
5229         * ch-expr.c (build_chill_addr_expr): Re-write to just use
5230         build_chill_arrow_expr.
5232 Mon Dec 13 16:44:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5234         * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr):  Don't re-write 
5236         * ch-tree.h (chill_root_resulting_mode):  Fix typo (missing '_').
5238         * ch-expr.c (finish_chill_binary_op):  Use CH_ROOT_RESULTING_MODE
5239         macro (which works on expressions), rather than CH_RESULTING_MODE
5240         (which works on modes, and isn't quite correct).
5241         * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE):  New macro.
5242         * ch-typeck.c (chill_read_compatible, chill_compatible):
5243         Use the new macro, which handles NEWMODEs of PTR correctly.
5244         * ch-typeck.c (chill_similar):  Return 1 rather than 0 for
5245         dynamic-length array (and string) types (e.g. slices).
5246         * ch-typeck.c (chill_root_mode):  If the mode has a Novelty,
5247         just return it as is.  (This is still not 100% correct for
5248         NEWMODE of RANGEs, but is close enough.)
5250 Mon Dec 13 16:27:06 1993  Bill Cox  (bill@rtl.cygnus.com)
5252         * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
5253           build_buffer_decl, which then seg faults.
5254         * ch-tasking.c (build_buffer_descriptor): Move declaration
5255           of bufdecl closer to its use.
5257 Mon Dec 13 14:57:55 1993  Bill Cox  (bill@rtl.cygnus.com)
5259         * ch-actions.c (chill_expand_result): Use expand_expr_stmt
5260           to avoid C-specific conversions.
5261         * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
5262         * ch-parse.y (sendaction): Delete unused statement, use the 'name'
5263           variable.
5264         * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
5265           conversions.
5266           (build_buffer_decl): Save the tasking_code_variable's decl
5267           in the buffer decl tree.
5268           (build_buffer_descriptor): Real, working version.
5270 Mon Dec 13 03:13:36 1993  Bill Cox  (bill@rtl.cygnus.com)
5272         * ch-decl.c (print_lang_identifier): Delete code
5273           to print buffer size - it's no longer kept here.
5274         * ch-parse.y (expand_send_buffer): Renamed from
5275           build_send_buffer.
5276           (locdec): Enable building of a buffer decl.
5277           (optresultspec, optresultattr): Add optional
5278           result attributes such as LOC.  Semantics
5279           not enabled yet.
5280         * ch-tasking.c (expand_send_buffer): Renamed.
5281         * ch-tree.h (build_send_buffer): Renamed.
5282         * ch-typeck.c (chill_expr_class): Do more complete,
5283           job of classifying expressions.  Thanks, Per.
5285 Mon Dec 13 00:59:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5287         * ch-typeck.c (chill_expr_class):  Return CH_DERIVED_CLASS
5288         for bitstring constants.
5289         * ch-typeck.c (chill_novelty):  The novelty of an (unnamed)
5290         range mode is that of its parent mode; the novelty of READ M
5291         is that of M.
5293 Sat Dec 11 15:14:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5295         * ch-expr.c (varying_to_slice):  Call stabilize_reference
5296         rather than save_expr.
5297         * ch-typeck.c (build_chill_slice):  Don't emit warning
5298         if array is a SAVE_EXPR (it is effectively referable).
5299         * ch-typeck.c (chill_root_resulting_mode):  Handle
5300         correctly the case that one operand is DERIVED and one is VALUE.
5302 Fri Dec 10 10:00:42 1993  Bill Cox  (bill@rtl.cygnus.com)
5304         * ch-grant.c (decode_decl): Restore code mistakenly deleted.
5305           Move instance-handling code to raw_decode_mode.
5306         * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
5307           Add rough draft of DELAY statement handling.
5308         * ch-tasking.c (build_event_type): New function.
5309         * ch-tree.h (build_event_type): Add prototype.
5310         * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
5312 Wed Dec  8 18:02:26 1993  Bill Cox  (bill@rtl.cygnus.com)
5314         Parse and grant BUFFER modes.
5315         * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
5316           Moved from decode_decl.
5317         * ch-parse.y: Fix several sorry() messages.
5318         * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
5319           info.
5321 Wed Dec  8 12:59:54 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5323         * ch-actions.c (chill_expand_assignment):  In a multiple
5324         assignment, check that all the targets are equivalent.
5326         * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT):  New function
5327         and macro to (partially) implement the relation l-equivalent.
5328         * ch-typeck.c (chill_read_compatible):  Implement at least
5329         initial check of read-only-ness.
5330         * ch-typeck.c (build_readonly_type):  Fix thinkos.
5332 Wed Dec  8 09:11:46 1993  Bill Cox  (bill@rtl.cygnus.com)
5334         * ch-decl.c (pop_module): Only warn about duplicate grant
5335           statements if they inhabit different files, by examining
5336           inode numbers.  Only report compatibility problems in pass 1.
5337         * ch-lex.l (chill_same_grant_file): New function to support the
5338           above test.
5340 Tue Dec  7 17:10:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5342         * ch-decl.c (start_chill_function):  Handle attributes in pass 1,
5343         rather than in pass 2.  (It seems to make more sense that way.)
5344         * ch-parse.y (procedureattr):  Build attribute list if pass != 2.
5346         * ch-parse.y (mode):  Don't call build_readonly_type in pass 2.
5348 Mon Dec  6 14:35:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5350         This implements NOVELTY and READONLY checking.
5351         * ch-tree.def:  Added comment about use of LANG_TYPE.
5352         * ch-typeck.c (build_readonly_type, smash_dummy_type):  New functions.
5353         * ch-tree.h: New prototypes.
5354         * ch-decl.c (push_modedef):  If newmode, lazily "copy" the given mode
5355         immediately (even if it's just a type name), using a LANG_TYPE.
5356         * ch-parse.y (mode):  Call build_readonly_type to handle READ.
5357         * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
5358         ch-satisfy.c (satisfy):  Handle a LANG_TYPE.
5359         * ch-decl.c:  Remove chill_modes_equiv and other unused junk.
5360         * ch-satisfy.c (safe_satisfy_decl/CONST_DECL):  Better
5361         mode compatibility checking for SYN declarations.
5363         * ch-typeck.c (chill_similar):  Be more general when checking set
5364         modes for similarity - specifically support calling chill_similar
5365         BEFORE the modes have been satisfied (needed by proclaim_decl).
5366         * ch-decl.c (proclaim_decl):  Allow duplicate definitions
5367         of set elements of similar set modes.
5369         * ch-parse.y (caseaction):  Call language-independent
5370         expand_start_case rather than c_expand_start_case (which
5371         doesn't allow chars or booleans).
5373 Sat Dec  4 22:16:19 1993  Bill Cox  (bill@rtl.cygnus.com)
5375         * ch-actions.c (cond_range_exception, 
5376           cond_type_range_exception): Check command-line flag before
5377           generating code.  Fix comments.
5378         * ch-expr.c (build_chill_num): Add generation of OVERFLOW
5379           code, commented out.
5380         * ch-loop.c (build_chill_iterator): Comment out
5381           exception code generation.
5382         * ch-parse.y: Delete quasi_signal flag, use 
5383           current_module->is_spec_module instead.
5384         * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
5385           Delete quasi_decl flag.  Look at current_module
5386           instead.
5387         * ch-tree.h: Take quasi_decl flag out of buffer
5388           related prototypes.
5389         * ch-typeck.c (valid_array_index, chill_similar):
5390           Comment out runtime range checking for now.
5391         * expr.c (store_constructor): Fix word-size set problem.
5392         * varasm.c (emit_set_data): Fix word-size set problem.
5394 Wed Dec  1 19:08:12 1993  Bill Cox  (bill@rtl.cygnus.com)
5396         * ch-actions.c: Delete unused prototype for build_compound_expr.
5397         * ch-loop.c (begin_chill_loop): Convert operands of the conditional
5398           expression to lp->iter_type before expanding it.  Prevents an abort
5399           deep in expand_expr and friends.
5401 Wed Dec  1 17:00:44 1993  Bill Cox  (bill@rtl.cygnus.com)
5403         * ch-actions.c (chill_expand_assignment): Comment out strange
5404           test and its error message.
5405         * ch-loop.c (begin_chill_loop): Correct call to generate conditional
5406           jump around the loop.
5407         * ch-typeck.c (build_chill_slice): Call correct temporary generator.
5409 Wed Dec  1 14:19:51 1993  Bill Cox  (bill@rtl.cygnus.com)
5411         * ch-actions.c (cond_exception): Clarify that it generates
5412           an exception if the given expression is TRUE.  Make it so, Number One.
5413         * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
5414           (print_lang_type): Print max queue size.
5415           Add casts to DECL_TASKING_CODE_DECL references.  Fixes a
5416           portability problem.
5417           (init_decl_processing): Add filename and linenumber arameters
5418           to tasking and memory-allocate runtime prototypes.
5419         * ch-expr.c (finish_chill_binary_op): Check for division
5420           by a constant zero.  Replace build_temporary_variable
5421           calls with decl_temp1 calls, to decouple from ch-loop.c.
5422           (build_chill_succ, build_chill_pred): Sketch code to generate
5423           exceptions.  Add error check for numbered set.
5424           (build_generalized-call): Correct call for return_memory.
5425           Standardize whitespace before left parens.
5426         * ch-grant.c: Use new macro for checking for BUFFER mode.
5427         * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
5428           and EVENT names.
5429         * ch-loop.c (build_temporary_variable): Make static, unavailable
5430           to outsiders.
5431           (declare_temps): Make user's variable for him/her, in the
5432           true Z.200 case, where it hasn't previously been declared.
5433           (begin_chill_loop): simplify control flow a bit.
5434         * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
5435           (rccase_label): Delete bogus error checks.  Rough draft of
5436           BUFFER-related code.
5437           (assertaction): Remove logical negation - it's now in cond_exception.
5438           (locdec): Sketch of buffer-related code.
5439           (non_array_mode): Add EVENT and BUFFER modes here.  Add setting of
5440           set-numbered flag for pred and succ functions.
5441           (optqueuesize): Default to integer_zero_node.
5442           (simple_name_string): Add BUFFERNAME.
5443         * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
5444           (build_chill_start_process, expand_send_signal,
5445            build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
5446           to tasking-related runtime calls.  Sketches of BUFFER mode
5447           processing.
5448         * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
5449           macro, for portability to non-gcc compilers.  Add prototypes
5450           for buffer-related functions.
5451         * ch-typeck.c: Replace build_temporary_variable calls with
5452           decl_temp1 calls, to decouple from ch-loop.c.
5453           (chill_similar): Add tests for BUFFER and EVENT modes.
5455 Wed Dec  1 14:05:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5457         * ch-actions.c (malloc prototype):  Remove; can cause conflicts.
5459 Wed Dec  1 09:49:58 1993  Bill Cox  (bill@rtl.cygnus.com)
5461         * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
5463 Tue Nov 30 14:05:23 1993  Bill Cox  (bill@rtl.cygnus.com)
5465         * ch-decl.c (init_decl_processing): Add filename, line number
5466           parameters to tasking-related runtime routines.
5467         * ch-grant.c (decode_decl): Check for BUFFER mode differently.
5468         * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to 
5469           lex-only list.
5470           (quasi_locdec): Set/reset quasi_decl flag.
5471         * ch-tasking.c (build_start_process, expand_send_signal,
5472           build_receive_case_start, build_send_buffer): Add filename. linenumber to
5473           (build_buffer_decl, build_buffer-type): New rough-draft functions.
5474           generated runtime routine call.
5475         * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
5476           to mark a synchronization mode.  Update the prototypes.
5477         * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
5478           similarity.
5480 Tue Nov 30 09:51:47 1993  Doug Evans  (dje@canuck.cygnus.com)
5482         * cccp.c (main): Add missing chill sanitization.
5484 Sun Nov 28 15:50:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5486         * ch-loop.c (initialize_iter_var): Build count expression
5487           more robustly.
5488           (bottom_loop_end_check): Call emit_line_note.
5489           (end_chill_loop): Delete emit_line_note call.
5490         * ch-parse.y (doaction): Move DO keyword
5491           after end_chill_loop call.
5493 Wed Nov 24 08:49:07 1993  Bill Cox  (bill@rtl.cygnus.com)
5495         * c-typeck.c (c_expand_start_case): Back out previous
5496           change.
5498 Tue Nov 23 12:33:50 1993  Bill Cox  (bill@rtl.cygnus.com)
5500         * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
5501           type as a CASE label.
5503 Tue Nov 23 11:37:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5505         * ch-decl.c (grok_chill_variantdefs):  Use NULL as the name
5506         of variant fields (not __CASE or anything based on it).
5507         * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
5508         Don't check for field name __CASE.
5510 Tue Nov 23 09:37:54 1993  Bill Cox  (bill@rtl.cygnus.com)
5512         * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
5513           name for the FIELD_DECL.
5514         * ch-parse.y (optstartset): More error tests.
5515         * ch-tasking.c (make_process_struct): Only report error in pass 1.
5516           (build_start_process): Remove bogus restriction, allowing
5517           an INSTANCE expression as the optset parameter.
5519 Mon Nov 22 17:56:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5521         * ch-tree.h (expand_function_end):  Now is takes parameters, not 2.
5522         * ch-decl.c (finish_chill_function):  Add 3rd parameter to
5523         call of expand_function_end.
5525         * ch-expr.c (chill_expand_expr):  For set and strings ops,
5526         if target is in a register, use a stack temporary (since we must
5527         take its address).  (Similar to Oct 29 change for store_constructor.)
5528         * ch-expr.c (resolve_component_ref):  Fix variant field lookups.
5530 Mon Nov 22 14:23:13 1993  Bill Cox  (bill@rtl.cygnus.com)
5532         * ch-expr.c (chill_expand_expr): Assure that emit_library_call
5533           parameter 1 and its mode are always in sync.
5534           (build_chill_pred, build_chill_succ): Allow pred/succ of a
5535           pointer.
5536         * ch-loop.c (chill_unsigned_type): New function, used instead of
5537           unsigned-type, since it understands the chill_integer_type.
5538           (decl_iteration_var): Delete, use build_temporary_variable
5539           instead.
5540           (declare_temps): Use lp->iter_type for the temp evaluations.
5541           (initialize_iter_var): More careful calculation, to handle
5542           MININT to MAXINT loops w/o overflow/underflow.
5543           (begin_chill_loop): Use the original start/end expressions
5544           for the loop bypass test.
5546 Mon Nov 22 14:02:06 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5548         * ch-typeck.c (build_chill_slice):  If the argument is
5549         is constant, use a read-only static variant, as the
5550         existing algorithm assumes addressability.
5551         * ch-typeck.c (chill_compatible):  De-reference reference types.
5552         * ch-typeck.c (layout_chill_range_type):  Set TREE_UNSIGNED.
5554 Sat Nov 20 20:17:15 1993  Bill Cox  (bill@rtl.cygnus.com)
5556         * ch-decl.c (init_decl_processing): Add filename
5557           and linenumber to allocate, free memory calls.
5558         * ch-expr.c (build_allocate_memory_call,
5559           (build_allocate_global_memory_call): Add 
5560           filename, linenumber to call.
5561         * ch-loop.c: Complete rewrite for maintainability.
5563 Sat Nov 20 17:30:05 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5565         * ch-except.c:  Make it so that (by default at least) the
5566         code to push/pop the __exceptionStack is done using library
5567         functions __ch_link_handler and __ch_unlink_handler.  This
5568         provides better flexibility (for e.g. multi-threading).
5570         * ch-decl.c (layout_chill_variants):  Allow (useless) selectors
5571         even for tag-less variants.
5573 Fri Nov 19 14:32:20 1993  Bill Cox  (bill@rtl.cygnus.com)
5575         * ch-decl.c (init_decl_processing): Add memmove builtin
5576           function definition.
5577         * ch-actions.c (chill_expand_array_assignment): Use memmove
5578           call to copy an array or slice across the assignment.
5580 Wed Nov 17 18:23:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5582         * ch-satisfy.c (satisfy):  If a CONTRUCTOR already has a
5583         TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
5584         to force expansion (processing of the elements).
5585         * ch-grant.c (decode_constant):  If a tuple (CONTRUCTOR) has
5586         a mode, write it out.
5587         * ch-decl.c (init_decl_processing): Add some missing inits.
5589 Wed Nov 17 17:13:20 1993  Bill Cox  (bill@rtl.cygnus.com)
5591         * ch-loop.c: Fix unterminated strings in design comments.
5592           Add enumeration to the iterator structure for type of loop.
5593           unused for now.
5595 Wed Nov 17 16:40:05 1993  Bill Cox  (bill@rtl.cygnus.com)
5597         * ch-decl.c (init_decl_processing): Add long parameters to lots
5598           of powerset runtime routines.
5599         * ch-expr.c (chill_expand_expr): Change parameters to powerset
5600           runtimes so bitlengths are long unsigned ints.
5601         * ch-inout.c (build_chill_writetext): Add filename and linenumber       
5602           as runtime parameters, for better error messages.
5603         * ch-loop.c: general pre-rewrite cleanup.
5604         * expr.c (store_constructor): Rewrite set interface to
5605           setpowersetbits for long bitnumbers, rather than shorts.
5607 Tue Nov 16 13:41:12 1993  Bill Cox  (bill@rtl.cygnus.com)
5609         * ch-expr.c (build_chill_function_call): Stop generating empty
5610           copyback statements, which lead to a seg fault.
5612 Tue Nov 16 12:20:17 1993  Per Bothner  (bothner@cygnus.com)
5614         * ch-satisfy.c (satisfy):  If satisfying a type whose
5615         TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
5616         * ch-actions.c (build_exception_variant):  Remove some crud.
5617         * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
5618         Remove unused first argument.
5619         * ch-decl.c (start_chill_function):  Call build_exception_variant
5620         in pass 1, not in pass 2.
5622 Tue Nov 16 11:10:03 1993  Bill Cox  (bill@rtl.cygnus.com)
5624         * ch-decl.c (shadow_record_fields): Call new function
5625           build_chill_arrow_expr, which returns a ptr-to-a-type.
5626         * ch-expr.c (build_chill_arrow_expr): New function, works like
5627           build_chill_addr_expr used to do, returning a typed ptr.
5628           (build_chill_addr_expr): Now returns unbound ref - analogous
5629           to C 'void *'.
5630         * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
5631           (operand6): Call build_chill_arrow_expr.  Reindent a bit.
5632         * ch-tree.h (build_chill_arrow_expr): New prototype.
5634 Mon Nov 15 16:38:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5636         * stor-layout.c (layout_type): If a SET_TYPE needs more than
5637         INT_TYPE_SIZE bits, use BLKmode (and never DImode).
5639         * ch-decl.c (start_chill_function):  Set DECL_CONTEXT of params.
5641 Mon Nov 15 14:49:17 1993  Bill Cox  (bill@rtl.cygnus.com)
5643         * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
5644           build_function_call, etc.) to tasking_init.
5645         * ch-gperf, ch-hash.h: Add ASM keyword.
5646         * ch-parse.y: Add ASM statement rules.
5647           (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
5648         * ch-tasking.c: Move tasking stuff here.
5650 Sun Nov 14 15:50:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5652         * ch-parse.y (mode2):  Split into array_mode and non_array_mode
5653         to resolve layout ambiguity.
5654         * ch-parse.y (checked_name):  Remove.  Use name_string instead.
5655         * ch-parse.y (variantdef):  Don't crash if no tag fields.
5656         * ch-typeck.c (build_chill_array_type):  If varying_p,
5657         actually do build_varying_struct here (rather than in ch-parse.y).
5659 Fri Nov 12 15:37:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5661         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
5662         static names.  (Let make_decl_rtl generate a unique name.)
5664 Sun Nov 14 13:15:26 1993  Bill Cox  (bill@rtl.cygnus.com)
5666         * ch-expr.c (build_chill_lower, cuild_chill_upper):
5667           Rewrite for modes, values, etc.
5668         * ch-inout.c (build_chill_writetext): Add ability
5669           to write out characters.
5670         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
5671           static names.  (Let make_decl_rtl generate a unique name.)
5672         * varasm.c (unpack_set_constructor): Subtract
5673           lower domain value from a bit's index value,
5674           to match the runtime and allow powersets
5675           with negative lower bounds.
5677 Fri Nov 12 14:00:48 1993  Bill Cox  (bill@rtl.cygnus.com)
5679         * ch-inout.c (build_chill_writetext): Save reserved words in
5680           uppercase if -fspecial_UC was specified.
5682 Fri Nov 12 13:27:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
5684         * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
5685         string concatenation by treating varying strings as slices.
5686         (varying_to_slice): New function.
5687         * ch-typeck.c (build_chill_slice): Changed to support the above.
5689 Fri Nov 12 12:07:28 1993  Bill Cox  (bill@rtl.cygnus.com)
5691         * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
5692         * ch-expr.c (build_generalized_call): Start module before a
5693           writetext action, so its variables are inside the module-level
5694           function.
5695         * ch-loop.c (init_loop_counter): Correct for_u_bound computation
5696           for enumeration loop on a varying array.
5698 Thu Nov 11 07:49:53 1993  Bill Cox  (bill@rtl.cygnus.com)
5700         * cccp.c (main): Disable trigraphs for CHILL.
5701         * ch-decl.c (grok_chill_fixedfields): Add special_UC
5702           to conditional to determine case of reserved words.
5703           Make PACK/UNPACK warning more specific.
5704         * ch-expr.c (build_generalized_call): Enable recognition
5705           of WRITETEXT call here.
5706         * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
5707           word.  It's only predefined.
5708         * ch-inout.c: Add special_UC to conditionals
5709           to determine case of reserved words.
5710           (build_chill_writetext): Change for call from 
5711           build_generalized_call.  Add code to format
5712           integers.
5713         * ch-lang.c (lang_decode_option): Add special_UC and
5714           special_LC flags and logic to interlock with
5715           ignore_case flag.
5716         * ch-lex.l: Add special_UC to conditionals
5717           to determine case of reserved words.
5718         * ch-parse.y: Delete WRITETEXT as reserved word.
5719         * ch-tasking.c: Add special_UC to conditionals
5720           to determine case of reserved words.
5721           (build_instance_type): Make components of INSTANCE
5722           unsigned 16-bit integers.
5723         * ch-tree.h (build_chill_writetext): Fix prototype.
5724         * ch-typeck.c (build_chill_array_type): Make PACK
5725           /UNPACK warning more specific.
5726         * toplev.c (lang_options): Add -fspecial_LC
5727           and -fspecial_UC flags.
5729 Wed Nov 10 02:29:53 1993  Bill Cox  (bill@rtl.cygnus.com)
5731         * Makefile.in: Move ch-hash.h from ch-lex.o
5732           rule to ch-lex.c rule, so flex is rerun.
5733         * ch-actions.c (chill_expand_assignment): Error if
5734           user tries to assign to a LHS function.
5735         * ch-decl.c (grok_chill_fixedfields): Use of PACK
5736           /UNPACK is only a warning.
5737           (init_decl_processing): Add ADDR as a builtin function.
5738         * ch-expr.c (build_generalized_call): Add ADDR
5739           as a builtin function.
5740           (build_chill_addr_expr): Sanity check parameters.
5741         * ch-gperf: Remove ADDR as a reserved word,
5742           make ASM into one.
5743         * ch-hash.h: gperf'd version of the above.
5744         * ch-inout.c (chill_stdio_p): Recognize upper/lower
5745           case file names.
5746         * ch-lex.l: Make ignore-case work.  Downcase
5747           token before checking for reserved words.
5748         * ch-parse.y: Delete ADDR as a reserved word.
5749           (mode2, optlayout): Allow PACK/UNPACK specifier.
5750           (call): Use build_generalized_call for 
5751                   primval LPRN modename RPRN.
5752           (primval): Delete ADDR reference.  It's now only
5753           predefined, not reserved.
5754         * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
5755         * ch-typeck.c (build_chill_array_type): Just
5756           a warning for PACK/UNPACK usage.
5757         * toplev.c: Add -fignore-case and -fno-ignore-case.
5759 Tue Nov  9 15:07:02 1993  Bill Cox  (bill@rtl.cygnus.com)
5761         * ch-actions.c: Reindent for readability.
5762         * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
5763           a conversion to INSTANCE.
5764         * ch-decl.c: Change special_UC to ignore_case everywhere.
5765           (init_decl_processing): Add builtin_function calls for lots of
5766           predefined functions.
5767         * ch-expr.c: Change builtin function handlers back to accepting
5768           args, not a treelist.  
5769           (route_to_predefined_function): Delete it and its call.
5770           (build_generalized_call): Add lots of builtin functions.
5771         * ch-gperf (backwards, duration, inttime, null): Delete them.
5772         * ch-hash.h: New version.
5773         * ch-inout.c: Change special_UC to ignore_case everywhere.
5774         * ch-lang.c: Delete special_UC flag.
5775         * ch-lex.l: Change special_UC to ignore_case everywhere.
5776         * ch-loop.c (high_domain_value, low_domain_value): Change
5777           interfaces to build_chill_upper and built_chill_lower.
5778         * ch-parse.y: Delete lots of stuff which should only be predefined.
5779         * ch-tasking.c: Change special_UC to ignore_case everywhere.
5780           Change builtin function handlers back to accepting args,
5781           not a treelist.  
5782         * ch-tree.h: Add lots of builtin functions to the enumerator.
5784 Mon Nov  8 18:08:27 1993  Bill Cox  (bill@rtl.cygnus.com)
5786         * ch-tasking.c (tasking_init): Disable last-minute change for now.
5788 Mon Nov  8 17:30:22 1993  Bill Cox  (bill@rtl.cygnus.com)
5790         * Makefile.in: New commands to build ch-hash.h.  Add ch-lex.h to
5791           dependencies where it's used.
5792         * ch-decl.c (init_decl_processing): Build predefined constants
5793           for TRUE, FALSE and NULL.  Add declaration for abs builtin
5794           function.
5795           (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
5796           stuff for builtin constant like TRUE.
5797         * ch-expr.c (route_to_predefined_function): Add a bunch of 
5798           predefined functions to the list.
5799         * ch-gperf: Define the list of reserved words, minus the predefined
5800           words, using the special_UC flag.  Remove NULL, TRUE, FALSE -
5801           these are only predefined, not reserved.
5802         * ch-hash.h: Check this into repository, even though it's derived
5803           from ch-gperf, for those users who don't have gperf.
5804         * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
5805           to refer to the IO types. Standardize the indentation.
5806         * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
5807         * ch-lex.l: Total rewrite of reserved-word recognition, using
5808           the ch-hash.h lookup routines.
5809         * ch-parse.y: Delete a bunch of unused rules for predefined 
5810           procedures and their parameters.
5811         * ch-tasking.c (tasking_init): Build predefined functions
5812           for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE.  Not
5813           complete yet.  Change interface to builtin handlers to accept
5814           just an expression list.
5816 Wed Nov  3 18:07:08 1993  Bill Cox  (bill@rtl.cygnus.com)
5818         * Makefile.in: Debug, activate rule to make CHILL hash table.
5819         * ch-actions.c: Compress parameter type lists per standard.
5820         * ch-decl.c: Correct spelling in comment, compress parameter lists.
5821           (init_decl_processing): Check special_UC flag to build builtin
5822           function declarations.
5823         * ch-expr.c (route_to_predefined_function): Check for upper OR
5824           lowercase function names.
5825         * ch-gperf: Update the list of keywords.
5826         * ch-inout.c (build_chill_io_list): Check for special_UC flag
5827           to build I/O list type.  Compress parameter lists.
5828           (chill_stdio_p): Check for special_UC flag in recognizing
5829           file streams.
5830         * ch-lang.c (lang_decode_option): Add command-line options
5831           for upper-case keywords and user labels.
5832         * ch-lex.l (init_lex): Initialize ridpointers to uppercase
5833           if special_UC flag is set.
5834           (downcase, getlc, check_newline): Don't do this if ignore_case
5835           flag is set.
5836         * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
5837           multiple selector expressions.
5839 Sat Oct 30 01:06:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5841         * ch-expr.c (compare_record, finish_chill_binary_op): Compare
5842         STRUCTs (and INSTANCEs) for equality.
5843         * ch-expr.c (invalid_operand):  New functions, combines most of
5844         the functionality of invalid_left_operand and invalid_right_operand.
5845         * ch-convert.c (digest_constructor):  Set TREE_CONSTANT if it is.
5847 Sat Oct 30 11:12:47 1993  Bill Cox  (bill@rtl.cygnus.com)
5849         * Makefile.in (chill): Add back in the commands to build chill
5850           (the script) from chill.in.
5852 Fri Oct 29 16:25:38 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5854         * expr.c (store_constructor):  If SET_TYPE target is in a register,
5855         use a stack temporary (since we must take its address).
5857         * ch-expr.c (build_allocate_global_memory_call,
5858         build_allocate_memory_call):  Cast argument pointer to PTR,
5859         if needed (using location cast).  Also, some other cleanups.
5860         * ch-parse.y (bracketed_action):  Re-arrange things so that
5861         a handler following BEGIN END comes before the final poplevel.
5862         * ch-typeck.c (build_chill_cast): Just return if already correct type.
5864         Re-do DO WITH so that build_component_ref for is done lazily
5865         (at each reference) instead of eagerly (at the beginning
5866         of DO WITH).  This is needed for tagged variants,
5867         * ch-tree.def (WITH_DECL):  New declaration tree code.
5868         * ch-decl.c (lookup_name):  Recognize WITH_DECLs.
5869         * ch-decl.c (handle_one_level):  Variant parts are currently
5870         indicacted with '__CASE'.  Recognize that.
5871         Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
5873 Thu Oct 28 22:17:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5875         * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
5876         Remove some old crud.
5877         * ch-typeck.c (build_chill_cast):  Another attempt at a
5878         compromise between robustness and generality for casts.
5879         Location conversions are now less likely to confuse things.
5880         * ch-parse.y (optactions):  Allow further optactions following
5881         an initial semicolon.
5882         * ch-parse.y:  Add error messages on EVENT and BUFFER.
5884         * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
5885         Undo some of the Oct 27 changes.
5887         Convert (some) builtin functions previously using reserved
5888         names to be just predefined.
5889         * tree.h (enum builtin_in_function):  Added END_BUILTINS at end.
5890         * ch-decl.c:  Add predefines for allocate_memory,
5891         allocate_global_memory, return_memory, writetext.
5892         * ch-expr.c (check_arglist_length):  New function.
5893         * ch-expr.c (build_generalized_call):  If "function" is
5894         a builtin, build the appropriate tree.
5895         * ch-parse.y, ch-lex.l:  No longer recognize many pre-defined
5896         functions at the lexer/parser level.
5897         * ch-tree.h (enum chill_built_in_function):  New type.
5899 Thu Oct 28 16:43:36 1993  Bill Cox  (bill@rtl.cygnus.com)
5901         * ch-expr.c (allocate_memory, allocate_global_memory):
5902           Check for invalid parameters, issue errors.
5903         * expr.c (store_constructor): Calculate bitlength, startrtx
5904           and endrtx of powerset correctly.  Define targetx, use it
5905           and XEXP correctly.
5907 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
5909         * ch-expr.c (build_max_min): Error for passing empty tuple
5910           as the argument.
5912 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
5914         * ch-decl.c (init_decl_processing): Make allocate
5915           builtins have a pointer-to-pointer-to-void
5916           first parameter, rather than a reference parameter.
5917         * ch-expr.c (build_allocate_memory_call,
5918           build_allocate_global_memory_call): Do automatic
5919           ADDR () on the first parameter, for backward
5920           compatibility.
5921         * ch-grant.c (grant_one_decl): Don't grant if
5922           DECL_SOURCE_LINE is zero.
5923           (start_chill_module_code): Set DECL_SOURCE_LINE
5924           to zero so that module-level function isn't granted.
5925         * ch-parse.y (handleraction): Add return_memory action.
5926         * ch-typeck.c (chill_similar): Allow a void_type
5927           to be similar to anything.  This makes allocate_memory
5928           and return_memory pointer parameters slide through.
5930 Tue Oct 26 00:12:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5932         * ch-typeck.c (build_chill_array_ref):  Check for and complain
5933         if there are more index expressions than the array rank.
5935         * ch-actions.c (chill_expand_assignment):  Emit appropriate
5936         error message if RHS of multiple assignment is tuple/case/if.
5937         * ch-tree.def (CONCAT_EXPR):  Change TREE_CODE_CLASS from
5938         'e' to the more specific '2'.  (Fixes a satisfy bug.)
5940 Thu Oct 21 17:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
5942         * ch-parse.y: Revert experimental error-generating change
5943           that was checked in by mistake.
5945 Thu Oct 21 12:15:30 1993  Bill Cox  (bill@rtl.cygnus.com)
5947         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
5948           code variables associated with a process or signal.
5949           (Apparently I forgot to actually check these in last time.)
5950         * ch-tasking.c: Replace last calls to get_tasking_code with
5951           working references to DECL_TASKING_CODE_DECL.
5953 Thu Oct 21 10:27:42 1993  Bill Cox  (bill@rtl.cygnus.com)
5955         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
5956           code variables associated with a process or signal.
5957         * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
5958           tasking_code_decl pointer, rather than trying to look it up
5959           in the hash table or linked scope list.
5961 Wed Oct 20 09:52:44 1993  Bill Cox  (bill@rtl.cygnus.com)
5963         * ch-actions.c (lookup_and_handle_exit): Only output error message
5964           in pass 1.
5965         * ch-convert.c (convert): Correct conversion of VARYING array to/
5966           from non-VARYING one.
5967         * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
5968           field in the node.
5969           (decl_tasking_code_var): Delete it.  Its calls are replaced woth
5970           generate_tasking_code_variable calls, plus a little glue.
5971           (push_extern_process): generate tasking_code_variable as local
5972           static variable, point the process' function_decl at it for later 
5973           reference by build_start_process.
5974           (print_mode): Use CHILL upper-case convention to print modes.
5975         * ch-lex.l: Must initialize tasking-related trees to NULL at start
5976           of each pass, or we lose the fact that the user did or did not
5977           specify a value for each of them.
5978         * ch-parse.y (check_end_label, action, exceptlist): Only output
5979           error message in pass 1.
5980           (sendaction): Add comments.
5981           (sigdef): Comment out special handling for external signals.
5982           Chain tasking_variable_decl onto signal structure decl, for
5983           easier non-symbol-table access later.
5984         * ch-tasking.c (generate_tasking_code_variable): Do work in both
5985           passes, using do_decl so we can pass the pass 2 value of the
5986           process_type or signal_code to it.  Only update the process_type
5987           if the incoming pointer isn't null and pass == 2.  Use a new
5988           parameter to know whether to include an init expression.
5989           (build_process_header): Attach tasking-code_variable to process
5990           function_decl for easy access later, not through the hash table.
5991           (build_start_process): Get tasking_code_variable out of the process'
5992           function decl.
5993           (build_signal_struct_type): Return the type decl, to be accessed by ...
5994           (build_signal_descriptor): .. this function.
5995           (build_receive_case_label): Get data buffer pointer not from hash 
5996           table, but from Tiemann's current rc_state structure instead.
5997         * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
5998           macro for tasking_code_variable storage.
6000 Tue Oct 19 17:39:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6002         * ch-lex.l (equal_number):  If the "number" is a CONST_DECL,
6003         return its DECL_INITIAL.
6004         * ch-satisfy.c (safe_satisfy_decl):  Change logic for rtl
6005         generation for decls to not use DECL_ASSEMBLER_NAME.
6006         * ch-decl.c:  Set DECL_ASSEMBLER_NAME to DECL_NAME.
6007         This matches C, and allows dbxout to emit proper user-level names.
6008         (It would be cleaner to fix dbxout to use DECL_NAME ...)
6009         * ch-decl.c (outer_decls):  New global list of the decls granted
6010         into the outer scope.
6011         (pop_module):  Change code that grants into outer scope accordingly.
6012         (lookup_name_for_seizing):  Similarly update.
6013         (push_scope_decls):  Handle SEIZE ALL from the global scope
6014         by searching outer_decls.
6015         * ch-grant.c (grant_array_type):  Fix thinko.
6016         * ch-inout.c (build_chill_writetext):  Remove excessive TREE_TYPE.
6018 Mon Oct 18 15:57:00 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6020         * varasm.c (output_constructor):  Add support for non-zero
6021         lower array bound.
6022         * c-typeck.c (output_init_element):  Revert recent changes.
6023         * varasm.c (emit_set_data):  Fix emitting set constant data.
6024         * ch-lex.l (yywrap):  Reset line number to 0, not 1.
6025         It sets incremented to 1 by check_newline.
6026         * ch-tree.h:  Restore old version.
6027         * ch-expr.c (finish_chill_binary_op):  Convert TRUNC_DIV_EXPR
6028         to RDIV_EXPR if an operand is floating.  (This functionality
6029         got dropped when hacking finish_chill_binary_op).
6031         * ch-actions.c (build_chill_case_expr):  Set type to NULL_TREE.
6032         not error_mark_node.
6033         * ch-actions.c (chill_expand_assignment):  Allow such borderline
6034         constructs as:  LHS OR:= [X].
6035         * ch-convert.c (convert):  Hande CASE_EXPR (and COND_EXPR)
6036         with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
6037         * ch-decl.c (do_decl):  Remove CONSTRUCTOR kludge.
6038         * ch-typeck.c (chill_compatible):  Allow expr to have NULL mode
6039         if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
6041 Mon Oct 18 13:20:53 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
6043         * c-typeck.c (output_init_element): Limit previous changes to
6044         ARRAY_TYPE and SET_TYPE initializers.
6046 Sun Oct 17 23:15:00 1993  Bill Cox  (bill@cygnus.com)
6048         * c-typeck.c (output_init_element): Handle NULL domain case.
6049         * ch-decl.c (do_decl): Revert bogus initializer type change.
6050         * ch-grant.c (chill_finish_module_code): Put module's decl onto
6051           the module_init_list, for chill_finish_compile's possible use.
6052           (chill_finish_compile): Rename variables for clarity, add 
6053           commented-out code as example for assignment of module address to its
6054           init_list entry.
6056 Sun Oct 17 15:16:54 1993  Bill Cox  (bill@cygnus.com)
6058         * ch-convert.c: Move semicolon to separate line - easier to see.
6059         * ch-decl.c (do_decl): Handle untyped_expr initializers by
6060           simply using the variable's declared type - no compatibility
6061           check can be made if the expression has no type.
6062         * ch-expr.c (expand_packed_set): Fix endless loop - increment
6063           the loop variable.
6064           (fold_set_expr): Fix two other endless loops by passing
6065           correct parameters to unpack_set_constructor.
6066         * varasm.c: Standardize 'for' loop.
6068 Sun Oct 17 12:16:21 1993  Bill Cox  (bill@cygnus.com)
6070         * c-typeck.c (output_init_element): Handle initializer for
6071           array with non-zero lower index bound.
6073 Sat Oct 16 16:48:48 1993  Per Bothner  (bothner@cygnus.com)
6075         * ch-expr.c (finish_chill_binary_op):  Use TREE_SET_CODE
6076         to change TREE_CODE.
6078 Sat Oct 16 08:07:17 1993  Bill Cox  (bill@rtl.cygnus.com)
6080         * ch-expr.c (finish_chill_binary_op): Disable
6081           rough-draft code, not intended for release.
6083 Fri Oct 15 21:44:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
6085         * expr.c (store_constructor): use PROTO for pack_set_constructor
6087 Fri Oct 15 10:30:09 1993  Bill Cox  (bill@cygnus.com)
6089         * ch-expr.c (finish_chill_binary_op): Activate some 
6090           type-setup code.
6091         * expr.c (store_constructor): Subtract arrays minimum element.
6092           Makes orientexpress work.
6094 Fri Oct 15 09:26:24 1993  Bill Cox  (bill@cygnus.com)
6096         * ch-convert.c, ch-expr.c: Add externs so it'll compile.
6097         * ch-tree.def: Add BASED_DECL definition.
6099 Thu Oct 14 13:20:02 1993  Bill Cox  (bill@cygnus.com)
6101         * ch-actions.c (build_chill_cause_exception): Pass the 
6102           *address* of the filename string to the runtime routine,
6103           rather than passing the string by value.
6105 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6107         * expr.c (store_constructor):  Use a (usually) more efficient
6108         algorithm for setting SET types.
6110 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6112         Changes to better support 1984 version of Chill, which doesn't
6113         really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
6114         * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings):  New flag.
6115         * ch-typeck.c (chill_similar):  Support flag_old_strings.
6116         * ch-convert.c (convert_to_boolean):  Generalize code to
6117         convert singleton bitstring to Boolean.
6118         * ch-convert.c (convert):  Use string_one_type_node.
6119         * ch-convert.c (convert):  Add code to convert Boolean to BOOLS(1).
6120         * ch-convert.c (convert):  In code that converts fixed string to
6121         varying use new 'e' variable, rather than original 'expr' variable.
6122         Allows cascaded conversions:  CHAR -> CHARS(1) -> varying CHARS.
6123         * ch-decl.c (string_type_node, const_string_type_node,
6124         int_array_type_node), ch-tree.h:  Removed.
6125         * ch-decl.c (string_one_type_node, bitstring_one_type_node,
6126         bit_zero_node, bit_one_node), ch-tree.h:  New globals tree nodes.
6127         * ch-decl.c (init_decl_precessing):  Remove some junk.
6128         * ch-expr.c (build_generalized_call):  If flag_old_strings,
6129         treat string index as string slice.  Also, better error checking.
6131         Added support for (some kinds of) BASED declarations.
6132         * ch-tree.def (BASED_DECL):  New tree code.
6133         * ch-decl.c (lookup_name):  Implement BASED_DECL using
6134         build_chill_indirect_ref.
6135         * ch-decl.c (do_based_decls):  Make a BASED_DECL.
6136         * ch-parse.y:  Call do_based_decls for DCL ... BASED(...).
6137         * ch-satisfy.c (safe_satisfy_decl):  Handle BASED_DECL.
6139         Improve handling of set binary operations.
6140         * ch-expr.c (expand_packed_set):  New function.
6141         (fold_set_expr):  Re-write.  Simpler, more general algorithm.
6142         (build_set_expr):  Only used for comparsions now.
6143         (finish_chill_binary_op):  Handle set ops better (more directly).
6144         (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
6145         fold_set_ne, fold_set_xor):  Removed.  No longer needed.
6147         * ch-decl.c:  Remove calls to allocate_lang_decl.
6148         * ch-tree.c (build_string_type):  If const length, layout immediately.
6150 Mon Oct 11 17:23:02 1993  Bill Cox  (bill@cygnus.com)
6152         * ch-decl.c (init_decl_processing): Define __whoami and
6153           __wait_buffer functions.
6154         * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
6155         * ch-parse.y (sigdef): Add new add_taskstuff_to_list 
6156           parameter.
6157         * ch-tasking.c (get_tasking_code): Search tasking_list for
6158           tasking code name match.  Can't use lookup_name.
6159           (get_task_name): New function.
6160           (generate_tasking_code_variable): Return if pass 1.
6161           Always update *tasking_code_ptr.
6162           (build_process_header): Add new add_taskstuff_to_list
6163           parameter.
6164           (tasking_setup): New code to unpack the tasking
6165           list entries no built by ..
6166           (add_taskstuff_to_list): Accept new parameter,
6167           add it to the list.
6168         * ch-tree.h (add_taskstuff_to_list): Add new 
6169           parameter.
6171 Mon Oct 11 14:54:50 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6173         * Makefile.in (cc1chill):  Also link in $(BC_OBJS).
6175 Mon Oct 11 06:28:39 1993  Doug Evans  (dje@canuck.cygnus.com)
6177         * ch-decl.c (flag_allow_single_precision): New global,
6178         from ss-931002 merge.
6180 Sun Oct 10 09:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
6182         * Makefile.in: Remove references to chill.in and
6183           ch-hash.h.  Remove bogus cc1chil : chill
6184           dependency.
6186 Fri Oct  8 16:00:04 1993  Bill Cox  (bill@cygnus.com)
6188         * ch-actions.c (adjust_parm_or_field): Add parameter to 
6189           decl_temp1 call.
6190         *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
6191           decl_temp1 call.
6192           (decl_temp1): Add parameter to signal 'make this external'.
6193           (shadow_record_fields): Add parameter to decl_temp1 call.
6194         * ch-expr.c (chill_expand_case_expr): Add parameter
6195           to decl_temp1 call.
6196         * ch-grant.c (chill_finish_compile): Add code to spoof 
6197           get_file_function_name,  so we don't get __tmp_s1_code,
6198           for example, as the module-level code's name.
6199         * ch-loop.c (build_temporary_variable, begin_for_range,
6200           init_loop_counter): Add parameter to decl_temp1 call.
6201         * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
6202           for easier maintenance.
6203           (sendaction): Rewrite to receive SIGNALNAME token correctly
6204           from ch-lex.l (name_type_signal).
6205           (signaldef): Don't clear quasi_signal here.
6206         * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
6207           to make the variable public (visible to linker).
6208           (build_start_process): Add parameter to decl_temp1 call.
6209           (tasking_setup): Comment out band-aid hack which calls
6210           generate_tasking_code_variable.  Shouldn't be necessary.
6211           Use null_pointer_node rather than integer_zero_node in 
6212           entry_point.  More rewrites.
6213           (build_signal_descriptor): Name the non-signal in the error msg.
6214           Rewrite the building of the signal envelope - avoid seg fault.
6215           Add parameter to decl_temp1 call.
6216           (expand_send_signal, build_receive_case_start,
6217           build_receive_case_end, build_buffer_descriptor): Add parameter
6218           to decl_temp1 call.
6219         * ch-tree.h: Add parameter to decl_temp1 proto.
6220         * chill: Add new CHILL frontend directory
6222 Tue Oct  5 13:51:27 1993  Bill Cox  (bill@cygnus.com)
6224         * ch-grant.c: Standardize indentation.
6225         * ch-parse.y (end_function): Unconditionally poplevel for processes.
6226         * ch-tasking.c (build_process_header): Unconditionally pushlevel.
6227           (generate_tasking_code_variable): Stop using pass number to
6228           force a one-time action.
6229         * ch-tree.h (build_chill_slice): Delete proto since function went static.
6231 Mon Oct  4 13:52:36 1993  Bill Cox  (bill@cygnus.com)
6233         * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
6234           called here in both passes.  Set DECL_ASSEMBLER_NAME.
6235           (lookup_name_for_seizing): Move NULL test forward to prevent
6236           seg fault.
6237         * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
6238           to prevent a seg fault in telebras/dynsto.ch.  Make indentation
6239           changes.
6240         * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
6241           (build_send_signal): Rename to expand_send_signal.
6242           (generate_tasking_code_variable): Return the var's decl.
6243           (build_signal_struct_type): Move generate_tasking_code_variable
6244           and add_taskstuff_to_list calls to ..
6245         * ch-parse.y (sigdef): .. here.  And make indentation changes.
6246         * ch-tree.h: Rename functions, add return values.
6248 Mon Oct  4 15:43:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6250         * ch-convert.c (digest_constructor):  Convert element to element_type.
6251         * ch-parse.y (end_function):  Use DECL_ARGUMENTS to check
6252         for parameterless process.
6254 Fri Oct  1 13:57:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6256         * ch-typeck.c (chill_location):  New function.
6257         Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
6258         * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c:  Use
6259         chill_location instead of lvalue_p.
6262 Fri Oct  1 11:28:42 1993  Bill Cox  (bill@cygnus.com)
6264         * ch-convert.c (convert): Back out Michael's changes, unintentionally
6265           checked in.
6266         * ch-lex.l (handle_use_seizefile_directive): No longer downcase
6267           seize file names.
6268         * ch-parse.y (sendaction): Fix a couple of seg faults.  Comment out
6269           SEND BUFFER processing for now.
6270         * ch-tree.h: Fix comment.
6272 Thu Sep 30 17:00:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6274         * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P):  New macros,
6275         for recognizing singleton strings.
6276         * ch-tree.h (MARK_AS_STRING_TYPE):  New macro.
6277         * ch-tree.c (build_string_type, build_bitstring_type),
6278         ch-convert.c (convert):  Use it.
6279         * ch-typeck.c (build_chill_slice):  Take length rather than upper
6280         bound.  This makes it easier to recognize that A(X UP LENGTH)
6281         really has fixed length.  Also, if the argument is string,
6282         mark the slice as a string too.  Also, handle varying strings.
6284         * ch-typeck.c (conflate_singleton_strings):  New global.
6285         * ch-typeck.c (chill_similar):  If conflate_singleton_strings is
6286         set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
6287         to CHAR/BOOL, as required by the 1984 version of Z.200.
6288         * ch-convert.c (convert_to_char):  Convert CHARS(1) to CHAR.
6289         * ch-convert.c ( build_array_type_for_scalar):  If input is string,
6290         so is output.
6291         * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h:  Removed.
6292         * ch-convert.c (convert):  Convert CHAR to CHARS(1).
6294         This fixes 'X // := Y' and is also a general simplification.
6295         * ch-actions.c (chill_expand_assignment):  Convert 'LHS OP := RHS'
6296         to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
6297         Also, call save_expr on RHS if a multiple assignment.
6298         * ch-parse.y (assignaction):  Therefore, no longer need to call
6299         stabilize_reference on RHS.
6300         * ch-typeck.c (build_chill_modify_expr), ch-tree.h:  Remove
6301         modifycode parameter.  Make it the caller's responsibility to
6302         handle <assigning operator>.
6303         * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
6304         ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
6306 Wed Sep 29 18:02:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6308         * ch-lang.c (string_index_type_dummy), ch-tree.h:  New variable.
6309         * ch-decl.c (integer_minus_one_node), ch-tree.h:  New variable.
6311         * ch-parse.y (arrayindex: modename):  Remove useless code.
6312         * ch-satisfy.c (satisfy):  Don't gag on string_index_type_dummy,
6313         * ch-tree.c (build_string_type):  Pass string_index_type_dummy as
6314         the parent type of the index range.
6315         * ch-typeck.c (layout_chill_range_type):  Recognize and handle
6316         string_index_type_dummy - specifically allow an empty range.
6318 Wed Sep 29 13:36:23 1993 1993  Bill Cox  (bill@cygnus.com)
6320         * ch-convert.c (convert_to_reference): Check for loc-identity
6321           mismatches correctly (and remove one of those chill_compatible
6322           calls).
6323         * ch-decl.c (decl_tasking_code_var): New function, called from
6324           push_extern_process and push_extern_signal.
6325         * ch-parse.y (end_function): Delete parameter.  Check current_function_decl
6326           whether it's actually a process, and whether it has parameters.
6327           Make Michael's change simplifying the pass 2 test, preventing a seg
6328           fault.
6329           (procedure, process): Change calls to end_function, remove
6330           code saving value from build_process_header.  Delete redundant chill_
6331           phrases from some function calls.  
6332         * ch-tasking.c: Remove some redundant _chill phrases from function
6333           names.
6334         * ch-tree.h: Remove some redundant _chill phrases from function
6335           names.  Add the CH_VARYING_ARRAY_TYPE macro, call it from
6336           all relevant places.
6337         * ch-typeck.c: Use the new macro.  Cast TREE_CODEs to chill_tree_code.
6339 Wed Sep 29 13:07:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6341         * ch-convert.c (convert_to_reference):  Remove redundancies.
6342         * ch-convert.c (convert):  Handle convert_to_reference
6343         with a recursive convert call.
6344         * ch-decl.c (do_decl): Add missing compatibility-checking
6345         of initializer (don't depend on convert).
6347 Tue Sep 28 00:02:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6349         * ch-tree.h (CH_LOCATION_P):  New macro.
6350         * ch-typeck.c (layout_chill_range_type):  Fix call to
6351         type_for_size, when figuring out a defaulted parent type.
6352         * ch-expr.c (build_chill_lower, build_chill_sizeof):  Check
6353         for TREE_CODE_CLASS != 't' rather than == 'd'.
6354         * ch-expr.c (build_chill_function_call):  Use CH_LOCATION_P
6355         to check for location, rather than TYPE_CODE_CLASS == 'd'.
6357         * ch-tree.c (build_string_type):  Make 2-pass safe.  Also,
6358         change parameter to be length, not index type.
6359         * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
6360         (build_chill_string): Modify callers of build_string_type accordingly.
6361         * ch-lex.l (check_newline):  Don't look for # directive inside a
6362         C-style comment.
6363         * ch-grant.c (grant_array_type):  Make more robust for char-
6364         and bit-strings (allow non-constant sizes).  Change parameters
6365         and return types.  (raw_decode_mode):  Use grant_array_type
6366         for bitstrings.  (otherwise):  Fix grant_array_type callers.
6368 Mon Sep 27 16:57:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6370         Remove changes of Sep 15.
6371         * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
6372         * ch-typeck.c (chill_similar):  Don't allow a singleton
6373         powerset to be similar to its domain.
6374         * ch-convert.c (convert_to_boolean):  Don't convert a singleton
6375         SET_TYPE constructor to a Boolean.
6377         * ch-actions.c (chill_expand_assignment):  Handle IN_EXPR on
6378         LHS of assignment, which is what we're current (temporarily?) using.
6380 Mon Sep 27 06:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
6382         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6383           ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
6384           ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
6385           -Wall cleanup.  Add prototypes where missing.
6386           Delete unused variables.  Cast uses of tree_codes
6387           to chill_tree_code, which they are.
6389 Sun Sep 26 13:09:57 1993  Bill Cox  (bill@rtl.cygnus.com)
6391         * ch-decl.c (do_decl): Save initializer in pass zero
6392           case also.
6393         * ch-lex.l: Fix comments, indentation.
6394         * ch-parse.y: Standardize error messages to use
6395           uppercase for CHILL keywords rather than quoting them.
6396           Suggestion from docs department.
6397         * ch-tasking.c: Pervasive changes to get processes to
6398           compile and START.
6399         * ch-tree.h: Delete prototypes for functions whic
6400           I made static inside ch-tasking.c.
6402 Sun Sep 26 02:40:02 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6404         * ch-lex.l (yywrap): Call `check_newline' in case the file
6405         started with a line directive.
6407 Sat Sep 25 13:54:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6409         * ch-decl.c:  Expand pre-amble comment.
6410         * ch-decl.c (struct scope, push_module):  Use new field
6411         tail_chain_module to build child-module list in order.
6412         (Just to make compiler debugging a little less confusing.)
6414         * ch-decl.c (struct scope):  New field weak_decls.
6415         * ch-decl.c (find_implied_types):  New interface.  Now pre-pend
6416         new enum types to a given input list.  This makes it easier to
6417         avoid duplicates, which should at least be more efficient.
6418         Also, handle FUNCTION_DECL.
6419         * ch-decl.c (bind_saved_names):  Removed.  Distribute its
6420         functionality over new functions (push_scope_decls, pop_scope_decls,
6421         build_implied_names, bind_sub_modules).  The goal (which seems to
6422         have been more-or-less attained) was to fix weak name handling.
6423         * ch-decl.c (poplevel):  Use new function pop_scope_decls.
6425         * ch-tasking.c (build_signal_struct, build_tasking_message_type):
6426         Use build_decl directly, rather than grok_chill_fixedfields
6427         (which depends on ignore_exprs and has more overhead).
6428         * ch-tasking.c (build_signal_struct):  Construct the type
6429         only in pass 1.
6430         * ch-typeck.c (build_chill_slice):  Use my_build_array_ref rather
6431         than build_array_ref (which does C-specific "optimizations").
6432         (Hence move my_build_array_ref up earlier in the file.)
6434 Sat Sep 25 03:47:28 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6436         * ch-tasking.c: Declare static variable `void_ftype_void'.
6437         (chill_tasking_init): Initialize `void_ftype_void' here.
6438         (build_tasking_struct): Use, don't declare `void_ftype_void'.
6439         (generate_tasking_code_variable): Call `do_decl', not
6440         `decl_temp1' to declare TASKING_CODE_NAME.
6441         (tasking_setup): Drop into 1-pass mode so that all
6442         tasking-related declarations are installed in the global
6443         scope.  Use correct CHILL types for initializers (since
6444         ptr_type_node doesn't have the right meaning for CHILL).
6445         Also, call `do_decl' instead of `decl_temp1' for
6446         `init_struct'.
6447         (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
6448         `chill_finish_compile' in sync between passes.
6450         * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
6451         declarations on pass zero.  Keep obstacks in sync, and always
6452         call `finish_decl' for pass zero declarations.
6453         (push_chill_extern_function): Keep obstacks in sync, and always
6454         call `finish_decl' for pass zero declarations.
6455         (build_enumerator): Ditto.
6456         (grok_chill_variantdefs): Change PASS test to exclude only
6457         pass one.
6458         (finish_struct): Ditto.
6459         * ch-expr.c (build_chill_component_ref): Ditto.
6460         (build_chill_binary_op): Ditto.
6461         * ch-tree.c (build_powerset_type): Ditto.
6462         (build_bitstring_type): Ditto.
6463         * ch-typeck.c (build_chill_range_type): Ditto.
6464         (build_chill_struct_type): Ditto.
6466         * ch-decl.c (build_chill_exception_decl): Clarify reasons for
6467         extra pushing and popping of obstacks.
6469         * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
6470         on IO_DESCRIPTOR.  This causes IO_DESCRIPTOR to be laid out.
6472         * ch-grant.c (chill_finish_compile): Clear out both
6473         MODULE_INIT_LIST and TASKING_LIST if either contains stuff
6474         from pass one.
6476         * ch-parse.y (rccase_label): Add NAME rules so that pass one
6477         works w/o knowing we're parsing a signal.  Simplify SIGNALNAME
6478         rules since we only get SIGNALNAME tokens in pass two.
6479         (sendaction): Ditto.
6480         * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
6481         BUFFERNAME on pass two.  The grammar now handles this.
6482         * ch-decl.c (lookup_remembered_decl): Deleted.
6484 Fri Sep 24 15:27:13 1993  Bill Cox  (bill@cygnus.com)
6486         * ch-decl.c (lookup_remembered_names): Removed.  It was being
6487           misused in ch-lex.l.
6488         * ch-lex.l (name_type_signal): Revert last change.  Basically,
6489           we cannot use the C typedef/variable name trick in CHILL, due
6490           due to the language's 2-pass nature.
6491         * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
6492           a seg fault.
6493         * ch-tree.h (lookup_remembered_name): Comment out the prototype. 
6495 Fri Sep 24 11:01:31 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6497         * ch-decl.c (do_decl, push_chill_extern_function): Change pass
6498           checks so the pass == 0 case is handled for built-in types.
6499           (push_modedef): Add check for error_mark_node.
6500           (lookup_remembered_decl): New function.
6501           (pushlevel, poplevel) Change pass checks.
6502           (pushdecl): Check type as well for NULL.
6503           (build_enumerator): Handle pass == 0 case.
6504         * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
6505           during pass 1.
6506         * ch-parse.y: Set pass to zero to indicate initial decl processing.
6507           Replace NAME references with SIGNALNAME references.
6508           (startaction): Only check copy number if not ignoring actions.
6509           Always call build_chill_start_process.
6510           (optstartset): Don't lookup the instance name.
6511         * ch-tasking.c (generate_tasking_code_variable): Replace
6512           do_decl call with decl_temp1 call.
6513           (build_chill_start_action): Check for ignore_actions here.
6514           (build_tasking_message_type): Layout the type.
6515           (rc_state_type): New structure to keep nested receive-case
6516           info in.
6517           (build_chill_receive_case_start, build_chill_receive_case_end):
6518           Use the new struct.
6519           
6521 Fri Sep 24 04:19:15 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6523         * ch-tasking.c (build_chill_receive_case_start): `namedecl'
6524         should be a _DECL, not an IDENTIFIER_NODE.
6526 Thu Sep 23 18:18:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6528         * ch-decl.c (find_implied_types):  Handle VAR_DECLs.
6530         * ch-decl.c (print_lang_identifier):  Print IDENTIFIER_OUTER_VALUE.
6531         * ch-actions.c (chill_expand_result):  Allow value-less RETURN.
6532         * ch-expr.c (resolve_component_ref):  Recognize error_mark.
6534         * ch-convert.c (digest_constructor):  Handle a nested powerset tuple.
6535         * ch-satisfy.c (satisfy):  Use return value of layout_chill_range_type.
6536         * ch-typeck.c (chill_similar):  Repeatedly get parent modes
6537         of ranges, not just once.
6538         * ch-typeck.c (chill_root_resulting_mode), ch-tree.h:  New function.
6539         * ch-typeck.c (layout_chill_rang_type):  Re-do type-checking
6540         to follow Blue Book better (check for Compatibility).
6542         * ch-tree.h (CH_ROOT_RESULTING_MODE):  New macro.
6543         * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
6544         New variables.  The latter replaces in_seizefile.
6546         Changes to store in the new DECL_SEIZEFILE field each seize
6547         ALIAS_DECL the name in the most recent use_seize_file directive.
6548         (This requires that use_seize_file directives written to the
6549         grant file be written before the SEIZEs that need it.)
6550         Allow clashing declarations granted into the global scope
6551         (produce a warning), but remember the seizefile case from
6552         (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
6553         The a SEIZE will select the granted decl that matches its
6554         DECL_SEIZEFILE (in other words:  grants from the most recent
6555         use_seize_file will be preferred).
6556         * ch-tree.h (DECL_SEIZEFILE), ch-tree.def:  New macro.
6557         * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE):  Renamed
6558         to outer_value, IDENTIFIER_OUTER_VALUE.
6559         Changes to cause the use_seize_file directives to be written
6560         out in order as they're seen in source.
6561         * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
6562         Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
6563         * ch-lex.l (handle_use_seizefile_directive):  Modify appropriately.
6564         Don't call grant_use_seizefile.
6565         * ch-lex.l (mark_use_seizefile_written):  New function.
6566         * ch-grant.c (decode_decl):  Write out use_seize_file directive,
6567         if needed, before writing a seize declarations.
6568         * ch-decl.c (pop_module):  Handle decls granted into the global
6569         module specially, setting IDENTIFIER_OUTER_VALUE.
6570         * ch-decl.c (lookup_name_for_seizing):  Check IDENTIFIER_OUTER_VALUE.
6572 Thu Sep 23 19:05:37 1993  Bill Cox  (bill@cygnus.com)
6574         * ch-decl.c (push_chill_extern_process): Delete unused variables,
6575           declare the process' tasking_code variable as external.
6576         * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
6577           the process header.
6578         * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
6579           to (signaldef).
6580         * ch-tree.h: Add prototype.
6581         * expr.c (store_constructor): Emergency first-aid.  Rewrite later.
6583 Thu Sep 23 12:57:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6585         * ch-expr.c (build_chill_function_call):  Move possible call to
6586         chill_start_module_code until we know we're not calling a builtin.
6587         * ch-decl.c (save_expr_under_name):  Use pushdecllist,
6588         not proclaim_decl (which provide for popping the decl).
6589         * ch-parse.y (optname):  Also allow TYPENAME.
6591 Thu Sep 23 09:18:35 1993  Bill Cox  (bill@cygnus.com)
6593         * ch-decl.c (print_lang_decl): Make weak name output more standard.
6594           (print_lang_identifier): Make signal-data flag output more standard.
6595           (push_chill_extern_process): Pass correct arg tree to
6596           push_chill_extern_function.
6597           (push_syn_decls, fixup_unknown_type, chill_modes_equiv): 
6598           Standardize function header layouts (Makes the tcov script 
6599           work better).
6600         * ch-except.c (chill_finish_on): Standardize function header.
6601         * ch-expr.c (fold_set_or): Standardize function header.
6602         * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
6603           function headers.
6604           (decode_constant): Make sure that alpha operators are surrounded
6605           with whitespace.
6606         * ch-parse.y: Spell Z.200 correctly in comments.
6608 Wed Sep 22 10:42:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6610         * ch-expr.c (build_chill_addr_expr), ch-tree.h:  New function.
6611         * ch-parse.y, ch-decl.c (shadow_record_fields):  Use it.
6612         * ch-lex.l (handle_use_seizefile_directive):  Don't emit
6613         use_seize_file directive if in_seizefile.
6615         * ch-convert.c (digest_structure_tuple):  Fix code that checks
6616         for excess init values.
6617         * ch-decl.c (layout_chill_variants):  Move increment of nlabels
6618         inside the proper loop.
6619         * ch-grant.c (print_struct):  Add missing loop for tag_list.
6620         (print_struct):  Look for variant fields by checking for a
6621         UNION_TYPE, not a NULL name, since we must use a dummy name.
6622         * ch-parse.y (structured_variable):  Various fixing.
6623         * ch-decl.c (shadow_record_fields):  Rename arg decl -> struct_val.
6625         * ch-satisfy.c (safe_satisfy_decl):  Disable copying of modes
6626         for NEWMODE (and hence novelty checking), until we figure out
6627         a better way.
6629         * ch-except.c (finish_handler_array):  Use null_pointer_node,
6630         not integer_zero_node (which fails to type-check).
6632         * c-typeck.c (get_constructor_element_type):  New function.
6633         * ch-tree.h (CH_NOVELTY_FLAG):  Now also used in TYPE_DECLs.
6634         (CH_NOVELTY):  Redefined to call new function chill_novelty.
6635         (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE):  Removed.
6636         * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
6637         Take extra output parameter (for M, as in M-value class).
6638         * ch-typeck.c (chill_novelty):  New function.  (Also de-references.) 
6640         * ch-expr.c (resolve_component_ref, build_chill_component_ref):
6641         New functions.  Handle 2-pass and variant records.
6642         * ch-parse.y (primval DOT name): Use instead of build_component_ref.
6643         * ch-satisfy.c (satisfy, case COMPONENT_REF):
6644         New case, call resolve_component_ref.
6646         * ch-expr.c (build_generalized_call):  Extract single arg from
6647         arg list before calling build_chill_cast.
6649         * ch-parse.y (defining_occurrence_list):  New non-terminal.
6650         Use it to replace locnamelist, synnames, and modenames.
6651         * ch-parse.y:  Re-write parsing of variant records.
6653         * ch-decl.c (grok_chill_variantdefs):  Now return a FIELD_DECL
6654         rather than just its type.
6655         * ch-inout.c (build_chill_io_list_type), ch-parse.y:
6656         Change callers appropriately.
6658         * ch-tree.h (TYPE_TAG_VALUES):  Add an extra level of TREE_LIST,
6659         to support multiple tag fields.
6660         * ch-grant.c  (print_struct), ch-decl.c (layout_chill_variants):
6661         Support multiple tag fields.
6663         * ch-convert.c (remove_tree_element, digest_structure_tuple):
6664         New functions, to digest structure tuples, without calling the
6665         code in c-typeck.c.  Handles variant tuples and tags (partially).
6666         * ch-convert.c (digest_constructor, convert):  Call
6667         digest_structure_tuple when appropriate.
6668         * ch-convert.c (digest_constructor): Re-arrange a bit.
6670         * ch-decl.c (push_modedef):  Defer copying of tree until ...
6671         * ch-satisfy (safe_satisfy_decl): ... here.
6673         * ch-decl.c (getdecls):  Add kludge to help dbxout_init.
6675 Tue Sep 21 14:19:11 1993  Bill Cox  (bill@cygnus.com)
6677         Partial tasking update - not done yet.
6678         * ch-actions.c: Comments, indentation.
6679         * ch-decl.c (push_chill_extern_process): No longer need to
6680           reformat the arg list for make_process_struct.
6681           (pop_module): Don't seg fault on null DECL_NAME.
6682           (handle_one_level): Error, not warning if tree not recognized.
6683           (shadow_record_fields): Rename formal param for readability.
6684         * ch-grant.c (decode_decl): Write proper header for a process.
6685         * ch-parse.y (quasi_pdef): process now uses processparlist,
6686           which doesn't change with the passes.
6687           (quasi_locdec): Call build_chill_reference_type to defer
6688           doing the type's layout.
6689           (processpar): Use paramnamelist, but reformat it into a
6690           list of identifiers in pass 2, so a processpar is the same
6691           structure in both passes.
6692           (locdec): Call build_chill_reference_type to defer doing the
6693           type's layout.
6694         * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
6695           build the decl.  Only update the variable's tree in pass 2.
6696           (make_process_struct): Call build_chill_reference_type to defer
6697           doing the type's layout.
6698           (build_process_header): New code to call make_process_struct.
6699           New pass-2 code to make a PARM_DECL for start_chill_function.
6700           Pass a void_type_node, not a NULL_TREE for an empty list.
6701           Get input for shadow_record_fields from current_function_decl.
6702           (build_buffer_decl): Call do_decl not decl_temp1.
6703         * ch-typeck.c: Reindent to standards.
6704         * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
6706 Mon Sep 20 12:00:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6708         * ch-typeck.c (classify_chill_expr):  An expression with a
6709         REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
6710         * ch-actions.c (adjust_parm_or_field):, ch-tree.h:  Change last
6711         parameter, so we can reliably recognize LOC parameters.
6712         * ch-tasking.c, ch-expr.c:  Change callers appropriately.
6714 Sun Sep 19 22:26:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6716         * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE):  New macros.
6717         * ch-typeck.c (chill_referable, chill_read_compatible):  New functions.
6718         * ch-typeck.c (chill_compatible):  Allow un-resolved CONSTRUCTOR
6719         (with NULL TREE_TYPE), when reasonable.  (Simplifies callers.)
6720         Also, handle case of expr being of reference class.
6721         * ch-actions.c (adjust_parm_or_field):  Major re-arrange
6722         to handle conversions and LOC args better.
6723         * ch-actions.c (chill_expand_assignment):  Simplify conversions.
6724         * ch-expr.c (build_chill_function_call):  If needed, call
6725         chill_start_module_code.
6726         * ch-decl.c (declare_predefined_file):  New function, used
6727         to pre-define stdin, stdout, and stderr.
6728         * ch-inout.c (chill_stdio_p):  Change names of predefined
6729         files from chill-stdin etc to plain stdin (and change their types).
6730         * ch-lex.l:  Remove some obsolete stuff.
6731         * ch-convert.c (convert):  Move conversion from reference to
6732         to beginning of convert() so other conversion can work better.
6733         Also, remove bogus direct setting of TREE_TYPE.
6735 Fri Sep 10 12:23:41 1993  Wilfried Moser  (fs_moser@cygnus.com)
6737         * Makefile.in: Change installation of the chill script. gcc will
6738           be called always with the full path. That made problems when
6739           somebody was using chill but didn't have the installation
6740           directory in PATH.
6741         * ch-parse.y: Change parsing of WRITETEXT action.
6742         * ch-tree.h: Add some new prototypes according to the
6743           (partial) implementation of WRITETEXT.
6744         * ch-typeck.c: Add new function chill_varying_string_type_p. This
6745           functions checks a type for being CHAR(n) VARYING.
6746         * ch-decl.c (init_decl_processing): Add new built-in functions
6747           _writestring and _writeunixstd.
6748           Add call to  build_chill_io_list_type in ch-inout.c.
6749         * ch-inout.c (build_chill_writetext): Add some code there.
6750           Add new function build_chill_io_list_type.
6751           Add new static function chill_stdio_p. This function checks
6752           the text argument for being chill_stdin, chill_stdout or
6753           chill_stderr.
6755 Fri Sep 17 22:02:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6757         * ch-decl.c (push_modedef):  Fix TYPE_MAIN_VARIANT thinko.
6759 Thu Sep 16 18:38:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6761         * ch-decl.c (allocate_lang_decl):  Do nothing.
6762         * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
6763         No longer used;  remove.
6765         * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
6766         (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
6767         (make_chill_variants, layout_chill_variants):  Add (initial) part
6768         of support for multiple tags.
6769         * ch-decl.c (lookup_tag_fields):  New function.
6770         * ch-parse.y (stmt_count):  Not used; removed.
6771         * ch-parse.y (mode2):  Clear current_fieldlist before
6772         parsing STRUCT fields;  restore afterwards.
6774         * ch-parse.y (push_action):  Moved to ch-actions.c.
6776 Wed Sep 15 18:19:37 1993  Bill Cox  (bill@rtl.cygnus.com)
6778         * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
6779           constructor to a boolean.
6781 Wed Sep 15 17:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6783         * ch-decl.c (push_modedef): Enable novelty-setting code.
6784         * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
6785         * ch-typeck.c (chill_similar): Add checking of singleton
6786           powerset against its base type.
6788 Tue Sep 14 17:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
6790         * ch-actions.c (adjust_parm_or_field): Create a
6791           temporary for an non-referencable actual parameter
6792           passed to a LOC formal parameter.
6793           (chill_expand_assignment): Correct compatibility checking.
6795         * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
6796         * ch-parse.y (opsigdest): Only check for process name
6797           in pass 2, when we know.
6798         * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
6799         * ch-typeck.c: Fix comment.
6801 Mon Sep 13 17:33:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6803         * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
6804         decl_seen_p, processed_decls, allocated, nr_decls):  Removed
6805         no-longer-useful functions and variables that used to guard
6806         against writing a decl multiple times.  Since we now just
6807         go through the decl list linearly, that is no longer an issue.
6808         * ch-satisfy.c (safe_satisfy_decl):  Handle missing current_module.
6810         * ch-decl.c (start_chill_function):  Clear DECL_ASSEMBLER_NAME.
6811         Don't make TREE_PUBLIC.  Don't generate rtl yet.
6812         * ch-decl.c (pop_module):  If a decl is granted, set TREE_PUBLIC,
6813         and its DECL_ASSEMBLER_NAME.
6814         * ch-decl.c (fix_identifier):  New function.
6815         * ch-grant.c (grant_one_decl):  Don't set TREE_PUBLIC.
6816         * ch-tree.h (struct module):  New field prefix_name.
6817         * ch-satisfy.c (safe_satisfy_decl):  If assembler_name isn't
6818         set, prefix it by the module name(s).
6819         * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
6820         Call make_function_rtl if needed and !LOOKUP_ONLY.
6821         * ch-typeck.c (chill_similar):  Flesh out substantially.
6822         * ch-typeck.c (chill_compatible):  Re-structure.
6824         * ch-actions.c (adjust_parm_or_field):  Use CH_COMPATIBLE
6825         instead of chill_comptypes to compare actual and formal.
6827 Sun Sep 12 21:10:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6829         * ch-parse.y (labellist):  Don't do anything if ignore_exprs.
6831         * c-typeck.c (output_pending_init_elements): Handle
6832         !constructor_incremental case of filling in empty positions.
6833         (Patch by Jim Wilson.  CYGNUS LOCAL until we have approval.)
6834         * ch-decl.c (pop_module):  Don't grant a seized name.
6835         * ch-grant.c (decode_constant):  Support CALL_EXPR.
6836         * ch-tree.c (build_bitstring_type):  Don't try to fold non-constant
6837         size if pass==1 (since it may be an unsatisfied name).
6840 Sun Sep 12 18:06:23 1993  Bill Cox  (bill@rtl.cygnus.com)
6842         2-pass fixes for processes.  Partially done.
6843         * ch-actions.c (chill_expand_assignment): Add real
6844           novelty-checking sketch, $ifdef'd out for now.
6845         * ch-decl.c: Generally fix indentation.  Move tasking
6846           init code from init_decl_processing to ch-tasking.c.
6847           Delete ObjC-related cruft.  More accurate parameter name
6848           for shadow_record_fields.  Move debug_scope before
6849           its first call.
6850         * ch-expr.c (build_chill_function_call): Return if not
6851           pass 2.
6852         * ch-grant.c (print_proc_tail): Avoid trying to format
6853           a VOID return type, or using a NULL pointer.
6854           (decode_decl): Minor changes for PROCESS arg access.
6855         * ch-lang.c (lang_decode_option): Use -itu flag to
6856           enable 'pedantic' mode.
6857         * ch-lex.l (init_lex): Initialize compiler-directive
6858           variable trees.
6859           (name_type-signal): Disable the returning of SIGNAL and BUFFER
6860           name tokens.
6861         * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
6862           All uses renamed also.
6863           (end_function): Always poplevel, not just in pass 2.
6864           (quasi_pdef): Check for end-label matching.
6865           (quasi_formparlist): Write more clearly.
6866           (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
6867           guards.
6868           (rccase_label, sendaction): Use NAME, not SIGNALNAME 
6869           or BUFFERNAME.
6870           (process): Handle like procedure.
6871           (mode): Add SIGNAL as a generic signal parameter.  This
6872           is a client-specific extension, so pedantic is checked.
6873         * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
6874         * ch-tree.h (CH_NOVELTY): Make it an lvalue.
6875         * ch-typeck.c: Fix comment.
6877 Sun Sep 12 15:03:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6879         * c-typeck.c (digest_init):  Compare types using comptypes
6880         instead of comparing pointers.  (Helps Chill front end.)
6881         * ch-expr.c (finish_chill_binary_op): 
6882         * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
6883         ch-expr.c (finish_chill_binary_op):  For now, prefer IN_EXPR
6884         over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
6885         (incomplete support for variable fields, and possible bug in
6886         optimize_bit_field_compare).
6887         * ch-expr.c (finish_chill_binary_op):  Fix type-checking
6888         and appropriately coerce operands for IN_EXPR and comparsions.
6889         * expr.c (expand_expr, case ARRAY_REF):  Coerce lower bound (if
6890         non-zero) to sizetype before subtraction.
6891         * expr.c (expand_expr):  Remove Chills-specific calls to
6892         __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
6894 Fri Sep 10 15:47:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6896         * ch-tree.def (UNDEFINED_EXPR):  New kind of expression.
6897         * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
6898         ch-convert.c (convert):  Handle UNDEFINED_EXPR.
6900         * ch-expr.c (build_char_array_expr):  Move CONCAT_EXPR support to ...
6901         * ch-expr.c (build_concat_expr):  ... here.
6902         Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
6903         Also, make result varying only if one of the operands are.
6905         * ch-expr.c (build_chill_binary_op):  Move stuff from here to ...
6906         * ch-expr.c (finish_chill_binary_op):  ... here, as needed for
6907         proper 2-pass split.  Also, clean up and simplify heavily.
6909         * ch-tree.h (enum ch_expr_class):  The 5 kinds of expression classes.
6910         * ch-typeck.c (classify_chill_expr):  New function:  Determine
6911         class of expression.
6912         * ch-typeck.c (chill_compatible_classes):  Re-structure; fix
6913         asymmetry bugs.
6914         * ch-tree.h (CH_CLASS_IS_XXX):  Re-define to use classify_chill_expr.
6916         * ch-convert.c (maybe_turn_scalar_into_array):  Complain
6917         unless scalar is a char constant (and we want a string).
6918         * ch-convert.c (convert):  New code for converting to variable
6919         string/array.  Avoid type errors by padding (with an UNDFIEND_EXPR).
6920         * ch-typeck.c (chill_expand_tuple):  Don't do conversion to
6921         varying type here;  that is handled by convert now.
6922         * ch-decl.c (digest_constructor):  Moved to ...
6923         * ch-convert.c (digest_constructor):  ... here.
6924         * ch-decl.c (do_decl):  Simplify; just use convert for initializer.
6925         * ch-decl.c (chill_digest_init):  Merged into convert, and removed.
6926         * ch-decl.c (init_decl_processing):  Set constructor_no_implicit flag.
6927         * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
6928         Replace chill_digest_init by convert.
6929         * ch-actions.c (chill_expand_array_assignment):  Simplify; use convert.
6930         * ch-lex.l (build_chill_string):  Make string type be derived
6931         from integer, not sizetype, because upper bound can be -1.
6933 Thu Sep  9 18:21:46 1993  Bill Cox  (bill@rtl.cygnus.com)
6935         * ch-typeck.c (my_build_array_ref): Delete pedantic
6936           C-specific error message.
6938 Thu Sep  9 17:44:20 1993  Jeffrey Wheat  (cassidy@eclipse.cygnus.com)
6940         * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
6942 Thu Sep  9 12:22:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6944         * ch-typeck.c (build_chill_array_ref):  Remove redundant and
6945         broken call to my_build_array_ref.
6947 Wed Sep  8 13:03:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6949         * ch-except.c (finish_handler_array), ch-decl.c (finish_decl): 
6950         Don't use store_init_value, since it calls digest_init instead
6951         of chill_digest_init.
6952         * ch-except.c (finish_handler_array):  Use build1 (ADDR_EXPR, ...)
6953         instead build_unary_op to avoid C-specific optimizations.
6954         * ch-typeck.c (my_build_array_ref):  Don't use default_conversion
6955         to convert array to pointer.
6956         * c-typeck.c (process_init_default):  New function, to support
6957         default values for array tuples in Chill.
6958         * c-typeck.c (default_conversion):  Don't convert array to pointer
6959         if compiling Chill.
6960         * ch-decl.c (digest_constructor):  New function;  used to be guts
6961         of chill_digest_init.  Now recursive, to handle nested tuples.
6963         * ch-decl.c (chill_digest_init):  Handle struct labels.
6964         * ch-grant.c (get_tag_value):  Use decode_constant in general case.
6965         * ch-grant.c (decode_constant):  Add support for lots of missing
6966         binary and unary operators.
6968 Wed Sep  8 10:11:04 1993  Bill Cox  (bill@rtl.cygnus.com)
6970         * ch-lang.c: Look for '-I' option for seize file path.
6971         * ch-lex.l: Fix comment about above option.
6973 Wed Sep  8 00:37:32 1993  Per Bothner  (bothner@rtl.cygnus.com)
6975         * ch-satisfy.c:  Move code to set (and restore) file-and-line
6976         from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
6977         alias decls that refer to real decls with errors.
6978         * ch-actions.c (lang_init):  Move to ch-lang.c.
6979         * ch-decl.c (init_decl_processing):  Move code to initialize
6980         file-and-line from here ...
6981         * ch-lang.c (lang_init): ... to here, to avoid clobbering.
6983         * ch-decl.c (chill_digest_init):  Add support for SET_TYPE,
6984         and index values.
6985         * ch-typeck.c (chill_expand_typle):  Just call chill_digest_init.
6986         * c-typeck.c:  Fix various things that got broken
6987         in the latest merge.
6989 Tue Sep  7 15:45:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6991         * ch-decl.c (build_enumerator):  Handle a "unnamed set element"
6992         (obsolete feature) by generating a dummy name.
6993         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation with
6994         "correct" value of top-level (to get better debugging output).
6995         * ch-decl.c (bind_saved_names):  Allow a null DECL_NAME.
6997 Tue Sep  7 15:48:35 1993  Bill Cox  (bill@rtl.cygnus.com)
6999         * ch-actions.c (chill_expand_return): Correct breakage
7000           due to recent fsf merge.
7002 Tue Sep  7 11:16:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7004         * .cvsignore: Add multilib.h.
7005         * ch-decl.c (chill_digest_init): New function.  Calls were
7006           changed, since it has fewer parameters than old digest_init.
7007         * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
7008           new init stuff.
7009           (elementlist): Delete unused code.
7010         * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
7011         * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
7012         * ch-tree.h: Delete digest_init prototype.
7013         * ch-typeck.c (digest_init): Much new code.
7015 Tue Sep  7 12:06:28 1993  Bill Cox  (bill@rtl.cygnus.com)
7017         * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
7018           files to their pre-init-change state.
7020 Mon Sep  6 15:28:27 1993  Bill Cox  (bill@rtl.cygnus.com)
7022         Preliminary adaptation to rms' new initializer code.
7023         * ch-decl.c (do_decl): Call chill_digest_init, not
7024           digest_init, which rms made static.
7025         * ch-expr.c (chill_truthvalue_conversion): Delete C-
7026           specific code.
7027         * ch-loop.c (init_loop_counter): Indent for readability.
7028         * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
7029         * ch-tree.h: Prototype changes for new init code.
7030         * ch-typeck.c (chill_expand_tuple): Call new init code.
7031         * chill.texi: Add necessary '-f' prefix on options.
7033 Wed Sep  1 13:21:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7035         * ch-convert.c (build_array_type_for_scalar),
7036         ch-tasking.c (build_chill_receive_case_end):  Index type
7037         specification is now chain of types (not chain of TREE_LIST).
7038         * ch-satisfy.c (satisfy):  Don't try to satisfy the
7039         abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
7040         * ch-expr.c (build_chill_binary_op):  If pass 1, do NOT
7041         call finish_chill_binary_op.
7042         * ch-parse.y (arrayindex):  Simplify.
7044 Tue Aug 31 14:57:35 1993  Bill Cox  (bill@rtl.cygnus.com)
7046         * ch-decl.c (print_lang_decl): Print weak-name status.
7047           (print_lang_identifier): Print signal_data as T or F.
7048         * ch-lex.l (convert_bitstring, convert_charliteral,
7049           convert_float, convert_number): Pass string directly to convert
7050           as a parameter.  Return token code consistently, return 0
7051           for error.
7052           (equal_number): Parse differently, allowing hex, binary
7053           and octal constants.
7054         * ch-parse.y (dowithaction, structured_variable): Only
7055           push/pop scopes once per DO WITH.
7056           (structured_variable_list): Check ignore_actions flag here.
7057         * gcc.c: Delete 'traditional' from string, add 'itu'
7058           as the standard flag's name.
7060 Mon Aug 30 15:12:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7062         * ch-typeck.c, ch-tree.h (build_chill_range_type):  Take 3
7063         parameters instead of 2 (explicit low and high bounds).
7064         * ch-parse.y (arrayindex):  Build range type from low:high.
7065         (rangesize, optrangesize):  Removed.
7066         (where appropriate):  Use new build_chill_range_type interface.
7067         * ch-grant.c:  Clean up writing of range and array types.
7068         * ch-satisfy.c (satisfy):  Don't ignore the return value of
7069         layout_chill_array_type. (It may be an error mark.)
7070         * ch-typeck.c (build_chill_array_type):  Simplify.
7071         * ch-typeck.c (layout_chill_array_type):  Clean up checks.
7073 Fri Aug 27 12:55:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7075         * ch-decl.c (decl_temp1):  Set DECL_ASSEMBLER_NAME.
7076         (push_chill_extern_function)  Don't set current_function_decl.
7077         * ch-parse.y (tupleelement):  Don't wrap index is a TREE_LIST
7078         (i.e. a range), don't wrap a PAREN_EXPR around it.
7079         * ch-grant.c (decode_constant):  For tuple CONSTRUCTORs,
7080         add support for ranges in purpose.
7082 Wed Aug 25 16:58:13 1993  Bill Cox  (bill@rtl.cygnus.com)
7084         * .cvsignore: Add g++.sum
7085         * ch-actions.c (chill_expand_result): Stop building a temp.
7086           Assign the expression directly into function's DECL_RESULT.
7087         * ch-decl.c: Add formfeeds.  
7088           (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
7089           (push_chill_function_context): Delete C pedwarn message.
7090         * ch-expr.c: Move builtin functions together.
7091         * ch-parse.y (end_function): Delete unused code.
7092           Reformat %union for readability.  Delete _MAX and _MIN
7093           tokens.
7095 Wed Aug 25 13:24:06 1993  Bill Cox  (bill@rtl.cygnus.com)
7097         * ch-actions.c (get_result_tmp_name): Delete unused function.
7098           (chill_expand_result, chill_expand_return): Rewrite for
7099           2-pass.
7100         * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
7101           chain field, so we can make a temp, evaluate a RESULT action's
7102           expression into it, and hang it on here.
7103         * ch-parse.y (end_function): Look for RESULT temps to emit.
7104           (assertaction): Indentation.
7106 Wed Aug 25 08:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
7108         * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
7109           It wasn't used anyway.
7111 Tue Aug 24 17:51:18 1993  Bill Cox  (bill@rtl.cygnus.com)
7113         * ch-actions.c (chill_expand_result, chill_expand_return):
7114           No need to make a temp for the value, just use DECL_RESULT.
7116 Tue Aug 24 16:38:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7118         * ch-tree.c (layout_powerset_type):  Remove redundant code.
7119         Generalize (in error message) to also handle bitstrings.
7120         * ch-tree.c (build_bitstring_type):  Remove all layout-like
7121         stuff, and defer that to layout_powerset_type.
7122         * ch-expr.c (chill_expand_expr):  For various SET_xxx_EXPRs,
7123         allocate stack temp for target using correct mode. 
7125 Tue Aug 24 10:27:19 1993  Bill Cox  (bill@rtl.cygnus.com)
7127         * ch-actions.c, ch-decl.c, ch-except.c,
7128           ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
7129           ch-typeck.c: Change build_modify_expr calls to
7130           build_CHILL_modify_expr calls.
7131         * ch-expr.c (build_chill_modify_expr): Adapted from
7132           build_modify_expr in c-typeck.c.
7134 Mon Aug 23 16:48:39 1993  Bill Cox  (bill@rtl.cygnus.com)
7136         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7137           ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
7138           ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
7139           Major re-allocation of functions to files.
7141 Mon Aug 23 12:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
7143         Thanks for the tip, Jim.
7144         * Makefile.in: Add dependency lines for ch-except.o and
7145           ch-satisfy.o.  Correct dependency lines for ch-convert.o,
7146           ch-expr.o, ch-inout.o, and ch-loop.o.
7147           (chill, install-common): Add clean-up commands.
7149 Sat Aug 21 17:11:26 1993  Bill Cox  (bill@rtl.cygnus.com)
7151         * ch-decl.c (get_type_precision): New function.
7152           (layout_enum): Call it.
7153         * ch-tree.c (layout_powerset_type, build_bitstring_type):
7154           Call it.
7156 Sat Aug 21 13:59:40 1993  Bill Cox  (bill@rtl.cygnus.com)
7158         * ch-decl.c (init_decl_processing): Define setbitpowerset       
7159           runtime function.
7160         * ch-expr.c (chill_expand_assignment): Call setbitpowerset
7161           to set a bit.
7162         * ch-parse.y: Indentation.
7164 Fri Aug 20 17:29:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7166         * ch-parse.y: Delete unused %type declaration.
7167         * ch-tasking.c (build_signal_struct): Delete return, since
7168           function returns void.
7169         * ch-typeck.c: Indent to standard.
7170         * stor-layout.c: Fix comment.
7171         * toplev.c: Change -L option ti -I.
7172         * varasm.c (emit_set_data): Align set constant to word 
7173           boundary.
7175 Fri Aug 20 08:20:07 1993  Bill Cox  (bill@rtl.cygnus.com)
7177         * ch-actions.c: Fix indentation, comments.
7178         * ch-decl.c (push_chill_extern_signal): Use same interface
7179           as build_signal_struct.
7180         * ch-parse.y (quasi_signaldef): Move build_signal_decl
7181           here to sigdef.  Add quasi_signal to distinguish contexts
7182           where sigdef gets used.
7183         * ch-tasking.c: Replace make_signal_struct and build_signal_decl
7184           with build_signal_decl, which doesn't loop through a
7185           TREE_LIST.
7186         * ch-tree.h: Fix protos.
7188 Wed Aug 18 17:36:53 1993  Bill Cox  (bill@cygnus.com)
7190         * ch-actions.c: Fix comments.
7191         * ch-decl.c (push_modedefs): Return the new decl.
7192           (shadow_record_fields): Move pushlevel (0) calls into
7193           the grammar, so they'll get done in both passes.
7194         * ch-parse.y (dowithaction): Always compute & save # of
7195           'with' variables seen (both passes), and always pop that
7196           number of levels.
7197           (structured_variable_list): Always chain variables into a list.
7198           (structured_variable): Put pushlevel here (from shadow_record_fields).
7199         * ch-tasking.c: Indentation fixes.
7200         * ch-tree.h: Change proto.
7201         * chill.texi: Add Blue Book section numbers to unimplemented
7202           features list.
7204 Wed Aug 18 15:48:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7206         * ch-actions.c (build_generalized_call):  New function.
7207         Classifies semantically (if pass 2) this that look like calls.
7208         * ch-parse.y (call):  Invoke build_generalized_call.
7209         * ch-parse.y (sigdef):  Use defining_occurrence instead of NAME.
7210         * ch-parse.y (opt_untyped_exprlist):  New non-terminal.
7211         * ch-satisfy.c (satisfy):  Handle CALL_EXPR.
7213 Tue Aug 17 16:36:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7215         * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
7217 Mon Aug 16 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7219         * ch-tree.h (TUPLE_NAMED_FIELD):  New macro.
7220         * ch-parse.y (labelled structure tupleelement):
7221         Set TUPLE_NAMED_FIELD flag.
7222         * ch-grant.c (decode_constant):  Check for TUPLE_NAMED_FLAG.
7223         * ch-satisfy.c (satisfy):  Check for TUPLE_NAMED_FLAG.
7224         Do satisfy the elements of a CONSTRUCTOR even if call
7225         chill_expand_tuple isn't correct.
7226         * ch-satisfy.c (satisfy):  Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
7227         * ch-parse.y (label_spec):  Defer any semantic checking until ...
7228         * ch-decl.c (layout_chill_variants):  ... here.
7229         Also make sure to call layout_type on the union type.
7230         * ch-decl.c (bind_saved_names):  For weak names, allocate an
7231         ALIAS_DECL, rather than a CONST_DECL.
7233         Add support for implied (weakly visible) names.
7234         * ch-tree.h (DECL_WEAK_NAME):  New macro.
7235         * ch-satisfy.c (satisfy of IDENTIFIER_NODE):  Don't complain
7236         if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
7237         * ch-decl.c (proclaim_name):  Handle DECL_WEAK_NAME appropriately.
7238         * ch-decl.c (concat_lists, find_implied_types):  New functions.
7239         * ch-decl.c (bind_saved_names):  Search for implied names.
7240         * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
7241         * ch-lang.c (layout_chill_struct_type):  Don't use
7242         C_DECL_VARIABLE_SIZE.
7244 Mon Aug 16 16:10:43 1993  Bill Cox  (bill@rtl.cygnus.com)
7246         * ch-actions.c: Delete extra space in error message.
7247         * ch-parse.y: Fix comment.
7248         * expr.c (store_constructor): Avoid passing NULL to convert,
7249           and getting back an error_mark_node and trying to process
7250           *that* node.
7252 Mon Aug 16 14:41:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7254         * ch-decl.c:  Add more overview comments.
7255         * ch-decl.c (proclaim_decl):  New function.
7256         * ch-decl.c (temp_pushdecl, struct shadowing):  Removed.
7257         * ch-decl.c (bind_saved_names):  Remove blevel parameter;
7258         use current_scope global instead.  Do some other cleanups.
7259         * ch-decl.c (save_expr_under_name):  Create an ALIAS_DECL.
7260         * ch-decl.c (pushdecllist, save_expr_under_name):  Use proclaim_decl.
7261         * ch-satisfy.c (satisfy, safe_satisfy_decl):  Be more careful
7262         to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
7264         * chill.texi:  Start collecting Chill documentation here.
7265         * ch-parse.y (mode):  Ignore READ specifier, for now.
7267 Mon Aug 16 11:13:07 1993  Bill Cox  (bill@rtl.cygnus.com)
7269         * ch-actions.c (chill_comptypes): Correct handling reference        
7270           of type 1.
7271           (build_chill_length, build_chill_num,
7272            build_chill_sizeof): Convert result to CHILL integer.
7273           (build_chill_function_call): Clean up INOUT and OUT
7274           parameter handling.
7275         * ch-decl.c (build_chill_function_type): Handle INOUT and
7276           OUT parameters.
7277         * ch-loop.c: Fix up comments.
7278         * ch-parse.y: Fix up comments.
7280 Sun Aug 15 15:06:01 1993  Bill Cox  (bill@rtl.cygnus.com)
7282         * ch-actions.c (build_chill_lower, build_chill_upper):
7283           Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
7284         * ch-decl.c (save_expr_under_name): New function to save
7285           addressing expressions for DO WITH and DO FOR handling.
7286           (handle_one_level): Call new function.
7287         * ch-loop.c (init_loop_counter): Call it here, too.
7288           Check lp->user_var before passing it to lookup_name.
7289           (high_domain_value, low_domain_value): Correct call
7290           to build_chill_upper and build_chill_lower.
7291           (begin_chill_loop, end_chill_loop): Move pushlevel,
7292           poplevel up into the grammar, so they're done in both
7293           passes.
7294         * ch-parse.y (doaction): Unconditionally make a scope
7295           for a loop, pop it later.
7296           (controlpart, iteration): Save return from
7297           build_chill_iterator.
7298         * expr.c: Readability changes.
7300 Sat Aug 14 19:42:32 1993  Bill Cox  (bill@rtl.cygnus.com)
7302         * ch-expr.c (chill_expand_case_expr): Complete rewrite
7303           for 2-pass.  About 1/2 the size, too.
7304         * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
7305           This assures that a label preceding a module's first action
7306           is enclosed in the module-level function that's generated.
7308 Sat Aug 14 14:56:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7310         Re-implement how EXIT is done.
7311         'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
7312         'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
7313         Hence we no longer need any support for EXIT in stmt.c.
7314         * stmt.c (stamp_nesting_label, expand_exit_labelled):  Removed.
7315         * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
7316         * ch-tree.c, ch-tree.h (munge_exit_label): New function.
7317         * ch-parse.y:  Re-write bracked actions to support EXIT new way.
7318         * ch-decl.c, ch-loop.c:  Remove calls to stamp_nesting_level.
7319         * ch-parse.y:  Replace SC by new token semi_colon, which
7320         resets the 'label' global.  Also make sure that label gets
7321         reset whenever we might start a new action statement.
7322         * ch-parse.y (possibly_define_exit_label):  New function.
7324         * ch-except.c (chill_start_on):  Wrap an ADDR_EXPR round the jmpbuf.
7325         * ch-grant.c (chill_finish_compile):  Make sure
7326         get_file_function_name is only called once.
7327         * ch-expr.c (chill_expand_array_assignment):  Use store_expr,
7328         instead of incorrectly calling emit_block_move.
7330         * ch-parse.y (procedure):  Call push_chill_function_context
7331         in *both* passes (if nested).
7332         * ch-parse.y (primval):  Call get_type_of before chill_expand_type.
7333         * ch-parse.y (tupleelement):  Only build PAREN_EXPR during pass 1.
7335 Fri Aug 13 16:36:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7337         Re-implement GRANT and SEIZE, to support prefixes and prefix
7338         rename.  All of the Blue Book semantics for these should
7339         now work (except FORBID).
7340         * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
7341         DECL_POSTFIX, DECL_POSTFIX_ALL):  New ALIAS_DECL layout and macros.
7342         * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
7343         decl_check_rename):  New functions.
7344         * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
7345         * ch-satisfy.c (satisfy_decl):  Handle SYN initialized with tuple.
7346         * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
7347         * ch-decl.c (pushdecllist): ... instead of here, which is too late.
7348         * ch-grant.c (decode_prefix_rename):  New function.
7349         Use to print out GRANT and SEIZE statements.
7350         * ch-decl.c (ALL_POSTFIX):  New global variable.
7351         * ch-decl.c (bind_saved_names, pop_module):  Change to use new
7352         ALIAS_DECL layout, and support general prefix rename and ALL.
7353         * ch-decl.c (various places):  Don't barf if DECL_ANME is NULL.
7354         * ch-parse.y (build_prefix_clause):  New function (handle PREFIXED).
7355         * ch-parse.y (optprogendname, optname):  Rename to opt_end_label.
7356         * ch-parse.y:  Add support for compound name strings, but defer
7357         using all over teh place, due to parser ambiguities.
7358         Howver, do use defining_occurrence where appropriate.
7359         * ch-parse.y:  Re-write syntax and semantics of GRANT and SEIZE
7360         statements to support Blue Book functionality.  Neato!
7362 Fri Aug 13 17:10:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7364         * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
7365         * ch-decl.c (decl_temp1): Rewrite to return generated decl.
7366           (decl_temp): Deleted.
7367         * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
7368         * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
7369           readability, add comment.
7370         * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
7371         * ch-tree.h: Delete decl_temp proto, change decl_temp1.
7373 Fri Aug 13 13:39:59 1993  Bill Cox  (bill@rtl.cygnus.com)
7375         * ch-decl.c (decl_temp): Break the chain of decls.  This
7376           prevents an infinite loop.
7377         * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
7378         * ch-lex.l (equal_number): Check passes in looking up a 
7379           symbolic value.
7380         * ch-parse.y: Fix comments.
7381         * ch-tasking.c (tasking_setup): Only act in pass 2.
7382           (make_signal_struct, build_signal_decl,
7383            build_chill_receive_case_label): Don't go indirect
7384            thru NULL decl pointer.
7386 Thu Aug 12 11:02:34 1993  Bill Cox  (bill@rtl.cygnus.com)
7388         * ch-actions.c (route_to_predefined_function): New function called
7389           from build_chill_function_call, to call the proper predefined routine.
7390           (build_chill_card, build_chill_length, build_chill_lower,
7391           build_chill_max, build_chill_min, build_chill_num, 
7392           build_chill_pred, build_chill_sizeof, build_chill_succ,
7393           build_chill_upper): Rewritten to run only in pass 2.
7394         * ch-decl.c (init_decl_processing): Build predefined functions for card,
7395           length, lower, max, min, num, pred, sizeof, succ and upper.  Delete
7396           unused builtin_function calls.
7397         * ch-grant.c (chill_finish_module_code): Save current_function_decl
7398           before calling finish_chill_function, and use that to build the
7399           initializer structure.
7400         * ch-lex.l: Remove following tokens, since they're now just predefined,
7401           not reserved: card, length, lower, max, min, num, pred, sizeof, succ
7402           and upper.
7403         * ch-loop.c: Readability, indentation changes.
7404         * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
7405           sizeof, succ and upper.  Delete special rules for calls to these.
7406           Delete mode_location and upper_lower_arg non-terminals.
7407           (pmodearg): Eliminate convolutions.
7408           (call): Add rule for typename parameter.
7409         * ch-tasking.c: Readability changes.
7410         * ch-tree.h: Add prototypes.
7412 Thu Aug 12 00:38:17 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7414         * ch-decl.c (save_decl):  Set DECL_CONTEXT (decl).
7415         * ch-grant.c (chill_finish_module_code):  Call
7416         finish_chill_function with nested==0.
7417         * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y:  Rename
7418         {push,pop}_c_function_context to {push,pop}_chill_function_context.
7419         * ch-parse.y (end_function): If nested, call
7420         pop_chill_function_context regardless of which pass we're in.
7422 Wed Aug 11 02:34:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7424         * ch-actions.c (finish_chill_binary_op):  Handle error marks.
7425         * ch-decl.c (do_decl):  Laying out decl and generating rtl
7426         is too late to do here (if there are forward references), so ...
7427         * ch-satisfy.c (satify_decl):  ... do it here instead.
7428         * ch-decl.c (finish_enum):  Fixup types of enum decls now.
7429         * ch-satisfy.c (safe_satisfy_decl):  New routine.  Supports
7430         checking illegal cyclic definitions.
7431         All *satisfy* routines now take a 'chain' parameter (instead
7432         of 'lookup_only') used for checking cycles.
7433         * ch-satisfy.c (satisfy_decl):  Return DECL_INITIAL if appropriate.
7434         * ch-satisfy.c (satisfy):  Lots of little fixes.
7436         * ch-lex.l (init_lex):  Make all the standard ridpointers be
7437         lowercase, so that lookup_name on lower-cased user input
7438         will find the standard types.
7439         * ch-lex.l:  Remove all the standard types, in effect
7440         converting them from reservered anmes to predefined names.
7441         * ch-lex.l, ch-parse.y:  Remove PREDEF_MODEDECL - no longer used.
7442         * ch-grant.c (gfile):  Rename to grant_file_name.
7443         * ch-lex.l (yywrap):  Don't try to seize current grant_file_name.
7445         * initname.c:  Removed. get_file_function_name is now in tree.c
7446         * Makefile.in (CHILL_OBJS): Remove initname.o
7448         * ch-decl.c (do_decl):  New function, based on loop body of do_decls,
7449         * ch-decl.c (do_decls):  Just call do_decl.
7450         * ch-grant.c (chill_finish_module_code):  Minor cleasnups.
7451         Use new do_decl routine.  Clear init_entry_decl's source line.
7452         * ch-grant.c (print_proc_tail):  Fix for new param list structure.
7453         * ch-parse.y (whatpdef):  Removed.  Cleaned up procedure
7454         and process, allowing proper end-label-checking.
7455         * ch-typeck.c (build_chill_cast):  Remove decl->type conversion.
7457 Wed Aug 11 00:33:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7459         * ch-decl.c (layout_enum):  Don't call rest_of_type_compilation.
7461         * ch-lex.l (RETURN_PREDEF):  Don't call lookup_name.
7462         * ch-expr.c (build_chill_indirect_ref):  Call get_type_of.
7463         * ch-parse.y (call):  Call get_type_of before build_chill_cast.
7465 Tue Aug 10 21:33:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7467         *  ch-actions.c (build_char_array_expr):  If a concat operand is
7468         a constant char, convert it to a STRING_CST.
7469         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation
7470         with toplev=0.
7471         * ch-typeck.c (build_chill_cast):  Allow type to be TYPE_DECL.
7473         * ch-parse.y (actionlabel):  Call define_label in both passes.
7474         * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
7475         New functions, using lookup_name to find LABEL_DECLs.
7476         * ch-parse.y (GOTO, EXIT):  Use above new functions.
7477         * ch-tasking.c (struct rc_state_type *current_rc_state):
7478         Use to store state for the current receive case statement.
7479         (build_chill_receive_case_start, build_chill_receive_case_end):
7480         Don't generate temporary LABEL_DECL; just use gen_label_rtx.
7481         * ch-decl.c:  Remove all stuff dealing with specific label scopes,
7482         including functions push_label_level, pop_label_level.
7483         * ch-decl.c (define_label):  Re-write for 2-pass.
7484         * ch_tree.h (lang_identifier):  Removed label_value.
7485         * ch-tree.h (IDENTIFIER_LABEL_VALUE):  Removed.
7487         * ch-parse.y (modename):  Changed to yield identifier, not type.
7488         This allows following changes, which work better for 2-pass:
7489         (location):  primval ARROW optmodename -> primval ARROW optname.
7490         (primval):  Tuple can now be prefixed by unsatisfied name.      
7492         * ch-actions.c (chill_grant_only):  Renamed to grant_only_flag.
7493         * ch-lex.l (yywrap):  Don't read seizefiles if grant_only_flag.
7494         * ch-decl.c (switch_to_pass_2):  Exit if grant_only_flag,
7496         * ch-satisfy.c (satisfy):  Support CONSTRUCTOR, REFERENCE_TYPE.
7497         * ch-satisfy.c (satisfy_decl, satisfy):  Kludge around
7498         to a TYPE_DECL can be simplified to its type.
7499         * ch-expr.c (build_chill_indirect_ref):  New function.
7500         * ch-lex.l (prepare_paren_colon):  Make kludge even uglier,
7501         since the left paran might already have been seen.
7502         * ch-lang.c (make_chill_pointer_type):  Allow parameter
7503         to select pointer or reference type.
7504         (build_chill_reference_type):  New function.
7505         Either function:  Be more careful (in case arg is identifier).
7506         * ch-except.c (initialize_exceptions):  Make
7507         exception_stack_decl be public.
7508         * ch-actions.c (build_char_array_expr):   Can only
7509         constant fold if operands are STRING_CST.
7510         * ch-grant.c (raw_decode_mode):  Allow TYPE_DECL.
7511         (chill_finish_compile:  Set TREE_PUBLIC of init function to 1.
7513 Tue Aug 10 17:55:12 1993  Bill Cox  (bill@rtl.cygnus.com)
7515         * ch-actions.c (build_char_array_expr): Set array sizes correctly.
7516         * ch-decl.c: Fix comment.
7517         * ch-parse.y (pmodearg): Build tree_list in all cases.
7518         * varasm.c (assemble_tasssking_entry): Delete unused code.
7520 Tue Aug 10 13:58:21 1993  Bill Cox  (bill@rtl.cygnus.com)
7522         * ch-actions.c (build_char_array_expr): save/restore
7523           a tree's constant status.
7524           (build_chill_binary_op): Don't convert an expression
7525           if the type we're converting to is NULL.
7526         * ch-convert.c (maybe_turn_scalar_into_array): New functions.
7527           Call it from convert, and from ..
7528         * ch-expr.c (chill_expand_assignment): call new function.
7529           Move convert code earlier, too.
7530         * ch-decl.c (lookup_name): Delete bogus error message.
7531         * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
7532           Add protos.
7533         * ch-typeck.c (valid_array_index): Comment out some strange code
7534           which now seg faults.
7535           (chill_expand_tuple): Re-enable prepending of VARYING
7536           length to a tuple.
7537           (chill_similar): Return FALSE if either mode is NULL_TREE.
7539 Tue Aug 10 07:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
7541         * ch-decl.c: Delete proto for unused function shadow_tag_warned.
7542           Add commented-out calls to pushtag, in case we decide later
7543           to fill in TYPE_STUB_DECL for dbxout.
7544         * ch-lang.c (build_chill_struct_type): Add commented-out
7545           calls to pushtag, in case we decide later to fill in
7546           TYPE_STUB_DECL for dbxout.
7548 Mon Aug  9 23:09:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7550         * ch-decl.c (chill_seize):  Don't get_next_next in pass 2.
7551         * ch-decl.c (get_next_decl):  Skip ALIAS_DECLs.
7552         * ch-decl.c (bind_saved_names):  Handle SEIZE ALL.
7553         * ch-lang.c (layout_chill_struct_type):  Don't call
7554         rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
7555         * initname.c (get_file_function_name):  Get new file and
7556         function for language-independent constructor name generation.
7557         * ch-grant.c (get_init_function_id):  Removed.
7558         * ch-grant.c (chill_finish_compile):  Call get_file_function_name
7559         instead of get_init_function_id.
7561 Mon Aug  9 18:33:36 1993  Bill Cox  (bill@rtl.cygnus.com)
7563         * ch-decl.c: Formfeeds and comments.
7564         * ch-parse.y (quasi_formpar): Treat just like real formpar.
7565           Eliminate restriction on single name.
7566           (pmodearg, pmodearglist): Remove ignore_exprs stuff.
7568 Mon Aug  9 17:21:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7570         * ch-lex.h (enum rid), ch-lex.l (init_lex):  Added RID_ALL.
7571         * ch-lang.c (build_chill_pointer_type):  Layout the pointer type,
7572         if the pointee is laid out, even if pass==1.
7573         * ch-parse.y:  Set ignore_exprs=(pass=2) for entire spec module.
7575 Mon Aug  9 15:44:01 1993  Bill Cox  (bill@rtl.cygnus.com)
7577         This version compiles the 5-line program.  Thanks, Per!
7578         * ch-decl.c (print_lang_decl, print_lang_identifier):
7579           Add appropriate calls to indent_to().  Rename reverse_scopes
7580           to switch_to_pass_2, and wait to set pass = 2 until
7581           here.
7582         * ch-grant.c (chill_finish_module_code): Set module_init_list
7583           non-NULL in pass 1;  in pass2, chain on the module_init
7584           structure's decl.
7585           (chill_finish_compile): Clear module_init_list to NULL.
7586         * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
7587           Rename reverse_scopes to switch_to_pass_2, delete setting 
7588           of pass = 2.
7589         * ch-tree.h: Rename reverse_scopes proto.
7591 Mon Aug  9 13:21:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7593         * ch-decl.c (build_enumerator):  If name is NULL,
7594         don't call save_decl or get_next_decl.
7595         * ch-decl.c (layout_enum):  Fix calculation of next value.
7596         * ch-grant.c (print_enumeral):  Re-do for new 2-pass scheme.
7597         * ch-grant.c (decode_constant):  Better CONSTRUCTOR support.
7599 Mon Aug  9 11:59:12 1993  Bill Cox  (bill@rtl.cygnus.com)
7601         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
7602           ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
7603           Lots of new prototypes.
7605 Mon Aug  9 01:00:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7607         * ch-lex.h:  Remove unused RID_'s.  Make sure RID_MAX is last.
7608         * ch-decl.c (init_decl_processing):  Moved ridpointers
7609         initialization to init_lex().  Use them consistently.
7610         * ch-lex.l (RETURN_PREDEF):  New macro.  Uses ridpointers
7611         for all preferedined types.
7612         * ch-lex.l (init_lex):  Upper case all RIDs, so grantfiles
7613         (and error messages?) will use uppercase.
7614         * ch-decl.c (build_chill_enumerator):  Merged into build_enumerator.
7615         * ch-lang.c (finish_chill_enum):  Merged into ...
7616         * ch-decl.c (finish_enum): .... this function.
7617         * ch-decl.c (layout_enum):  New function.  Does all the pass-2
7618         stuff for enumerations.
7619         * ch-decl.c (finish_enum, start_enum):  Only trivial pass-1 stuff.
7620         * ch-satisfy.c (satisfy):  Support ENUMERAL_TYPE.  Improve ranges.
7621         * ch-parse.y:  Check ignore_exprs instead of ignore_decls when
7622         parsing and building types.
7624 Sun Aug  8 16:26:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7626         * ch-lex.h:  Add some missing RID_'s.
7627         * ch-decl.c (init_decl_processing): 
7629 Sun Aug  8 15:32:54 1993  Bill Cox  (bill@rtl.cygnus.com)
7631         * ch-grant.c (module_has_actions): Delete this and all
7632           references.  It was a botch.
7633           (chill_finish_module_code): Move finish_chill_function_call inside
7634           the test whether actions were found at module level.
7635           Use current_function_name in the initializer build,
7636           and init_entry_id in the module_list setup.
7637           (chill_finish_compile): Call lookup_name to get the
7638           decl from a module_init_list entry.
7639         * ch-parse.y: Revert module_has_actions additions.
7640         * ch-satisfy.c (satisfy): After satisfying the type  referenced
7641           by a pointer_type, call layout type for the pointer.
7642         * ch-tasking.c (tasking_registry): Only active in pass 2.
7643         * ch-typeck.c: Call build_chill_pointer_type everywhere.
7645 Sun Aug  8 13:13:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7647         * ch-tree.def (PAREN_EXPR):  New unary op:  '(' EXPR ')'.
7648         * ch-parse.y (primval):  If pass 1, generate PAREN_EXRR.
7649         * ch-satisfy.c (satisfy):  Reduce PAREN_EXPR to its operand.
7650         * ch-grant.c (decode_const):  Handle PAREN_EXPR.
7651         * ch-decl.c (pop_module):  Fix think.  Inprove error message.
7653 Sun Aug  8 10:31:04 1993  Bill Cox  (bill@rtl.cygnus.com)
7655         Generally, replace 'function' with 'procedure' 
7656         and 'type' with 'mode' in error/warning messages.
7657         * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
7658         * ch-decl.c: See Generally.
7659           (init_decl_processing): Call build_tasking_enum from here.
7660           Now, it doesn't need a flag to do its work only once.
7661           Also, build the TaskingStruct decl here.
7662         * ch-grant.c: Remove references to `current_grant_file';
7663           there's now only one.  See Generally.  Do gcc -Wall cleanup.
7664         * ch-lex.l: Remove references to `current_grant_file'
7665           and delete USE_GRANT_FILE token.
7666         * ch-parse.y: Remove call to build_tasking_enum, and its extern.
7667         * ch-tasking.c (tasking_setup): Move TaskingStruct build
7668           to init_decl_procesing.  Delete build_tasking_enum calls.
7669         * ch-tree.c: See Generally.
7670         * ch-tree.h: Add proto for build_tasking_struct.
7672 Sun Aug  8 08:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
7674         * ch-decl.c: Make unnamed_module_number static, reset it to zero
7675           before pass 2, so same module names get generated in both passes.
7676           (push_module): Return user name or generated name.
7677           (init_decl_processing): Build __tmp_initializer_type.
7678           Code moved from chill_finish_module_code.
7679         * ch-grant.c: New flag module_has_actions.  Set TRUE by push_actions,
7680           used, reset by chill_finish_module_code.    Replaces test of 
7681           module_function_name.  Shuffled finish-up code to end of module.
7682           (chill_finish_module_code): Use global_bindings_p to determine
7683           'nested' parameter for finish_chill_function.  Use new
7684           module_has_actions flag to trigger generation of module_init list
7685           entry.  We now can handle not only multiple modules per file,
7686           but modules nested inside functions (I think).
7687         * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
7688         * ch-parse.y (push_actions): Set module_has_actions flag.
7689           (modulion, spec_module): Save possibly-generated module name
7690           returned by push_module.
7691         * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
7692           case for POINTER_TYPE.
7693         * ch-tasking.c: Replace build_pointer_type calls with
7694           build_chill_pointer_type calls.
7695         * ch-tree.h: Fix, add prototypes.
7697 Sat Aug  7 17:32:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7699         * ch-parse.y:  Remove many useless tests for ignore_decls.
7700         * ch-parse.y:  Remove obsolete support for _EXTERN and _INIT.
7701         * ch-parse.y:  Reset ignore_exprs while parsing declarations,
7702         but handle initializers appropriately.
7703         * ch-grant.c (decode_constant):  Update (for 2-pass) support
7704         for CONSTRUCTOR and SET_TYPE.
7705         * ch-grant.c (chill_initializer_name):  Renamed to
7706         module_function_name.
7707         * ch-grant.c (function_generated):  Removed;
7708         use module_function_name != NULL instead.
7709         * ch-tree.h, ch-parse.y:  Removed unused current_locnamelist.
7710         * ch-decl.c (push_modedef):  Simplify to take just one mode.
7711         * ch-tasking.c (make_process_struct, make_signal_struct):
7712         Change calls to push_modedef correspondingly.
7713         * ch-tree.c (build_powerset_type):  Move the stuff that's
7714         suitable for pass 1 into new function make_powerset_type,
7715         and that for pass 2 into new function layout_powerset_type.
7716         * ch-lang.c:  Move pass-1 stuff from build_chill_pointer_type
7717         into new function make_chill_pointer_type, and split
7718         build_chill_struct_type into make_chill_struct_type
7719         and layout_chill_struct_type.
7720         * ch-decl.c (grok_chill_variantdefs):  Similarly split up
7721         into make_chill_variants and layout_chill_variants.
7722         * ch-satisfy.c (satisfy):  Add support for SET_TYPE, and UNION_TYPE.
7723         Call layout_chill_struct_type for RECORD_TYPE.
7725 Sat Aug  7 09:59:55 1993  Bill Cox  (bill@rtl.cygnus.com)
7727         Fixup previous check-in.
7728         * ch-decl.c: Restore unnamed_module_number, which *was*
7729           used after all.
7730         * ch-grant.c (get_init_function_id): Return type s.b. tree.
7732 Sat Aug  7 09:28:17 1993  Bill Cox  (bill@rtl.cygnus.com)
7734         * ch-decl.c (print_lang_decl, print_lang_type): Add
7735           correct parameter list.  Add print statements for
7736           nesting_level, signal_dest, buffer_size, and the
7737           signal_data flag.
7738           (decl_temp, decl_temp1): Delete unused code.
7739           (init_decl_processing): Call build_instance_type and
7740           build_tasking_type in both passes.
7741           Generally change current_scope comparisons against 
7742           global_scope to global_biidings_p calls.
7743         * ch-except.c (push_handler): Add space before parameter paren.
7744         * ch-grant.c (chill_start_module, chill_finish_module,
7745           chill_finish_compile): Complete re-write for 2-pass and
7746           multiple modules per source file.
7747         * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
7748         * ch-tasking.c: Diffused small adaptations to 2-pass.
7749         * ch-tree.h (print_lang_decl, print_lang_type): Correct
7750           the prototypes.
7751           (chill_finish_module_code): Add module name parameter.
7752         * ch-typeck.c: Fix comments, add whitespace.
7754 Fri Aug  6 12:17:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7756         * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
7757         way I allocated the shadow_list on an obstack was too fragile,
7758         so just use xmalloc/free instead.
7760 Fri Aug  6 08:31:49 1993  Bill Cox  (bill@rtl.cygnus.com)
7762         * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
7763           TYPE_MAX_VALUE for vanilla integer type.  Only need
7764           to satisfy TREE_TYPE for integer range type.
7766 Fri Aug  6 00:53:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7768         * ch-lang.c (build_chill_range_type):  Split up into two new
7769         functions (make_chill_range_type, layout_chill_range_type);
7770         only former part is done in pass 1.
7771         * ch-lang.c (build_chill_array_type):  Split up in the same
7772         way (yielding make_chill_array_type, layout_chill_array_type).
7773         * ch-satisfy.c (satisfy):  Handle array and range types.
7774         * ch-tree.h (TYPE_RANGE_PARENT):  Removed.  Not used.
7775         * ch-parse.y (mode2):  Handle optional rangesize.
7777 Thu Aug  5 15:13:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7779         * ch-grant.c (print_an_int):  Re-enable (but don't search for SYN).
7780         * ch-grant.c (raw_decode_mode):  Support printing
7781         of an IDENTIFIER_NODE (unresolved type name).
7782         * ch-grant.c (decode_constant):  Support printing of an unresolved
7783         IDENTIFIER_NODE, as well as some kinds of binary operations.
7784         * ch-grant.c (grant_one_decl):  Don't call globalize_decl.
7786         * ch-grant.c (decode_decl):  Add support for ALIAS_DECLs
7787         (from SEIZEs and GRANTs).
7788         * ch-grant.c:  Remove support for multiple grantfiles.
7789         * ch-grant.c, ch-parse.y:  Removed grant_count, for now at least.
7790         * ch-lex.h (in_seizefile):  Moved to ch-tree.h.
7791         * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c:  Removed.
7792         * ch-tree.h (CH_DECL_GRANTED): Added.
7793         * ch-actions.c (build_chill_exception_decl):  Use
7794         IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
7795         * ch-grant.c (write_grant_file -> write_spec_module): Rename.
7796         Change to accept list of remember_decls and granted_decls.
7798 Thu Aug  5 11:58:21 1993  Stan Shebs  (shebs@rtl.cygnus.com)
7800         * expr.c: Remove no-longer-used PROCESS_DECL tree type.
7802 Thu Aug  5 10:03:27 1993  Bill Cox  (bill@rtl.cygnus.com)
7804         * ch-decl.c (init_decl_processing): Only build types
7805           in pass 2, since dbxout machinery is only ready for
7806           output then.
7807         * ch-grant.c (chill_finish_module_code): Do most of the
7808           work in pass 2.
7810 Thu Aug  5 06:54:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7812         * ch-parse.y (receivecaseaction): Pass label-group
7813           numbers around.
7814         * ch-tasking.c (build_chill_receive_case_start):
7815           Generate unique labels for each case, pass back
7816           the label-group's number.
7817           (build_chill_receive_case_end): Accept label-group
7818           number from parser, use it to build labels
7819         * ch-tree.h: Change prototypes.
7821 Wed Aug  4 13:21:13 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7823         * ch-decl.c (decl_temp1):  Call finish_decl().
7825         * ch-grant.c (chill_start_module_code):  Don't call
7826         push_c_function_context - not needed since we're not nested.
7827         * ch-grant.c (chill_finish_module_code): Call finish_chill_function
7828         with nested=0, not 1 (twice).
7829         * ch-grant.c (chill_finish_module_code): Clear function_generated.
7831 Tue Aug  3 20:06:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7833         * ch-decl.c (push_chill_extern_function):  Set TREE_PUBLIC.
7835 Tue Aug  3 19:08:51 1993  Bill Cox  (bill@rtl.cygnus.com)
7837         * ch-actions.c (build_chill_function_call): Handle parameter
7838           attributes better - LOC still not handled.
7839         * ch-tree.def: Amplify comment.
7841 Tue Aug  3 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7843         * ch-lex.l (handle_use_seizefile_directive):  Update
7844         next_file_to_seize correctly.
7845         * ch-actions.c (build_chill_abs):  Create an ABS_EXPR, not an rts_call.
7847 Tue Aug  3 14:03:50 1993  Bill Cox  (bill@rtl.cygnus.com)
7849         First Aid, not real long-term fixes...
7850         * ch-decl.c (pop_module, lookup_name_for_seizing): Check
7851           current_module pointer for NULL before using it.
7852           (init_decl_processing): Set up wchar_type_node before using it.
7853         * ch-grant.c (chill_finish_module_code): Don't build
7854           initializer_type or initializer_decl until pass 2.
7855         * ch-lex.l: Readability - single statement per line.
7856         * ch-tasking.c (make_process_struct): Hide get_parm_info
7857           call inside #ifdef for now.
7859 Tue Aug  3 09:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
7861         * ch-decl.c (pushdecllist): Add forward decl.
7862         * ch-parse.y (handler): Add rules which allo
7863           empty onalternativelist.
7864         * ch-tasking.c (get_tasking_code_name): Add
7865           cast of alloca() result.
7867 Tue Aug  3 00:11:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7869         * ch-lex.l (handle_use_seizefile_directive):  Make files_to_seize
7870         a queue.  Check for duplicate use_seizefile-s immediately.
7871         * ch-lex.l (yywrap):  Use this more portable mechanism,
7872         rather than the flex-specific <<EOF>>.  Also, clear saw_eof.
7873         * ch-lex.l:  Don't call push_module/pop_module automatically.
7874         * ch-decl.c (push_chill_extern_function:  Modify for 2-pass.
7876 Mon Aug  2 14:24:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7878         * ch-parse.y:  Rename actionstatement -> nonempty_actionstatement.
7879         New actionstatement is now nonempty_actionstatement | SC.  Use
7880         where appropriate.  This is closer to Blue Book terminology.
7882         * ch-tree.def (ALIAS_DECL):  New tree type.
7883         * ch-decl.c:  Merged all the code we need (I hope) from c-decl.c,
7884         which is no longer used for cc1chill.
7885         * c-decl.c:  Remove all Chill-related code.
7886         * Makefile.in (CHILL_OBJS):  Don't use c-decl.o.
7887         * ch-decl.c:  No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
7888         Introduce a 'nesting_level' level concept instead.
7889         * ch-decl.c:  Merged push_scope into pushlevel; pop_scope into
7890         poplevel;  struct scope and struct binding_level.
7891         * ch-decl.c:  Other major name lookup algorithm changes.
7892         * ch-tree.h (struct lang_identifier): Remove granted_value field.
7893         * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro):  Removed.
7894         * ch-tree.h (DECL_NESTING_LEVEL):  New macro.
7895         * ch-satisfy.c (satisfy, satisfy_decl):  New 'lookup_only' arg.
7896         * ch-tree.h (struct module):  New fields nesting_level, granted_decls.
7897         * ch-grant.c (seize_implied_names, do_seize, chill_seize):  Move ...
7898         * ch-decl.c: ... here.
7899         * ch-grant.c (start_chill_function2):  Remove.
7900         * ch-grant.c (chill_start_module_code):  Now called in both passes.
7901         * ch-actions.c (lang_init):  Code moved to ...
7902         * ch-decl.c (init_decl_processing): ... here.
7903         * ch-actions.c (chill_expand_result, chill_expand_return):
7904         Handle being called during pass 1.
7905         * ch-lex.l (name_type_signal):  Don't try lookup_name during pass 1.
7906         * ch-parse.y (PUSH_ACTION, push_action):  Is now invoked during
7907         both passes, for the sake of chill_start_module_code.  Change all
7908         actions rules to invoke PUSH_ACTION unconconditionally.
7909         * ch-parse.y, ch-decl.c (push_module):  Module label is now optional.
7911 Mon Aug  2 15:02:32 1993  Bill Cox  (bill@rtl.cygnus.com)
7913         * expr.c (store_constructor): Convert library function
7914           parameters to proper integer precision before calling
7915           emit_library_call.
7917 Mon Aug  2 08:46:06 1993  Bill Cox  (bill@rtl.cygnus.com)
7919         * ch-grant.c (seize_implied_names): Check POWERSET's
7920           base type for names to seize.
7922 Fri Jul 30 19:59:30 1993  Bill Cox  (bill@rtl.cygnus.com)
7924         * ch-tree.h: Delete unused definition of JOINER
7925           macro.  Expand comment about INSTANCE_TYPE.
7927 Thu Jul 29 14:57:11 1993  Bill Cox  (bill@rtl.cygnus.com)
7929         * ch-convert.c (unreferenced_type_of): New function.
7930           (convert): Call new function.
7932 Thu Jul 29 07:34:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7934         * ch-lex.l: Allow C-style comments before the module
7935           header.  Use #undef to assure that strchr isn't a
7936           macro (portability), and remove the extra paren-
7937           theses in its extern name.
7938           (check_newline): Call getlc less often, so that user
7939           labels aren't lowercased before their time. Add BEGIN
7940           INITIAL before starting pass 2, so the header is
7941           correctly ignored.
7943 Wed Jul 28 14:23:24 1993  Bill Cox  (bill@rtl.cygnus.com)
7945         * ch-grant.c (chill_start_module_code): Cast alloca()
7946           return value.
7948 Wed Jul 28 12:39:51 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
7950         * ch-grant.c: remove extra parens around extern function
7951         declarations (they confuse the DECstation compiler)
7953 Wed Jul 28 12:28:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7955         * Makefile.in: Stop deleting flex's #line lines.
7957 Wed Jul 28 07:05:25 1993  Bill Cox  (bill@cygnus.com)
7959         Adjust after FSF merge:
7960         * calls.c (expand_call): Add comment.
7961         * ch-expr.c: Add newline.
7962         * expmed.c (store_split_bit_field): Add comment.
7964 Tue Jul 27 17:32:13 1993  Bill Cox  (bill@rtl.cygnus.com)
7966         * ch-actions.c (build_chill_binary_op): Set code0 and
7967           code1 only in pass 2.
7968           (get_result_tmp_name): Cast alloca return for portability.
7969         * ch-decl.c (pop_module): Test current_module ptr before
7970           using it.
7971         * ch-lex.l: Set lineno and input_filename for pass 2
7972           error messages.
7974 Tue Jul 27 15:14:06 1993  Bill Cox  (bill@rtl.cygnus.com)
7976         * ch-lex.l: Fix the syntax error at line 329.  Will I
7977           *ever* quit fixing these in the ch-lex.c file?  Stay tuned..
7979 Tue Jul 27 15:01:25 1993  Bill Cox  (bill@rtl.cygnus.com)
7981         * ch-lex.l: Pervasive rewrite for queueing seize files,
7982           then parsing them at the end of pass 1.  Still some
7983           problems.
7985 Tue Jul 27 07:40:39 1993  Bill Cox  (bill@rtl.cygnus.com)
7987         * chill.in: Check for .i suffices only, and use -xchill
7988           to bracket the argument.
7990 Thu Jul 22 19:17:23 1993  Bill Cox  (bill@rtl.cygnus.com)
7992         * c-decl.c (print_lang_identifier): Oops.  Syntax error.
7994 Thu Jul 22 18:56:16 1993  Bill Cox  (bill@rtl.cygnus.com)
7996         * c-decl.c (pushdecllist): Standardize loop for readability.
7997         * ch-decl.c (decl_temp): Call pushdecllist to store decl
7998           into hash table, move after current_scope declaration.
7999           (decl_temp1): Move also.
8000         * ch-lex.l (getlc): New function.  Force char to lower case.
8001           (check_newline): Call it, so comparisons work on uppercase
8002           keywords.
8004 Wed Jul 21 22:17:22 1993  Bill Cox  (bill@rtl.cygnus.com)
8006         * ch-decl.c (do_decls): Add saving of decl tree
8007           address into ID node in pass 2,  reindent.
8008         * ch-grant.c (start_chill_function2): New function.
8009           (chill_start_module_code,  chill_finish_module_code): Call it.
8010         * ch-loop.c (build_temporary_variable, begin_for_range):
8011           Replace start_decl, finish_decl pairs with decl_temp1 calls.
8012         * ch-parse.y (parnamelist): Eliminate warning by eliminating
8013           the %type for now.
8014         * ch-actions.c, ch-tasking.c: Replace do_decls calls with
8015           decl_temp1 calls.
8016         * ch-tree.h: New prototypes.
8017         * stmt.c (stamp_nesting_label): Check parameters for NULL.
8018         * toplev.c (lang_options): Add '-L' option.
8020 Wed Jul 21 21:06:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8022         Portability fixes.
8023         * ch-decl.c (save_decl): Make definition match forward declaration.
8024         * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
8025           in the macro - Sun's compiler throws warnings.  Thanks, Brendan.
8026         * ch-satisfy.c (satisfy): Add forward declaration.
8027           (SATISFY): Add outer parens for greater safety.
8029 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8031         * c-decl.c (pushdecllist): New function.  Add a list of decls
8032         to the current scope, checking for duplicates.
8033         * c-decl.c (start_function):  Remove some Chill junk.
8034         (This function should no longer be used for Chill.)
8035         * ch-lex.l (ch_lex_init):  New function, to re-init for 2nd pass.
8036         * ch-lex.l (<<EOF>>):  Cleanup, and re-start for 2nd pass.
8037         * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG):  New flags.
8038         * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
8039         Implement.  Add comments.
8040         * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
8041         Better Blue Book type checking.
8042         * ch-actions.c (finish_chill_binary_op): Handle folding
8043         and other stuff that couldn't be done in pass 1.
8044         * ch-actions.c (build_chill_binary_op):  Bail out early if pass 1.
8045         Use new CH_ROOT_MODE macro to handle integer promotions etc.
8046         * ch-except.c (push_handler):  Bail out if pass 1.
8047         * ch-tasking.c (make_process_struct):  Defer making this work.
8048         * ch-parse.y (assignaction):  Simplify, and move some code ...
8049         * ch-expr.c (chill_expand_assignment): ... here.
8050         * ch-typeck.c (chill_root_mode, chill_resulting_mode,
8051         chill_compatible_classes):  New functions, implementing the
8052         correspondingly named Blue Book concepts.
8053         * ch-parse.y generally:  Lots of little tweaks to support
8054         2-pass compilation.
8055         * ch-parse.y (push_module, pop_module):  Moved to ...
8056         * ch-decl.c (push_module, pop_module):  ... here.
8057         * ch-parse.y (push_action):  New function.
8058         * ch-parse.y (pdef):  Move complicated action to ...
8059         * ch-parse.y (end_function):  ... new function here.
8060         * ch-parse.y (procedure):  Major re-write.
8061         * ch-parse.y (paramname, paramnamelist):  New, to avoid conflict (?).
8062         * ch-decl.c (do_decls, push_syndecls, push_modedef,
8063         start_chill_function, finish_chill_function):  Do different things
8064         on each pass.  Hence, can use code in c-decl.c to lesser extent.
8065         * ch-decl.c (build_chill_function_type):  First arg is now
8066         just the return type, rather than a singleton list.
8067         * ch-decl.c (massage_param_node):  Remove not needed (we
8068         now encode parameter attributes directly in the TREE_PURPOSE).
8069         * ch-decl.c (chill_munge_params):  New function, called by parser.
8070         * ch-decl.c (push_parms):  Removed function.
8071         * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
8072         New functions, to coordinate decls between passes.
8074 Wed Jul 21 14:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
8076         * ch-actions.c (lang_decode_option): Add option -Lpath
8077           to specify seize file path.
8078           (ch_singleton_set): Readability formatting.
8079           Add comment, move functions to easier found places.
8080         * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
8081           (register_seize_path): Use memcpy so pathlen has an effect.
8082         * gcc.c (default_compilers): Add -L option to chill
8083           compiler SPECs.
8085 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8087         * ch-satisfy:  New file.  Used for name lookup.
8088         * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
8090 Wed Jul 21 12:16:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8092         * toplev.c (main): Delete -L option handling - breaks
8093           non-chill compilers.
8095 Wed Jul 21 09:29:24 1993  Bill Cox  (bill@rtl.cygnus.com)
8097         * ch-grant.c: #undef strchr and strrchr names in extern
8098           declarations, to prevent RS6000 compiler from reporting
8099           their misuse as macros.
8100         * ch-lex.l (setup_seizefile_read): Refer to list of  paths
8101           for seizefiles specified by -L options on command line.
8102           (register_seize_path): Add a new path to the seize file list.
8103         * toplev.c (strip_off_ending): Recognize chill suffix.
8104           (main): Recognize -L option, specifying a seize file path.
8106 Tue Jul 20 12:41:52 1993  Bill Cox  (bill@rtl.cygnus.com)
8108         * ch-lex.l (convert_float): Make it really portable,
8109           using the appropriate macros.
8111 Tue Jul 20 11:26:02 1993  Bill Cox  (bill@rtl.cygnus.com)
8113         * ch-lex.l (convert_float): More casts for vxworks
8114           portability.
8116 Tue Jul 20 11:01:30 1993  Bill Cox  (bill@rtl.cygnus.com)
8118         * ch-lex.l (convert_float): Give variable `d' correct
8119           type so build_real call is correct.  Should remove
8120           vxworks portability problem.
8121           (convert_float): Re-indent to standards.
8123 Mon Jul 19 17:32:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8125         * ch-actions.c (build_char_array_expr): Add field decls to
8126           constructor.  Now, it generates the library call.
8127         * ch-expr.c (chill_expand_array_assignment): Make sure that all
8128           error messages say 'mode' not 'type'.
8130 Mon Jul 19 14:44:46 1993  Bill Cox  (bill@rtl.cygnus.com)
8132         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
8133           ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
8134           Make sure that all error messages say 'mode' not 'type'.
8135         * ch-decl.c (push_modedef): Add novelty computation,
8136           storage in each newmode.
8137         * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
8138           Reformat slightly for readability.  Fix comments.
8139         * ch-tree.h: Delete print_lang_type prototype.
8141 Mon Jul 19 06:43:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8143         * ch-actions.c (chill_expand_return): Disable
8144           error message which requires 2-pass analysis, for
8145           now.
8146         * ch-convert.c (convert): Build length-only constructor
8147           for empty string (PR 2930).
8149 Fri Jul 16 16:08:33 1993  Bill Cox  (bill@rtl.cygnus.com)
8151         * ch-expr.c (chill_expand_array_assignment): Check
8152           non-varying string assignments for conformance to
8153           the "string assignment condition" (PR 2920).
8155 Thu Jul 15 13:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
8157         * ch-actions.c (build_chill_array_expr): Check parameters.
8158           Call convert to build unitary array from scalar if
8159           needed.  Rewrite CONCAT_EXPR handling.
8160         * ch-convert.c (build_array_type_for_scalar): New functions.
8161           (convert): Call new function, to convert scalar to unitary
8162           array.  Only call chill_expand_tuple if expression hass
8163           NULL_TREE type.
8164         * ch-expr.c (chill_expand_expr): Allow a larger static
8165           varying array to be assigned to a smaller, with a runtime
8166           test (to be provided).
8167         * ch-parse.y (locdec): Comment out bogus error msg.
8168           (elementlist): Replace several lines with chainon call.
8169         * ch-tree.h (SCALAR_P): New macro.  New prototype for
8170           build_array_type_for_scalar.
8171         * ch-typeck.c (build_chill_cast): Re-indent.
8172           (chill_expand_tuple): Comment out strange addition of 
8173           varying string's length to front of constructor list.
8175 Thu Jul 15 05:58:46 1993  Bill Cox  (bill@rtl.cygnus.com)
8177         * ch-except.c (start_handler_array): Use unique identifier for
8178           exception array, so we can have > 1 array per reach
8179           (PR 2931).  The change was originally entered June 23, and
8180           subsequently lost.
8182 Mon Jul 12 16:07:53 1993  Bill Cox  (bill@rtl.cygnus.com)
8184         Get executable test cases running again...
8185         * c-typeck.c (build_function_call): Bypass default
8186           parameter promotions, format param syntax check for
8187           CHILL; they've already been converted in
8188           build_chill_function_call.
8189         * ch-actions.c (chill_expand-return): Correct tests
8190           for function which returns no value.
8191         * ch-convert.c (base_type_size_in_bytes): Check for
8192           NULL type parameter, just return.
8193           (convert): Allow conversion of CHAR to varying array
8194           of CHAR.
8195           Change error msg to "conversion" from "assignment".
8196           Remove default from case, which short-circuited before
8197           REFERENCE_TYPEs got converted.  Deleted second copy
8198           of REFERENCE_TYPE code.
8199         * ch-lang.c (build_chill_range_type): Simply exit if
8200           NULL input parameter.
8201         * ch-loop.c: Fix comment.
8203 Sun Jul 11 11:27:08 1993  Bill Cox  (bill@cygnus.com)
8205         * ch-actions.c (chill_expand_result, chill_expand_return):
8206           Move here from ch-typeck.c.  Add a temporary to remember the
8207           result value in.  Change return handler to fetch that 
8208           temporary value, if there is one.
8209         * ch-parse.y (pdef): Call chill_expand_return to fetch
8210           the temp's value.
8211         * ch-tree.h, ch-typeck.c: Move return, result functions to
8212           ch-actions.c.  And their prototypes.
8214 Fri Jul  9 15:47:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8216         * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
8217           ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
8218           ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
8219           ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
8221 Fri Jul  9 09:41:05 1993  Bill Cox  (bill@rtl.cygnus.com)
8223         * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
8224           (print_integer): Delete old non-working INSTANCE code.
8225         * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
8226         * ch-parse.y (rccase_label): Move all actions inside if.
8227           Use BUFFERNAME to recognize receice case buffer clause,
8228           eliminate one shift-reduce conflict.
8229         * ch-tasking.c (build_buffer_descriptor): Check for
8230           CH_DECL_BUFFER flag, remove unused code.
8232 Thu Jul  8 11:17:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8234         Declaring and sending buffers..  first draft
8235         * ch-actions.c (lang_init): Define the send_buffer runtime
8236           function.
8237         * ch-decl.c (do_decls): Standardize loop, so stepping
8238           isn't hidden.
8239         * ch-lex.l: Clean up prototypes for readability.
8240         * ch-parse.y (sendaction): Add send buffer action.
8241           (locdec): Add rule for buffer declaration.
8242         * ch-tasking.c (generate_tasking_code): standardize indentation.
8243           (make_signal_struct): Readability changes.
8244           (build_chill_send_buffer, build_buffer_decl, 
8245            build_buffer_descriptor): New functions.
8246         * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
8247           buffer's maximum queue length in buffer decl.
8248           (CH_DECL_BUFFER): Add flag in decl.  Clean up for
8249           readability.  Add prototypes.
8250         * ch-typeck.c (build_chill_cast): Call convert rather
8251           than storing directly into TREE_TYPE field.
8253 Tue Jul  6 12:34:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8255         * ch-actions.c (lang_init): Set warn_switch so case labels
8256           get checked.  Move build_chill_case_expr to ch-expr.c.
8257         * ch-expr.c (chill_expand_case_expr): Enable checking
8258           of expression case labels.
8259         * ch-grant.c: Move a comment.
8261 Mon Jul  5 10:02:27 1993  Wilfried Moser  (fs_moser at rcsw1j)
8263         * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
8264         * ch-except.c (initialize_exceptions): Change the layout of the
8265           structure __ch_handler. The entry __jbuf is moved to the end 
8266           of the structure and its size was changed to _JBLEN+10.
8267         * ch-decl.c (push_chill_extern_process): Add processing of
8268           processes with no arguments.
8269         * ch-grant.c (decode_decl, do_seize): Add processing of
8270           processes with no arguments.
8271         * ch-tasking.c (build_process_header, build_chill_start_process):
8272           Add processing of processes with no arguments.
8273           (make_process_struct): Add processing of IN attribute for
8274           process arguments.
8275           (tasking_setup): Add NUL-character to name of a tasking
8276           element. The name must be NUL terminated.
8277           (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
8278           to 0 with a warning if -Wall specified on command-line.
8279         
8280 Fri Jul  2 16:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
8282         * ch-parse.y: Change 'empty' comments to new non-terminal
8283           so that exyacc doesn't discard them.
8284         * ch-lang.c (build_chill_range_type): New error messages.
8286 Fri Jul  2 12:43:25 1993  Bill Cox  (bill@rtl.cygnus.com)
8288         * ch-parse.y (action): Catch and report actions which 
8289           shouldn't have exception clauses, but do.  Unfortunately,
8290           catching more than one of these per compilation will 
8291           have to await the general addition of syntax error
8292           recovery to the parser.
8294 Fri Jul  2 10:45:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8296         * ch-parse.y (locdec): Issue error for initialization 
8297           of bitstring with tuple, not for powerset init with
8298           tuple.
8300 Thu Jul  1 15:29:26 1993  Bill Cox  (bill@rtl.cygnus.com)
8302         * ch-lang.c (build_chill_array_type): Check for indices
8303           that didn't fold into constants, issue error (PR 2924b).
8304         * ch-parse.y: Add novelty counter, alphabeticalize.
8305         * ch-tree.h: Define CH_NOVELTY for novelty checks later.
8307 Thu Jul  1 14:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8309         For Wilfried Moser.
8310         * chill.in: Add -ansi switch at compiler call to avoid
8311           translation of i.e. sun to 1 by cpp.
8313 Wed Jun 30 22:21:33 1993  Bill Cox  (bill@rtl.cygnus.com)
8315         * ch-grant.c (raw_decode_mode): Add code for
8316           integer and enumeral ranges.  Standardize indentation.
8318 Wed Jun 30 14:02:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8320         * ch-grant.c (print_an_int): New function to print a
8321           decimal integer string or the CONST_DECL (SYN) which
8322           best matches it.
8323           (print_integer): Call the above function.  Replace
8324           calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
8325           comparisons, as suggested by Jim Wilson.
8326           (decode_decl): Set current_grant_modename sooner,
8327           be sure to clear it when done.
8329 Wed Jun 30 10:10:57 1993  Bill Cox  (bill@rtl.cygnus.com)
8331         * ch-actions.c (build_max_min): Change interface to accept
8332           just a max/min flag.  Get min/max values from an
8333           enumeral constructor.
8334           (build_chill_max, build_chill_min): Change calls to
8335           build_max_min.
8336         * ch-lang.c (deep_const_expr): Check for NULL_TREE
8337           arguments, don't seg fault.
8339 Wed Jun 30 09:20:09 1993  Bill Cox  (bill@rtl.cygnus.com)
8341         * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
8342           to switch cases, preventing abort.
8344 Tue Jun 29 19:04:37 1993  Bill Cox  (bill@rtl.cygnus.com)
8346         * ch-expr.c: Update comment.
8347         * ch-parse.y (range_or_mode): New non-terminal used in
8348           lexpr to implement mode as case label.
8350 Tue Jun 29 13:13:46 1993  Bill Cox  (bill@rtl.cygnus.com)
8352         * ch-actions.c (build_chill_case_expr): Pass in the
8353           optional ELSE clause, error for multiple case-selector
8354           expressions, error for missing ELSE clause.
8355         * ch-expr.c (chill_expand_assignment): Error if multiple
8356           location assignment and locations not novelty 
8357           equivalent.
8358         * ch-parse.y (caseaction): Add range_list_clause non-
8359           terminal, sorry message for it.
8360           (assignaction): error if operator used on multiple
8361           assignment.
8362           (case_expr): Pass optional ELSE tree to 
8363           build_chill_case_expr for checking.
8364         * ch-tree.h (build_chill_case_expr): Change proto.
8366 Fri Jun 25 17:22:41 1993  Bill Cox  (bill@rtl.cygnus.com)
8368         * ch-actions.c (chill_comptypes, build_chill_binary_op):
8369           Allow PROC mode variables.
8370         * ch-convert.c (convert): Turn a NULL literal into a zero
8371           valued pointer-to-function, given such a type.  Also
8372           build the ADDR_EXPR of a function variable.
8373         * ch-grant.c: Pervasive -Wall -pedantic cleanup.
8374           (print_enumeral, print_integer, print_struct) Moved these
8375           large functions out of the switch in raw_decode_mode for
8376           readability, and to encourage future code-sharing.
8377           (print_proc_tail, print_proc_exceptions): Moved these out
8378           of decode_decl, to share them.  They're used also to
8379           output PROC modes.
8380         * ch-parse.y (mode2): Enable PROC modes.
8381           (procmode): Represent PROC mode as a ptr-to-function type.
8382           (call): Recognize ptr-to-function as indirect call.
8383           Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
8385 Thu Jun 24 15:59:20 1993  Bill Cox  (bill@rtl.cygnus.com)
8387         * ch-grant.c: (raw_decode_mode): Add support for unnamed
8388           and user-numbered enumeration members.
8390 Thu Jun 24 13:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8392         * ch-actions.c (build_chill_array_expr, build_chill_length):
8393           Explicitly convert a varying array's length field to an
8394           integer_type_node, now that it's only a chill_integer_
8395           type_node.
8396         * ch-expr.c (chill_expand_expr, 
8397                      expand_assignment_to_varying_array, 
8398                      chill_expand_array_assignment,
8399                      expand_varying_length_assignment): Explicitly 
8400           convert a varying array's length field to an integer_type_node,
8401           now that it's only a chill_integer_type_node.
8402         * ch-loop.c (init_loop_counter, top_of_loop_test): Change
8403           to handle varying array location iterations.
8404         * ch-parse.y (mode2): Count number of named SET members,
8405           as opposed to '*' members.  Issue error if there were none.
8406           (setelement): Count named set members.  Generate a unique
8407           identifier for the '*' element.
8408         * ch-typeck.c (validate_varying_array_ref):  Explicitly 
8409           convert a varying array's length field to an integer_type_node,
8410           now that it's only a chill_integer_type_node.
8412 Wed Jun 23 19:18:28 1993  Bill Cox  (bill@rtl.cygnus.com)
8414         * ch-lang.c (finish_chill_enum): Change test for too-
8415           large enumerations.
8416         * ch-parse.y (setelement, optsetvalue): Allow numbered,
8417           unnamed set elements.
8419 Wed Jun 23 16:25:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8421         * c-typeck.c (process_init_constructor): Suppress
8422           errors about un-initialized array elements if the
8423           array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
8424         * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
8425           enumerations *can* be only a byte in size.
8426           (adjust_parm_or_field): Convert untyped parameter before
8427           looking at its type to process it.
8428         * ch-convert.c (convert): Generate [ -1, -1 ] value for
8429           an INSTANCE type.
8430         * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
8431           type, so that output_constant doesn't seg fault.
8432         * ch-except.c (start_handler_array): Use unique identifier for
8433           exception array, so we can have > 1 array per reach.
8434         * ch-lang.c (finish_chill_enum): Error if number of
8435           enumeration values exceeds 256.
8436         * ch-parse.y (check_end_label): Error, not warning if start
8437           and end labels don't match.
8438           (assignaction): Convert RHS.  Allows untyped tuples to be
8439           passed to stabilize_reference.
8440           (exceptlist, onexceptprefix): Error if non-unique exception
8441           name is coded.
8442         * ch-tree.c: Added form feeds, comment reformatted.
8443         * ch-typeck.c (chill_expand_tuple): Compare tree value to
8444           NULL_TREE, not zero.  Add a constructor element for a
8445           VARYING array's length to the constructor list.
8446           (build_varying_struct): Mark the type as VARYING for
8447           process_init_constructor.
8448         * toplev.c (lang_options): Add '-lang-chill' and
8449           '-fchill-grant-only' options to table.
8451 Tue Jun 22 13:13:41 1993  Bill Cox  (bill@rtl.cygnus.com)
8453         * ch-actions.c (build_chill_function_call): Add check
8454           to prevent calling a PROCESS like a PROCEDURE.
8455         * ch-parse.y (rcalternative): Add check for an 
8456           receive case alternative after a RECEIVE CASE
8457           statement.
8458         * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
8459         * ch-lang.c (lang_finish): Remove resetting errorcount
8460           and sorrycount for granting.
8462 Mon Jun 21 17:56:48 1993  Bill Cox  (bill@rtl.cygnus.com)
8464         Receiving signals works.
8465         * ch-actions.c (lang_init): Add else_clause flag to
8466           __wait_signal parameter list.
8467         * ch-lex.l: Add SIGNALNAME token, return when appropriate.
8468         * ch-parse.y (SIGNALNAME): New token.  Delete 
8469           empty_untyped_exprlist token, no longer used.  Add 
8470           name_or_signal non-terminal.  Standardize a few NULL
8471           tests.  Add real RECEIVE CASE semantics.  Add checks that
8472           SIGNALS, BUFFERs are only declared at global scope.
8473           (call): Add signal declarations with/without data fields.
8474         * ch-tasking.c (get_tasking_code_name, get_tasking_code,
8475           build_chill_receive_case_start, build_chill_receive_case_end,
8476           build_chill_receive_case_label): New functions.
8477           Replace build (CONSTRUCTOR, ... calls with build_nt 
8478           (CONSTRUCTOR, calls.
8479         * ch-tree.h: New prototypes.
8481 Thu Jun 17 18:36:38 1993  Bill Cox  (bill@rtl.cygnus.com)
8483         SIGNAL declaration compilation, seizing & granting,
8484           SENDing also.
8485         * ch-actions.c (lang_init): Move instance_type_node 
8486           build to ch-tasking.c.  Call build_tasking_message_type.
8487           Build a type for send_signal.  Put builtin_function
8488           calls into alpha order.
8489           (adjust_proc_param): Rename to adjust_parm_or_field,
8490           add is_signal flag, so signal fields can use it.  Rename
8491           calls to it, add flag to calls.
8492         * ch-decl.c (push_chill_extern_signal): Add function.
8493         * ch-grant.c (decode_decl): Correct signal decl output.
8494           (do_seize): Correct check for process seizure.  Add
8495           code for seized signal decl.
8496         * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
8497         * ch-loop.c (get_unique_identifier): Standardize loop
8498           temporary's name to assure that it's not granted.
8499         * ch-parse.y (SIG_NAME): Delete unused token.
8500           (spec_declist): Delete silly printf.
8501           (quasi_signaldef): Add non-terminal.
8502           (sendaction, optsendwith, optsendto, optpriority):
8503           Implement actual working semantics.
8504           (call, empty_untyped_exprlist): Allow empty signal 
8505           fields between parens.
8506         * ch-tasking.c: Rename adjust_proc_param calls, add
8507           is_signal flag to calls.  Make instance_type_node a
8508           type, not a TYPE_DECL, change references.  Fix all
8509           CONSTRUCTOR builds.  Add make_signal_struct function.
8510           Move build_instance_type here from lang_init.
8511           (build_tasking_message-type, build_signal_descriptor,
8512           build_chill_send_signal): New functions.
8513         * ch-tree.h: Add, update protos.
8514         * ch-typeck.c (build_chill_cast): Check for NULL expression
8515           type as well as error_mark.
8517 Thu Jun 17 12:28:03 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
8519         * Makefile.in (STAGESTUFF): Add chill to list.
8521 Wed Jun 16 07:12:53 1993  Bill Cox  (bill@rtl.cygnus.com)
8523         * Makefile.in: Complete the renaming of ch-process.c
8524           to ch-tasking.c.
8525         * ch-decl.c (push_chill_extern_function): Drop is_process
8526           parameter, and marking process decl trees.
8527           (push_chill_extern_process): New function for
8528           SEIZEd processes.  Lotsa form feeds added for print
8529           readability.
8530         * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
8531           (do_seize): New parameter seize_all.  Handle sseizing
8532           processes.
8533           (chill_seize): Pass seize_all parameter.
8534           (chill_grant): Check for __tmp_ prefix, to disable
8535           *either* seizing or granting.
8536         * ch-parse.y (quasi_pdef): Delete is_process parameter for
8537           push_chill_extern_functon, call push_chill_extern_process
8538           for processes.
8539           (specialinit): Comment these rules as needed only until
8540           2-pass compiler is operational.
8541           (extprocedure): Delete is_process parameter.
8542           (simpledec): Delete `sorry' about SIGNAL decls.
8543           (optsigdest): Correct check for process name.
8544         * ch-tasking.c (build_signal_decl): Finish coding.
8545         * ch-tree.h: Add macro to save a SIGNAL's destination
8546           process name in an id node.  Add/change prototype.
8548 Mon Jun 14 18:17:13 1993  Bill Cox  (bill@rtl.cygnus.com)
8550         * ch-actions.c (lang_init): Build instance_type_node.
8551           Change `this' to a runtime function call.
8552         * ch-grant.c (do_seize): Generate tasking-code
8553           variable for seized process.
8554         * ch-lex.l (equal_number): Also accept synonym
8555           name for numeric value.
8556         * ch-parse.y (primval): Add process-related
8557           function calls.  
8558           (signaldef, etc.): Rough draft of SIGNAL definition
8559           processing. 
8560           (stopaction): Call runtime function.
8561           (pdef): Pop symbol level if ending a process
8562           and there were parameters.
8563           (primval): Call `whoami' runtime function for THIS.
8564         * ch-tasking.c (build_process_header): Be sure
8565           to define the tasking enum, if it hasn't already
8566           been done.  Only call shadow_record_fields if there
8567           are parameters.  
8568           (build_tasking_enum): Only call start_enum *after*
8569           checking the already_built flag.
8570           (build_copy_number, get_tasking_code,
8571           build_gen_code, build_gen_inst, build_get_ptype,
8572           build_proc_type): New functions for process-related
8573           builtins.
8574           (build_signal_decl): New function for SIGNAL
8575           declaration - rough draft.
8576         * ch-tree.def (INSTANCE_TYPE): new tree code.
8577         * ch-tree.h: New prototypes.  Defines for instance
8578           type field access.
8580 Sat Jun 12 21:15:02 1993  Bill Cox  (bill@rtl.cygnus.com)
8582         Get start-process action working:
8583         * ch-actions.c (adjust_proc_param): new function,
8584           extracted from build_chill_function_call and called
8585           from there.
8586         * ch-tree.h, ch-grant.c (do_seize): Add process_type 
8587           parameter to add_taskstuff_to_list call, prototype.
8588         * ch-parse.y (start_parlist): New non-terminal for
8589           START action.
8590           (startaction): Reference start_parlist, check for
8591           integer-valued process copy-number.
8592           (optstartset): Check instance parameter - must be
8593           an INSTANCE_TYPE location.
8594         * ch-tasking.c (generate_tasking_code_variable): New
8595           function, extracted from tasking_setup and called 
8596           from there.  Also called from build_process_header.
8597           (build_process_header): Add process_type parameter
8598           to add_taskstuff_to_list call.  Remove incrementing
8599           of process_type (moved into generate_tasking_code
8600           _variable).
8601           (build_chill_start_process): Complete rewrite.
8602           (add_tasking_stuff_to_list): Add stuffnumber parameter
8603           putit on the list.          
8605 Sat Jun 12 06:08:09 1993  Bill Cox  (bill@rtl.cygnus.com)
8607         Getting processes compiled, initialized and granted:
8608         * .cvsignore: Add chill file.
8609         * c-decl.c (shadow_record_fields): Allow PARM_DECL
8610           as well as VAR_DECL.
8611         * ch-actions.c (lang_init): Move build of
8612           initializer_type into ch-tasking.c.  Change
8613           definition of THIS to function call.
8614         * ch-decl.c (massage_param_node): Add comments.
8615           (start_chill_function): Set nested flag in
8616           start_function call based upon current_function_decl,
8617           not as constant zero.
8618         * ch-grant.c (decode_decl): lotsa code by Wilfried to
8619           GRANT process decls.  
8620           (finish_chill_module): Completely rewrote interface
8621           to runtime.
8622         * ch-lex.l (THIS): Just return the token code.
8623         * ch-parse: Add THIS token.
8624           (processpar, processparlist): New rules, to collect
8625           process parameters. 
8626           (pdef): Add code to pop the process' WITH scope.
8627           (procedure): Set process WITH scope flag to zero.
8628           (process): Move most code into build_process_header.
8629           (primval): Output function call for THIS.
8630         * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
8631           make_process_struct, build_process_header): New code 
8632           to handle process translation and interface to runtime.
8633         * ch-tree.h: New prototypes.
8635 Thu Jun 10 13:32:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8637         * Makefile.in: Change ch-process.c to ch-tasking.c.
8638           A delayed part of the last change..
8640 Thu Jun 10 11:14:59 1993  Bill Cox  (bill@rtl.cygnus.com)
8642         * .cvsignore: Add 'chill' file.
8643         * ch-actions.c (lang_init): Add new runtime function
8644           __register_process.
8645         * ch-decl.c (push_chill_extern_function): Add is_process
8646           input flag, use it.
8647         * ch-grant.c (decode_decl): Recognize a process for
8648           granting.
8649           (do_seize): Put seized processes onto the tasking_list.
8650           (chill_finish_module_code): Declare init_list entry,
8651           link it onto the init_list.  Call tasking_setup and
8652           tasking_registry.
8653         * ch-lex.l: Make tasking-related variables global,
8654           delete their initialized flags.
8655         * ch-parse.y: Add is_process flag to push_chill_extern_function
8656           calls.  Put processes onto the tasking_list.
8657         * ch-process.c: Renamed to ch-tasking.c.
8658         * ch-tasking.h: New file.
8659         * ch-tree.h: New, adjusted prototypes.
8661 Wed Jun  9 10:59:27 1993  Wilfried Moser  (moser@deneb.cygnus.com)
8663         * chill: This file is replaced by chill.in and will be
8664           generated during 'make' and 'make install'. This script
8665           now finds the correct chillrt0.o and libchill.a during
8666           linking.
8667         * chill.in: New file that replaced chill.
8668         * Makefile.in: Add rules to make chill out of chill.in.
8670 Wed Jun  9 09:03:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8672         * .cvsignore: Add gfloat.h and xlimits.h.
8673         * ch-actions.c (lang_init): Create new type for module-
8674           level initializer list entry.
8675         * ch-grant.c (chill_start_module_code): Rename actual
8676           module-level code to just the modulename, which is
8677           *not* public.
8678           (chill_finish_module_code): Allocate space for initializer
8679           list entry, build real initializer function, which puts
8680           the list entry on the runtime list.  Name the init function
8681           as the module's constructor function.
8682         * ch-tree.h (build_init_struct): Add prototype.
8683         * ch-typeck.c (build_init_struct): Add function, called
8684           from lang_init.
8685         Note: these changes require a new devo/chillrt/chillrt0.c.
8687 Thu Jun  3 17:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8689         * c-decl.c: Fix comment.
8690         * ch-actions.c, ch-grant.c: Standardize front end:
8691           #define first, etc.  Add comments.
8692           (lang_init): Delete unused flag, code for inapplicable
8693           gen-decls option.  (lang_decode_option): Delete
8694           gen-decls option, add grant-only option, flag.
8695         * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
8696           ch-typeck.c: Add form feed after front end.
8697         * ch-expr.c: Standardize testing for error_mark node.
8698         * ch-lang.c: Remove unused deep_fold function.
8700 Fri May 21 11:04:22 1993  Bill Cox  (bill@rtl.cygnus.com)
8702         * c-typeck.c (build_binary_op, build_unary_op):
8703           Recognize BOOLEAN_TYPE.
8704         * ch-actions.c (build_chill_unary_op): Remove
8705           some crufty work-arounds.
8707 Thu May 20 19:03:48 1993  Per Bothner  (bothner@deneb.cygnus.com)
8709         * ch-grant.c (decode_constant):  If the granted value is a
8710         cast, make sure to emit an appropriate expression conversion.
8712 Thu May 20 16:35:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8714         * ch-lang.c (build_chill_range_type): Initialize the
8715           precision variable.  Double-negative ranges work now.
8717 Thu May 20 11:24:42 1993  Bill Cox  (bill@rtl.cygnus.com)
8719         * ch-actions.c (build_unary_op): Compound a wretched
8720           hack which hides a BOOLEAN_TYPE from the underlying
8721           C code.
8723 Wed May 19 16:45:54 1993  Bill Cox  (bill@rtl.cygnus.com)
8725         * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
8726           from chill_comptypes. (build_chill_unary_op): Give
8727           better name to unsigned flag.
8728         * ch-expr.c (chill_expand_assignment): Correct calling
8729           sequence for setpowersetbits runtime routine.
8730         * ch-grant.c (raw_decode_mode): Give better name to 
8731           unsigned flag.  (decode_constant): Check for null
8732           'val' ptr, avoid seg fault.
8733         * ch-lex.l (convert_number):  Give better name to 
8734           unsigned flag. (convert_bitstring): Move increment
8735           of bl counter to emphasize that it increments once
8736           per loop.
8737         * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
8738         * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
8739           constructor if given a singleton set constructor.
8741 Thu May 13 17:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8743         * c-decl.c (pushdecl): Complete May 9 change.
8744         * ch-actions.c (build_chill_unary_op): Set the
8745           TREE_UNSIGNED flag FALSE for raw_decode_mode.
8746         * ch-grant.c (grant_array_type): Correct the May 12
8747           check for circularity.
8748           (raw_decode_mode): Use TREE_UNSIGNED flag to
8749           control range's printing.
8750           (chill_grant): Remove useless, bogus code.
8751         * ch-lex.l (convert_number): Set the TREE_UNSIGNED
8752           flag TRUE for raw_decode_mode.
8754 Wed May 12 18:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8756         * ch-decl.c (push_syndecls, push_modedef): Comment
8757           reminders to check for circular definitions.  Later!
8758         * ch-grant.c (grant_array_type, decode_decl): Prevent
8759           circular definitions in the use of the array's 
8760           type name.
8762 Wed May 12 16:06:13 1993  Bill Cox  (bill@rtl.cygnus.com)
8764         * ch-grant.c (grant_array_type): If array_type has
8765           a name, just use it.
8766         * ch-lang.c (build_chill_range_type): Don't force
8767           unsigned ranges on output.
8768         * expr.c (store_constructor): Preclude seg fault.
8770 Wed May 12 07:49:00 1993  Bill Cox  (bill@rtl.cygnus.com)
8772         * ch-actions.c (fold_set_*): Correct tests for 
8773           range set-constructor list entries.
8774           (lang_init): Define setpowersetbits function.
8775         * expr.c (store_constructor): Handle non-constant
8776           set constructors.
8778 Tue May 11 18:25:40 1993  Per Bothner  (bothner@cygnus.com)
8780         * ch-lang.c (build_chill_range_type):  If the parent type
8781         is unknown, and the endpoints of the range are integer
8782         constants, use the smallest suitable integer type.
8783         * ch-lang.c (build_chill_range_type):  Remove kludge
8784         for dealing with char ranges.
8786 Tue May 11 15:24:31 1993  Bill Cox  (bill@rtl.cygnus.com)
8788         * ch-actions.c (build_chill_repetition_op): Build a
8789           range-type set constructor if there's only one value
8790           in the repeated constructor.
8791           (fold_set_*): Abort if range value seen, for now.
8792         * expr.c (store_constructor): Handle range-type by
8793           storing bytes rather than bits as much as possible.
8795 Mon May 10 18:45:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8797         * ch-actions.c (invalid{left right}_operand): Add
8798           handlers for REPLICATE_EXPR.
8799           (build_chill_repetition_op): Build constructor list
8800           for repetition of bitstring.
8801         * ch-parse.y (call): Recognize more trees as arrays,
8802           to avoid error msg.
8803           (operand5): Add count, string temporaries, use them.
8805 Mon May 10 16:49:08 1993  Per Bothner  (bothner@cygnus.com)
8807         * ch-grant.c (seize_implied_names):  Fix code that assumed
8808         a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
8809         * ch-grant.c (generate_set, grant_parent_of_enum,
8810         grant_parent_enum): Removed unused functions.
8811         * ch-grant.c (raw_decode_mode):  Remove commented-out code.
8813 Mon May 10 10:54:57 1993  Bill Cox  (bill@rtl.cygnus.com)
8815         * ch-grant.c (do_seize, seize_implied_types): Move
8816           result and parameter processing to proper place.
8817           (chill_seize): Mark unseized identifier with
8818           error_mark_node, to avoid excessive errors.
8819         * ch-parse.y (call): Check for ERROR_MARK before 
8820           reporting an error.
8822 Sun May  9 17:21:24 1993  Bill Cox  (bill@rtl.cygnus.com)
8824         * c-decl.c (pushdecl): If a strongly-visible name is
8825           seen, in conflict with a weakly-visible name, take
8826           the strongly-visible one and don't complain.
8827         * ch-actions.c (chill_comptypes): Allow chain of ref-
8828           erence types > 1 in length.
8829         * ch-grant.c: Turn disguised for-loops into actual
8830           ones, so continue works.  Delete redundant code in
8831           seize_implied_names.  Reindent.
8832         * expmed.c (store_split_bit_field): Disable abort for
8833           CHILL.
8835 Sun May  9 17:11:33 1993  Per Bothner  (bothner@cygnus.com)
8837         * ch-convert.c (convert):  Move handling of SET_TYPE until
8838         after we've handled de-referencing and such like.
8839         * ch-grant.c (grant_array_type):  Simplify; remove (now-)
8840         bogus call to generate_set.
8841         * ch-grant.c (get_type):  Remove obsolete stuff.
8843 Fri May  7 10:30:34 1993  Bill Cox  (bill@rtl.cygnus.com)
8845         * ch-actions.c (lang_init): Add definition of psslice
8846           runtime routine. (build_chill_binary_op_1,
8847           build_chill_binary_op): Have result type of
8848           TRUTH_ANDIF_EXPR be boolean, not integer.  Some
8849           reindenting.
8850         * ch-convert.c (convert): Use consistent notation
8851           for expression.
8852         * ch-parse.y: Add front-end pass count. (locdec):
8853           Add syntax for other BASED declaration.
8854         * ch-tree.c: Fix comment.
8855         * ch-typeck.c (build_chill_slice): Implement a runtime
8856           call for bitstring slices. (build_chill_cast):
8857           Add code for BITS_BIG_ENDIAN bit loop.
8858           (chill_expand_tuple): Don't pass ref type to
8859           digest_init, only underlying type.
8861 Thu May  6 12:52:14 1993  Per Bothner  (bothner@cygnus.com)
8863         * ch-typeck.c (build_chill_cast):  type_for_size takes
8864         a size in bits, not bytes.
8866 Wed May  5 19:02:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8868         * ch-actions.c: Break out separate routines for set
8869           folding, handle ranges in set_fold_eq and set_fold_ne.
8870           Fix folding as req'd by TTC test.
8871         * ch-grant.c (raw_decode_more): Check for content match
8872           to decide output mode, not pointer identity.
8873         * ch-typeck.c: Add cross-reference comment.
8874         * varasm.c (emit_set_data): Clarify parameter name.
8875           Handle INTEGER_CST as set constructor.
8876           (output_constant): Handle CONSTRUCTOR node for sets.
8877           Apparently forgot to actually 'checkin' this one last
8878           time.
8880 Wed May  5 12:23:58 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
8882         * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
8884 Tue May  4 15:47:44 1993  Bill Cox  (bill@rtl.cygnus.com)
8886         * ch-actions.c (fold_set_expr): new function to fold
8887           set expressions.  Calls inserted into 
8888           build_chill_binary_op and build_chill_unary_op.
8889           (build_chill_repetition_op): New function, called
8890           from build_chill_function_call.
8891         * ch-expr.c (chill_expand_assignment): Call 
8892           build_chill_repetition_op.
8893         * ch-grant.c (decode_constant): Comment out deep_fold
8894           call.  The earlier fold_set_expr calls should make
8895           this one unnecessary.  Prevent seg fault when name
8896           of structure field is NULL.  Standardize for loop.
8897         * ch-parse.y: Fix comments.
8898           (operand5): build a REPLICATE_EXPR.  Don't call
8899           build_repetition_op until we have a type.
8900         * ch-tree.def (REPLICATE_EXPR): Define tree-code.
8901         * ch-tree.h (build_chill_repetiton_op): Fix proto.
8902         * ch-typeck.c (chill_expand_result): Call 
8903           build_chill_repetition_op if needed.
8904         * varasm.c (emit_set_data): Clarify parameter name.
8905           Handle INTEGER_CST as set constructor.
8906           (output_constant): Handle CONSTRUCTOR node for sets.
8908 Mon May  3 13:06:47 1993  Per Bothner  (bothner@cygnus.com)
8910         * ch-typeck.c (build_chill_cast):  Allow more liberality to
8911         casting:  Any discrete type to any non-discrete type that is the
8912         same size as some other discrete type (and vice versa).
8913         * stor-layout.c (layout_type, case SET_TYPE):  If the number
8914         of bits will fit in a char or short, only use that many bits.
8916 Mon May  3 08:22:45 1993  Bill Cox  (bill@rtl.cygnus.com)
8918         * ch-grant.c (decode_constant): Revert interpretation
8919           of SET_TYPE as integer.
8921 Mon May  3 07:55:46 1993  Bill Cox  (bill@rtl.cygnus.com)
8923         * chparse.y (casealternative): Allow empty action list.
8925 Sat May  1 15:07:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8927         * expr.c (expand_expr): Add parameter to __inpowerset
8928           runtime call, to match new runtime.
8930 Sat May  1 14:55:58 1993  Bill Cox  (bill@rtl.cygnus.com)
8932         * ch-actions.c: Cleanup from -Wall.  Reindent.
8933           Redefine __inpowerset to take a 'minval' parameter
8934           that matches the new runtime.  Added comments.
8935         * ch-expr.c (chill_handle_case_label): Handle
8936           NULL or ERROR trees.
8937         * ch-grant.c (get_type): Survive bogus type params,
8938           return empty string.
8939         * ch-tree.c (build_powerset_type): Diagnose powerset
8940           of non-discrete type.
8941         * ch-typeck.c (discrete_type_p): Reindent.
8943 Fri Apr 30 16:08:54 1993  Bill Cox  (bill@rtl.cygnus.com)
8945         * ch-grant.c (decode_constant): Interpret SET_TYPE
8946           with integer value, so we output the same stuff as
8947           the user gave us.
8948         * ch-parse.y: Fix indentation.
8950 Fri Apr 30 09:34:03 1993  Bill Cox  (bill@rtl.cygnus.com)
8952         * ch-actions.c (chill_comptypes): Simplify, correct
8953           integer subrange analysis.
8954         * ch-grant.c (seize_implied_names): Add handling for
8955           PROCESS_DECL, PROCESS_TYPE.
8956           (do_seize): Call seize_implied_names for process,
8957           procedure parameters and return value.
8958         * ch-lang.c (finish_chill_enum): Canonicalize enum
8959           types.
8960         * ch-tree.def (PROCESS_TYPE): Add.
8961         * ch-typeck.c (valid_array_index): Call chill_comptypes
8962           rather than broken macro CH_COMPATIBLE.  The logic
8963           in chill_comptypes will get moved to the macro later.
8965 Thu Apr 29 13:07:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8967         * ch-actions.c (build_chill_lower, build_chill_upper):
8968           Handle enumeration types.
8969           (build_chill_binary_op): Call chill_comptypes
8970           to error check IN arguments.  Change error
8971           messages to say 'mode' rather than 'type'.  Cast
8972           tree codes when build is called.
8973         * ch-expr.c (chill_expand_array_assignment): Call
8974           chill_comptypes to validate assignment args.
8975         * ch-lex.l: Add newline for readability.
8977 Wed Apr 28 15:22:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8979         * Makefile.in (ch-hash.h): Add rule to build this
8980           from chill.gperf.  Not yet used.
8981         * ch-actions.c (build_chill_binary_op): Allow enum
8982           subranges on RHS of IN operator.
8983         * ch-grant.c (decode_constant): Recognize 
8984           error_mark_node as empty powerset initializer,
8985           re-indent a bit.
8986         * ch-lang.c (deep_fold): Return error_mark_node for
8987           NULL input pointer or incoming error_mark_node.
8988         * ch-lex.l: Ignore PACK and UNPACK keywords. Return
8989           POS, ROW, and STEP as user-defined names.
8990           (name_or_type): New function for above.
8991         * ch-parse.y: Move token defs for following, comment
8992           them separately: NOPACK, PACK, POS, ROW, STEP
8993         * varasm.c (output_constant): Check for VAR_DECLs in 
8994           records & unions, like arrays.  Don't abort.
8996 Tue Apr 27 17:42:29 1993  Bill Cox  (bill@rtl.cygnus.com)
8998         * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
8999           rewrite for generality.
9000         * ch-decl.c (grok_chill_variantdefs): Use chill
9001           comptypes, so that subrange compatibility is ok.
9002           (start_chill_function): Use lookup_name(), not
9003           IDENTIFIER_GLOBAL_VALUE, for full generality.
9004         * ch-expr.c (chill_expand_assignment): Need to
9005           handle non-NOP modify codes here, since C code
9006           in build_modify_expr won't understand powersets, 
9007           etc.
9009 Tue Apr 27 09:05:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9011         * ch-actions.c (build_max_min): Assign the set's
9012           base type to the function's return type.
9013           (build_chill_function_call): Before complaining
9014           about parameter mismatches, convert certain actual
9015           parameters.
9016         * ch-expr.c (chill_expand_assignment): Before 
9017           complaining about LHS/RHS mismatches, convert
9018           certain RHS expressions.
9019         * ch-grant.c (decode_constant): Deep-fold incoming 
9020           expression, so we can output it.
9021         * ch-lang.c (deep_const_expr): New function, called
9022           from const_expr, actually traverses the tree 
9023           looking at its leaves for 'const'ness.
9024           (deep_fold): New function to fold already-built 
9025           trees.
9026         * ch-parse.y (case_expr): Add whitespace.
9027         * ch-tree.h: Add prototype for deep_fold.
9029 Tue Apr 27 07:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
9031         * ch-actions.c (chill_comptypes): Allow enumeration
9032           subranges as compatible with the parent enum.
9033           (build_chill_function_call): Before checking type
9034           compatibility, use convert on typeless expressions,
9035           like constructors.
9036         * ch-expr.c (chill_expand_assignment): Before 
9037           checking type compatibility, use convert on 
9038           typeless expressions, like constructors.
9039         * ch-lex.l: Add comment.
9041 Thu Apr 22 17:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9043         * .cvsignore: Add genopinit, insn-opinit.c
9044         * c-common.c (binary_op_error): Prevent seg fault on
9045           unknown node code.
9046         * ch-typeck.c (build_chill_array_ref): Remove old
9047           lower-bound-of-array-index-nonzero code.
9048         * expr.c (expand-expr, get_inner_reference): Remove
9049           old lower-bound-of-array-index-nonzero code.
9051 Thu Apr 22 16:01:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9053         * c-decl.c (shadow_record_fields): Add pushlevel for
9054           each PROCESS parameter, too.
9055         * ch-process.c (make_process_struct): First working
9056           version.
9057         * ch-tree.def: Add PROCESS_DECL definition.
9058         * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
9059           for make_process_struct.
9060         * expr.c (expand_expr): Add references to 
9061           PROCESS_DECL.  Add #include of ch-tree.h.
9062         * tree.c (decl_function_context): Add check for a
9063           PROCESS_DECL, and #include for ch-tree.h.
9065 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
9067         * expr.c (expand_expr): Add missing prototypes, and
9068           parameters to expand_expr call.
9070 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
9072         * c-decl.c (shadow_record_fields): Add ability to
9073           handle pointers to records/unions.  For PROCESS
9074           compilation.
9076 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
9078         * ch-expr.c (chill_expand_expr): Add missing
9079           parameters to expand_expr calls.  Some trivial
9080           reformatting for readability.
9082 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
9084         * ch-lex.l: Make send_*_prio externally visible,
9085           default them to zero, eliminate the init flags.
9086           Same for process_type.
9088 Sat Apr 17 10:59:50 1993  Bill Cox  (bill@rtl.cygnus.com)
9090         * ch-actions.c (build_chill_binary_op): Build a
9091           BIT_FIELD_REF tree for IN_EXPR operations.
9092         * ch-typeck.c (build_chill_array_ref): Build a
9093           BIT_FIELD_REF tree for access to packed array of
9094           bits.
9096 Fri Apr 16 12:33:34 1993  Bill Cox  (bill@rtl.cygnus.com)
9098         * ch-parse.y (EXIT action): Improve error checking,
9099           messages.
9100         * ch-typeck.c (chill_expand_tuple): Remove code to
9101           pack sets (moved to varasm.c long ago).
9102         * varasm.c (unpack_set_constructor): Rename size to
9103           bit_size, since 'size' always means bytes.
9104           (pack_set_constructor): Rename size to wd_size,
9105           since 'size' always means bytes.
9106           (output_constant): Set size to zero, so that extra
9107           bytes of padding aren't output after set constants.
9109 Fri Apr 16 11:57:50 1993  Bill Cox  (bill@rtl.cygnus.com)
9111         * .cvsignore: Add .gdbinit.
9112         * ch-decl.c (start_chill_bindings): Add function name
9113           to binding contour's exit_label for EXIT stmt.
9114         * ch-parse.y (EXIT action): Call lookup_name to avoid
9115           inserting label for function name.  Also check
9116           IDENTIFIER_LABEL_VALUE for label's decl.
9117           (caseaction, beginendblock, ifaction): Call
9118           stamp_nesting_label to put action's label into
9119           contour for EXIT to find.
9121 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9123         * expr.c (expand_expr): Unify, clean up handling of
9124           IN_EXPR, and handling of bit-string element ref.
9125           Now, all goes through IN_EXPR handler.
9126         * stmt.c (stamp_nesting_label, expand_exit_labelled):
9127           New functions, which allow either label or 
9128           function decls.
9130 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9132         * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
9133           ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
9134           ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
9135           ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
9136         * ch-actions.c (build_chill_binary_op): Move runtime function call
9137           to expr.c.  Just build a tree here.  Clean up error checking.
9138         * ch-convert.c (convert): Simply store a type into an expression if
9139           TREE_TYPE (expr) == NULL.  Prevent error if an enum is to be
9140           converted to a set of such enums.
9141         * ch-loop.c (init_loop_counter): Restore error msg for undeclared
9142           variable if no local scope is to be created for the loop.
9143         * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
9144           remove redundant code which wasn't ever called.
9146 Wed Apr 14 07:54:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9148         * .cvsignore (y.tab.c) : Add to list.
9149         * ch-convert.c (convert): Check pointers better - avoid NULL reference.
9150           Remove redundant check for ERROR_MARK - already checked earlier.
9151         * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
9152           error_mark_node.
9154 Tue Apr 13 16:00:37 1993  Per Bothner  (bothner@cygnus.com)
9156         * c-decl.c (start_function):  If there is a previous
9157         function declaration of the same name, steal its RTL.
9158         This is a kludge needed for forward declarations of
9159         nested functions.
9160         * ch-decl.c (push_chill_extern_function), ch-tree.h:  New
9161         function, for external and seized function declarations.
9162         Make sure to use permanent obstack.
9163         * ch-parse.y (quasi_pdef, extprocedure):  Use new function.
9165         * ch-grant.c (chill_finish_module_code):  Since module
9166         function is no longer visible,, can't get it using
9167         lookup_name().  Use current_function_decl instead.
9169         * ch-decl.c (build_chill_function_type):  Add void_type_node
9170         to end of parameter types list.
9172         * ch-grant.c (chill_start_module_code):  Make sure module
9173         function isn't visible (and hence isn't granted).
9175 Tue Apr 13 15:48:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9177         * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
9178           current contour for DO FOR EVER loops.
9180 Tue Apr 13 14:37:39 1993  Bill Cox  (bill@rtl.cygnus.com)
9182         * ch-parse.y (actionstatement): Add error rule.  Delete 
9183           POP_UNUSED_ON_CONTEXT.  Add comments about label name usage.
9184           (nohandleraction): Better error check in EXIT processing.
9185           (optexprlist): Comment out make_function_rtl call.
9186           (seizestatement): Change error to warning.
9188 Tue Apr 13 08:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9190         * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
9191           call.
9192         * ch-loop.c (begin_chill_loop): Take loop label as parameter.  Stamp
9193           its name into the current contour's exit_label, for EXIT to use.
9194         * ch-parse.y: (actionlabel): Save label tree in global variable.
9195           (actionstatement): Clear label to NULL when action is finished.
9196           (handlerstatement, nohandlerstatement): Split actions into 
9197           categories which do/don't permit exception handlers.
9198           (exitaction): Move code into nohandleraction, make it work.
9199           (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
9200         * ch-tree.h: Add parameter  to begin_chill_tree prototype.
9201         * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
9202           Note: This implementation of EXIT only exits from loops, not yet 
9203                 from other bracketted statements.
9205 Mon Apr 12 13:41:55 1993  Per Bothner  (bothner@rtl.cygnus.com)
9207         * ch-grant.c (chill_grant):  Remove obsolete code.
9209         * ch-decl.c (push_synmode, push_newmode):  Merged to yield ...
9210         * ch-decl.c (push_modedef):  ... w/ slightly different interface.
9211         * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
9212         (modedefinition):  Use new push_modedef function.
9213         * ch-parse.y (modedefinition):  Don't depend on inherited
9214         attributes (- implemented incorrectly!): Use a global variable
9215         parsing_newmode to distinguish synmode and newmode.
9217 Mon Apr 12 08:10:34 1993  Bill Cox  (bill@rtl.cygnus.com)
9219         * ch-loop.c: Diffuse cleanup after big functional changes.
9220         * ch-parse.y: Eliminate temporary variables, now unnecessary.  Use
9221           parse-time stack instead.
9222         * ch-tree.h: Change build_chill_iterator prototype.
9224 Sun Apr 11 15:50:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9226         * ch-convert.c (convert): Replace an ERROR_MARK type - from a 
9227           untyped_expr with the given type.  Move chill_expand_case_expr
9228           call inside chill_expand_expr.
9229         * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default, 
9230           chill_handle_case_label, chill_expand_case_expr):  Move to ch-expr.c
9231           from ch-typeck.c.
9232         * ch-loop.c: Major reorganization to support multiple iterators in
9233           DO FOR loop, very little new code, just a re-org.
9234         * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
9236 Sat Apr 10 14:40:12 1993  Bill Cox  (bill@rtl.cygnus.com)
9238         * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
9239         * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
9240           member.
9241         * ch-lex.l (equal_number): Add function to look in the input for '='
9242           followed by a decimal literal.  Call it from directive scanning.
9243           (start state 'ccitt'): Deleted, unused.  Moved unused, but reserved,
9244           tokens to NORMAL state.
9245           (compiler_directive): Replaced by equal_number.  Now the only
9246           recursive call to yylex happens in check_newline at the beginning
9247           of a compilation.
9249 Sat Apr 10 09:55:50 1993  Bill Cox  (bill@rtl.cygnus.com)
9251         * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
9252         * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
9253           'reserve' them.
9254         * ch-parse.y (case_expr): Move code into ch-actions.c.  There will
9255           need to be much more written.
9256         * ch-tree.def (VARY_ARRAY_REF): Add comment.
9257         * ch-tree.h (build_chill_case_expr): Add prototype.
9258         * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
9259           type to the expr.  Check for CASE_EXPR, call expand_case_expr.
9261 Sat Apr 10 01:10:51 1993  Per Bothner  (bothner@rtl.cygnus.com)
9263         * ch-parse,y (in_pseudo_module): New variable.  Try if we're
9264         in a seizefile, but not in a module nested in the seizefile.
9265         Use for backwards compatibility with old grantfiles.
9266         * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
9267         If in_pseudo_module, grant new declaration.
9268         * ch-decl.c (pushd_newmode):  If there is a granted previous
9269         incomplete type, fix it up.
9270         * ch-grant.c (seize_implied_names):  Do remaining types.
9271         Guard against recursion.
9272         * ch-tree.h (IDENTIFIER_ENUM_VALUE):  Removed, not used.
9273         * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
9274         (finish_chill_enum):  Enum constants are marked with
9275         CH_DECL_ENUM so they don't get written to the grantfile.
9276         * ch-tree.h (IDENTIFIER_GRANTED_VALUE):  Allow fast seizing.
9277         * ch-lex.l:  Re-write to use start states, to avoid calling
9278         yylex() recursively.
9279         * ch-lex.l (compiler_directive);  This is now obsolste. FIXME.
9280         * ch-lex.l:  Call push_module and pop_module when reading a
9281         seizefile.  This creates a pseudo-module.
9282         * ch-parse.y:  Clean up handling of empty declarations and
9283         action statements; semicolons are now optional a number of
9284         places.
9285         * ch-parse.y:  Remove some bogus tests for "statement
9286         out of sequence" (they're both legal and work).
9287         * varasm.c (mak_function_rtl):  Remove  kludge that may
9288         not be necessary (and loses anyway).
9290 Fri Apr  9 09:37:38 1993  Bill Cox  (bill@rtl.cygnus.com)
9292         * ch-expr.c (chill_expand_array_assignment): Remove false error about
9293           arrays that are too small.    
9294         * ch-parse.y (callaction): Don't pass an error_mark_node to
9295           c_expand_expr_stmt.
9297 Fri Apr  9 00:26:54 1993  Per Bothner  (bothner@rtl.cygnus.com)
9299         * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
9300         New macros.
9301         * ch-actions.c (build_chill_function_call):  Use latter.
9302         * ch-typeck.c (chill_similar):  Fix typo.
9303         * ch-grant.c (raw_decode_mode):  Handle ENCAPSULATED_ARRAY_P
9304         parameter types.
9305         * ch-grant.c (seize_implied_names):  Handle ranges of enums.
9306         * ch-grant.c (do_seize):  Set DECL_SOURCE_FILE and _LINE of
9307         seized declaration to be the point of the seize itself.
9308         * ch-grant.c (chill_grant), ch-tree.h:  Add a parameter
9309         which is the list (in order) of decls in the module.
9310         Don't reverse the getdecls() list; that is handled by caller.
9311         * ch-grant.c (chill_grant):  Test that a declaration is
9312         visible before writing it.
9313         * ch-parse.y (push_module):  Make sure to hide declarations
9314         from surrounding module.
9315         * ch-parse.y (pop_module):  Restore those declarations.
9316         * ch-parse.y (pop_module): This function is now responsible
9317         for writing out for calling chill_grant() to the grant file.
9318         * ch-actions.c (lang_finish):  Remove calls to chill_grant().
9320 Thu Apr  8 16:56:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9322         * ch-actions.c (build_char_array_expr): Add handling of varying
9323           arrays in relational expressions.
9324         * ch-decl.c: Add prototype for lookup_name_current_level.
9325         * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode, 
9326           so its length is used as the temp's size.
9327           (chill_expand_array_assignment): Correct for varying := varying
9328           assignment, clean up.
9329         * ch-typeck.c: Add prototype for require_complete_type.
9331 Wed Apr  7 16:41:29 1993  Bill Cox  (bill@rtl.cygnus.com)
9333         * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
9334           diffuse changes to fix location loops.
9335         * ch-parse.y (location): Remove ref through NULL ptr.
9337 Wed Apr  7 13:42:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
9339         * ch-decl.c (massage_param_node):  New function.
9340         It handles the LOC/IN/OUT/INOUT parameter distinction,
9341         as well as calling build_chill_array_parm_type if needed.
9342         * ch-tree.h (massage_param_node):  New prototype.
9343         * ch-decl.c (push_parms):  Use new massage_param_node().
9344         * ch-parse.y (pmodearg):  Use new massage_param_node().
9345         * ch-parse.y (formpar):  Don't call build_chill_array_parm_type;
9346         now handled by massage_param_node.
9347         * ch-typeck.c (my_build_array_ref):  Handle non-zero array
9348         lower bounds.
9349         * ch-actions.c (build_chill_function_call):  If the formal
9350         parameter is a pseudo record wrapped around an array, make
9351         sure we wrap the actual parameter in a record CONSTRUCTOR.
9352         * ch-typeck.c (build_chill_array_parm_type):  Make sure
9353         the pseudo struct type is allocated on the permanent_obstack.
9354         * ch-parse.y (location):  Remove thinko.
9355         * ch-actions.c (chill_comptypes):  Comment out test for
9356         NEWMODEness - it gets broken by the forward declaration hacks.
9358 Tue Apr  6 18:05:40 1993  Bill Cox  (bill@rtl.cygnus.com)
9360         * ch-actions.c: Move build_varying_struct to ch-typeck.c.
9361         * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
9362         * ch-parse.y (location): Do build_component_ref for an array wrapped
9363           in a structure.
9364         * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
9365         * ch-typeck.c (build_chill_array_parm_type): Add function, move
9366           build_varying_struct here from ch-actions.c.
9368 Mon Apr  5 19:56:56 1993  Bill Cox  (bill@rtl.cygnus.com)
9370         * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop 
9371           rather than in-line code - tests LOW and HIGH values.
9372         * ch-lang.c: Use tree_int_cst_lt rather than inline code.
9373         * ch-typeck.c (my_build_array_ref): Handle case where array low bound
9374           isn't zero.
9376 Mon Apr  5 15:45:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9378         * ch-typeck.c (my_build_array_ref): Add some more code from 
9379           build_array_ref.  Change checks, error messages to mention 
9380           'discrete types'.  I.E. types which don't kiss and tell..
9382 Sat Apr  3 09:27:03 1993  Bill Cox  (bill@rtl.cygnus.com)
9384         * ch-except.c, ch-expr.c: Turn externs into prototypes.
9385         * ch-grant.c (chill_grant): Remove orphan #else.
9386         * ch-tree.h: Add prototype for build_chill_bin_type.
9387         * ch-typeck.c: Turn externs into prototypes, delete code which
9388           was commented out in chill_expand_return; it will never be used.
9390 Fri Apr  2 21:55:14 1993  Per Bothner  (bothner@rtl.cygnus.com)
9392         Major re-write of New module/seize/grant stuff.
9393         Now, a grantfile is a spec module and contains all the
9394         top-level declarations of the granting module, not just
9395         those that are granted.  It also contains explicit grant
9396         statments naming those declared names that are granted.
9397         It also has seize statements and use_seize_file directives
9398         to correctly handle transitive dependencies.
9400         * ch-parse.y:  Change to allow multiple modules per source file.
9401         Allow spec modules (including quasi definitions) as well as
9402         regular modules.
9403         Allow spec modules inside normal modules;  these behave as if
9404         they were outermost.  This violates the Blue Book, but is
9405         needed by the new grantfile mechanism.  (A grant file is a
9406         spec module that gets included by the use_seize_file directive.)
9407         * ch-parse.y (struct module *current_module, push_module,
9408         pop_module):  Support module nesting (for spec modules only).
9410         * ch-tree.h (struct module): New.
9411         * ch-grant.c (granted_decls):  New list of declarations
9412         that have been granted into the outermode pseudo-module.
9413         * ch-grant.c (decode_mode):  If the decl has a name,
9414         always write the name, not just if the decl has already
9415         been written.  Since we write out all decls, we can assume
9416         it will be written later, and depend on the forward
9417         declaration kludges to catch it.
9418         * ch-grant.c (decode_decl):  Don't write out _EXTERN.
9419         Instead write out standard (Blue Book) quasi-definitions.
9420         * ch-grant.c (push_granted):  New function.
9421         * ch-grant.c (seize_implied_names):  New function.  Re-write
9422         how set element names are seized when a set type is seized.
9423         * ch-grant.c (chill_seize):  Work by seraching the
9424         granted_decls list and copying the declaration.
9425         * ch-grant.c (chill_grant):  Write all declarations
9426         declared in this module.  Write GRANT statements for
9427         those granted.   seize statements for decls seized from
9428         other modules.  Write extra syntax to make a complete
9429         spec module.
9430         * ch-grant.c (grant_use_seizefile):  Copy use_seize_file
9431         directives into grant file.
9432         * ch-lex.l (setup_seizefile_read):  Call grant_use_seizefile.
9434         * ch-lex.l (struct input_state, current_input_state,
9435         push_input_file, pop_input_file):  New (type, variable,
9436         function*2).  Used to save and  restore state on an input file.
9437         * ch-lex.l:  Clean up to handle nested input seizefiles
9438         (needed by new grant/seize mechanism.
9439         * ch-lex.l (skip_to_end_of_directive):  New function.
9440         * ch-lex.l (compiler_directive: USE_SEIZE_FILE):  Make sure
9441         we skip to the end of the directive *before* we switch
9442         input files.
9443         * ch-lex.l (setup_seizefile_read):  Prevent reading the
9444         same seizefile twice (otherwise likely with new grant/seize).
9445         * ch-lex.l:  Recognize SPEC.  Misc cleanups.
9447         * ch-parse.y:  Fixed foreward references of types.
9448         Removed the unknown_type_node crock.
9449         * ch-decl.c:  Remove all uses of unknown_type_node.
9450         Check for TYPE_SIZE zero instead.
9451         * ch-decl.c (fixup_unknown_type):  Make sure new mode
9452         gets copied into old mode.  Merge their variant chains.
9453         * c-decl.c (lookup_name_current_level):  Make non-static.
9454         * ch-decl.c (lookup_name_current_level):  No longer needed.
9456         * ch-parse.y (call):  Allow an implicitly defined function
9457         name following the CALL keyword.
9458         * ch-tree.h (struct lang_identifier): Add implicit_decl,
9459         and make sure order of fields matches c-tree.h.
9461         * ch-actions.c (lang_init, build_allocate_memory_call,
9462         build_allocate_globals_memory_call):  Fix names (add initial '_')
9463         and prototypes of _allocate_[global_]memory (2nd param is ref).
9464         Use build_chill_function_call, not build_function_call,
9465         so the reference parameter gets handled.
9466         * ch-actions.c. (lang_init):  Make sure boolean_{true,false}_node
9467         have boolean_type_node as their types.
9468         * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
9469         work for arrays with BOOLEAN_TYPE ranges (and simplify some).
9471         * ch-except.c:  Make sure an end_label is generated,
9472         and jump to it if there is no exception.
9474         * ch-convert.c (convert_to_reference):  Strip off NOP_EXPR casts.
9475         * expr.c (expand_expr):  Handle NOP_EXPR as Chill-style casts.
9476         (Need cleaning up and FSF installation!)
9477         * ch-parse.y:  If taking the address of a cast, move the
9478         ADDR_EXPR inside the NOP_EXPR.
9480         * ch-typeck.c (my_build_array_ref):  Simplified, more suitable
9481         versions of build_array_ref from c-decl.c.  (E.g. don't barf
9482         if index type is char or bool.)
9483         * ch-typeck.c (build_chill_array_ref):  Use my_build_array-ref.
9485         * ch-typech.c (build_chill_bin_type):  New function.
9486         Support BIN(N) range type specification.
9487         * ch-parse.y (mode2), ch-lex.l:  Recognize BIN(N).
9489         * ch-tree.h (CH_SIMILAR):  Redefine in terms of chill_similar.
9490         * ch-typeck.c (chill_similar):  New function.  Recognize that
9491         that range types are similar to their parent types.
9493         * ch-tree.h:  Declare flag_local_loop_counter.
9494         * ch-loop.c:  Whether the loop variable is local to the loop
9495         in now controlled by flag_local_loop_counter, instead of
9496         #ifdef'd on CREATE_SCOPE.
9497         * ch-actions.c (lang_decode_option):  Recognize flags
9498         "-f[no-]local-loop-counter".
9499         * toplev.c (lang_options):  Add Chill flags -f[no-]local-loop-counter.
9501         * varasm.c (make_function_rtl):  Due to problems with forward
9502         references, don't rename nested functions in Chill.  (Kudge!)
9504 Sun Mar 28 10:12:45 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
9506         * ch-lex.l (push_back, readstring): Fix prototypes.
9508 Fri Mar 26 18:32:15 1993  Bill Cox  (bill@rtl.cygnus.com)
9510         * ch-parse.y: Put %type directives back into alpha order.
9511           (variant_alternative): Simplify error_mark test.
9512           (variantfields, varianthack): Add error_mark checks.
9514 Fri Mar 26 13:36:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9516         * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
9517         * ch-parse.y (get_type_of): Add function to deal with possible fwd
9518           declared type name.  Call it from lotsa places.  Add lotsa checks
9519           for error_mark_node.  Standardize indentations.
9521 Thu Mar 25 15:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
9523         * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
9524           for array assignments.
9525         * ch-parse.y (action): Add recognition for allocate_memory and
9526           allocate_global_memory system calls.
9527           (mode2): Remove ill-conceived error check that broke REFs to
9528           as-yet-undeclared types.  Check for IDENTIFIER_NODE, lookup its
9529           DECL if there, pass TREE_TYPE of decl to build_pointer_type.
9530           (variantfields, varianthack): Clean up.
9531           (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
9532           there, pass TREE_TYPE of decl to grok_fixedfields.
9533           (labellist): Explicitly assign error_mark_node to signal error.
9534         * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
9535           rather than seg faulting.
9537 Thu Mar 25 10:35:58 1993  Bill Cox  (bill@rtl.cygnus.com)
9539         * ch-actions.c (lang_init): build_function_type for allocate_memory
9540           and allocate_global_memory runtime routines.  Move discrete_type_p
9541           into ch-typeck.c.
9542         * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
9543           in build_chill_cast.
9545 Wed Mar 24 16:25:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
9547         * ch-grant.c:  Don't grant previously seized names.
9549 Tue Mar 23 15:25:39 1993  Bill Cox  (bill@rtl.cygnus.com)
9551         * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
9552         * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
9553           avoid abort.
9555 Tue Mar 23 09:03:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9557         * ch-actions.c (build_char_array_expr): Just build a type for the
9558           result of a CONCAT_EXPR, and pass the tree back.  
9559           chill_expand_array_assignment can do a better job of 
9560           code-generation.
9561         * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
9562           code.
9564 Mon Mar 22 12:42:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
9566         * ch-except.c (start_handler_array):  Make sure the handler
9567         array and its type get on the permanent obstack.
9568         * ch-grant.c (write_grant_file):  Don't write the _INIT=name
9569         specifier:  It isn't needed, and loses (because of funny
9570         characters in the chill_initializer_name).
9571         * ch-decl.c (push_synmode):  Set TYPE_NAME(mode) = syndecl.
9572         * ch-lang.c (finish_chill_enum):  Don't allocate a dummy
9573         TYPE_DECL for the enum.  I don't think it is needed (?),
9574         and removing it is needed for the change above.
9576         * ch-grant.c (grant_array_type, decode_mode):  Remove unused
9577         'decl' parameter.
9578         * ch-grant.ch (raw_decode_mode):  New function, based on old
9579         decode_mode.
9580         * ch-grant.c (decode_mode);  This is now just a wrapper around
9581         raw-decode_mode - but does not call raw_decode_mode if the
9582         type is named and has already been emitted.
9584 Fri Mar 19 11:55:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9586         * ch-actions.c: Add prototypes, remove unused variables.  Attempt to
9587           continue generating grant file in presence of error (Wilfried's 
9588           patch to lang_finish).
9589         * ch-expr.c: Change assign_stack_temp calls so temps get recovered
9590           after each statement.  Move convert call into
9591           chill_expand_assignment from ch-parse.y.
9592         * ch-grant.c: Generally re-order, clean up.  Include Per's decode_mode
9593           simplification.  Include commented-out hack in decode_mode to return
9594           type's name if type SEIZEd or already GRANTed in this file.
9595         * ch-lex.l: Add prototypes.
9596         * ch-parse.y (assignaction): Move convert call into
9597           chill_expand_assignment.
9599 Thu Mar 18 16:04:45 1993  Bill Cox  (bill@rtl.cygnus.com)
9601         * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
9602           comparison.
9603         * ch-decl.c: Add prototypes, correct error message spelling, remove
9604           unused variables.
9605         * ch-lang.c (build_chill_range_type): Add error message.  Add prototypes.
9606           Correct comment spelling.
9607         * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
9608           assignment in conditional.
9609         * ch-loop.c: Add prototypes, remove unused variable.
9610         * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
9611           parameter is seen, don't count it in structured_variable_list.  Pre-
9612           vents seg fault when only WITH operand is invalid.
9613         * ch-parse.y (label_spec): Correct assignment within IF expression which
9614           was intended to be equality test.  Remove unused variables.
9615         * ch-tree.h: Add prototype.  Remove unused EXCP_CODE enumeration, and
9616           prototyping editorial comments.
9617         * ch-typeck.c: Disable generation of code to validate array index for
9618           now.  Should be done as a call-back from more generic array_ref code.
9619           Clean up parameter checking.  Remove unused variables.
9621 Fri Mar 12 11:57:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9623         * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
9624         * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
9625           build_char_array_expr.
9626         * ch-convert.c (convert): protect against seg fault, if type == NULL.
9627         * ch-expr.c (chill_expand_expr): Add FIXME comment.
9629 Fri Mar 12 11:04:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9631         * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
9632           Thanks very much to dje!
9634 Thu Mar 11 21:06:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9636         * ch-actions.c (build_char_array_expr, build_chill_binary_op):
9637           Move CONCAT_EXPR handling from binary_op to array_expr.  Add
9638           handling for relationals between varying arrays to array_expr.
9640 Thu Mar 11 19:20:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9642         * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
9643           *BIT* length of powersets and arrays of BOOLs.
9644           (invalid_left_operand, invalid_right_operand): Disallow relationals
9645           with arrays of BOOL as operands.
9646         * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
9647           comparing pointers.
9648         * ch-decl.c (push_newmode): Re-indent.
9649         * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
9650           and arrays of BOOLs.
9651         * ch-lang.c (build_chill_array_type): Add parameter error checking.
9653 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9655         * expr.c (store_constructor): Handle set construction.
9656         * varasm.c (output_constant): Prevent seg fault - terminate case
9657           alternative with a 'break'.
9659 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9661         * ch-expr.c (): Move SET_TYPE constructor to expr.c.
9662         * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
9663         * ch-typeck.c (build_chill_cast): Fix error msg spelling.
9665 Mon Mar  8 13:16:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9667         * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
9668           be folded.
9670 Mon Mar  8 10:13:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9672         * ch-grant.c (get_tag_value): Correctly output certain enumerations.
9673           Correct some non-standard indentations.
9675 Fri Mar  5 14:58:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9677         * ch-actions.c: Fix up comment.
9679 Thu Mar  4 18:05:43 1993  Bill Cox  (bill@rtl.cygnus.com)
9681         * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
9682           negating the result of calling __eqpowerset.  New function
9683           discrete_type_p().
9684         * ch-grant.c (get_tag_value): Don't seg fault referring to an
9685           anonymous enumeration's name.
9686         * ch-lex.l: Turn EVEN token into an ignored compiler directive.
9687         * ch-loop.c (end_chill_loop): Output end-of-loop marker.
9688         * ch-parse.y (label_spec): redefine variant structure label_spec
9689           to agree with the Z.200 spec.
9690                      (locdec): Error if set/bitstring initialized with a tuple.
9691                      (case_label, arrayindex): Use new discrete_type_p 
9692                      function. 
9693         * ch-process.c: Fix typo.
9695 Wed Mar  3 14:30:53 1993  Per Bothner  (bothner@rtl.cygnus.com)
9697         * ch-lang.c, ch-tree.h: Rename build_range_type to
9698         build_chill_range_type.  Call new build_range_type() in tree.c.
9699         * ch-parse.y:  Call build_chill_range_type as approriate.
9700         * ch-typeck.c (build_chill_cast);  Clean up.
9702 Wed Mar  3 09:36:56 1993  Bill Cox  (bill@rtl.cygnus.com)
9704         * ch-parse.y: Define CONTINUE_EVENT token.
9705         * ch-parse.y (mode2): Give error message for SYN modea = modeb
9706           where modeb is undefined.
9708 Tue Mar  2 20:16:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9710         * ch-actions.c: Add builtin function descriptions for memset and
9711           bitsetpowerset.  Allow build_chill_num expression to exceed 16 bits,
9712           but not 32.
9713         * ch-tree.h: Correct chill_handle_case_default prototype.
9714         * ch-actions.h, ch-lex.h: Add prototypes.
9715         * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
9717 Thu Feb 25 17:35:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9719         * c-decl.c (init_decl_processing): Disable creation of C-specific
9720           builtin functions.  They pollute the CHILL name space.
9721         * stor-layout.c (variable_size): Allow variable-size objects at file
9722           scope, for CHILL.
9724 Fri Feb 26 07:14:34 1993  Bill Cox  (bill@rtl.cygnus.com)
9726         * c-decl.c (finsh_decl): Don't output non-constant storage size 
9727           error for CHILL
9728         * ch-actions.c: Call build_temporary_variable, fix build_tree_list
9729           call in build_chill_cause_exception.
9730         * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
9731         * ch-loop.c (build_temporary_variable): New function
9732         * ch-process.c: Call build_temporary_variable, spell start_process
9733           correctly.
9734         * ch-tree.h: Extern for build_temporary_variable
9736 Thu Feb 25 12:09:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9738         * c-decl.c (init_decl_processing): Disable initial creation of C-specific
9739           builtins - they pollute the CHILL name space.
9740         * ch-typeck.c (valid_array_index): Correct upper-bound check.
9741         * expr.c (expand_expr): Use actual library name for __inpowerset
9742           builtin.
9743         * stor-layout.c (variable_size): Disable complaint about variable-
9744           size type or decl at file scope.  Perhaps later this s.b. a warning.
9745         * varasm.c (emit_set_data): Add function.
9746           (output_constant): Call new emit_set_data function for VAR_DECLs, 
9747           in addition to CONSTRUCTORs.
9749 Thu Feb 25 11:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
9751         * ch-actions.c: Change all builtin functions names to their
9752           actual library names.  Change references to boolean_type_node
9753           to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
9754           convention.
9755           build_set_expr: Remove length parameter, call powersetlen() instead.
9756             remove handling of CHAR arrays - they're handled in build_char_array_expr.  
9757             Call __eqpowerset to test for equality - we can't use a byte-length -
9758             need bitcount instead.
9759           build_chill_compound_expr, internal_build_compound_expr: Copy from C
9760             version that does stuff we don't want.
9761           build_binary_op: Check for in_size_in_bytes return < 0, indicating
9762             size is changeable at run time.  Build two memcpy calls to implement
9763             string concatenation.
9764           powersetlen: Add function.
9765           build_chill_card: Call powersetlen.
9766           build_chill_max_min:  Common code for powerset max/min.
9767           build_chill_length: Move VARYING array handling before regular char
9768             array handling.
9769         * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
9770           the VARYING status of the target to do this correctly.  Use powersetlen
9771           for the powerset operations, not a byte length.
9772         * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
9773           for each CHILL loop, as Z.200 requires.  Add powerset and error flags
9774           to loop structure.  Evaluate user's powerset expression into a temp,
9775           scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
9776           for powerset loop.  Only do loop-end assignments if NOT a powerset
9777           loop, which has much less overhead now.
9778         * ch-tree.h: Add prototype for powersetlen.
9780 Fri Feb 19 08:40:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9782         * ch-lex.l (convert_number): Evaluate number and pass it as
9783           HOST_WIDE_INT.
9785 Fri Feb 19 08:56:44 1993  Michael Tiemann  (fs_tie at rcsw18)
9787         * ch-typeck.c (build_chill_array_ref): Handle newmodes
9788         correctly.
9790         * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
9791         we are going to return 0.
9793         * ch-convert.c (convert_to_reference): Don't use
9794         TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
9795         (which must match the type of the expr).
9797         * ch-grant.c (chill_seize): Don't let a type be copied just
9798         because we are seizing it.
9800         * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
9801         TYPE_MAX_VALUE to integer type.
9803         * ch-loop.c (begin_for_range): Set lp->iter_type based on the
9804         tree type of the bounds.
9805         (build_loop_top): type of GE_EXPR and LE_EXPR is
9806         boolean_type_node, not lp->iter_type.
9807         (for_location): Ditto.
9809         * ch-action.c (build_chill_lower,build_chill_upper): Handle
9810         ENUMERAL_TYPE.  Also, handle different kinds of arguments more
9811         cleanly.
9813         * ch-parse.y (iteration): Convert start_exp and end_exp to
9814         match the type of modename.
9816         * ch-grant.c (chill_seize_aggr): Search also through anonymous
9817         types.
9819         * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
9820         already been seized, and if so, do nothing.
9822         * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
9823         comes out error_mark_node, set ERRONEOUS.
9825         * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
9826         don't use it.
9828         * ch-action.c (chill_comptypes): Test for structural
9829         equivalence of enums.
9831         * ch-typeck.c (build_chill_array_ref): Convert INDEX to
9832         TYPE_MIN_VALUE of DOMAIN if the types are compatible.
9834         * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
9835         ARRAY_TYPE, seize the domain type if its a set.
9837 Thu Feb 18 20:02:15 1993  Per Bothner  (bothner@rtl.cygnus.com)
9839         * c-typeck.c (process_init_constructor):  Emit error if some
9840         array elements are not initialized.
9841         * c-typeck.c (process_init_constructor):  Call digest_init()
9842         recursively to expand default_value.
9843         * ch-expr.c (chill_expand_array_assignment):  Simplify, and
9844         handle the case that the lhs has dynamic size (e.g. a slice).
9845         * ch-parse.y (elementlist):  Handle the case that tupleelement
9846         generates more than one TREE_LIST node.
9848 Thu Feb 18 12:40:56 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
9850         * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
9851         * c-typeck.c (lookup_field): add function, calls.
9852         * ch-actions.c (build_chill_binary_op): figure return_type differently.
9853         * ch-convert.c (convert_to_reference): return error_mark_node,
9854           STRIP_NOPS.  (convert): Braces for readability.
9855         * ch-decl.c (build_chill_function_type): accept typespec as parm.
9856           Handle exceptions.
9857           (grok_chill_variantdefs): call comptypes, not chill_comptypes.
9858         * ch-expr.c (chill_expand_assignment): handle references.
9859         * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
9860         * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
9861           call convert.  Generally handle reference types.
9864 Thu Feb 18 09:30:11 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
9866         * ch-actions.c (chill_comptypes): Figure out which newmode or
9867           synmode decls look most canonical.
9868         * ch-convert.c (convert): handle location conversions of records,
9869           unions and arrays.
9870         * ch-decl.c (fixup_unknown_type): changes for variant records
9871         * ch-parse.y (tupleelement): avoid confusing digest_init.
9872         * ch-typeck.c (build_chill_array_ref): give element ref the
9873           type of the ELEMENT, not the array (Bill Cox).
9875 Wed Feb 17 11:52:20 1993  Bill Cox  (bill@rtl.cygnus.com)
9877         * ch-parse.y: change push_newmode and push_synmode interfaces.
9878         * ch-actions.c (build_chill_binary_op): convert operands.
9880 Wed Feb 17 10:54:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9882         * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
9883           handle reference types.
9884         * ch-decl.c (push_newmode, push_synmode): rewritten
9885         * ch-process.c (make_process_struct): new push_newmode interface.
9886         * ch-typeck.c (build_chill_cast): change interface, error checks.
9888 Wed Feb 17 09:50:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9890         * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
9891           code.
9892         * ch-typeck.c (valid_array_index): new function.
9894 Tue Feb 16 22:36:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
9896         * ch-convert.c (convert):  Slightly more correct conversion
9897         for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
9898         * ch-expr.c (chill_expand_array_assignment):  Invoke
9899         __builtin_memcpy using build_function_call, not directly at
9900         the rtx level (which doesn't work).
9901         * ch-typeck.c (build_chill_slice):  First attempt at slices.
9902         * ch-tree.h,  ch-typeck.c (build_chill_slice_with_range,
9903         build_chill_slice_with_length):  New functions.
9904         * ch-parse.y:  Use new slice-building functions.
9905         * expr.c (get_inner_reference):  Subtract low bound of
9906         array when doing an ARRAY_REF.
9908 Tue Feb 16 14:17:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9910         * ch-actions.c (build_chill_function_call): better comments.
9911         * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
9912         * ch-parse.y: indentation cleanup
9914 Tue Feb 16 12:03:53 1993  Michael Tiemann  (tiemann@cygnus.com)
9916         * ch-decl.c (grok_chill_variantdefs): Really implement variant
9917         records for CHILL.
9918         * ch-grant.c (get_tag_value): New function.
9919         * ch-grant.c (decode_mode): Grant variant records.
9921         * ch-grant.c (chill_seize): If we seize a set, seize the set
9922         values.
9924         * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
9925         constructs.
9927         * ch-parse.y (EMPTY): New pseudo-token to disambiguate
9928         variant_alternatives.
9929         (current_fieldlist): New variable to help processing tag
9930         declarations in variant records.
9931         (fields): Renamed from structdef.
9932         (field): Renamed from fields.
9933         (varianthack): New non-terminal to handle parsing ambiguity
9934         for variant records.
9935         (optlabellist): Changed to preserve CONST_DECLs when they are
9936         parsed.
9938         * ch-tree.h (TYPE_TAGFIELD): New macro.
9939         (TYPE_TAG_VALUES): Ditto.
9941 Mon Feb 15 00:49:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
9943         * ch-grant.c (decode_mode):  Fix output for powerset modes.
9944         * ch-grant.c (decode_constant):  Support grant output of
9945         powerset literals.
9946         * ch-actions.c (build_chill_binary_op):  IN_EXPR fix.
9947         * expr.c (expand_expr):  Add Chill-specific kludge for
9948         BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
9949         * ch-expr.c (chill_expand_assignment):  Remove no-longer-needed
9950         special-case support for a BIT_FIELD_REF in right-hand-side.
9951         * ch-lang.c (finish_chill_enum):  Patch up enum elements to
9952         have the correct type (instead of integers, as in C).
9954         * ch-lex.l, ch-parse.y:  Add disgusting hack (involving
9955         context-dependent look-ahead) so we can parse exception
9956         handlers correctly.
9957         * c-typeck.c (digest_init):  Set output type for SET_TYPEs.
9958         * varasm.c (unpack_set_constructor):  Add support for
9959         (power-)set ranges (i.e. low_element:high_element).
9961 Sun Feb 14 13:37:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9963         * ch-inout.c: delete unused #include
9964         * ch-typeck.c (build_chill_slice): turn abort call into error msg.
9966 Sat Feb 13 13:13:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9968         * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
9970 Sat Feb 13 12:17:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9972         * Makefile.in: add lots of header files to the CHILL dependencies
9974 Fri Feb 12 15:48:27 1993  Per Bothner  (bothner@rtl.cygnus.com)
9976         * ch-actions.c (build_chill_function_call):  Don't return
9977         error_mark_node on empty parameter-list.
9979 Fri Feb 12 12:54:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9981         * ch-actions.c (build_chill_function_call): fix start_decl parms.
9982         * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
9984 Fri Feb 12 10:32:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9986         * ch-actions.c (build_chill_function_call): create temps, do
9987           assignments to handle INOUT and OUT parameters.
9988         * ch-decl.c (build_chill_function_type): better parameter name.
9989         * ch-parse.y (action): keep rules in alpha order.
9990           (pmodearg): turn INOUT, OUT parameter types into reference types.
9991         * ch-typeck.c (build_tree_slice): indentation change.
9993 Thu Feb 11 23:16:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
9995         * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
9996         take a list of elements which are in the set.  This corresponds
9997         better to the tuple input form in Chill (and Pascal).
9998         * varasm.c (unpack_set_constructor, pack_set_constructor):
9999         New functions, to expand SET_TYPE CONSTRUCTORs.
10000         * varasm.c (output_constructor):  Use pack_set_constructor
10001         to assemble a SET_TYPE constant from a CONSTRUCTOR.
10003         * ch-grant.c (decode_constant):  Better grant for strings,
10004         enumeral, and bitstring constants.
10005         * ch-grant.c:  Fixes in seize to avoid duplicates, and emit
10006         things in the correct order.
10007         * c-typeck.c (chill_initializer_constant_valid_p):  Kludge
10008         needed to export a static function.
10009         * ch-typeck.c (convert):  Avoid needlessly (and lossingly) calling
10010         chill_expand_tuple to convert fix string to varying.
10011         * ch-actions.c (build_chill_binary_op):  Promote short
10012         integer operands if needed (otherwise emit routines barf).
10013         * ch-tree.h (SET_WORD_SIZE):  New macro.
10014         * ch-parse.y:  Fix syntax for RECEIVE CASE.
10015         * ch-parse.y (location):  If IDENTIFIER is a CONST_DECL
10016         return its value instead.
10018 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10020         * ch-actions.c (build_chill_max, build_chill_min): clean up
10021         * ch-typeck.c (chill_expand_tuple): correct set initialization from
10022           an enumeration tuple.  Add sort_constructor function.
10024 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10026         * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
10027           BOOLEAN_TYPE w/out an abort.
10029 Wed Feb 10 14:59:53 1993  Bill Cox  (bill@rtl.cygnus.com)
10031         * ch-actions.c: change most integer_type_node references to
10032           chill_integer_type_node.  Rewrite _max and _min routines,
10033           redefine the signatures for those runtime routines.  Move
10034           empty-set check into runtime.
10035         * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
10036           most integer_type_node references to chill_integer_type_node.
10038 Tue Feb  9 16:00:05 1993  Per Bothner  (bothner@rtl.cygnus.com)
10040         * ch-except.c:  New file.  Stuff for exception handling.
10041         * ch-parse.y:  Add working exception handling support.
10042         * ch-lex.l, ch-parse.y:  Prefer standard type terminology
10043         (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
10044         * ch-grant.c:  Fix various problems related to granting
10045         types such as bitsets.
10046         * ch-tree.c (build_bitstring_type):  Set TYPE_MIN_VALUE
10047         to distinguish bitstrings from powersets (in the same way
10048         we distinguish char strings from char arrays).
10049         * ch-tree.h:  New macro CH_BOOL_TYPE_P.
10050         * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
10051         Undo kludge where integer_type_node was hardwired to 16 bits.
10052         Make integer_type_node etc have the same size as in cc1.
10053         New types chill_integer_type_node and chill_unsigned_type_node
10054         that correspond to the Chill source types INT and UINT.
10055         For now, these match the C 'short' types, but that should
10056         become a configuration option later,
10058 Tue Feb  9 11:41:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10060         * ch-actions.c (build_chill_unary_op): allow NOT of a set.
10062 Tue Feb  9 08:27:18 1993  Bill Cox  (bill@rtl.cygnus.com)
10064         * ch-actions.c (build_chill_function_call): add test for
10065           too many/few actual parameters (and avoid seg fault).
10066         * ch-decl.c (do_decls): code cleanup for readability.
10067         * ch-loop.c (begin_chill_loop, end_chill_loop): remove
10068           emit_nop() calls - they now (since exceptions) cause seg faults.
10069           Make derogation on poor CHILL compiler non-specific.
10070         * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
10071         * ch-tree.h: remove prototypes added to c-tree.h.
10072         * ch-typeck.c (build_chill_array_ref): correct getting domain
10073           subtree for a PARM_DECL.  Subscripting a SET_TYPE is turned into
10074           an IN_EXPR.
10076 Sun Feb  7 18:20:49 1993  Bill Cox  (bill@rtl.cygnus.com)
10078         * ch-tree.def: add a new tree type - just for varying array 
10079           references.  We were using ARRAY_REF, but the underlying C
10080           code also generates that one.
10081         * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
10083 Sun Feb  7 17:33:17 1993  Bill Cox  (bill@rtl.cygnus.com)
10085         * ch-convert.c: test given type against type of expr before
10086           calling chill_expand_tuple.  We were getting lots of spurious
10087           calls...
10089 Fri Feb  5 15:24:01 1993  Per Bothner  (bothner@rtl.cygnus.com)
10091         * cccp.c:  Merge in various Chill-specific changes.
10092         * gcc.c (default_compilers array):  Pass -lang-chill
10093         to cpp, not -lang-ch.
10095 Fri Jan 29 17:18:22 1993  Per Bothner  (bothner@rtl.cygnus.com)
10097         * Makefile.in (install-libchill, install-librmt):  Removed.
10098         * ch-actions.c (build_chill_exception_decl):  Change decl
10099         to initialized char array, rather than unitialized common.
10100         (Simplifies extracting string name of exception.)
10101         * ch-actions.c:  Adjust interface to cause_exception accordingly.
10102         * ch-typeck.c (build_chill_array_ref):  Cause rangefail if
10103         index > limit, not >= limit.
10105         * ch-actions.c (build_chill_function_call):  Rename misleading
10106         formal parameter.
10107         * ch-decl.c (do_decls):  Allow (again) general initializer exprs.
10108         * ch-parse.y (call):  Test for function call needs to test for
10109         FUNCTION_TYPE, not FUNCTION_DECL.
10110         nreverse arg list to build_chill_array_ref.
10111         * ch-typeck.c (build_chill_array_ref):  Do recursive call at end
10112         and only if multiple indexes.
10113         * ch-typeck.c:  Cleanups.
10115 Fri Jan 29 11:05:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10117         * ch-decl.c (do_decls): handle set initializations better, more to do.
10118         * ch-loop.c (begin_for_range): correct interface to expand_start_cond
10119           and build_binary_op.
10120         * ch-tree.h: lots more prototypes
10121         * ch-typeck.c (build_array_from_set): added function.
10122         * ch-typeck.c (chill_expand_tuple): handle set initializations better.
10124 Thu Jan 28 17:41:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
10126         * ch-grant.c (set_default_grant_file):  Change default.
10127         Normally, grant file should end up in cwd.
10128         * ch-lang.c (build_chill_struct_type):  Call pushtag,
10129         for the sake of debugging.
10130         * ch-lex.l:  Improve comment parsing.
10131         * ch-lex.l (readstring):  Some improvements.
10132         Initial support for control sequences in string literals.a
10134 Thu Jan 28 16:16:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10136         * ch-convert.c (convert): correct fixed->varying conversion.
10137         * ch-parse.y (mode2): delete unesthetic newline.
10139 Thu Jan 28 10:32:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10141         * ch-actions.c: delete maybe_array_ref()
10142         * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
10143           calling convert().
10144         * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
10145           supervision actions & builtins
10146         * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
10147           smaller actions directly (maybe_array_ref() used to call them).
10148         * ch-tree.h: add build_chill_function_call, build_chill_slice
10149         * ch-typeck.c: add build_chill_slice()
10151 Thu Jan 28 08:44:28 1993  Bill Cox  (bill@rtl.cygnus.com)
10153         * ch-tree.h: bring up to date with ch-actions.c changes.
10155 Wed Jan 27 23:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
10157         * ch-expr.c (chill_expand_assignment): handle an RHS varying array
10158           reference.
10160 Wed Jan 27 22:28:36 1993  Per Bothner  (bothner@rtl.cygnus.com)
10162         * ch-grant.c (decode_constant):  Add REAL_TYPE support.
10163         * ch-actions.c (build_chill_exception_decl):  New function.
10164         * ch-actions (build_chill_cause_exception, cond_exceptions):
10165         Convert to take a (char*) parameter (the exception name).
10166         * ch-actions.c, ch-expr.c, ch-typeck.c:  Convert calls to
10167         cond_exception.
10168         * ch-parse.y (check_end_label):  New function, to check if
10169         and end label matches start label.
10170         * ch-parse.y:  Fix syntax to properly recognize and
10171         test optional end labels (using check_end_label).
10172         * ch-decl.c (finish_chill_function):  Simplify, since
10173         we assume check_end_label has already been called.
10174         * ch-parse.y:  Put in infrastructure for exception handling.
10176 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
10178         * ch-actions.c: delete convert_chill_parameter, replace call with
10179           call to convert().    
10180         * ch-convert.c (convert): combine chill_give_type_to_expr in here.
10181         * ch-decl.c: call convert rather than chill_give_type_to_expr.
10182         * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
10183         * ch-expr.c (chill_expand_assignment): just call convert.
10184         * ch-loop.c (end_chill_loop): expand the end of the loop for a
10185           do while.
10186         * ch-parse.y: call convert rather than chill_give_type_to_expr.
10187         * ch-process.c: checkpoint.
10188         * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
10190 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
10192         * ch-grant.c (grant_array_type): new function to allow handling of
10193           VARYING array types.
10195 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
10197         * ch-typeck.c (chill_give_type_to_expr): fix typo.  Reorder to
10198           avoid checking types on CONSTRUCTORs.  Correct typo.
10199         * ch-expr.c (expand_assignment_to_varying_array): use proper
10200           expansion function expand_expr_stmt.
10201         * ch-expr.c (expand_chill_assignment): only convert VARYING
10202           array refs or RHS.
10204 Wed Jan 27 15:32:21 1993  Bill Cox  (bill@rtl.cygnus.com)
10206         * ch-actions.c (build_chill_length, build_chill_lower,
10207                         build_chill_upper): accept parameters, too.
10208         * ch-expr.c (chill_expand_assignment):  decipher ARRAY_REF on RHS.
10209         * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
10210           assign proper type to ARRAY_REF expression.
10212 Wed Jan 27 09:51:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10214         * ch-actions.c (build_chill_binary_op): delete unused variable,
10215           get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
10216         * ch-actions.c (build_chill_repetition_op): handle differently-built
10217           declaration trees.
10218         * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
10219         * ch-typeck.c (chill_give_type_to_expr): give type to constructor
10221 Tue Jan 26 11:32:38 1993  Bill Cox  (bill@rtl.cygnus.com)
10223         * ch-parse.y (ifaction): re-add lost call to expand_end_code().
10224         * ch-parse.y (siezelist, grantlist): use 'name' rather than
10225           'checked_name'.  It makes no sense to check sieze/grant names
10226           for WITH expansion.
10227         * ch-expr.c (chill_expand_expr): delete unnecessary (and
10228           seg-fault-causing) code.
10229         * ch-expr.c (chill_expand_assignment): make test for varying array
10230           on the LHS more specific.
10231         * ch-actions.c (invalid_left_operand, invalid_right_operand): error
10232           for use of MOD, REM operators.
10233         * ch-actions.c (build_chill_repetition_op): error for bit-field
10234           initializers (which will get handled in the lexer).
10236 Mon Jan 25 17:26:47 1993  Bill Cox  (bill@rtl.cygnus.com)
10238         * ch-typeck.c (build_chill_array_ref),
10239         * ch-expr.c (chill_expand_expr, chill_expand_assignment):
10240           translate varying array ref into ARRAY_REF, defer processing
10241           until chill_expand_expr.  Update array's length field in
10242           new function expand_assignment_to_varying_array.
10244 Mon Jan 25 14:57:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10246         * ch-parse.y (mode2): eliminate old method to mark varying arrays.
10247         * ch-expr.c (expand_varying_length_assignment): repair scaling of 
10248           RHS expression.
10250 Mon Jan 25 11:44:21 1993  Per Bothner  (bothner@cygnus.com)
10252         * ch-parse.y:  Allow character and bitstring literals
10253         in string repetition operator.
10255 Sat Jan 23 14:18:11 1993  Per Bothner  (bothner@cygnus.com)
10257         * ch-parse.y (primval):  Re-recognize '(' expr ')'.
10258         * ch-parse.y (name):  Remove call to check_identifier -
10259         this is not appropriate in certain contexts.
10260         * ch-parse.y (checked_name):  Same as <name>, but *with* the
10261         call to check_identifier.  Use where appropriate.
10262         * ch-parse.y (operand5):  Only allow string repetition of
10263         string literals, because otherwise you get a conflict.
10265 Thu Jan 21 16:32:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10267         * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
10268           continue start_process development.
10270 Thu Jan 21 13:51:06 1993  Bill Cox  (bill@rtl.cygnus.com)
10272         * ch-decl.c (do_decl): fix handling of multi-char initializer.
10274 Thu Jan 21 13:14:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10276         * .cvsignore: add CHILL files to be ignored
10278 Thu Jan 21 07:38:57 1993  Bill Cox  (bill@cygnus.com)
10280         * ch-parse.y: rough draft of start_process handling.
10282 Wed Jan 20 17:11:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10284         * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
10286 Wed Jan 20 16:48:13 1993  Bill Cox  (bill@rtl.cygnus.com)
10288         * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in: 
10289           create new modules for I/O and process-related stuff.
10290         * ch-actions.c: move routines to new modules.  
10291           call xmalloc, not malloc.
10292         * ch-lang.c (build_chill_struct_type): add parameter checking.
10293         * ch-lex.l (init_lex): remove redundant cast.
10295 Tue Jan 19 16:33:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10297         * ch-parse.y (operand5): delete unnecessary argument to
10298           build_chill_unary_op.  Add rule for string repetition.
10299         * ch-parse.y (primval): delete string repetition attempt.
10300         * ch-parse.y (start_process): rough draft of action.
10301         * ch-actions.c (build_repetition_op): add it
10302         * ch-actions.c (build_chill_binary_op): handle constant arguments
10303           of CONCAT_EXPR, combine into a single string if possible.
10304         * ch-actions.c (invalid_left_operand, invalid_right_operand):
10305           allow single character arguments to CONCAT_EXPR.
10306         * ch-tree.h: add prototype for build_repetition_op
10308 Tue Jan 19 15:03:29 1993  Fred Fish  (fnf@cygnus.com)
10310         * dwarfout.c (output_type):  Add hack that matches the one in the
10311         chill front end to distinquish between true string types and 
10312         arrays of char, since it uses ARRAY_TYPE for both, rather than
10313         trying to use the existing support for STRING_TYPE.
10315 Tue Jan 19 13:54:27 1993  Bill Cox  (bill@rtl.cygnus.com)
10317         * ch-tree.h: added prototypes for all non-static CHILL functions.
10318         * ch-actions.c (lang_init): declare builtin type for start_process
10319         * ch-actions.c (build_chill_binary_op): combine string literals when
10320           concatenated.  
10321         * ch-actions.c (formpars2struct): added for later start_process
10322           implementation.
10323         * ch-actions.h: remove un-needed function declarations.
10324         * ch-decl.c: extern cleanup.
10325         * ch-expr.c (chill_expand_array_assignment): add missing first
10326           parameter to cond_exception call.
10327         * ch-lex.l: make build_chill_string non-static.
10329 Mon Jan 18 19:15:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10331         * ch-decl.c (do_decls): get varying array length initialized.
10333 Mon Jan 18 09:51:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10335         * ch-expr.c (chill_expand_array_assignment): fix the copy length
10336         in the memcpy call (it was just 4 bytes always).   Simplify some
10337         code, also.
10339 Mon Jan 18 08:24:21 1993  Bill Cox  (bill@rtl.cygnus.com)
10341         * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
10343 Mon Jan 18 08:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
10345         * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and 
10346         CHARS synonymous with CHAR, in the lexer.  Delete unnecessary
10347         'bools' non-terminal.
10348         * ch-parse.y (assignaction): add lhs version of length() function
10349         * ch-actions.c: add builtin_concat function, lots of support for 
10350         CONCAT_EXPR.
10351         * ch-actions.c, ch-tree.h: make a function out of former
10352         macro CH_VARYING_TYPE_P
10353         * ch-expr.c: add expand_varying_length_assignment ().
10354         * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
10355         * ch-expr.c (chill_expand_array_assignment): call emit_library_call
10356         rather than build_rts_call, to eliminate a recursion problem.
10357         * ch-lang.c: eliminate 'sorry' about varying arrays.
10358         * ch-typeck.c (validate_varying_array_ref): re-enable constant
10359         index validation.
10361 Sun Jan 17 18:20:04 1993  Per Bothner  (bothner@cygnus.com)
10363         * ch-grant.c, ch-lex.l:  Major simplification of how
10364         seizes are done and how seizefiles are read.
10365         * ch-actions.h:  Remove declaration of check_seize().
10366         * ch-decl.c (do_decls):  Handle READONLY types.
10367         * ch-parse.y (mode2):  Allow REF to be followed by any mode.
10368         * ch-parse.y (mode2):  Allow literal expressions in string length.
10369         * ch-parse.y (tupleelement):  Allow elemenst to be untyped_expr.
10370         * ch-parse.y (seizestatement, etc):  Call chill_seize each
10371         time something is seized, rather than building a list first.
10373 Sat Jan 16 12:24:44 1993  Bill Cox  (bill@rtl.cygnus.com)
10375         * chill.gperf, ch-hash.h: add Wilfried's tokens
10376         * ch-lex.l: fold in Wilfried's changes.  Some tokens
10377         weren't getting recognized, and INSTANCE wasn't correctly
10378         reported to ch-parse.y as a PREDEF_MODEDCL.
10380 Thu Jan 14 15:02:39 1993  Per Bothner  (bothner@cygnus.com)
10382         * ch-tree.h (CH_CHARS_TYPE_P):  New macro.  Add comment
10383         explaining difference between char strings and char arrays.
10384         * ch-tree.h (CH_STRING_TYPE_P):  Add FIXME re bitstrings.
10385         * ch-tree.c (build_string_type):  Add comment.
10387 Wed Jan 13 15:19:15 1993  Per Bothner  (bothner@cygnus.com)
10389         * calls.c, expr.c, function.c, stmt.c, varasm.c:  Set
10390         MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
10391         * expmed.c (store_bit_field, extract_field_field):  Undo
10392         yesterday's removal of MEM_IN_STRUCT_P "sanity test".
10394         * ch-decl.c (do_decls):  Put back support for initializing.
10395         (Was accidentally removed in Jan 8 change.)
10397 Wed Jan 13 14:13:11 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
10399         * ch-lex.l (convert_bitstring): Correct typo in cast.
10401 Tue Jan 12 20:29:08 1993  Per Bothner  (bothner@cygnus.com)
10403         * ch-lex.l (convert_bitstring):  Change to pack bits
10404         within words, not bytes, and to use machine bit-order
10405         (not always little-endian).
10406         * ch-parse.y:  Allow BOOLS(n) as well as BITS(n).
10407         Use build_bitstring_type, not build_string_type.
10408         * expmed.c (store_bit_field, extract_field_field):  Remove
10409         "sanity test" that prevents use with SET_TYPE.
10410         * tree.c (build_bitstring_type, build_powerset_type,
10411         build_string_type):  Move (so far) Chill-specific functions to ...
10412         * ch-tree.c:  ... new file.
10413         * ch-tree.c (build_powerset_type, build_bitstring_type):  Re-write.
10414         * ch-typeck.c (build_chill_array_ref):  Handle bit strings better.
10415         * ch-typeck.c (chill_expand_tuple):  Kludge to handle SET_TYPE.
10416         * Makefile.in (CHILL_OBJS):  Add ch-tree.o.
10417         * ch-decl.c (do_decls):  Call expand_decl.
10418         * stor-layout.c (layout_type):  Handle SET_TYPE.
10419         * expr.c (expand_expr):  Add FIXMEs about IN_EXPR.
10420         * ch-actions.c (lang_init):  Add type and decl for new
10421         function __builtin_setbitinstring.
10422         * ch-expr.c (chill_expand_assignmment):  Special-case handling
10423         for BIT_FIELD_REF with non-constant bit position (which is
10424         not yet handled by expand_expr).
10425         * ch-convert.c (convert):  Handle SET_TYPE.
10427 Tue Jan 12 12:49:13 1993  Fred Fish  (fnf@cygnus.com)
10429         * chill:  If -B arg is given, use to find gcc.
10431 Fri Jan  8 20:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10433         * ch-decl.c: revert to avoid seg fault
10435 Fri Jan  8 14:20:42 1993  Bill Cox  (bill@rtl.cygnus.com)
10437         * ch-decl.c: fix storage into correct offset in varying array.
10438         * ch-actions.c: define sizetype for everyone, use it to build
10439         varying structure.
10440         * ch-parse.y: tiny cleanup.
10442 Wed Jan  6 13:25:33 1993  Bill Cox  (bill@cygnus.com)
10444         * modules: use gdb rather than naked-gdb, to get opcodes
10445         in chill definition.
10447 Wed Jan  6 09:48:35 1993  Bill Cox  (bill@cygnus.com)
10449         * ch-typeck.c: add code to handle references to elements of VARYING
10450         arrays.  Simplify chill_give_type_to_expr.  Add rough draft of run-
10451         time index checking for VARYING arrays (under #if 0).
10452         * ch-actions.c: new function cond_type_range_exception & calls.
10453         New function cond_range_exception, for more general range-checking.
10454         New function build_varying_struct, to do just that.  Use the macros
10455         for the special varying field names.
10456         * ch-tree.h: define macros for varying field names.
10457         * ch-expr.c: use macros for varying struct names.  Simplify 
10458         chill_expand_array_assignment.
10459         * ch-parse.y: assure that build_varying_struct is called everywhere
10460         that it applies.  Add a line-number note before the body of a DO 
10461         loop.
10462         * ch-loop.c: #ifdef out creation of new scope for DO loop body.
10464 Tue Jan  5 17:26:14 1993  Bill Cox  (bill@cygnus.com)
10466         * c-decl.c: correct order of declaration of start_decl params,
10467         for readability.
10469 Tue Jan  5 15:59:36 1993  Per Bothner  (bothner@cygnus.com)
10471         * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
10472         Move shared code into ...
10473         * ch-decl.c (start_chill_function): ... here.
10474         * ch-decl.c (start_chill_function):  Add missing call to
10475         expand_start_bindings.
10476         * ch-decl.c (finish_chill_function): Add missing call to
10477         expand_end_bindings.
10479 Tue Jan  5 01:00:47 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
10481         * Makefile.in: took out the rest of the runtime support
10483 Mon Jan  4 18:02:06 1993  Bill Cox  (bill@cygnus.com)
10485         * ch-expr.c: make chill_expand_array_assignment not static.
10487 Mon Jan  4 17:57:48 1993  Per Bothner  (bothner@cygnus.com)
10489         * ch-grant.c, ch-parse.y:  Remove all code for explicitly
10490         calling initializer functions.  This is not needed, since we
10491         use the same mechanism used for C++ static constructors.
10492         * ch-grant.c (chill_start_module_code):  Make sure the
10493         init_name starts with the magic string also used for C++
10494         initializers.  Also, don't embed the file name in the name,
10495         just use the module name.
10496         * ch-grant.c (chill_finish_module_code):  Now that the
10497         initializer name follows the standard 'collect' convention,
10498         don't need to call assembler_constructor_alias, but can
10499         use the standard assemble_constructor instead.
10500         * varasm.c (assemble_constructor_alias):  Remove no-longer-
10501         needed function.
10502         * ch-parse.y:  Move code that is common to the beginning of
10503         all functions to a new macro INIT_ACTION.
10504         Make sure INIT_ACTION is also done for callaction, fixing a bug.
10505         * ch-parse.y (INIT_ACTION):  Do chill_start_module_code()
10506         before emit_line_note(), not after.
10508 Mon Jan  4 11:43:12 1993  Bill Cox  (bill@cygnus.com)
10510         * ch-parse.y: restore requirement for :upper-bound in array decl.
10511         * ch-actions.c: enhance upper, lower, length functions for VARYING.
10513 Mon Jan  4 09:28:44 1993  Bill Cox  (bill@cygnus.com)
10515         * ch-actions.c: fix NOT of boolean expr.
10517 Mon Jan  4 08:42:57 1993  Bill Cox  (bill@cygnus.com)
10519         * ch-actions.c: provide range-checking function
10520         * ch-lex.l: better compiler-directive error messages,
10521         allow underscores in exponents
10522         * ch-loop.c: prevent passing NULL ptr to printf
10524 Sun Jan  3 11:57:13 1993  Bill Cox  (bill@cygnus.com)
10526         * ch-typeck.c: correct & enable array index range-checking
10528 Sun Jan  3 11:36:39 1993  Bill Cox  (bill@cygnus.com)
10530         * ch-parse.y: define IGNORED_DIRECTIVE
10531         * ch-typeck.c: subtract array's lower domain value, even if
10532         index expression is constant.
10534 Sat Jan  2 23:05:14 1993  Fred Fish  (fnf@cygnus.com)
10536         * ch-lex.l (convert_float):  Fix misspelling in error message.
10538 Sat Jan  2 16:02:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
10540         * Makefile.in:  Took out chill-runtime support.
10541         Chill run times are now in ../chillrt, not ./chillrt.p
10543 Sat Jan  2 15:04:13 1993  Bill Cox  (bill@cygnus.com)
10545         * ch-hash.h, chill.gperf: cleanup.  fewer keywords seen by ch-parse.y.
10547 Sat Jan  2 13:27:49 1993  Per Bothner  (bothner@rtl.cygnus.com)
10549         * ch-lex.l (check_newline):  Use the orginal versions (derived
10550         from the C code, not the simplified, special-case version).
10551         Also, fix that version of check_newline to not call yylex()
10552         recursively.
10553         * ch-lex.l (yy_input):  Call check_newline to handle
10554         newlines and check for # directives.
10555         * ch-lex.l (syntax):  Don't recognize #-directives; these
10556         are now handled by check_newline.
10557         * ch-actions.c (lang_init):  Call the modified version of
10558         check_newline().  Do this at the *after* we've initialized
10559         standard types, so this can be done while lineno is still 0.
10561 Sat Jan  2 10:57:20 1993  Bill Cox  (bill@cygnus.com)
10563         * ch-hash.h, chill.gperf: add remaining reserved words.
10565 Sat Jan  2 09:59:55 1993  Bill Cox  (bill@cygnus.com)
10567         * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
10568         names for exceptions
10570 Fri Jan  1 12:30:31 1993  Fred Fish  (fnf@cygnus.com)
10572         * ch-tree.h (JOINER):  Define joiner character the same way
10573         C++ defines it.
10574         * ch-grant.c (chill_start_module_code):  Use JOINER character
10575         to implement name mangling for the initializer function name.
10576         Algorithm is designed to be simple, distinct from C++ mangled
10577         symbols, and easy to convert to demangled form.
10579 Thu Dec 31 10:30:51 1992  Bill Cox  (bill@rtl.cygnus.com)
10581         * ch-expr.c: make array assignments work with indirect refs.
10582         * ch-actions.c: prepare for array parameter handling.
10583         * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
10585 Thu Dec 31 15:29:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
10587         * ch-lex.l (yy_input):  Re-write to return more than one
10588         character at a time (execpt when reading seize-files).
10589         Don't increment lineno until we start reading the next line.
10590         This fixes some off-by-one errors in lineno.
10592 Wed Dec 30 16:15:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
10594         * ch-convert.c:  Assume use of new common.c.
10595         * ch-convert.c (convert_to_reference, convert_from_reference):
10596         New routines, to handle loc-identity declared variables and
10597         LOC parameters (both of which are implemented as references).
10598         * ch-lang.c (convert_to_boolean, convert_to_char):  Move to
10599         ch-convert.c, where they would seem to belong.
10600         * ch-convert.c (convert):  New function, since we no longer
10601         link in c-convert.c.
10602         * ch-expr.c (chill_expand_assignment):  Handle by calling
10603         convert() instead of chill_comptypes().
10604         Also handle the LHS being a reference.
10605         * ch-parse.y:  Add a procedure call as an action.
10606         * ch-parse.y (locdec, optlocinit):  Move handling of
10607         loc-identity declarations from optlocinit to locdec
10608         - and add working semantics for it.
10609         * ch-parse.y (seizestatement, visibilty_stmt):  Simplify.
10610         * ch-parse.y (grantstatement etc):  Don't bother making list.
10611         * ch-lex.l:  #include <sys/types.h> before <sys/stat.h>.
10613 Wed Dec 30 16:06:55 1992  Bill Cox  (bill@rtl.cygnus.com)
10615         * ch-parse.y, ch-expr.c: add support for declaring & assigning
10616         VARYING arrays.
10617         * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
10619 Tue Dec 29 15:28:48 1992  Bill Cox  (bill@cygnus.com)
10621         * ch-actions.c: implement expressions of arrays of char,
10622         ( concatenation, relationals ), correct type of code parameters
10623         * ch-expr.c: correct type of code parameters
10625 Tue Dec 29 11:16:19 1992  Bill Cox  (bill@cygnus.com)
10627         * ch-decl.c: cleanup.
10628         * ch-parse.y: put emit_line_note() calls in lotsa places,
10629         per Fred's request; be sure that statements get counted also.
10630         * ch-lex.l: standardize function headers.
10632 Tue Dec 29 10:41:56 1992  Fred Fish  (fnf@cygnus.com)
10634         * ch-decl.c (start_chill_function):  Always return 1, rather
10635         than a random value.
10636         * ch-lex.l (check_newline):  Add a version for chill that
10637         just snarfs the right value for main_input_filename out of
10638         the first line of the input file, without disturbing the
10639         lexer state or requiring it's assistance.
10640         * ch-actions.c (lang_init):  Call check_newline, like the
10641         other language frontends, to get main_input_filename set
10642         from first line of input file.
10644 Mon Dec 28 18:49:01 1992  Bill Cox  (bill@cygnus.com)
10646         * ch-parse.y: clean up conflicts.  The remaining one is
10647         harmless.
10649 Mon Dec 28 17:28:40 1992  Bill Cox  (bill@cygnus.com)
10651         * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
10652         clean up some parser conflicts.
10654 Mon Dec 28 15:00:20 1992  Bill Cox  (bill@cygnus.com)
10656         * ch-parse.y, ch-lex.l:  add keywords and parsing for most of
10657         CHILL I/O
10659 Sat Dec 26 20:48:23 1992  Fred Fish  (fnf@cygnus.com)
10661         * chillrt/chillrt0.c:  Oops, SVR4 doesn't need leading '_'
10662         on build_exceptions.
10664 Sat Dec 26 11:00:36 1992  Fred Fish  (fnf@cygnus.com)
10666         * ch-grant.c (chill_finish_module_code):  Call
10667         assemble_constructor_alias rather than assemble_constructor.
10668         * varasm.c (assemble_constructor_alias):  New function,
10669         like assemble_constructor, but also handles the case where
10670         ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
10671         being used.  Emits a symbol table alias name with the correct
10672         prefix for collect to find and add to the __CTOR_LIST__.
10673         * chillrt/chillrt0.c:  Build on previous hack that gets
10674         _build_exceptions into the __CTOR_LIST__, to make it work
10675         for both the non GNU-ld case and for the SVR4 case.
10677 Tue Dec 22 18:24:55 1992  Bill Cox  (bill@cygnus.com)
10679         * ch-loop.c: clean up location enumeration - one more
10680         pass to do.
10682 Tue Dec 22 16:31:48 1992  Bill Cox  (bill@cygnus.com)
10684         * ch-loop.c: Working version of location enumeration loop
10686 Tue Dec 22 14:42:14 1992  Bill Cox  (bill@cygnus.com)
10688         * ch-lex.l: readability cleanup
10690 Mon Dec 21 14:58:39 1992  Bill Cox  (bill@cygnus.com)
10692         * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
10693         ch-loop.c: rough draft of location enumeration
10694         ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
10695         ch-actions.c: finish making pred() and succ() work.
10697 Mon Dec 21 10:04:35 1992  Bill Cox  (bill@cygnus.com)
10699         * ch-actions.c: allow pred(char) and succ(char).
10701 Sun Dec 20 16:04:28 1992  Bill Cox  (bill@cygnus.com)
10703         * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
10704         c-expr.c: make DO WITH work.
10706 Sun Dec 20 12:22:53 1992  Bill Cox  (bill@cygnus.com)
10708         * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
10709         now work
10711 Sat Dec 19 14:20:23 1992  Per Bothner  (bothner@cygnus.com)
10713         * c-typeck.c (process_init_constructor):  Add warning if
10714         there is a duplicate default initializer element.
10715         * ch-typeck.c (chill_give_type_to_expr):  New function,
10716         to handle coercion of an expression to context-given type,
10717         Takes care of untyped tuples, and case expressions.
10718         * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
10719         chill_expand_result), ch-parse.y <assignaction>:
10720         Use chill_give_type_to_expr().
10721         * ch-typeck.c (chill_handle_case_label):  New parameter list,
10722         to handle the (new) conventions for <case_label>, including
10723         default elements and ranges.
10724         * ch-parse.y <expanded_case_label>, ch-typeck.c
10725         (expand_case_expr):  Use new version of chill_handle_case_label.
10726         * ch-decl.c (push_syndecls):  Change parameters:  Instead of
10727         TREE_LIST representing a compete <synonym definition statement>,
10728         just pass the parts of a single <synonym definition> as 3
10729         different parameters.  Also, use chill_give_type_to_expr(),
10730         to handle untyped tuples in the RHS.
10731         * ch-parse.y <syndeclist, syndef>:  Don't bother trying to construct
10732         a tree - just call push_syndecls() on each <synonum_definition>
10733         as we see it.
10734         * ch-parse.y (exprlist_get_single):  Remove; no longer needed.
10735         * ch-parse.y:  Handle <tuple> without mode name diferently from
10736         <tuple> with mode name.  The latter is a <primval> that can be
10737         in most contexts, but if the <mode name> is missing, the <tuple>
10738         is only allowed in certain contexts.  Use the new non-terminal
10739         <untyped_expr> to indicate those contexts where untyped tuples
10740         (and case expressions) are valid because the expression gets a
10741         type from its context (such as the RHS of an assignment).
10742         Use chill_give_type_to_expr in those contexts.
10744 Sat Dec 19 14:01:26 1992  Bill Cox  (bill@cygnus.com)
10746         * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
10748 Sat Dec 19 10:16:20 1992  Bill Cox  (bill@cygnus.com)
10750         * ch-parse.y: clean up warning messages from byacc.  bison
10751         still complains thrice.
10753 Fri Dec 18 12:33:29 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10755         * ch-actions.c (maybe_chill_comptypes): Delete unused
10756         function.
10757         (chill_comptypes): Add new parameter ERRSTR.  All callers
10758         changed.
10759         (build_chill_binary_op): Fix indentation to match GNU coding
10760         style.
10762 Fri Dec 18 08:18:13 1992  Bill Cox  (bill@rtl.cygnus.com)
10764         * ch-parse.y, ch-expr.c, ch-actions.c, expr.c:  major
10765         cleanup of expression and assignment handling.
10767 Thu Dec 17 10:16:32 1992  Bill Cox  (bill@cygnus.com)
10769         * ch-parse.y: standardize indentation after c-parse.y
10771 Wed Dec 16 15:22:12 1992  Per Bothner  (bothner@cygnus.com)
10773         * c-typeck.c (process_init_constructor):  Add support for
10774         a default initializer element.
10775         * ch-parse.y: Implement default elements for tuples
10776         (as in '(else):' and '(*):' ).
10778         * ch-parse.y:  Previous change to dis-ambiguate case-labels
10779         seems to have allowed getting rid of all of the expr_or_list hair.
10780         * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
10781         initialization of multiple variables by a tuple" - the
10782         idea is bogus.
10784 Wed Dec 16 11:17:53 1992  Bill Cox  (bill@cygnus.com)
10786         * ch-parse.y: complete re-write of DO statement handling.
10787         now operational, except WITH is stubbed out.  Improved
10788         syntax error message.
10789         * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
10790         * ch-expr.c: fixes to IN_EXPR handling.
10792 Tue Dec 15 17:15:13 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
10794         * ch-grant.c: Add casts to alloca return to avoid compiler warning.
10795         * ch-lex.c: Likewise.
10797         * Makefile.in (ch-lex.c): Delete incorrect free declaration added
10798         by flex to avoid compiler error.
10800 Tue Dec 15 08:41:08 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10802         * ch-decl.c (do_decls): Handle initialization of multiple
10803         variables by a tuple.
10805         * ch-decl.c (do_decls,start_chill_function): Make DECL public
10806         if we're doing a GRANT ALL at top level.
10808         * ch-lang.c (build_range_type): Deal with typecast to CHAR in
10809         range expression.
10811         * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
10812         BOOLEAN_TYPE and CHAR_TYPE are scalar types.
10814 Mon Dec 14 14:58:32 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10816         * ch-lex.l (get_chill_{linenumber,filename}): New functions.
10817         (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
10819 Mon Dec 14 13:36:44 1992  Bill Cox  (bill@cygnus.com)
10821         * expr.c: install and test newer Pascal IN_EXPR code,
10822         but don't activate it - it's very verbose.
10824 Mon Dec 14 00:22:49 1992  Fred Fish  (fnf@cygnus.com)
10826         * Makefile.in (LANGUAGES):  Add chill.
10827         * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
10828         New macros for chill native and cross installation names.
10829         * Makefile.in (COMPILERS):  Add cc1chill.
10830         * Makefile.in (CHILL_OBJS):  New macro, chill objects.
10831         * Makefile.in (CHILL_TREE_H):  New macro, chill headers.
10832         * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
10833         sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
10834         install-librmt):  New targets.
10835         * Makefile.in (install-native):  Add install-libchill, 
10836         install-librmt.
10838 Sun Dec 13 15:21:06 1992  Bill Cox  (bill@cygnus.com)
10840         * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
10842 Sun Dec 13 14:07:32 1992  Bill Cox  (bill@cygnus.com)
10844         * ch-actions.c: fix unary operations, modulus ops,
10845         (discovered after extending regression tests).
10847 Sun Dec 13 12:16:32 1992  Bill Cox  (bill@cygnus.com)
10849         * resync with Michael and Wilfried
10851 Sun Dec 13 09:11:25 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10853         * ch-parse.y (output_constant): Fixed some whitespace
10854         problems.
10855         * ch-tree.h: Add declarations for new chill functions that
10856         have been implemented but not (yet) declared.
10858 Sat Dec 12 00:17:23 1992  Per Bothner  (bothner@cygnus.com)
10860         * c-typeck.c (process_init_constructor):  Warn about duplicate
10861         labels for labelled initializer elements.
10862         * ch-lex.l (various operator tokens, such as "+"):  Don't
10863         set yylval.code to a TREE_CODE; this is better done in parser.
10864         * ch-parse.y:  Some work with case labels and tuples.
10865         Get literal range as tuple (and case) labels working.
10866         Fix some problems introduced by recent grammar overhaul.
10868 Fri Dec 11 13:28:48 1992  Bill Cox  (bill@cygnus.com)
10870         * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
10871         got long, real expressions working.  We can also call a func-
10872         tion and use its return value.
10874 Thu Dec 10 14:45:17 1992  Per Bothner  (bothner@cygnus.com)
10876         * ch-parse.y:  Major change to remove or at least identify
10877         parser ambiguities.  One result:  We now allow actions that
10878         start with '(', as required by teh Blue Book.  This does break
10879         some things; look for FIXME for things that need work.
10880         * ch-typeck.c (chill_expand_case_expr):  We need an extra
10881         level of looping to (in the future) support <case label
10882         specification>s with more than one <case label list>.
10884 Thu Dec 10 09:21:41 1992  Bill Cox  (bill@cygnus.com)
10886         * ch-actions.c, ch-expr.c: Implement string assignments
10887         and relationals.
10889 Thu Dec 10 07:17:35 1992  Bill Cox  (bill@cygnus.com)
10891         * ch-decl.c, ch-typeck.c: rest of previous commit.
10893 Wed Dec  9 18:26:29 1992  Bill Cox  (bill@cygnus.com)
10895         * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
10896         regression test and fix bit arrays and set ops.
10898 Mon Dec  7 14:57:46 1992  Bill Cox  (bill@cygnus.com)
10900         * ch-actions.c: implement crude relationals between
10901         non-exotic operands, such as integers.
10903 Mon Dec  7 10:42:35 1992  Bill Cox  (bill@cygnus.com)
10905         * ch-actions.c: implement relational, logic operations
10906         on arrays of BOOLs.
10908 Mon Dec  7 08:55:20 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10910         * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
10911         indicate we are done with initialization.
10913         * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
10914         `grant all'.
10915         (start_chill_function): Ditto.
10917         * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
10918         (compiler_directive): Don't confuse compiler directives with
10919         equality comparison operators.
10921         * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
10923 Sun Dec  6 13:12:32 1992  Bill Cox  (bill@cygnus.com)
10925         * ch-actions.c: repair set inequality code.
10927 Sun Dec  6 11:15:59 1992  Bill Cox  (bill@cygnus.com)
10929         * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
10930         relational expressions, including (<, <=, =, /=, >, >=, IN).
10932 Fri Dec  4 13:54:58 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
10934         * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
10935         Pascal-required ones, since C++ no longer needs them.  When
10936         Chill's public, a comment can be added to the effect that
10937         SET_LE_EXPR is also used by Chill.
10939 Fri Dec  4 12:05:01 1992  Bill Cox  (bill@cygnus.com)
10941         * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
10943 Fri Dec  4 10:23:10 1992  Bill Cox  (bill@cygnus.com)
10944         * Get *.def and *.c in sync.
10946 Fri Dec  4 06:48:41 1992  Fred Fish  (fnf@cygnus.com)
10948         * ch-actions.c (lang_init):  Change types "long" and
10949         "ulong" from 16 bits to 32.
10950         * dwarfout.c (fundamental_type_code):  Use FT_signed_char
10951         for type "byte" and FT_unsigned_char for type "ubyte".
10953 Thu Dec  3 15:13:24 1992  Bill Cox  (bill@cygnus.com)
10954         * ch-actions.c, ch-tree.def, ch-parse.y:  preparation
10955         for powerset expressions.
10957 Tue Dec  2 17:02:30 1992  Bill Cox  (bill@cygnus.com)
10958         * ch-actions.c: sketch code for exceptions generated
10959         by builtin routines.
10961 Tue Dec  2 12:49:50 1992  Bill Cox  (bill@cygnus.com)
10962         * ch-actions.c, ch-parse.y: add support for lower()
10963         upper() builtin functions.
10965 Wed Dec  2 12:03:30 1992  Fred Fish  (fnf@cygnus.com)
10967         * Makefile.in (chillrt0.o, install-chillrt0):  Remove.
10968         * chill (library):  Remove chillrt0.o.
10969         * chillrt/Makefile:  Remove maintenance of chillrt0.o as a
10970         separate file.  Now gets put in libchill.a.
10972 Tue Dec  2 10:100:20 1992  Bill Cox  (bill@cygnus.com)
10974         * ch-parse.y, ch-actions.c: add support for num()
10975         builtin function.
10977 Wed Dec  2 09:52:06 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
10979         * ch-decl.c (fixup_unknown_type): New function.
10980         (push_newmode,push_synmode): Call `fixup_unknown_type' when we
10981         see a declaration that uses `unknown_type_node'.  FIXME.
10983         * ch-grant.c (decode_constant): New function.
10984         (decode_decl): Call `decode_constant' for CONST_DECLs.
10986         * ch-lex.l (char action): Use ridpointers instead of
10987         lookup_name to get "char"'s declaration.
10989         * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
10990         when we need to build a TYPE_DECL.
10992 Tue Dec  2 09:44:05 1992  Bill Cox  (bill@cygnus.com)
10994         * ch-typeck.c: clean up a gcc warning with a forward
10995         declaration of build_string_type.
10997 Tue Dec  1 16:51:05 1992  Bill Cox  (bill@cygnus.com)
10999         * ch-actions.c: completely remove those builtin calls
11000         that are duplicated in c-decl.c
11002 Tue Dec  1 16:38:51 1992  Fred Fish  (fnf@cygnus.com)
11004         * ch-actions.c (lang_init):  Ifdef out initializations for
11005         __builtin_abs and __builtin_fabs, since they are duplicates of
11006         initializations in c-decl.c, and trigger spurious warnings.
11008 Tue Dec  1 16:35:18 1992  Bill Cox  (bill@cygnus.com)
11010         * ch-parse.y: make size() work with a typename argument.
11012 Tue Dec  1 16:15:56 1992  Bill Cox  (bill@cygnus.com)
11014         * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
11015         functions min, max, card.
11017 Tue Dec  1 12:35:56 1992  Bill Cox  (bill@cygnus.com)
11019         * ch-lex.l: fix char-type
11021 Tue Dec  1 11:10:56 1992  Bill Cox  (bill@cygnus.com)
11023         * ch-parse.y, ch-actions: added parsing and processing 
11024         for upper, lower, and length built-ins.
11026 Tue Dec  1 09:40:49 1992  Fred Fish  (fnf@cygnus.com)
11028         * dwarf.h (LANG_CHILL):  Add as GNU extension.
11029         * dwarfout.c (output_compile_unit_die):  Test language_string and
11030         set LANG_CHILL if appropriate.
11031         * ch-parse.y (language_string):  New for chill.
11032         * chillrt:  Renamed directory chill to chillrt.
11033         * chill:  Renamed chillsh to chill.
11034         * Makefile.in:  Adjust for renamings.
11035         * chillrt/Makefile:  Adjust for directory renaming.
11037 Mon Nov 30 17:35:33 1992  Fred Fish  (fnf@cygnus.com)
11039         * chillsh:  New script frontend (ala g++), installed as "chill".
11040         Can't be called "chill.sh" because make tries to cat it into the
11041         "chill" directory.  Can't be called just "chill" cause that's
11042         already there as a directory.
11043         * Makefile.in:  Add rules to install chillsh as "chill".
11044         * chill/libchill.c:  Temporarily ifdef out stuff that wants
11045         to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
11046         which itself causes linkage to fail.
11048 Mon Nov 30 16:28:19 1992  Bill Cox  (bill@cygnus.com)
11050         * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
11051         conversion routines.
11052         * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
11053         Added production for SIZE(expr).
11054         * ch-actions.c: Add semantic routine chill_sizeof ().
11056 Mon Nov 30 16:20:40 1992  Per Bothner  (bothner@cygnus.com)
11058         * ch-lex.l, ch-parse.y:  Translate token PFEIL into English ARROW.
11059         * ch-parse.y (op6):  Remove handling of string repetition operator,
11060         until we can figure out a way to parse it correctly.
11061         * ch-parse.y (optmodename):  New non-terminal.
11062         * ch-parse.y (tuple):  Merge the two variants using optmodename.
11063         * ch-parse.y (location):  Add semantic actions for
11064         dereferencing operator ->.
11066 Mon Nov 30 08:01:29 1992  Bill Cox  (bill@cygnus.com)
11068         * ch-actions.c: removed compile warning, better code for abs.
11070         * ch-parse.y: add productions for builtin functions succ, pred,
11071         abs, and size.  Add %tokens also.  Sort %tokens alphabetically.
11073         * ch-lex.l: add parsing for builtin function names, such as abs,
11074         pred, succ, etc.  Put flex -a option into Makefile.in, so we can
11075         clean up the lexer soon.
11077 Tue Nov 24 14:18:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
11079         * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
11080         New functions, for code common to CASE actions and expressions.
11081         * chill.y:  Replace some code by calls to chill_handle_case_label
11082         and chill_handle_case_default.
11083         * ch-typeck.c (chill_expand_case_expr):  Add semantics.
11085         * tree.c:  Change doing_chill_thang from extern to common.
11087 Mon Nov 23 18:34:22 1992  Per Bothner  (bothner@rtl.cygnus.com)
11089         * ch-tree.def:  New CASE_EXPR type, for case expressions.
11090         * ch-expr.c (chill_expand_expr):  Hook for CASE_EXPR.
11091         * ch-typeck.c (chill_expand_case_expr):  New function.
11092         Placeholder to implement case expressions.
11093         * ch-typeck.c (chill_expand_result, chill_expand_return):
11094         Handle mode-unspecified tuples and case expressions in
11095         the context of RETURN and RESULT actions.
11096         * chill.y (assignaction):  Handle case expressions in the
11097         context of the RHS of an assignment action.
11098         * chill.y (caseaction): Remove spurious duplicate OF in grammar.
11099         * chill.y:  Handle labeled structure tuples.
11100         * chill.y:  New rules to parse CASE expressions.
11101         * tree.c (build_function_types):  Allow Chill functions
11102         to return arrays and functions.
11104 Wed Nov 18 13:50:28 1992  Per Bothner  (bothner@rtl.cygnus.com)
11106         * ch-typeck.c (chill_expand_tuple):  New function. Expand a
11107         tuple (constructor) given an expected (context) type.
11108         * chill.y:  Implement 'LHS := TUPLE' using expand_chill_tuple,
11109         using the mode of the LHS and the expected type of the TUPLE.
11110         * chill.y:  Implement initialization.
11111         * chill.y:  Fix some syntax bugs (forbidlist must be surrounded
11112         by parentheses), and remove or note ambiguities.
11113         * chill.y:  Started converting layout style to be like c-parse.in.
11114         * chill.y:  Implement IF expressions.
11115         * chill.y:  Added syntax rules for tuples.  Labelled and unlabelled
11116         array tuples should now work (in some contexts).
11117         * ch-actions.c:  Initialize doing_chill_thang to 1.
11118         * ch-decl.c (do_decls):  Set DECL_INITIAL if there is an
11119         initializer, to make pushdecl and finish_decl work.
11120         * c-decl.c (convert_for_assignment):  If Chill, don't convert
11121         function and arrays into pointers.  (Maybe functions should
11122         still be converted?)
11123         * c-typeck.c (grokdeclarator):  Allow functions in Chill
11124         to return arrays and functions.
11126 Mon Nov 16 15:40:47 1992  Per Bothner  (bothner@rtl.cygnus.com)
11128         * chill.y (exprlist_get_single):  New function, used when
11129         parsing tuples.
11130         * chill.y:  Re-did parsing of tuples to remove ambiguities.
11131         This was a bitch.
11133 Tue Nov 10 16:30:55 1992  Per Bothner  (bothner@rtl.cygnus.com)
11135         * ch-typeck.c (chill_expand_result);  Set TREE_SIDE_EFEFCTS
11136         flags on assignment to result.
11137         * ch-typeck.c (build_chill_array_ref):  Subtract lower
11138         bound of domain if non-zero.  Preliminary hook for range checking.
11139         * ch-tree.h, chill.l:  Combine variables range_check and
11140         range_check_disabled into global variable range_checking.
11141         * ch-tree.h:  Better definitions of CH_CLASS_IS_VALUE
11142         CH_CLASS_IS_DERIVED.