OSDN Git Service

* chill.texi (INFO-DIR-ENTRY): Fix chill entry.
[pf3gnuchains/gcc-fork.git] / gcc / ch / ChangeLog
1 Sat Jun  3 15:31:07 2000  Jeffrey A Law  (law@cygnus.com)
2
3         * chill.texi (INFO-DIR-ENTRY): Fix chill entry.
4
5 2000-06-02  Richard Henderson  <rth@cygnus.com>
6
7         * lang.c (lang_get_alias_set): New.
8
9 Sat May 27 11:24:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10
11         * lang.c (deep_const_expr): Use first_rtl_op.
12         * satisfy.c (satisfy): Use TREE_CODE_LENGTH.
13
14 2000-05-18  Chris Demetriou  <cgd@netbsd.org>
15
16         * Makefile.in (hash.h): Delete a redundant use of gawk and sed.
17
18 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
19
20         * decl.c (c_decode_option): Update -Wall unused flags by
21         calling set_Wunused.
22         (poplevel): Replace warn_unused with warn_unused_label.
23
24 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
25
26         * ch-tree.h: Update prototypes.  Remove prototypes for
27         functions declared elsewhere.
28         * decl.c (define_label): Constify filename parameter.
29         * grant.c (globalize_decl, set_default_grant_file): Constify
30         local char * variables.  Don't declare
31         first_global_object_name or asm_out_file.
32         * lang.c (chill_real_input_filename): Constify.
33         * lex.c (init_parse): Constify parameter and return value.
34         * parse.c: Don't declare input_filename.
35         (ch_expand_asm_operands): Constify filename parameter.
36         (parse_multi_dimension_case_action): Constify local char *.
37         * satisfy.c (safe_satisfy_decl): Constify local char *.
38
39 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40
41         * ch-tree.h (init_function_start): Constify.
42
43 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
44
45         * ch/lex.c: Remove references to cccp.c.
46
47 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
48
49         * lang-specs.h: Pass -fno-show-column to the preprocessor.
50
51 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
52
53         * expr.c (chill_expand_expr): Pass bit alignment to emit_block_move.
54
55 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
56
57         * actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT.
58         * typeck.c (expand_constant_to_buffer): Use int_byte_position.
59         (extract_constant_from_buffer): Likewise.
60
61 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
62
63         * typeck.c (min_precision): New function.
64         (build_chill_slice): Use host_integerp and tree_low_cst.
65         (expand_constant_to_buffer): Likewise and also int_bit_position.
66         LO is unsigned HOST_WIDE_INT
67         (build_chill_array_ref_1): Make `i' be HOST_WIDE_INT; use tree_low_cst.
68         (extract_constant_from_buffer): Sizes are now HOST_WIDE_INT.
69         Use host_integerp and tree_low_cst.
70         (build_chill_bin_type): Use host_integerp and tree_low_cst.
71         (layout_chill_range_type): Use tree_int_cst_sgn, compare_tree_int,
72         tree_low_cst, and min_precision.
73         (apply_chill_array_layout): Cleanups for types of variables
74         and use tree_int_cst_sgn, compare_tree_int, and tree_low_cst.
75         (apply_chill_field_layout): Likewise.
76
77 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
78
79         * grant.c (globalize_decl): Constify a char*.
80
81 Mon Mar  6 17:52:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
82
83         * actions.c (chill_convert_for_assignment): INDEX is unsigned
84         HOST_WIDE_INT.
85         * ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH since unsigned.
86         * except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
87         Use compare_tree_int.
88         (expand_goto_except_cleanup): Likewise.
89
90 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
91
92         * decl.c (current_function_decl): Move to toplev.c.
93
94 Mon Feb 28 08:12:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
95
96         * ch-tree.h (DECL_ACTION_NESTING_LEVEL): Use new tree union name.
97         * decl.c (finish_struct): Don't clear DECL_FIELD_SIZE.
98         * typeck.c (make_chill_struct_type): Likewise.
99         (apply_decl_field_layout): General cleanup.
100         Set DECL_SIZE instead of DECL_FIELD_SIZE.
101
102 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
103
104         * actions.c (chill_convert_for_assignment): Don't use size_binop
105         for things that aren't sizes.
106         (expand_varying_length_assignment): Likewise.
107         * convert.c (digest_array_tuple, convert): Likewise.
108         * typeck.c (build_chill_slice, smash_dummy_type): Likewise.
109         (build_chill_slice_with_range): Likewise.
110         (build_chill_slice_with_length): Likewise.
111         (build_array_from_set): Adjust types for size_binop.
112         * expr.c (build_concat_expr, build_chill_repetition_op): Likewise.
113         (build_chill_sizeof): Use TYPE_SIZE_UNIT.
114         * tree.c (build_string_type): Pass proper type to size_binop.
115
116 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
117
118         * decl.c (layout_enum): Set DECL_SIZE_UNIT.     
119         * satisfy.c (safe_satisfy_decl): Likewise.
120
121 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
122
123         * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
124
125 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
126
127         * grant.c: Don't declare `version_string'.
128
129 2000-02-11  Nathan Sidwell  <nathan@acm.org>
130
131         * decl.c (init_decl_processing): Remove duplicate decl of
132         set_alignment.
133
134 2000-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
135
136         * expr.c (compare_records): Delete maximum_field_alignment declaration.
137         * inout.c (inout_init): Likewise.
138         (build_chill_gettextaccess): Likewise.
139         (build_enum_tables): Likewise.
140         * lang.c: Likewise.
141         * satisfy.c (satisfy): Likewise.
142         * tasking.c (build_tasking_struct): Likewise.
143         (build_tasking_message_type): Likewise.
144         * typeck.c (build_init_struct): Likewise.
145
146         * except.c (emit_setup_handler): Make save_maximum_field_alignment
147         unsigned int to match maximum_field_alignment.
148         * inout.c (inout_init): Likewise.
149         (build_chill_gettextaccess): Likewise.
150         (build_enum_tables): Likewise.
151         * tasking.c (build_tasking_struct): Likewise.
152         (build_tasking_message_type): Likewise.
153         * typeck.c (build_init_struct): Likewise.
154
155 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
156
157         * except.c (maximum_field_alignment): Remove duplicate declaration.
158
159 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
160
161         * All files: PROTO -> PARAMS.
162
163 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
164
165         * lex.c: Include tm_p.h.
166
167 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
168
169         * actions.c (update_else_range_for_int_const): Initialize
170         variables `lowval' and `highval'.
171         (update_else_range_for_range): Likewise for `low_range_val' and
172         `high_range_val'.
173
174 1999-12-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
175
176         * typeck.c (apply_chill_array_layout, apply_chill_field_layout):
177         Avoid the use of ANSI string concatenation.
178
179         * expr.c (chill_expand_case_expr): Likewise.
180
181 1999-11-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
182
183         * expr.c (build_chill_function_call): Don't call a variadic
184         function with a non-literal format string.
185         
186         * grant.c (write_spec_module): Likewise.
187         
188         * parse.c (require, expect): Likewise.
189
190         * tasking.c (get_struct_type_name, get_struct_debug_type_name,
191         get_tasking_code_name, get_struct_variable_name,
192         get_process_wrapper_name, build_start_process): Likewise.
193
194         * typeck.c (valid_array_index_p): Likewise.
195
196 Sun Oct 31 22:33:33 1999  Jeffrey A Law  (law@cygnus.com)
197
198         * Makefile.in (convert.o, typeck.o): Depend on output.h
199         * convert.c: Include output.h.
200         * typeck.c: Include output.h.
201         (initializer_constant_valid_p): Delete fucntion.
202         * ch-tree.h (initializer_constant_valid_p): Delete prototype.
203
204 1999-10-26  Mark Mitchell  <mark@codesourcery.com>
205
206         * ch-tree.h (remember_end_note): Remove prototype.
207         * decl.c (poplevel): Don't call remember_end_note.
208
209 Fri Sep 24 10:48:10 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
210
211         * ch-tree.h (builtin_function): Don't declare.
212         * decl.c (builtin_function): New arg CLASS.  Arg FUNCTION_CODE now of
213         type int.  All callers changed.
214         Set the builtin's DECL_BUILT_IN_CLASS.
215
216 1999-09-20  Nick Clifton  <nickc@cygnus.com>
217
218         * lang.c (lang_decode_option): Extend comment.
219
220 1999-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
221
222         * lex.c (maybe_downcase, getlc, handle_generic_pragma,
223         check_newline): Use uppercase ctype macro from system.h.
224
225 1999-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
226
227         * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
228
229 Fri Sep 10 10:32:32 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
230
231         * ch-tree.h: Delete declarations for all tree nodes now moved to
232         global_trees.
233         * expr.c: Likewise.
234         * typeck.c: Likewise.
235         * decl.c: Delete their definitions.
236         (init_decl_processing): Call build_common_tree_nodes and
237         build_common_tree_nodes_2 instead of building their nodes here.
238         Use set_sizetype instead of assigning sizetype.
239
240 1999-09-08  Bruce Korb  autogen@linuxbox.com
241
242         * Makefile.in: Give the gperf user a hint about why "gperf -F" fails.
243
244 Tue Sep  7 15:59:56 1999  Dave Brolley  <brolley@cygnus.com>
245
246         * parse.h: Undefine DELAY if it's defined.
247         (PACK,NOPACK,POS): Remove erroneous comments regarding these tokens.
248         Also, move them to their proper place alphabetically.
249
250 1999-09-04  Mark Mitchell  <mark@codesourcery.com>
251
252         * Make-lang.in (cc1chill): Depend on ggc-callbacks.o.
253         * Makefile.in (CHILL_OBJS): Add ggc-callbacks.o.
254
255 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
256
257         * parse.c (language_string): Constify.
258
259 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
260
261         * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
262         Remove hacks for stuff which now comes from libiberty.
263
264 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
265
266         * lang.c (chill_print_error_function): Constify a char*.
267
268 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
269
270         * Makefile.in (ch-version.c): Constify a char*.
271
272         * actions.c (id_cmp, warn_unhandled, adjust_return_value,
273         update_else_range_for_int_const, update_else_range_for_range,
274         update_else_range_for_range_expr, update_else_range_for_type,
275         compute_else_range, check_case_value,
276         chill_handle_case_label_range,
277         chill_handle_multi_case_label_range,
278         chill_handle_multi_case_else_label, chill_handle_multi_case_label,
279         chill_handle_multi_case_label_list print_missing_cases): Add
280         static prototypes.
281         (build_exception_variant): Cast the function argument of qsort.
282         (build_rts_call, warn_unhandled, chill_convert_for_assignment,
283         adjust_return_value, chill_expand_result,
284         build_multi_case_selector_expression, print_missing_cases):
285         Constify a char*.
286         (print_missing_cases): Introduce an intermediary non-const ptr.
287         Add brackets and indent.
288
289         * ch-tree.h (maybe_building_objc_message_expr,
290         maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
291         (push_handler, pop_handler): Add prototypes.
292         (builtin_function, valid_array_index_p,
293         build_chill_exception_decl, build_rts_call,
294         chill_convert_for_assignment, display_int_cst,
295         build_chill_addr_expr, check_have_mode, get_identifier3,
296         build_chill_string, register_seize_path, get_unique_identifier,
297         add_taskstuff_to_list, gnuchill_version): Constify a char*.
298         (finish_chill_function): Add void prototype argument.
299
300         * convert.c (convert_to_reference, convert_to_boolean,
301         convert_to_char, base_type_size_in_bytes, remove_tree_element,
302         check_ps_range, digest_powerset_tuple, digest_structure_tuple,
303         digest_array_tuple, convert1): Add static prototypes.
304         (base_type_size_in_bytes): Hide unused function.
305         (display_int_cst, digest_array_tuple): Constify a char*.
306
307         * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
308         proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
309         build_implied_names, bind_sub_modules, layout_array_type,
310         do_based_decl, handle_one_level, label_value_cmp,
311         find_implied_types): Add static prototypes.
312         (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
313         Constify a char*.
314         (layout_chill_variants): Cast the function argument of qsort.
315         (start_chill_function, fix_identifier, init_decl_processing):
316         Constify a char*.
317         (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
318         Use xcalloc instead of xmalloc/bzero.
319         (builtin_function, build_chill_exception_decl,
320         finish_outer_function): Constify a char*.
321
322         * except.c (start_handler_array, finish_handler_array): Add static
323         prototypes.
324
325         * expr.c (chill_expand_expr, chill_expand_case_expr,
326         check_arglist_length, internal_build_compound_expr,
327         is_really_instance, invalid_operand, invalid_right_operand,
328         build_chill_abstime, build_allocate_memory_call,
329         build_allocate_global_memory_call, build_return_memory,
330         build_chill_duration, build_chill_floatcall,
331         build_allocate_getstack, build_chill_allocate,
332         build_chill_getstack, build_chill_terminate, build_chill_inttime,
333         build_chill_lower_or_upper, build_max_min,
334         build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
335         build_compare_set_expr, scalar_to_string, build_concat_expr,
336         build_compare_string_expr, compare_records, string_char_rep,
337         build_boring_bitstring): Add static prototypes.
338         (check_have_mode, chill_expand_expr, build_chill_floatcall,
339         build_allocate_getstack, build_max_min, build_chill_function_call,
340         expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
341         string_char_rep): Constify a char*.
342
343         * gperf (hash, in_word_set): Add prototypes.
344
345         * grant.c (newstring, strfree, append, prepend,
346         grant_use_seizefile, decode_layout, grant_array_type,
347         grant_array_type_selective, get_tag_value,
348         get_tag_value_selective, print_enumeral, print_enumeral_selective,
349         print_integer_type, find_enum_parent, print_integer_selective,
350         print_struct, print_struct_selective, print_proc_exceptions,
351         print_proc_tail, print_proc_tail_selective, find_in_decls,
352         in_ridpointers, grant_seized_identifier, globalize_decl,
353         grant_one_decl_selective, compare_memory_file, search_in_list,
354         really_grant_this): Add static prototypes.
355         (newstring, append, prepend, grant_use_seizefile,
356         print_integer_type, decode_constant, grant_one_decl_selective,
357         header_template): Constify a char *.
358
359         * inout.c (add_enum_to_list, build_chill_io_list_type,
360         build_io_types, declare_predefined_file, build_access_part,
361         textlocation_mode, check_assoc, assoc_call, check_transfer,
362         connect_process_optionals, connect_text, connect_access,
363         check_access, check_text, get_final_type_and_range,
364         process_io_list, check_format_string, get_max_size,
365         check_exprlist): Add static prototypes.
366         (declare_predefined_file, check_assoc, assoc_call, check_transfer,
367         check_access, check_text, process_io_list): Constify a char*.
368
369         * lang.c (deep_const_expr, chill_print_error_function): Add static
370         prototypes.
371
372         * lex.c (close_input_file, maybe_number, string_or_char): Constify
373         a char*.
374         (ch_lex_init, skip_directive, same_file, getlc, yywrap,
375         yy_refill): Add static prototypes.
376         (build_chill_string, same_file, register_seize_path): Constify a
377         char*.
378
379         * lex.h (finish_chill_seizes): Remove unused prototypes.
380
381         * loop.c (build_temporary_variable, maybe_make_for_temp,
382         get_unique_identifier): Constify a char*.
383
384         * parse.c (ch_parse_init, check_end_label, end_function,
385         build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
386         forward_token_, require, check_token, expect, define__PROCNAME__):
387         Add static prototypes.
388         (build_prefix_clause, expect): Constify a char*.
389         (parse_expression, parse_primval, parse_untyped_expr,
390         parse_opt_untyped_expr, parse_opt_actions): Add void prototype
391         argument.
392         (parse_opt_name_string, parse_simple_name_string,
393         parse_name_string, parse_defining_occurrence, parse_name,
394         parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
395         parse_spec_module, parse_semi_colon,
396         parse_defining_occurrence_list, parse_mode_definition,
397         parse_mode_definition_statement, parse_synonym_definition,
398         parse_synonym_definition_statement, parse_on_exception_list,
399         parse_on_alternatives, parse_loc_declaration,
400         parse_declaration_statement, parse_optforbid, parse_postfix,
401         parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
402         parse_grant_statement, parse_seize_statement,
403         parse_param_name_list, parse_param_attr, parse_formpar,
404         parse_formparlist, parse_opt_result_spec, parse_opt_except,
405         parse_opt_recursive, parse_procedureattr, parse_proc_body,
406         parse_procedure_definition, parse_processpar,
407         parse_processparlist, parse_process_definition,
408         parse_signal_definition, parse_signal_definition_statement,
409         parse_then_clause, parse_opt_else_clause, parse_expr_list,
410         parse_range_list_clause, pushback_paren_expr, parse_case_label,
411         parse_case_label_list, parse_case_label_specification,
412         parse_single_dimension_case_action,
413         parse_multi_dimension_case_action, parse_case_action,
414         parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
415         parse_asm_action, parse_begin_end_block, parse_if_action,
416         parse_iteration, parse_delay_case_event_list,
417         parse_delay_case_action, parse_do_action, parse_receive_spec,
418         parse_receive_case_action, parse_send_action, parse_start_action,
419         parse_call, parse_tuple_fieldname_list, parse_tuple_element,
420         parse_opt_element_list, parse_tuple, parse_operand6,
421         parse_operand5, parse_operand4, parse_operand3, parse_operand2,
422         parse_operand1, parse_operand0, parse_case_expression,
423         parse_then_alternative, parse_else_alternative,
424         parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
425         parse_step, parse_opt_layout, parse_field_name_list,
426         parse_fixed_field, parse_variant_field_list,
427         parse_variant_alternative, parse_field, parse_structure_mode,
428         parse_opt_queue_size, parse_procedure_mode, parse_program,
429         parse_pass_1_2): Add static prototypes.
430         (parse_process_definition): Remove extra argument in function call.
431         (parse_range_list_clause): Likewise.
432
433         * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
434         satisfy_list, satisfy_list_values): Add static prototype.
435         (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
436
437         * tasking.c (make_process_struct): Remove unused prototype.
438         (validate_process_parameters, get_struct_variable_name,
439         decl_tasking_code_variable, get_struct_debug_type_name,
440         get_process_wrapper_name, build_tasking_enum,
441         build_tasking_message_type, build_receive_signal_case_label,
442         build_receive_buffer_case_label, build_receive_buffer_case_end,
443         build_receive_signal_case_end): Add static prototypes.
444         (struct_name, struct_debug_name, data_name, wrapper_name,
445         get_struct_type_name, get_struct_debug_type_name,
446         get_tasking_code_name, get_struct_variable_name,
447         get_process_wrapper_name): Constify a char*.
448         (validate_process_parameters, get_struct_variable_name,
449         decl_tasking_code_variable): Hide unused functions.
450         (build_start_process, add_taskstuff_to_list, build_queue_length):
451         Constify a char*.
452
453         * tree.c (make_powerset_type): Add static prototype.
454         (get_identifier3, build_alias_decl, decl_check_rename): Constify a
455         char*.
456
457         * typeck.c (extract_constant_from_buffer,
458         expand_constant_to_buffer, build_empty_string,
459         make_chill_pointer_type, make_chill_range_type,
460         apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
461         apply_chill_field_layout): Add static prototype.
462         (valid_array_index_p, extract_constant_from_buffer,
463         chill_expand_tuple): Constify a char*.
464         (layout_chill_struct_type): Cast the function argument of qsort.
465
466 1999-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
467
468         * actions.c (lang_identify): Constify a char*.
469
470         * lang.c (chill_print_error_function): Likewise.
471         (lang_init): Remove redundant prototype for `print_error_function'.
472
473 1999-07-25  Richard Henderson  <rth@cygnus.com>
474
475         * decl.c (va_list_type_node): New.
476
477 1999-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
478
479         * Make-lang.in (CHILL.stage1): Depend on stage1-start.
480         (CHILL.stage2): Likewise for stage2-start.
481         (CHILL.stage3): Likewise for stage3-start.
482         (CHILL.stage4): Likewise for stage4-start.
483
484 Tue May 18 00:21:34 1999  Zack Weinberg  <zack@rabi.phys.columbia.edu>
485
486         * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
487         was not given.
488
489 1999-05-10 18:21 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
490
491         * lang-specs.h: Pass -$ to the preprocessor.
492
493 Tue May  4 14:52:53 1999  Dave Brolley  <brolley@cygnus.com>
494
495         * actions.c (chill_expand_assignment): Use powersetlen to calculate the
496         length of an array of packed bits.
497
498 Tue Apr 20 23:37:01 1999   Nathan Sidwell  <nathan@acm.org>
499
500         * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
501         order.
502
503 Wed Apr 14 21:07:30 1999  Mumit Khan  <khan@xraylith.wisc.edu>
504
505         * config-lang.in (compilers): Add exeext.
506         (stagestuff): Likewise.
507
508 Fri Apr  2 15:49:44 1999  Jeffrey A Law  (law@cygnus.com)
509
510         * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
511
512 Wed Mar 31 10:44:47 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
513
514         * Makefile.in (hash.h): Generate using gperf language 'C', not
515         'KR-C', so gperf uses the `const' keyword on strings.
516          
517         * gperf (resword): Const-ify a char*.
518
519 Sun Mar 28 00:30:36 1999  Jeffrey A Law  (law@cygnus.com)
520
521         * Make-lang.in (CHILL.dvi): New target.
522         (CHILL.mostlyclean): Remove remnants of old runtime library structure.
523
524 1999-02-20  Craig Burley  <craig@jcb-sc.com>
525
526         * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
527         target instead of the chill.texi file.
528         (ch/chill.info): New target, depends on the chill.texi source file.
529         Its command writes ch/chill.info instead of chill.info.
530         (CHILL.install-info): Install from ch/chill.info instead of
531         chill.info.
532         If any ch/chill.info* files exist, delete *all* chill.info* files
533         in $infodir first, not just the ones corresponding to the
534         files to be installed (just in case the docs get smaller).
535
536 Sun Jan 31 20:34:29 1999  Zack Weinberg  <zack@rabi.columbia.edu>
537
538         * decl2.c: Don't define flag_no_ident here.  Don't process
539         -f(no-)ident here.
540         * ch-tree.h: Don't declare flag_no_ident here.
541         * lang-specs.h: Map -Qn to -fno-ident.
542
543 Tue Jan 19 23:24:36 1999  Jeffrey A Law  (law@cygnus.com)
544
545         * Makefile.in (typeck.o): Depend on insn-codes.h.
546         * actions.c (chill_handle_multi_case_label): Initialize "expr".
547         * decl.c (poplevel): Initialize "block_previously_created".
548         * expr.c (chill_expand_expr): Initialize "size0" and "size1".
549         (fold_set_expr): Initialize "buffer1".
550         * inout.c (process_io_list): Initialize "to_assign".
551         (check_exprlist): Initialize "result".
552         * parse.c (expand_expr): Declare.
553         (parse_multi_dimension_case_action): Initialize "end_case_label".
554         * tasking.c (build_start_process): Initialize "struct_type_node".
555         * typeck.c (apply_chill_field_layout): Initialize "word".
556         (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up      
557         signed/unsigned comparison warning.
558
559 Mon Jan 18 11:55:06 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
560
561         * ch-tree.h: Remove conflicting prototypes for pedwarn,
562         warning_with_decl, and make_dcl_rtl.
563
564 Sun Jan 17 21:53:23 1999  Jeffrey A Law  (law@cygnus.com)
565
566         * Makefile.in: Do not put ^Ls at the start of a line.
567
568 Wed Jan  6 02:53:38 1999  Jeffrey A Law  (law@cygnus.com)
569
570         * Makefile.in: Add some missing $(exeext).  Remove some obsolete
571         runtime stuff.
572         * Make-lang.in: Similarly.
573         
574 Tue Nov 24 09:57:34 1998  Jeffrey A Law  (law@cygnus.com)
575
576         * Makefile.in (lex.c): Do not depend on hash.h.
577         (lex.o): Depend on hash.h.
578
579 Mon Oct 19 12:13:47 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
580
581         * Makefile.in (lex.o): Depend on dwarfout.h.
582
583         * lang-specs.h: Add missing braces in initializer.
584
585         * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
586
587 Thu Oct 15 09:25:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
588
589         * expr.c (build_chill_card): Use &&, not &, when comparing truth
590         values.
591
592         * parse.c (parse_spec_module): Remove unused variable
593         `module_name', but preserve function call from initialization.
594         (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
595         
596         * inout.c (init_text_location): Remove unused variable `textlength'.
597
598 Wed Oct 14 22:19:48 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
599
600         * typeck.c (build_chill_cast): Fix typo in assignment statement.
601
602         * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
603         when printing a `tree'.
604
605 Fri Oct  9 13:01:23 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
606
607         * ch-tree.h (build_delay_case_end): Remove unused parameter.
608         (build_receive_case_end): Likewise.
609         (check_queue_size): Likewise.
610
611         * parse.c: Callers changed.
612
613         * satisfy.c: Likewise.
614
615         * tasking.c (build_receive_buffer_case_end): Remove unused
616         parameter `label_cnt'.
617         (build_receive_signal_case_end): Likewise.
618         (build_receive_case_end): Likewise.
619         (build_delay_case_end): Likewise.
620         (check_queue_size): Likewise for parameter `type'.
621         All callers changed.
622
623 Thu Oct  8 05:57:41 1998  Jeffrey A Law  (law@cygnus.com)
624
625         * typeck (type_for_mode): Only return TItype nodes when
626         HOST_BITS_PER_WIDE_INT is >= 64 bits.
627         (type_for_size): Similarly.
628         * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
629         when HOST_BITS_PER_WIDE_INT is >= 64 bits.
630         (init_decl_processing): Only create TItype nodes when
631         HOST_BITS_PER_WIDE_INT is >= 64 bits.
632
633 Wed Oct  7 12:19:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
634
635         * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
636         (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
637
638 Thu Oct  1 10:43:45 1998  Nick Clifton  <nickc@cygnus.com>
639
640         * lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
641         HANDLE_GENERIC_PRAGMAS.
642         (handle_generic_pragma): New function: Parse generic pragmas.
643         
644 Wed Sep 30 20:22:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
645
646         * parse.c (emit_label): Fix return-type of prototype.
647
648 Wed Sep 30 19:41:36 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
649
650         * actions.c (chill_handle_multi_case_label): Always return a value
651         in function returning non-void. 
652
653         * except.c: Include OS headers before any local ones.
654
655         * typeck.c (layout_chill_range_type): Change type of variable
656         `negprecision' to int.
657         (apply_chill_array_layout): Initialize variables `stepsize' and
658         `start_bit'.
659         (layout_chill_struct_type): Change type of variable `min_align' to
660         unsigned int.
661         (smash_dummy_type): Change name of variable `main' to `main_tree'.
662
663 Wed Sep 30 19:24:41 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
664
665         * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
666         ensure enough bits for calculation.
667
668         * ch-tree.h (check_text_length): Remove unused parameter.
669
670         * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
671         function sprintf into the appropriate type for printing.
672
673         * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
674         format specifier.
675         (print_mode): Likewise.
676         (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
677
678         * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
679         the format specifier.
680
681         * inout.c (check_text_length): Remove unused parameter `type'.
682         (build_chill_associate): Initialize variables `arg1', `arg2',
683         `arg3', `arg4' and `arg5'.
684         (build_chill_modify): Likewise.
685         (scanformcont): Change type of variable `curr' to `unsigned char'.
686
687         * lex.c (maybe_downcase): Cast the argument of `tolower' to
688         `unsigned char'.
689
690         * satisfy.c (satisfy): Remove unused parameter in call to
691         `check_text_length'.
692
693         * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
694         as a `long' in call to function `error'.
695         (decl_tasking_code_variable): Likewise.
696
697 Wed Sep 30 19:03:02 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
698
699         * grant.c (decode_decl_selective): Cast switch's enum argument to
700         an int.
701         (really_grant_this): Add default case in switch.
702
703         * typeck.c (chill_resulting_class): Add default cases in switch.
704         Also add `break' statements after each case.
705
706 Tue Sep 29 21:37:33 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
707
708         * ch-tree.h (build_compare_expr): Change first argument's type
709         from `enum chill_tree_code' to `enum tree_code'.
710         (build_compare_discrete_expr): Likewise.
711
712         * expr.c (build_compare_set_expr): Likewise.
713         (build_compare_string_expr): Likewise.
714         (build_compare_expr): Likewise.
715         (build_compare_discrete_expr): Likewise.  Also add default case in
716         switch statement.
717         (compare_int_csts): Add default case in switch statement.
718
719 Sun Sep 20 11:02:55 1998  Robert Lipe  <robertl@dgii.com>
720
721         * except.c: Include system.h.
722
723         * Makefile.in (except.o): Depend on system.h.
724
725 Sun Sep 20 09:25:13 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
726
727         * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
728         lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
729         typeck.o): Depend on system.h and toplev.h.
730         (except.o): Depend on toplev.h.
731         (grant.o): Depend on system.h, toplev.h and output.h.
732
733         * actions.c: Include system.h and toplev.h.  Remove redundant
734         prototypes.
735         (build_cause_exception): Add default case in switch.
736         (update_else_range_for_range): Add parentheses around && within ||.
737         (chill_handle_multi_case_label_list): Remove unused variable
738         `selector_value'.
739         (print_missing_cases): Reconcile format specifiers vs arguments in
740         calls to sprintf.
741
742         * ch-tree.h: Don't include stdio.h.  Wrap prototypes using FILE*
743         with macro BUFSIZ.  Add missing prototypes.
744
745         * convert.c: Include system.h and toplev.h.  Remove redundant
746         prototypes.
747         (convert): Remove unused variable `errstr'.
748
749         * decl.c: Include system.h and toplev.h.  Remove redundant
750         prototypes.
751         (builtin_scope): Add missing initializers.
752         (clear_scope): Likewise.
753         (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
754         (copy_lang_decl): Likewise for parameter `node'.
755         (c_decode_option): Likewise for parameter `argc'.
756         (push_extern_function): Likewise for parameter `granting'.
757         (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
758         (pushdecl): Remove unused variable `t'.
759         (lookup_name_current_level): Make static and hide.
760         (lookup_name_for_seizing): Make static.
761         (finish_decl): Remove unused variable `type'.
762         (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
763         (complete_array_type): Mark parameters `type', `initial_value' and
764         `do_default' with ATTRIBUTE_UNUSED.
765         (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
766         (start_enum): Likewise.
767         (shadow_record_fields): Remove unused variables `type' and `parent'.
768
769         * except.c: Include toplev.h.  Remove redundant prototypes.
770
771         * expr.c: Include system.h and toplev.h.  Don't define NULL.
772         Remove redundant prototypes.
773         (internal_build_compound_expr): Mark parameter `first_p' with
774         ATTRIBUTE_UNUSED.
775         (build_allocate_getstack): Remove unused variable `init'.
776         (build_chill_pred_or_succ): Likewise for variable `limit'.
777         (varying_to_slice): Likewise for variable `doamin' [sic].
778         (finish_chill_binary_op): Likewise for variables `code0' and
779         `code1'.  Remove unused label `finish'.  Add explicit braces to
780         avoid ambiguous `else'.
781         (build_chill_addr_expr): Remove extra parameter in call to `error'.
782         (build_chill_unary_op): Remove unused variables `class' and `type0'.
783         (powersetlen): Remove unused variables `domain' and `temp'.
784
785         * grant.c: Include system.h, toplev.h and output.h.  Don't handle
786         strchr/strrchr.  Remove redundant prototypes.
787         (decode_constant_selective): Remove unused variables `op' and `wrk'.
788         (push_granted): Mark parameters `name' and `decl' with
789         ATTRIBUTE_UNUSED.
790
791         * inout.c: Include system.h and toplev.h.  Remove redundant
792         prototypes.
793         (textlocation_mode): Use &&, not &, when comparing two truth
794         values.
795         (scanformcont): Remove unused label `do_the_action'.
796
797         * lang.c: Include system.h and toplev.h.  Remove redundant
798         prototypes.
799         (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
800         (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
801         (lang_print_xnode): Likewise for parameters `file', `node' and
802         `indent'.
803         (lang_decode_option): Explicitly declare `explicit_ignore_case'.
804         (incomplete_type_error): Mark parameters `value' and `type' with
805         ATTRIBUTE_UNUSED.
806
807         * lex.c: Include system.h and toplev.h.  Remove redundant
808         prototypes.  Don't handle strchr/strrchr.  Use CAPITALIZED
809         versions of ctype macros from system.h.  Cast ctype arguments to
810         unsigned char when necessary.
811         (last_token, RETURN_TOKEN): Hide definition.
812         (push_back): Remove unused function.
813         (readstring): Change variable `i' to unsigned.
814         (yywrap): Remove unused variable `node'.
815
816         * loop.c: Include system.h and toplev.h.  Remove redundant
817         prototypes.
818         (chill_unsigned_type): Hide prototype and definition.
819         (begin_loop_scope): Remove unused variable `firstp'.
820         (nonvalue_begin_loop_scope): Likewise.
821
822         * parse.c: Include system.h and toplev.h.  Remove redundant
823         prototypes.
824         (quasi_signal): Hide.
825         (PEEK_TOKEN): Change return type to `enum terminal'.
826         (parse_mode_definition_statement): Remove unused variable `names'.
827         (parse_formpar): Remove unused parameter `in_spec_module'.  All
828         callers changed.
829         (parse_formparlist): Likewise.
830         (parse_processpar): Remove unused variable `parms'.
831         (parse_definition): Add explicit braces to avoid ambiguous `else'.
832         (parse_multi_dimension_case_action): Initialize variable
833         `begin_test_label'.  Remove unused variable `new_test'.
834         (parse_case_action): Remove unused variable `caseaction_flag'.
835         (parse_asm_clobbers): Remove unused variable `expr'.
836         (parse_delay_case_action): Initialize variable `label_cnt'.
837         (parse_action): Make function static.
838         (parse_tuple_element): Remove unused variable `list'.
839         (parse_primval): Add default case in switch.
840         (parse_variant_alternative): Remove unused variables `x' and
841         `variant_fields'.
842
843         * satisfy.c: Include system.h and toplev.h.  Remove redundant
844         prototypes.
845
846         * tasking.c Include system.h and toplev.h.  Remove redundant
847         prototypes.
848         (data_name): Hide.
849         (get_struct_variable_name): Likewise.
850         (validate_process_parameters): Mark parameter `parms' with
851         ATTRIBUTE_UNUSED.
852         (build_start_process): Initialize variable `tuple'.
853         (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
854
855         * timing.c: Include system.h and toplev.h.
856         (build_after_timeout_start): Remove unused variable `goto_where'.
857
858         * tree.c: Include system.h and toplev.h.  Remove redundant
859         prototypes.
860
861         * typeck.c: Include system.h and toplev.h.  Remove redundant
862         prototypes.
863         (extract_constant_from_buffer): Make function static.  Add
864         explicit braces to avoid ambiguous `else'.
865         (expand_constant_to_buffer): Likewise.
866         (build_chill_slice): remove unused variable `is_static'.
867         (chill_compatible): Add explicit braces to avoid ambiguous `else'. 
868         (apply_chill_array_layout): Remove unused variable `offset'.
869         (smash_dummy_type): Remove unused variable `save_lang_specific'.
870         (initializer_constant_valid_p): Add default case in switch.
871
872 Mon Sep 14 16:46:36 1998  Dave Brolley  <brolley@cygnus.com>
873
874         * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
875         domain type of the array.
876
877         * expr.c (build_chill_function_call): Remove redundant call to
878         chill_convert_to_assignment
879
880 Thu Sep 10 17:52:36 1998  Dave Brolley  <brolley@cygnus.com>
881
882         * actions.c (chill_convert_for_assignment): Make a copy of the result
883         node before modifying it.
884
885 Sat Sep  5 16:55:37 1998  John Carr  <jfc@mit.edu>
886
887         * Make-lang.in: Comment ^L characters.  Sun make doesn't like them.
888
889 Sat Sep  5 23:49:50 1998  Jeffrey A Law  (law@cygnus.com)
890
891         * Makefile.in (INCLUDES): Update after recent reorganization at the
892         toplevel gcc directory.
893
894 Sat Sep  5 22:25:51 1998  Richard Henderson  <rth@cygnus.com>
895
896         * Makefile.in: Update dependancies for top-level gcc files that moved.
897
898 Sat Sep  5 02:21:08 1998  Jeffrey A Law  (law@cygnus.com)
899
900         * Makefile.in: Tweak to avoid building runtime.  It's built
901         elsewhere now.
902
903 Thu Sep  3 15:32:03 1998  Dave Brolley  <brolley@cygnus.com>
904
905         * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
906
907 Wed Sep 02 09:25:29 1998  Nick Clifton  <nickc@cygnus.com>
908
909         * lex.c (check_newline):  Change how HANDLE_PRAGMA is called.
910         Generate warning messages if unknown pragmas are encountered.
911         (pragma_getc): New function: retrieves characters from the
912         input stream.  Defined when HANDLE_PRAGMA is defined.
913         (pragma_ungetc): New function: replaces characters back into the
914         input stream.  Defined when HANDLE_PRAGMA is defined.
915
916 Mon Aug 31 15:35:16 1998  Dave Brolley  <brolley@cygnus.com>
917
918         * decl.c (layout_chill_variants): Calculate nlables properly.
919
920 Mon Jul 27 17:21:01 1998  Dave Brolley  <brolley@cygnus.com>
921
922         * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
923         element type.
924
925 Mon Jul 13 14:20:12 1998  Nick Clifton  <nickc@cygnus.com>
926
927         * lang-options.h: Format changed to match changes in gcc/toplev.c
928         to implement a --help option.
929
930 Wed Jul  8 02:58:35 1998  Jeffrey A Law  (law@cygnus.com)
931
932         * lang.c (lang_init_options): New function.
933
934 Wed Jun 10 12:08:09 1998  Dave Brolley  <brolley@cygnus.com>
935
936         * lang-options.h: Remove -I.
937         * ch-tree.h (c_decode_option): New argc/argv interface.
938         * decl.c (c_decode_option): New argc/argv interface.
939         * lang.c (lang_decode_option):  New argc/argv interface.
940
941 Wed May 27 10:33:41 1998  Dave Brolley  <brolley@cygnus.com>
942
943         * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
944         chill_handle_multi_case_label_range were reversed.
945
946         * Make-lang.in (chill): Use the correct gcc in the driver script.
947
948 Thu May 21 14:40:44 1998  Dave Brolley  <brolley@cygnus.com>
949
950         * convert.c (digest_array_tuple): Move conversion to
951         chill_convert_for_assignment.
952
953         * actions.c (chill_convert_for_assignment): Allow conversion of array
954         constructor to bitstring constructor for assignment to array of packed bits.
955
956 Thu May 14 13:57:51 1998  Dave Brolley  <brolley@cygnus.com>
957
958         * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
959
960 Wed May 13 14:07:51 1998  Dave Brolley  <brolley@cygnus.com>
961
962         * typeck.c (build_chill_slice): Adjust slice index to account for the
963         lower bound of the array.
964
965         * actions.c (chill_expand_assignment): Convert function arguments to the
966         correct types.
967         (chill_expand_assignment): Ditto.
968
969 Mon May 11 16:20:57 1998  Dave Brolley  <brolley@cygnus.com>
970
971         * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
972         of the array_type to the slice_type.
973         (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
974         of bits.
975
976         * loop.c (build_loop_iterator): Disallow location enumeration for
977         bit-packed arrays.
978
979         * convert.c (digest_array_tuple): Allow conversion of an array tuple
980         to a bitstring for assignment to a packed array of bits.
981
982 Mon May  4 16:28:58 1998  Dave Brolley  <brolley@cygnus.com>
983
984         * ch-tree.def (PACKED_ARRAY_REF): New tree code.
985         * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
986         (chill_location): Handle PACKED_ARRAY_REF.
987         (apply_chill_array_layout): Allow PACK for arrays of single bits.
988         * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
989         (invalid_operand): Check PACKED_ARRAY_REF operands.
990         * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
991
992 Thu Apr 23 15:33:20 1998  Dave Brolley  <brolley@cygnus.com>
993
994         * typeck.c (apply_chill_field_layout): Only integral fields can be packed
995         to the bit level.
996
997 Tue Apr 21 14:30:10 1998  Jeffrey A Law  (law@cygnus.com)
998
999         * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
1000         (init_decl_processing): Handle TI types.
1001         * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
1002         (type_for_size): Handle TI types.
1003         (type_for_mode): Handle TI types.
1004
1005 Mon Apr 20 13:12:26 1998  Dave Brolley  <brolley@cygnus.com>
1006
1007         * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
1008         int.
1009
1010         * actions.c (chill_convert_for_assignment): Check that the rhs is not
1011         a type declaration.
1012
1013 Tue Apr 14 13:17:44 1998  Dave Brolley  <brolley@cygnus.com>
1014
1015         * lex.c (init_parse): Now returns char* containing the filename.
1016
1017         * typeck.c (get_type_precision): Declare.
1018         (apply_chill_field_layout): Use the minimum number of bits necessary to
1019         represent discrete types as the natural length of the field.
1020
1021 Thu Apr  9 12:46:55 1998  Dave Brolley  <brolley@cygnus.com>
1022
1023         * lex.c (finput): Move definition here from toplev.c
1024         (init_parse): New function replaces init_lex.
1025         (init_parse): Add code to open source file.
1026         (finish_parse): New function.
1027         (close_input_file): File was being closed more than once.
1028
1029         * lang.c (finput): Declare.
1030         * ch-tree.h (init_lex): Remove.
1031         
1032
1033 Wed Apr  8 14:47:33 1998  Dave Brolley  <brolley@cygnus.com>
1034
1035         * actions.c (compute_else_range): Fix loop index error.
1036         (chill_handle_multi_case_label_range): Move error checking to
1037         chill_handle_multi_case_label.
1038         (chill_handle_multi_case_else_label): Convert ELSE range values to
1039         the type of the corrersponding CASE selector.
1040
1041 Wed Apr  8 13:02:50 1998  Jeffrey A Law  (law@cygnus.com)
1042
1043         * actions.c (sizetype_tab): Do not declare.
1044         * lang.c (lang_print_xnode): New function.
1045
1046 Mon Mar 23 14:43:06 1998  Dave Brolley  <brolley@cygnus.com>
1047
1048         * grant.c (decode_layout): New function.
1049         (grant_array_type): Call decode_layout to export layout information to
1050         the grant file.
1051         (decode_decl): Ditto
1052
1053 Fri Mar 20 16:06:41 1998  Dave Brolley  <brolley@cygnus.com>
1054
1055         * parse.c (parse_tuple_element): Call had arguments in wrong order.
1056
1057 Thu Mar 19 13:42:33 1998  Dave Brolley  <brolley@cygnus.com>
1058
1059         * typeck.c (apply_chill_array_layout): Use
1060         TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
1061         the word size.
1062
1063 Wed Mar 18 16:25:48 1998  Dave Brolley  <brolley@cygnus.com>
1064
1065         * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
1066         fields.
1067
1068         * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
1069         proper places.
1070
1071 Tue Mar 17 14:16:08 1998  Dave Brolley  <brolley@cygnus.com>
1072
1073         * parse.c (gen_label_rtx): Declare before use.
1074         (emit_jump): Declare before use.
1075         (emit_label): Declare before use.
1076         (parse_case_label_list): Pass in CASE selector so we can mark it as having
1077         an (ELSE) label if necessary.
1078         (parse_case_label_specification): Pass in the CASE selector list so that
1079         the CASE selectors can be passed to parse_case_label_list.
1080         (parse_multi_dimension_case_action): Modify to generate branching code in
1081         one pass.
1082         (parse_case_expression): Compute (ELSE) range before generating CASE expression.
1083         (parse_variant_alternative): Remove error for (ELSE) specified.
1084
1085         * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
1086
1087         * decl.c (layout_chill_variants): Add code to check compatibility of ranges
1088         and discrete mode names.
1089
1090         * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
1091
1092         * actions.h (build_multi_case_selector_expression): Make it extern.
1093         (chill_handle_multi_dimension_case_label): Remove.
1094         (compute_else_ranges): New function.
1095
1096         * actions.c (update_else_range_for_int_const): New function.
1097         (update_else_range_for_range): New function.
1098         (update_else_range_for_range_expr): New function.
1099         (update_else_range_for_type): New function.
1100         (compute_else_range): New function.
1101         (compute_else_ranges): New function.
1102         (chill_handle_multi_case_else_label): New function
1103         (chill_handle_multi_case_label_range): Don't generate tests for conditions
1104         which are always true or false.
1105         (chill_handle_multi_case_label): Ditto.
1106         (chill_handle_multi_case_label): Implement (ELSE) label support.
1107         (chill_handle_multi_case_label): First argument is now the selector tree not
1108         its VALUE.
1109         (chill_handle_multi_dimension_case_label): Removed.
1110         (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
1111         reversed on entry, so reverse it here.
1112
1113 Tue Mar 10 15:02:26 1998  Dave Brolley  <brolley@cygnus.com>
1114
1115         * actions.c (chill_handle_multi_case_label_range): Add more error checking.
1116         (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
1117         (chill_handle_multi_case_label): Improve Error handling.
1118
1119 Mon Mar  9 12:39:00 1998  Dave Brolley  <brolley@cygnus.com>
1120
1121         * actions.c (chill_handle_multi_case_label_range): Added.
1122         (chill_handle_multi_case_label): Add support for discrete ranges and
1123         discrete modes.
1124
1125         * typeck.c (apply_chill_array_layout): Added more error checking.
1126         (apply_chill_field_layout): Added more error checking.
1127
1128 Wed Mar  4 16:08:26 1998  Dave Brolley  <brolley@cygnus.com>
1129
1130         * convert.c (convert): Call build_simple_array_type with new argument.
1131
1132         * ch-tree.h(build_simple_array_type): Add argument for array layout.
1133
1134         * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
1135         (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
1136         (apply_chill_array_layout): New function to implement array layout.
1137         (layout_chill_array_type): Call apply_chill_array_layout and reset
1138         TYPE_ATTRIBUTES to NULL_TREE.
1139         (build_chill_array_type): Extend to handle one array layout per index mode.
1140         (smash_dummy_type): Call build_simple_array_type with new argument.
1141
1142         * satisfy.c (satisfy): Call SATISFY on array layout tree.
1143
1144 Wed Feb 25 14:36:41 1998  Dave Brolley  <brolley@cygnus.com>
1145
1146         * typeck.c (next_struct_offset): Added.
1147         (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
1148         or POS layout to a structure field.
1149         (layout_chill_struct_type): Add call to apply_chill_field_layout.
1150
1151         * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
1152         in the field layout tree.
1153
1154         * parse.c (pack_warn_printed): Remove.
1155         (nopack_warn_printed): Remove.
1156         (step_warn_printed): Remove.
1157         (pos_warn_printed): Remove.
1158         (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
1159
1160         * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
1161         field declarations.
1162
1163 Thu Feb 19 17:33:06 1998  Dave Brolley  <brolley@cygnus.com>
1164
1165         * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
1166         (parse_opt_mode): Removed incorrect comment about association of array
1167         layouts with nested array elements.
1168         (parse_opt_mode): Allow for one layout per index mode specified.
1169
1170 Wed Feb 18 23:48:57 1998  Richard Henderson  <rth@cygnus.com>
1171
1172         * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependancy. 
1173
1174 Wed Feb 18 17:35:05 1998  Dave Brolley  <brolley@cygnus.com>
1175
1176         * parse.c (parse_field): Get rid of warning for multiple case selectors.
1177
1178         * decl.c (layout_chill_variants): Fix loop indexing error.
1179         
1180 Mon Feb 16 15:54:47 1998  Dave Brolley  <brolley@cygnus.com>
1181
1182         * parse.c (parse_case_expression): Remove code which checked for
1183         unimplemented (ELSE) label.
1184         (parse_case_expression): Add code to handle multi dimensional case
1185         expression.
1186
1187         * expr.c (check_case_selector_list): Fixed to return a list of the
1188         selectors which were checked.
1189         (chill_expand_case_expr): Remove "sorry" message for multi dimension
1190         case.
1191         (chill_expand_case_expr): Reverse order of case alternatives.
1192         (chill_expand_case_expr): Add "error" message for multiple case
1193         selectors.
1194
1195         * actions.h (build_chill_multi_dimension_case_expr): Added.
1196
1197         * actions.c (build_multi_case_selector_expression): Renamed from
1198         build_multi_case_expression.
1199         (chill_handle_multi_dimension_case_label): Call above function by its
1200         new name.
1201         (build_chill_case_expr): Don't reverse the list elements here. It may
1202         not be necessary.
1203         (build_chill_multi_dimension_case_expr): New function implements multi
1204         dimensional case expression.
1205
1206 Thu Feb 12 15:44:50 1998  Dave Brolley  <brolley@cygnus.com>
1207
1208         * parse.c (parse_case_action): Implement multi-dimension CASE action.
1209         (parse_multi_dimension_case_action): Added.
1210         (parse_single_dimension_case_action): Added based on code moved from
1211         parse_case_action.
1212
1213         * expr.c (check_case_selector_list): Added.
1214
1215         * ch-tree.h (check_case_selector_list): Added.
1216
1217         * actions.h (chill_handle_single_dimension_case_label): Added.
1218         (chill_handle_multi_dimension_case_label): Added.
1219
1220         * actions.c (chill_handle_single_dimension_case_label): Added.
1221         (chill_handle_multi_case_label): Added.
1222         (chill_handle_multi_case_label_list): Added.
1223         (build_multi_case_expression): Added.
1224         (chill_handle_multi_dimension_case_label): Added
1225
1226 Fri Feb  6 16:43:41 1998  Dave Brolley  <brolley@cygnus.com>
1227
1228         * actions.c (sizetype_tab): Fix declaration to match gcc changes.
1229
1230 Thu Feb  5 14:03:00 1998  Dave Brolley  <brolley@cygnus.com>
1231
1232         * decl.c (chill_tree_code_type):  Change this to be an array of char like
1233         the tree_code_type in the rest of gcc.
1234
1235         * ch-tree.def (chill_tree_code_type): See decl.c.
1236
1237 Thu Jan 29 15:34:18 1998  Dave Brolley  <brolley@cygnus.com>
1238
1239         * tasking.c (error_with_decl): Correct prototype.
1240         (build_gen_ptype): Reverse arguments.
1241
1242         * lang.c (chill_real_input_filename): Add definition.
1243         (chill_print_error_function): Correct second argument.
1244         (lang_init): Set chill_real_input_filename.
1245
1246         * expr.c (NULL): Protect definition with #ifndef.
1247
1248         * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
1249         (init_decl_processing): Change last argument to 'sizeof(char)'.
1250         
1251
1252 Tue Nov 25 10:44:19 1997  Nick Clifton  <nickc@cygnus.com>
1253
1254         * Make-lang.in (mostlyclean): Use && to separate commands, so that 
1255         if the directory change fails, the rule will not loop.
1256
1257 Mon Mar  3 12:08:19 1997  Fred Fish  <fnf@cygnus.com>
1258
1259         * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1260         spaces and use single tab character on some lines.
1261         (cc1chill): Ditto.
1262
1263 Tue Nov 26 05:12:40 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1264
1265         * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1266         that the buffer location gets evaluated only once, in
1267         build_receive_buffer_case_end. 
1268
1269         * typeck.c (build_chill_bin_type): Rework.
1270         (layout_chill_range_type): Process BIN mode.
1271         (build_chill_array_type): Remove checking of layout. This is done
1272         at the parse.
1273
1274         * parse.c (parse_on_exception_list): Don't allow ON name:.
1275         (parse_opt_layout): Parse POS and STEP and return a tree instead
1276         of int.
1277
1278         * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1279
1280         * grant.c (print_integer_type): Take care of BIN.
1281
1282         * expr.c (build_chill_descr): Make descr static if requested
1283         location is static.
1284         (build_chill_length): Process text mode name and text location as
1285         described in Z.200/1992.
1286         (build_compare_expr): Don't allow < <= > >= for composite modes.
1287
1288         * decl.c (grok_chill_fixedfields): Remove checking of
1289         layout. This is done at the parser.
1290
1291         * convert.c (digest_structure_tuple): Take care of wrong (probably
1292         array) tuple. Printing error may cause sigsegv.
1293
1294         * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1295         build_chill_array_type (layout is passed now as a tree instead of
1296         int).
1297
1298 Fri Nov 15 15:17:44 1996  Per Bothner  <bothner@deneb.cygnus.com>
1299
1300         * convert.c (display_int_cst):  Check that val is INTEGER_CST.
1301         (digest_array_tuple):  Some extra error checks (i.e. that indexes
1302         are constant).  If dynamic mode, result is not constant.
1303
1304 Mon Oct 28 12:48:06 1996  Jeffrey A Law  (law@cygnus.com)
1305
1306         * typeck.c (signed_or_unsigned_type): If the given type already
1307         as the correct signedness, then just return it.
1308
1309         * typeck.c ({un,}signed_type): If can't do anything, call
1310         signed_or_unsigned_type.
1311
1312 Fri Sep  6 02:50:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1313
1314         * typeck.c (build_chill_cast): In case of rangecheck, take care of 
1315         constant expression (when defining a SYN).
1316
1317 Thu Sep  5 04:30:32 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1318
1319         * parse.c (define__PROCNAME__): New function to define a SYNONYM
1320         __PROCNAME__ (__procname__) which is a character string containing
1321         the name of the current procedure. This is quit the same as 
1322         __FUNCTION__ in C.
1323         (parse_proc_body): Add call to define__PROCNAME__.
1324
1325         * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1326         modes on one side and procedures on the other side..
1327
1328 Wed Jul 24 01:13:51 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1329
1330         * typeck.c: Replace all local variables and arguments named `index'
1331         with `idx', `index' gets replaced by `strchr' which makes debugging
1332         somehow difficult.
1333         (valid_array_index_p): New argument to indicate that we are processing
1334         LENGTH (varying string) on the lefthand side of an assignment. The
1335         index check is different in this case.
1336         (build_chill_cast): In case of expression conversion do an OVERFLOW
1337         check with the limits of the target mode.
1338
1339         * ch-tree.h: New prototype for valid_array_index_p.
1340
1341         * actions.c (expand_varying_length_assignment): Add new argument to
1342         call to valid_array_index_p to indicate we are processing
1343         LENGTH on the lefthand side of an assignment.
1344
1345         * loop.c: Rename loop_stack to loopstack to avoid clashes with
1346         global variable ../stmt.c:loop_stack.
1347
1348 Tue Jun 18 23:04:06 1996  Per Bothner  <bothner@deneb.cygnus.com>
1349
1350         * expr.c (resolve_component_ref):  Set TREE_SIDE_EFFECTS properly.
1351
1352 Mon Jun 10 15:01:51 1996  Per Bothner  <bothner@deneb.cygnus.com>
1353
1354         * typeck.c (build_chill_reference_type):  Copy novelty for reference.
1355         * satisfy.c (satisfy):  If REFERENCE_TYPE, copy novelty.
1356
1357 Thu May 30 04:55:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1358
1359         * typeck.c (valid_array_index_p): For varying character strings
1360         we must check if the index is less then the actual length instead
1361         of less equal.
1362
1363 Wed May 15 06:07:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1364
1365         * ch-tree.h: Add prototype for test_range.
1366
1367         * inout.c (process_io_list): Fix duplicate function call if
1368         writetext argument is a function returning a varying string.
1369
1370 Tue May 14 21:08:47 1996  Per Bothner  <bothner@deneb.cygnus.com>
1371
1372         Re-do string comparisons.  Old way could re-use temporary
1373         (SAVE_EXPR created for an argumnet is variable) prematurely.
1374         * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR):  New codes.
1375         * decl.c (init_decl_processing):  Remove __eqstring, __gestring,
1376         __gtstring, __lestring, __ltstring, __nestring declarations.
1377         * expr.c (build_char_array_expr):  Rename to build_compare_string_expr.
1378         Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1379         (chill_expand_expr):    Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1380         (build_compare_expr):  Use new build_char_array_expr name.
1381
1382 Mon Apr  8 14:08:30 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1383
1384         Cleanup of April 5 fix:
1385         * actions.c (test_range):  New function.
1386         (check_range):  Simplify to use test_range.
1387         * convert.c (digest_powerset_tuple):  Move error message from here ...
1388         (check_ps_range):  ... to here.  Also, simplify to use test_range.
1389
1390 Fri Apr  5 03:41:05 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1391
1392         * convert.c (check_ps_range): New function to perform range check
1393         of powerset tuple elements. This is quite the same as check_range,
1394         however, the actions on rangefail are different.
1395         (digest_powerset_tuple): Call check_ps_range.
1396
1397         * loop.c (build_loop_iterator): Chaeck if location enumeration
1398         is requested for BOOLS(n) and print an error message.
1399
1400 Wed Mar  6 17:46:48 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1401
1402         * parse.c (parse_primval):  Emit error if !ignore (before: pass==2).
1403
1404         Implement parameterised array and string modes (using LANG_TYPE).
1405         * parse.c (parse_opt_mode):  Handle parameterized arrays and strings.
1406         * grant.c (decode_mode):  Support extended use of LANG_TYPE.
1407         * satisfy.c (cycle_error_print):  Ignore non-decls in chain.
1408         (safe_satisfy_decl):  No error if non-decl (pointer type) in cycle.
1409         (satisfy):  Return immediately if laid out non-pointer type.
1410         (satisfy case LANG_TYPE):  Handle paramertised mode.
1411         (satisfy case POINTER_TYPE/REFERENCE_TYPE):  Push type on chain;
1412         return immediately if already in chain.
1413         * typeck.c (smash_dummy_type):  Handle parameterized modes and CHAR(N).
1414         Change return type (can now return error_mark_node).
1415         (build_readonly_type):  Return return value from smash_dummy_type.
1416         * ch-tree.h:  Change smash_dummy_type return type.
1417
1418 Tue Mar  5 22:31:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1419
1420         * typeck.c (build_chill_slice):  Re-do index_type calculation.
1421         * typeck.c (layout_chill_range_type):  Use compare_int_csts rather
1422         than tree_int_cst_lt to avoid signed/unsigned problems.
1423
1424         * typeck.c (copy_novelty):  Use copy_node rather than build_type_node.
1425         * typeck.c (smash_dummy_type):  Use copy_novelty for NEWMODE of range.
1426
1427         * decl.c (init_decl_processing): More portable sizetype initialization.
1428
1429         * tree.c (build_string_type):  Generalize to also create bitstrings.
1430         Return error_mark_node if an argument is an ERROR_MARK.
1431         (build_bitstring_type):  Simplify - just call build_string_type.
1432
1433 Tue Mar  5 03:48:32 1996  Wilfried Moser  <moser@blues.cygnus.com>
1434
1435         * actions.c (warn_unhandled): Add missing assignment.
1436
1437         * loop.c (build_loop_iterator): In case of IN, check if
1438         expression has a mode, otherwise make an error.
1439
1440 Mon Mar  4 23:12:03 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1441
1442         *  convert.c (digest_powerset_tuple):  Check tuple elements
1443         for compatibility;  if compatible, call convert.
1444
1445 Thu Feb 29 23:39:54 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1446
1447         Simplify NOVELTY representation.
1448         * ch-tree.h (CH_NOVELTY):  Re-implement as plain TYPE_CONTEXT.
1449         (CH_NOVELTY_FLAG):  Removed.  (Just use CH_NOVELTY.)
1450         * decl.c (push_modedef):  Make copy even for SYNMODE.
1451         but not for internal typedefs (indicated by make_newmode==-1).
1452         * tasking.c:  Call push_modedef with make_newmode==-1.
1453         * typeck.c (chill_novelty):  Remove.
1454         (smash_dummy_type):  Removed unused event/buffer stuff.  Update.
1455         * grant.c (decode_decl), inout.c (build_io_types),
1456         expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1457         tasking.c (build_instance_type):  Simplify using new CH_NOVELTY.
1458
1459         Solidify READ mode handling.
1460         * decl.c (do_decl, push_syndecl, start_chill_function):
1461         Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1462         * typeck.c (build_chill_slice):  Set TREE_READONLY appropriately.
1463         (build_chill_array_ref_1, build_chill_bitref):  Likewise.
1464         (build_chill_cast):  Set TREE_READONLY depending on result type (only).
1465         * convert (convert_from_reference, convert):  Likewise.
1466         * expr.c (resolve_component_ref):  Set TREE_READONLY appropriately.
1467         (build_chill_function_call):  Error if OUT/INOUT arg is TREE_READONLY.
1468         * actions.c (chill_expand_assignment):  Also error if TREE_READONLY.
1469         Use convert_from_reference.
1470         
1471 Thu Feb 29 11:14:09 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1472
1473         * parse.c (parse_do_action):  DO WITH expressions are evaluated in
1474         outer scope.  Also call save_if_needed.
1475         * decl.c (shadow_record_fields);  Fix and simplify.
1476
1477 Tue Feb 27 22:19:40 1996  Per Bothner  <bothner@cygnus.com>
1478
1479         * convert.c (display_int_cst):  Gereralize to wider range of ints.
1480
1481 Thu Feb 22 06:12:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1482
1483         * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1484
1485         * decl.c (do_decl): In case of chill_varying_type_p, check if
1486         type of fixed part is error mark and do nothing in this case.
1487
1488         * lex.c (convert_bitstring): Don't complain when length of
1489         bitstring is 0 (BOOLS(0) is a valid mode).
1490
1491         * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1492         (domain) is error mark.
1493
1494         * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1495         error_mark_node, just return.
1496
1497 Tue Feb 20 00:01:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1498
1499         * parse.c (parse_variant_alternative): When checking for ELSE take
1500         care of tagless variants.
1501
1502 Mon Feb 19 05:54:45 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1503
1504         * parse.c (parse_case_action): Check if ELSE was specified
1505         in a case label list (this is only valid for array tuples).
1506         (parse_case_expression): Deto.
1507         (parse_variant_alternative): Deto.
1508
1509 Tue Feb 13 17:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1510
1511         * typeck.c (chill_location):  Cleanup.  Neither SLICE_EXPR nor
1512         BIT_FIELD_REF are referable, even if their base strings are.
1513
1514 Fri Feb  9 02:25:33 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1515
1516         * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1517         checking the expression.
1518
1519         * convert.c (convert): Set TREE_CONSTANT when taking the
1520         address of a function.
1521
1522         * decl.c (start_chill_function): Check if the mode is really
1523         a mode to avoid subsequent segfaults.
1524
1525         * typeck.c (string_assignment_condition): Add checking of
1526         bitstring length.
1527
1528 Thu Feb  8 01:37:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1529
1530         * actions.c (build_cause_exception): Print warning of unhandled
1531         exception only once for each exception.
1532
1533 Mon Feb  5 22:17:13 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1534
1535         * tree.c (discrete_count), ch-tree.h:  New function.
1536         * expr.c (build_concate_expr, build_chill_repetition_op,
1537         chill_expand_expr):  Use discrete_count;  make sure arguments
1538         to size_binop are sizetype.
1539         (powersetlen):  Trvialize using discrete_count.
1540
1541         * inout.c (process_io_list):  Use new assign_temp function.
1542         * inout.c (build_enum_tables):  Avoid taking address of array_ref,
1543         which sometimes gets optimized to a constant.
1544
1545         * expr.c (finish_chill_unary_op):  Call convert_to_class on argument.
1546         Remove some obsolete TREE_UNSIGNED stuff.
1547         * lex.c (convert_integer):  Removed more TREE_UNSIGNED stuff.
1548
1549 Thu Feb  1 15:11:20 1996  Doug Evans  <dje@charmed.cygnus.com>
1550
1551         * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1552
1553 Wed Jan 31 17:13:25 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1554
1555         * decl.c (char_array_type_node, wchar_array_type_node):  Removed.
1556         (init_decl_processing):  Remove array_domain_type;  don't set
1557         char_array_type_node or wchar_array_type_node.
1558         * decl.c (init_decl_processing):  Use fixup_unsigned_type to
1559         simplify code to create boolean_type_node and char_type_node.
1560
1561 Mon Jan 29 14:20:10 1996  Doug Evans  <dje@charmed.cygnus.com>
1562
1563         * lex.c (check_newline): Pass character after `#pragma' to
1564         HANDLE_PRAGMA.  Don't call get_directive_line if at end of line.
1565
1566 Fri Jan 26 05:56:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1567
1568         * expr.c (build_chill_function_call): Add check and error for
1569         actual argument is a TYPE_DECL.
1570
1571         * parse.c (parse_set_mode): Print a warning if the set mode contains
1572         numbered and unnumbered set elements.
1573
1574 Wed Jan 24 05:10:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1575
1576         * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1577
1578         * decl.c (layout_enum): Add check for negative values if
1579         enum is numbered and duplicate values in an enum. 
1580
1581 Mon Jan 15 06:21:52 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1582
1583         * actions.c (chill_expand_assignment): Add check for lefthand side
1584         of an assignment is a location.
1585
1586         * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1587         not "concat_expr".
1588
1589         * expr.c (is_really_instance): New function to check if a datum
1590         is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1591         for this case.
1592         (build_chill_component_ref): call is_really_instance.
1593
1594 Wed Jan 10 13:47:14 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1595
1596         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  Removed;  now in ../tree.h.
1597
1598 Mon Jan  8 15:29:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1599
1600         * expr.c (build_char_array_expr):  Add save_if_needed's if varying.
1601         Also, remove unused len0 and len1.
1602
1603 Mon Dec 11 17:36:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1604
1605         * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1606         build_chill_getassociation, build_chill_getusage,
1607         build_chill_gettextrecord,  build_chill_gettextaccess:  Simplify
1608         - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1609
1610         * parse.c (parse_action):  Minor simplification.
1611
1612 Thu Dec  7 00:02:47 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1613
1614         * parse.c (parse_action): In case of CALL, do a check if there
1615         is really a function call.
1616
1617 Tue Dec  5 05:06:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1618
1619         * convert.c (display_int_cst): Fix printing of control sequence.
1620
1621 Thu Nov 30 21:07:57 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1622
1623         * grant.c (decode_constant, decode_constant_selective):  Make work
1624         for REAL_IS_NOT_DOUBLE case.
1625
1626         * decl.c (CHILL_INT_IS_SHORT):  New macro.
1627         (init_decl_processing):  Use CHILL_INT_IS_SHORT.
1628         Change name of integer_type_node from _cint to long.
1629
1630 Mon Nov 27 17:07:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1631
1632         * loop.c (top_loop_end_check):  Check while condition *after*
1633         getting next powerset element.
1634
1635 Mon Nov 27 05:29:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1636
1637         * parse.c (parse_receive_case_action): Fix typo in error message.
1638
1639         * convert.c (display_int_cst): Format characters like strings in
1640         grant.c(decode_constant).
1641
1642         * grant.c: Remove the old forbid stuff.
1643
1644         * lex.c (readstring): Fix reading of '^^'.
1645
1646         * parse.c (parse_procedure_mode): nreverse param_types.
1647
1648 Thu Nov 23 05:39:57 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1649
1650         * actions.c (chill_expand_assignment): Check for assigning to
1651         location with non-value mode.
1652
1653         * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1654         Add new and change some prototypes.
1655
1656         * decl.c (init_nonvalue_struct): New function to generate
1657         initialisation code for non-value structs.
1658         (init_nonvalue_array): New function to generate initialisation
1659         code for non-value array's.
1660         (do_decl): Call one of the above mentioned functions in case
1661         we have a mode with the non-value property.
1662         (start_chill_function): Print error message if a non-value mode
1663         gets returned without LOC and check for arguments of non-value
1664         modes only gets passed by LOC.
1665
1666         * grant.c (print_proc_tail): Fix for procedure returning LOC.
1667
1668         * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1669         association_type_node.
1670         (invalidate_access_recordmode): New function to set the
1671         record mode of an ACCESS to error_mark_node in case of
1672         record mode has the non-value property.
1673         (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1674         (build_access_mode, build_chill_gettextaccess): Deto.
1675         (check_exprlist): Correct processing of repetition factor.
1676
1677         * lex.c (readstring): Correct processing of control
1678         sequences of the form '^([H | D | O | B]'xx)'.
1679
1680         * loop.c: Cleanup iterator handling (done by Per).
1681         (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1682         functions for starting and ending a loop scope in case
1683         of initialising an array with non-value property.
1684
1685         * parse.c (check_end_label): Remove '\n' from error message.
1686         (parse_loc_declaration): Print error in case of loc-identity
1687         declaration without initialisation or with keyword INIT.
1688         (parse_do_action): Clean up iterator handling (done by Per).
1689
1690         * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1691         message in case of TYPE_DECL is a signal and the mode has the
1692         non-value property.
1693         (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1694         the array type if the array element mode has the non-value
1695         property.
1696         (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1697         type if one of the fields have the non-value property. If the
1698         record is a buffer mode and the element mode of the buffer has
1699         the non-value-p., invalidate it (see
1700         tasking.c (invalidate_buffer_element_mode). Same for access modes.
1701
1702         * tasking.c (build_signal_descriptor): If the signal type have
1703         the non-value property, do nothing.
1704         (build_receive_signal_case_label): Don't do an assignment if the
1705         signal type have the non-value property.
1706         (build_receive_buffer_case_label): Add check for buffer element
1707         mode is ERROR_MARK.
1708         (expand_send_buffer): Deto.
1709         (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1710         (invalidate_buffer_element_mode): New function to set type of
1711         buffer element mode to error_mark_node.
1712         (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1713
1714 Wed Nov 15 13:26:20 1995  Jeffrey A Law  (law@cygnus.com)
1715
1716         * inout.c (intsize_of_charsexpr): Move declaration to top
1717         of file to avoid error from solaris2.5 cc.
1718
1719 Thu Nov  9 02:50:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1720
1721         * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1722         mode, temporarily reset maximum_field_alignment to 0 before
1723         layouting it to be compatible with the runtime library.
1724
1725         * inout.c (build_chill_gettextaccess): Deto.
1726
1727 Mon Nov  6 04:12:06 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1728
1729         * decl.c (do_decl): If type is READonly, add check if an
1730         ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1731         and print an error if this is true. Variables of this modes
1732         may not be declared READonly.
1733         Add check for mode is one of the above and an init value was
1734         given. This is also not allowed.
1735         Add initialisation of variables of the above modes during
1736         runtime. This influence the mechanism for detecting to
1737         build a constructor. 
1738         (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1739         BUFFER, and EVENT mode must not be READonly.
1740         (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1741         TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1742         (declare_predefined_file): Move to inout.c.
1743         (init_decl_processing): Add definitions for new built-in's.
1744         (finish_outer_function): Build a constructor only if
1745         build_constructor is set.
1746
1747         * except.c: On Linux native, setjmp is __setjmp.
1748
1749         * expr.c (build_chill_component_ref): New function. It gets called
1750         from parse.c instead of build_component_ref. Functions checks if the
1751         user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
1752         EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
1753         (build_chill_floatcall): New function to resolve CHILL's floating
1754         point builtin calls (SIN, COS, TAN, etc.).
1755         (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
1756         build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
1757         GETSTACK, and TERMINATE built-in's.
1758         (build_generalized_call): Process new built-in's.
1759
1760         * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
1761         (decode_mode_selective): deto.
1762
1763         * inout.c: Completely rewritten for implementing Chapter 7 of
1764         Z.200 (input and output).
1765         
1766         * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
1767         parsing numbers.
1768
1769         * lex.h (enum rid): Add RID_ASSOCIATION.
1770
1771         * parse.c: New flag build_constructor to indicate if a constructor
1772         should be generated at the end of compilation or not. See
1773         decl.c(do_decl).
1774         (parse_begin_end_block): Don't emit a line note.
1775         (parse_primval): Call build_chill_component_ref instead of
1776         build_component_ref.
1777         (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
1778         modes, USAGE modes, WHERE modes.
1779
1780         * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
1781         ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
1782         (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
1783
1784         * typeck.c (extract_constant_from_buffer): Fix thinko in case 
1785         of ! BYTES_BIG_ENDIAN.
1786         (build_chill_cast): Implement representation conversion between
1787         INT's and REAL's.
1788         (chill_similar): Add check of ACCESSes.
1789         (layout_chill_range_type): Check for real ranges and print
1790         sorry message.
1791
1792         * Make-lang.in: Change compiler version.
1793         chill also depends on Makefile.
1794
1795         * chill.in: Process command line option -Xlinker like -Tdata.
1796
1797         * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
1798         CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
1799         Add some prototypes.
1800         (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
1801         BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT. 
1802         Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
1803
1804         * gperf, hash.h: Remove definition of WHERE.
1805         
1806 Thu Oct  5 06:22:19 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1807
1808         * grant.c (decode_constant_selective): Add some newlines
1809         to generated SPEC MODULE.
1810
1811 Wed Oct  4 18:16:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1812
1813         * decl.c (pop_chill_function_context):  Remove some bogosity.
1814
1815 Wed Oct  4 05:14:00 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1816
1817         * grant.c (print_integer_selective): In case of a RANGE of
1818         a SET mode, try to find and grant the parent mode.
1819         (grant_seized_identifier): Dont write it out, if the identifier
1820         doesn't have a seize file (it may come from a SPEC MODULE
1821         defined in the compilation unit).
1822
1823 Fri Sep 22 14:04:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1824
1825         * actions.c (check_non_null):  Wrap expr in SAVE_EXPR if needed.
1826
1827 Wed Sep 20 13:51:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1828
1829         * expr.c (force_addr_of):  Optimize an INDIRECT_REF using
1830         convert_to_pointer rather than convert (which in case of
1831         a REFERENCE_TYPE would losingly call convert_from_reference).
1832
1833 Wed Sep 20 04:03:58 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1834
1835         * inout.c (build_chill_writetext): In case of character string:
1836         Add processing of a concatenation including varying character
1837         strings.
1838         (intsize_of_charsexpr, get_max_size): New functions to determine
1839         the maximum size of varying character strings.
1840
1841         * grant.c (decode_constant, decode_constant_selective): Add
1842         processing of COMPONENT_REF.
1843
1844         * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
1845         for SYNONYM's with STRUCT mode.
1846
1847 Mon Sep 18 17:25:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1848
1849         * expr.c (force_addr_of):  Optimize of value is INDIRECT_REF.
1850         * typeck.c (build_chill_slice):  Call mark_addressable.
1851
1852 Mon Sep 18 14:38:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1853
1854         * expr.c (chill_expand_expr):  Make a copy before calling __psslice
1855         if the array is neither referable nor BLKmode.
1856         (build_set_expr):  Renamed to ...
1857         (build_compare_set_expr):  Allow one opperand to be boolean.
1858         (build_compare_expr):  Check both operands for SET_EXPR,
1859         before checking for discrete types (for -fold-strings).
1860
1861 Fri Sep 15 11:35:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1862
1863         * satisfy.c (safe_satisfy_decl):  For a CONST_DECL, set TREE_TYPE
1864         to error_mark_node or error.
1865
1866 Fri Sep 15 00:26:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1867
1868         * grant.c (decode_constant_selective): Add processing of
1869         TREE_OPERAND (val, 0).
1870
1871 Wed Sep 13 14:24:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1872
1873         * ch-tree.h (CH_IS_INSTANCE_MODE):  Redefine to use CH_SIMILAR.
1874         * convert.c (convert):  Use CH_IS_INSTANCE_MODE.
1875         * inout.c (build_chill_writetext):  Likewise.
1876         * tasking.c (build_receive_case_start, build_delay_case_start):  Ditto.
1877         * parse.c (parse_start_action):  Remove redundant tests.
1878         * tasking.c (build_start_process):  Also test that optset is instance.
1879         (build_copy_number, build_proc_type, expand_send_signal):  Use
1880         CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
1881         * actions.c, convert.c (instance_type_node):  Remove redundant
1882         extern declaration.
1883         
1884 Wed Sep 13 14:19:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1885
1886         * regression.awk2:  Use \ line-continuation-markers
1887         to remove gratuitous gawk dependency.
1888
1889 Mon Sep 11 17:26:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1890
1891         * typeck.c (build_chill_modify_expr):  Use force_addr_of.
1892         (mark_addressable):  Handle INDIRECT_REF of ADDR_EXPR.
1893
1894         * typeck.c (check_case_value), ch-tree.h:  Moved to ...
1895         * actions.c (check_case_value):  ... here.  Also check for
1896         compatibility with selector (which is passed as extra argument).
1897         (chill_handle_case_label_range):  Take selector argument,
1898         and use it to call check_case_value.
1899         (chill_handle_case_label):  Take extra selector argument.
1900         * ch-tree.h (chill_handle_case_labe):  Add prototype.
1901         * except.c expr.c, parse.c:  Remove chill_handle_case_label prototypes.
1902         * actions.c, except.c, expr.c, parse.c: Pass extra selector
1903         argument to function calls as needed.
1904
1905 Mon Aug 28 02:47:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1906
1907         * grant.c (decode_constant_selective): Fix a bug in writing items
1908         to grant file.
1909
1910 Thu Aug 24 04:52:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1911
1912         * parse.c (parse_case_expression): Print warning only in
1913         pass 1.
1914
1915         * actions.c (print_missing_cases): Correct printing of
1916         character ranges.
1917
1918 Wed Aug 23 15:26:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1919
1920         * parse.c (parse_case_label_list):  Take extra parameter to
1921         indicate if we're parsing a tuple or a case-label-spec.
1922         If former, don't allow '(' EXPR ')' ',' but backup instead.
1923         (parse_case_label_specification, parse_tuple_element):
1924         Pass appropriate new argument to parse_case_label_list.
1925
1926 Wed Aug 23 06:08:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1927
1928         * inout.c (build_chill_readtext): Add processing of BOOL's and
1929         CHARS(n).
1930
1931         * grant.c (decode_constant): Process nonprintable characters
1932         in a STRING_CST.
1933
1934 Fri Aug 11 15:26:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1935
1936         * except.c (initialize_exceptions):  Name setjmp "setjmp" and not
1937         "__builtin_setjmp" (which is not recognized by expand_call).
1938
1939 Wed Aug  9 23:35:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1940
1941         * loop.c (end_loop_scope):  Need to call kept_level_p,
1942         in argument to poplevel.
1943
1944 Wed Aug  9 05:48:30 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1945
1946         * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
1947         file might be empty). Install chill.install instead.
1948
1949 Tue Aug  8 21:46:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1950
1951         * loop.c (end_loop_scope):  Do poplevel *after* expand_end_bindings.
1952
1953 Tue Aug  8 00:51:09 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1954
1955         * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
1956         of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
1957
1958         * decl.c (start_chill_function): Likewise ...
1959
1960 Mon Aug  7 18:35:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1961
1962         * tasking.c (build_process_wrapper):  Also set DECL_ASSEMBLER_NAME
1963         of PARM_DECL, since otherwise dbxout_symbol_name may barf.
1964
1965 Mon Jul 31 14:32:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1966
1967         * loop.c:  Re-written implementation of powerset iteration.
1968         (declare_temps):  iter_var is now integer index into bitstring,
1969         and powerset_temp just uses save_expr (normally needs no temp).
1970         (top_loop_end_check):  Pass index to start searching (from iter_var)
1971         to library function, instead of dependning on latter to clear old bits.
1972         (increment_temps):  UNless DOWN, increment iter_var.
1973         * decl.c (init_decl_processing):  Declare new types for
1974         __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
1975
1976 Mon Jul 31 12:47:28 1995  Per Bothner  <bothner@cygnus.com>
1977
1978         * convert.c (digest_array_tuple):  Set TREE_STATIC if possible.
1979
1980 Fri Jul 28 05:11:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1981
1982         * lex.c (readstring): Process integer literals starting with
1983         H', D', or B' within a control sequence.
1984
1985 Thu Jul 27 23:08:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1986
1987         * parse.c (parse_do_action):  Don't call push_action, but defer
1988         push_handler until begin_loop_scope.
1989         Call parse_opt_handler here, to move handler scope inside loop block.
1990         (parse_action):  After do_action, nothing to do now.
1991         * loop.c (begin_loop_scope):  Also call push_handler here.
1992         (declare_temps):  Copy derived flag to user_var.
1993         (declare_temps):  For POWERSET, always copy to temporary (even if
1994         constant), since the runtime clears bits from it.
1995
1996         * expr.c (build_chill_sizeof):  Use convert_to_class.
1997         * satisfy.c (safe_satisfy_decl):  Cleanup handling of CONST_DECL -
1998         set proper value of CH_DECL_FLAG on both the decl and its value.
1999
2000         * convert.c (digest_array_tuple); Slightly better errors.
2001         
2002 Wed Jul 26 22:13:39 1995  Per Bothner  <bothner@cygnus.com>
2003
2004         * expr.c (expand_packed_set):  Also allocate the CONSTRUCTOR itself.
2005         (fold_set_expr):  Simplify accordingly.
2006         (build_concat_expr):  Constant fold bitstring CONCAT_EXPRs.
2007
2008 Thu Jul 13 12:21:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2009
2010         * typeck.c (build_chill_slice):  Use build1 instead of build.
2011         * typeck.c (xtract_constant_from_buffer):  Pass correct precision
2012         to lshift_double.
2013
2014         * typeck.c (expand_constant_to_buffer):  Handle RANGE_EXPR index.
2015         * convert.c (digest_array_tuple):  Generate RANGE_EXPR as index
2016         for tuples with ranges.
2017
2018 Thu Jun 29 23:41:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2019
2020         * typeck.c (build_chill_slice):  Re-implement to use casts
2021         instead of build_chill_array_ref_1 (which doesn't always work).
2022         * convert.c (convert):  Remove old bugs code.
2023
2024 Tue Jun 27 05:00:04 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2025
2026         * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
2027         expression so that a possible handler at the if action will
2028         be found.
2029         (parse_proc_body): New argument to indicate if the function
2030         raises exceptions or not. In case the function will raise
2031         exception: start a handler, parse the function and generate
2032         code for reraising the exceptions (call chill_reraise_exceptions).
2033
2034         * except.c (chill_reraise_exceptions): New function to generate
2035         code for reraising exceptions are specified at the function 
2036         definition.
2037         
2038         * ch-tree.h: Add prototype for chill_reraise_exceptions.
2039
2040         * decl.c (build_chill_function_type): When the function (type)
2041         raise an exception, generate two new arguments (additional to the
2042         formal parameters), the filename and linenumber of the caller.
2043         (start_chill_function): likewise...
2044
2045         * expr.c (build_chill_function_call): If the called function raises
2046         exceptions, give current filename and linnumber as aditional
2047         arguments.
2048
2049         * actions.c (build_cause_exception): Handle case when function
2050         propagates the exception.
2051
2052         * grant.c (print_proc_tail, print_proc_tail_selective): If the
2053         function(type) raises exceptions, don't process the last to
2054         parmeters of the formal argument list, they are compiler
2055         generated.
2056
2057         * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
2058         the exception lists are equal.
2059
2060 Thu Jun 22 19:27:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2061
2062         * loop.c (flag_local_loop_counter):  Change default to 1.
2063         (end_loop_scope):  Set 'keep' parameter in poplevel call.
2064         (declare)_temps):  Don't set IDENTIFIER_LOCAL_VALUE, since that
2065         is handled (correctly!) by pushdecl.
2066         (begin_loop_scope):  Call pushlevel here,
2067         * parse.c (parse_do_action):  Move pushlevel so only called for WITH.
2068         * decl.c (struct scope):  Remove n_incomplete field and its uses.
2069         (pushdecl):  Re-write to use proclaim_decl.  Remove old C-isms.
2070         (init_decl_processing):  Re-name integer_type_node as "_cint" to
2071         remove complaint from pushdecl about chill_integer_type_node as "int".
2072
2073 Tue Jun 20 18:15:58 1995  Doug Evans  <dje@canuck.cygnus.com>
2074
2075         * Make-lang.in (chill-runtime): Restore patch to disable building of
2076         runtime libraries for cross compilers.  This patch should remain
2077         until a build of a freshly checked out devo "just works".
2078
2079 Mon Jun 19 06:01:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2080
2081         * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
2082
2083         * decl.c (init_decl_processing): Remove builtin function
2084         __cause_exception. New builtin functions __cause_ex1 and
2085         __unhandled_ex.
2086
2087         * except.c (is_handled): Return 0 when no handler found,
2088         1, if the handler is in local scope and 2, if function
2089         may propagate the exception.
2090
2091         * actions.c (build_cause_exception): New argument to
2092         indicate if a warning should be printed when
2093         causing an unhandled exception. Call is_handled here.
2094
2095         * ch-tree.h: Change prototype for build_cause_exception.
2096         New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
2097         identifier already has been written to grant file.
2098
2099         * grant.c (write_spec_module): If not GRANT ALL specified,
2100         write only this identifiers to grant file which are
2101         neccessary to form a prober grant file. This will shorten
2102         grant files and speed up compilation.
2103         (decode_constant_selective, decode_mode_selective,
2104         get_type_selective, decode_decl_selective,
2105         grant_array_type_selective, get_tag_value_selective,
2106         print_enumeral_selective, print_integer_selective, 
2107         print_struct_selective, print_proc_tail_selective,
2108         grant_one_decl_selective): New functions.
2109
2110         * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
2111         directives to grant file.
2112
2113         * parse.c (parse_on_exception_list): Fis constructing of
2114         exceptions list.
2115
2116 Wed Jun 14 15:21:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2117
2118         * typeck.c (valid_array_index_p):  Check for syntax error, where
2119         index is a mode, rather than a value.
2120
2121         * expr.c (build_chill_binary_op_1):  Remove unused function.
2122
2123 Sat Jun 10 11:36:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2124
2125         * except.c (is_handled):  New function.
2126         Various fixes here and there to make it work.
2127
2128         * parse.c (parse_param_name_list):  Set DECL_ASSEMBLER_NAME.
2129         (Otherwise dbxout may crash.)
2130
2131         * satisfy.c (satisfy case FUNCTION_TYPE):  Check for non-type result.
2132         * decl.c (start_chill_function):  If result type was error_mark,
2133         kludge type chill_os result_decl to avoid extra errors.
2134         * actions.c (chill_expand_result, chill_expand_return):  If type of
2135         chill_result_decl is error_mark, do nothing.
2136
2137         * typeck.c (chill_similar): Fix thinko in recent change.
2138
2139         * config-lang.in (diff_exclude):  Remove ch/lex.c - now it's a
2140         true source file, and is never longer generated with [f]lex.
2141
2142         * regression.sh:  Pass -s to make clean (to make it silent).
2143         Explicitly call gawk, instead of depending of '#!' to work.
2144         Add --objdir flags.  Never send mail to bill.
2145
2146 Thu Jun  8 15:08:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2147
2148         * typeck.c (chill_similar):  Add extra parameter.  Use to to prevent
2149         infinite recursion.
2150         (chill_equivalent, chill_l_equivalent):  Also add new parameter.
2151         * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT):  Modify to match.
2152
2153 Tue Jun  6 17:14:49 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2154
2155         * loop.c (declare_temps):  If -flocal-loop-counter, make sure to
2156         pushdecl the new variable (created with decl_temp1).
2157         And fix the type of the local variable for powerset iteration.
2158
2159 Tue Jun  6 15:07:19 1995  Per Bothner  <bothner@cygnus.com>
2160
2161         * typeck.c (mark_addressable):  Handle ADDR_EXPR inside
2162         NOP_EXPR inside INDIRECT_EXPR.  For TRUTH_ANDIF_EXPR,
2163         TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
2164         (which is used for range-checks and suchlike).
2165
2166 Thu Jun  1 02:45:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2167
2168         * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
2169         GE_EXPR (don't do invert_truthvalue, just switch operands).
2170
2171 Wed May 31 14:00:38 1995  Doug Evans  <dje@canuck.cygnus.com>
2172
2173         * lang-options.h: New file.
2174         * lang-specs.h: New file.
2175
2176 Wed May 24 01:45:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2177
2178         * actions.c (assign_stack_temp):  Remove unneeded declaration.
2179
2180 Tue May 23 00:17:38 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2181
2182         * parse.c (parse_on_exception_list):  Return list of exception
2183         names in pass 1, not in pass 2.  (Return non-NULL dummy if pass 2.)
2184         (parse_on_alternatives):  Call chill_handle_on_labels even if ignoring.
2185         (parse_opt_handler):  Likewise for chill_start_default_handler.
2186         * except.c (push_handler):  Clear on_alt_list only if pass 1.
2187         (chill_handle_on_labels):  Build on_alt_list in pass 1,
2188         retrieve it in pass 2.
2189
2190         Fix so that decl_temp1 does not expand_decl_init, which calls
2191         free_temp_slots, which loses in the middle on an expression.
2192         * decl.c (finish_decl):  Don't call expand_decl_init.
2193         (do-decl):  Do initialization assignment even if stack variable.
2194         * parse.c (parse_loc_declaration):  Call free_temp_slots.
2195
2196         * decl.c (finish_decl), ch-tree.h:  Remove last two always-NULL
2197         parameters.  Cleanup never-used code.
2198         * decl.c, except.c:  Update calls to finish_decl.
2199
2200         * decl.c (case_else_node):  Define new variable.
2201         (init_decl_processing):  Initialize it.
2202         (make_chill_variants): If variant label is case_else_node (i.e. it
2203         is (ELSE):), treat that as an ELSE variant.
2204         * ch-tree.h (case_else_node):  Declare case_else_node.
2205         * parse.c (parse_case_label):  Use case_else_node.
2206
2207 Mon May 22 10:18:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2208
2209         * grant.c (print_proc_tail):  Also call print_proc_exceptions.
2210         (decode_decl):  Don't explicitly call print_proc_exceptions for
2211         FUNCTION_DECL.
2212         (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
2213
2214         * actions.c (chill_convert_for_assignment):  Use save_if_needed,
2215         instead of save_expr, in case value is a reference.
2216
2217         * typeck.c (build_chill_slice):  Fix old thinko (missing call to
2218         build_pointer_type).
2219
2220         * actions.c (size_int):  Remove unused and conflicting prototype.
2221
2222 Wed May 17 16:23:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2223
2224         * actions.c (chill_convert_for_assignment):  Call save_expr if
2225         range_checking (twice).
2226
2227 Tue May 16 11:33:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2228
2229         * typeck.c (layout_chill_range_type):  Re-organize error checking.
2230         Add extra parameter to indicate if non-constant bounds are allowed.
2231         If bounds are bad, set them to the min_value of the parent.
2232         * ch-tree.h (layout_chill_range_type):  Update declaration.
2233         * satisfy.c (satisfy):    Update call of layout_chill_range_type.
2234         * typeck.c (build_chill_range_type):  Likewise.
2235         * tree.c (build_string_type):  Likewise.
2236
2237 Tue May 16 00:37:51 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2238
2239         * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
2240
2241 Mon May 15 12:54:32 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2242
2243         * satisfy.c (satisfy):  Supress error message for REF <error_mark>.
2244         * decl.c (push_modedef):  Check for TREE_CODE != ERROR_MARK, instead
2245         of against error_mark_node.  (smash_dummy_type can copy error marks.)
2246         (finish_decl):  Simplify C-derived check for incomplete type,
2247         and suppress if it is an ERROR_MARK.
2248         Don't call rest_of_decl_compilation if type is an ERROR_MARK.
2249
2250 Sun May 14 22:52:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2251
2252         * convert.c (convert):  Handle array types with different modes.
2253
2254 Thu May 11 15:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2255
2256         * loop.c (build_loop_iterator):  Handle the case of a non-local
2257         loop counter having reference type.
2258
2259 Thu May 11 07:04:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2260
2261         * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2262         build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2263         to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2264
2265 Mon May  8 15:27:16 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2266
2267         * expr.c (build_chill_card):  Do constant folding, if possible.
2268         (build_max_min):  Do constant folding for MIN/MAX of powersets.
2269
2270 Mon May  8 06:57:21 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2271
2272         * expr.c (build_chill_sizeof): Add corect processing of a
2273         SIGNAL definition without data.
2274
2275 Sat May  6 16:27:10 1995  Doug Evans  <dje@canuck.cygnus.com>
2276
2277         * Make-lang.in (maintainer-clean): Renamed from realclean.
2278
2279 Tue May  2 06:16:23 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2280
2281         * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2282         otherwise "handler stack" will get out of sync.
2283
2284 Mon Apr 24 09:51:07 1995  Per Bothner  <bothner@rtl.cygnus.com>
2285
2286         Fixes to support module-level non-static temporary variables.
2287         * parse.c (parse_loc_declaration):  If all_static_flag and not
2288         resursive, tell do_decls to make new decl static.
2289         * decl.c (do_decl):  Don't use maybe_static function to force static.
2290         (do_decl):  Don't let initialization count as "using" the variable.
2291         (maybe_static):  Removed.
2292         (finish_decl):  Call expand_decl and expand_decl_init if needed
2293         (as it will be for non-static temporaries).
2294
2295 Fri Apr 21 21:02:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2296
2297         * convert.c, expr,c typeck.c (expand_decl):  Remove usused declaration.
2298
2299 Fri Apr 21 02:27:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2300
2301         * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2302         LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2303         GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2304
2305 Thu Apr 20 15:29:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2306
2307         * parse.c (yytext, finput):  Remove unused declarations.
2308
2309         * parse.c (proc_action_level):  New variable.
2310         (parse_proc_body):  New function.  Common code from
2311         parse_procedure_definition and parse_process_definition moved here.
2312         Save, set, and restore proc_action_level from action_nesting_level.
2313         (parse_action case RETURN):  Pass proc_action_level to
2314         expand_goto_except_cleanup.
2315
2316 Thu Apr 20 06:02:20 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2317
2318         * grant.c (really_grant_this): Add processing of LABEL_DECL's
2319         (don't grant them).
2320
2321 Tue Apr 18 18:16:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2322
2323         * lex.c ( convert_bitstring):  Use BYTES_BIG_ENDIAN rather
2324         than BITS_BIG_ENDIAN to layout bits within bitstring.
2325         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2326         Likewise.
2327
2328 Sun Apr 16 19:55:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2329
2330         * decl.c (finish_chill_function):  If currently global_function_decl,
2331         don't set outer_function to global_function_decl.
2332
2333 Wed Apr 12 22:45:06 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2334
2335         * decl.c (start_chill_function):  Normal functions are nested.
2336         (finish_chill_function):  No longer takes a 'nested' parameter.
2337         Normal functions are nested.
2338         Never call permanent_allocation, since it does little good (all normal
2339         functions are nested), and trashes some things we need.
2340         (finish_outer_function):  Update call to finish_chill_function.
2341         * grant.c (chill_finish_compile):  Likewise.
2342         * tasking.c (build_process_wrapper):  Likewise.
2343         * parse.c (end_function):  Likewise.
2344         * ch-tree.h (finish_chill_function):  Update declaration.
2345
2346         * parse.c (parse_asm_clobbers):  Re-enable.
2347         (expand_asm_operands):  function.
2348         (parse_asm_action):  Re-enable.  Don't do anything in pass 1.
2349
2350         * typeck.c (build_chill_slice):  Do constant folding.
2351         Also, work around problem where expand_expr constant folds ARRAY_REF.
2352         (sort_constructor):  Remove unused function.
2353
2354         * expr.c (chill_expand_expr case CONCAT_EXPR):  Make sure we
2355         emit_block_move if needed with correct size.
2356
2357         * inout.c (build_chill_io_list_type):  Simplify.
2358
2359         * lex.c (check_newline):  Uncomment some dwarf stuff,
2360         which needs get_directive_line, which we no longer have.
2361
2362 Wed Apr  5 16:05:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2363
2364         * Makefile.in (C_OBJS, xcc1chill):  Removed.  We no longer
2365         link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2366
2367         * expr.c (build_chill_component_ref):  Renamed to build_component_ref.
2368         (chill_truthvalue_conversion):  Renamed to truthvalue_conversion.
2369         * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2370         typeck.c:  Update accordingly.
2371         * typeck.c (valid_array_index_p):  We only need to save_expr (index)
2372         if we're range-checking.
2373         * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2374         mark_addressable, initializer_constant_valid_p, check_case_value,
2375         type_for_size, type_for_mode):  New functions, copied from
2376         ../c-common.c and ../c-typeck.c.
2377
2378         * lang.c (incomplete_type_error):  New.  (Was in c-common.o.)
2379         * decl.c (constant_expression_warning):  New.  (Was in c-common.o.)
2380
2381         * lang.c (string_index_type_dummy):  Remove definition from here.
2382         * tree.c (string_index_type_dummy):  Define here instead.
2383         * lang.c (lang_init):  Move init of string_index_type_dummy
2384         (which is too late) from here ...
2385         * decl.c (init_decl_processing): ... to here.
2386
2387         * decl.c (signed_boolean_type_node):  New variable.
2388         (init_decl_processing):  Initialize it.
2389
2390         * parse.c:  Comment out ASM action support, for now.
2391
2392         * loop.c (maybe_skip_loop):  Make return void, not int.
2393         Use build_compare_discrete_expr.
2394         (increment_temps):  Use chill_expand_assignment.
2395
2396 Thu Mar 30 23:28:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2397
2398         * decl.c (do_decl):  If default-initializing variable-length
2399         string to "" (or []), make it lifetime_bound.
2400
2401 Thu Mar 30 02:51:59 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2402
2403         * parse.h, hash.h, gperf: New compiler directives
2404         EMPTY_ON and EMPTY_OFF.
2405
2406         * lex.c: New variables empty_checking and runtime_checking_flag.
2407         (ch_lex_init): Initialize empty_checking and range_checking 
2408         when switching from pass 1 to 2.
2409         (read_directive): Add processing of EMPTY_OFF/ON.
2410
2411         * expr.c (build_chill_indirect_ref): New argument do_empty_check
2412         to indicate if null pointer checking should be done or not.
2413         It's not always necessary to do a null pointer check.
2414
2415         * decl.c (lookup_name): Add argument to call to
2416         build_chill_indirect_ref.
2417         (shadow_record_fields): ...
2418         * parse.c (parse_primval): ...
2419         * tasking.c (build_process_wrapper): ...
2420         (build_receive_buffer_case_label): ...
2421
2422         * ch-tree.h: Change prototype of build_chill_indirect_ref.
2423         Add declaration of runtime_checking_flag and empty_checking.
2424
2425         * actions.c (check_non_null): Do null pointer checking only 
2426         when enabled (empty_checking != 0).
2427
2428 Wed Mar 29 15:18:23 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2429
2430         * actions.c (chill_expand_assignment):  Add 'else' so we don't do
2431         regular assignment in addition to spacial assignment (e.g. for slices).
2432
2433         * ch-tree.h (convert_to_discrete):  Add declaration.
2434         * typeck.c (convert_to_discrete):  New function.
2435         (valid_array_index_p):  Use convert_to_discrete.  Also simplify.
2436         (build_chill_slice):  Say sorry if variable-length bitstring.
2437         (build_chill_slice_with_length):  Re-do bounds check.
2438         * expr.c (check_case_selector):  Re-write to use convert_to_discrete.
2439         (build_chill_num, build_chill_pred_or_succ):  Use convert_to_discrete.
2440
2441         * decl.c (do_decl):  Don't do redundant chill_convert_for_assignment.
2442
2443 Wed Mar 29 00:00:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2444
2445         * expr.c (build_chill_num): need_unsigned have to be set for
2446         characyer strings of length 1 too. Happens when compiling
2447         with -fold-strings and do NUM(a(i)).
2448
2449         * parse.c (parse_loc_declaration): Print error message only
2450         in pass 1.
2451         (parse_mode): Likewise ...
2452
2453         * tasking.c (build_tasking_message_type): Temporarily reset
2454         maximum_field_alignment to get proper aligned temp. variables
2455         gets passed to runtime system.
2456
2457 Tue Mar 28 00:08:06 1995  Per Bothner  <bothner@cygnus.com>
2458
2459         * typeck.c (my_build_array-ref):  Merged into build_chill_array_ref_1.
2460         But don't convert index to integer_type_node.  And we don't need to
2461         check the we're given an array.
2462         * typeck.c (valid_array_index_p):  If flag_old_strings, convert
2463         chars(1) to char and bools(1) to bool before index checking.
2464
2465 Sun Mar 26 22:42:39 1995  Per Bothner  <bothner@cygnus.com>
2466
2467         * ch-tree.h (struct module):  Added next module field.
2468         * decl.c (first_mdoule, next_module):  New global variables.
2469         (switch_to_pass_2):  Re-initialize next_module.
2470         (push_module):  In pass 2, reuse the same module objects from pass 1.
2471
2472         * decl.c (declare_predefined_file):  Set DECL_IN_SYSTEM_HEADER.
2473
2474         * typeck.c (valid_array_index_p):  Do range check on original index,
2475         before we convert to domain type.
2476
2477 Fri Mar 24 11:43:39 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2478
2479         * parse.c (parse_fixed_field):  New function.
2480         (parse_variant_field_list):  New function replaces parse_simple_fields.
2481         (parse_variant_alternative, parse_field):  Update to use new functions.
2482         (parse_field):  Error message if neither CASE nor NAME.
2483
2484         * actions.c (check_non_null):  New function - checks for NULL pointers.
2485         * ch-tree.h (check_non_null):  New declaration.
2486         * tasking.c (expand_send_signal):  Call check_non_null.
2487         * expr.c (build_chill_indirect_ref, build_chill_function_call):  Same.
2488         * lex.h (enum rid):  Add RID_EMPTY.
2489         * lex.c (init_lex):  Initialize ridpointers[RID_EMPTY].
2490
2491         * lex.c (read_directive):  Remove 2 calls of to_global_binding_level
2492
2493 Wed Mar 22 16:36:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2494
2495         * tasking.c (tasking_list):  Change to chain of TREE_VEcs, rather than
2496         chain of (nested) TREE_LIST nodes.
2497         (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2498         TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE):  New macros.
2499         (tasking_setup, tasking_registry, add_taskstuff_to_list):  Use them.
2500
2501         * ch-tree.h (C_TYPE_FIELDS_READONLY):  Rename to TYPE_FIELDS_READONLY.
2502         (TYPE_READONLY_PROPERTY):  New macro, to match Z.200 concept.
2503         * typeck.c (build_chill_modify_expr):  Don't check for read-only-ness,
2504         since it is redundant for chill_expand_assignment and breaks
2505         reach-bound initialization in do_decl.
2506         (my_build_array_ref):  Simplify by using TYPE_READONLY_PROPERTY.
2507         (layout_chill_array_type):  Set TYPE_FIELDS_READONLY if appropriate.
2508         * actions.c (chill_expand_assignment):  Check TYPE_READONLY_PROPERTY
2509         instead of TREE_READONLY of the target's type.
2510         * expr.c (build_chill_function_call):  Likewise.
2511         * inout.c (build_chill_readtext):  Likewise.
2512         * decl.c (do_decl):  Likewise, to check if init is required.
2513
2514         * typeck.c (build_chill_bitref):  Removed unused RANGE_EXPR hack.
2515
2516 Wed Mar 22 07:52:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2517
2518         * tasking.c (build_start_process): Get a unique identifier for
2519         the start arguments.
2520
2521 Tue Mar 21 07:36:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2522
2523         * expr.c (fold_set_expr): At label build_result: Add setting unused
2524         bits to 0. This is the same as the runtime library does.
2525
2526         * parse.c (expect): Function returns now int, 0, if the expected
2527         token was not got, 1 when it was found.
2528         (parse_synonym_definition): In case of syntax error (missing =),
2529         set expr to NULL_TREE and mode to error_mark to avoid subsequent
2530         segfaults.
2531
2532         * chill.texi: Add chapter about differences to Z.200/1988.
2533
2534 Mon Mar 20 18:01:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2535
2536         * lang.c (chill_print_error_function):  New function, to report
2537         module name if not inside a function.
2538         (lang_init):  Set print_error_function to chill_print_error_function.
2539
2540         * tasking.c (max_queue_size, buffer_element_mode):  Cleanup
2541         to remove unreachable code.
2542
2543         * grant.c (chill_finish_compile):  Avoid doing a lookup_name
2544         to find init function (which got broken by recent nesting re-org).
2545
2546         * decl.c (poplevel):  Push and pop function context around
2547         call to output_inline_function (as done for C and C++).
2548
2549 Thu Mar 16 17:56:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2550
2551         * parse.c (parse_pass_1_2):  If unknown top-level token, skip pass 2.
2552
2553 Wed Mar  8 13:54:33 1995  Doug Evans  <dje@canuck.cygnus.com>
2554
2555         * Make-lang.in (chill-runtime): Temporarily disable building of
2556         runtime libraries for cross compilers.
2557
2558 Mon Mar  6 23:36:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2559
2560         * parse.c, decl.c:  Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2561
2562         * configure:  Merge in tolerance for new flags (e.g. --x-libraries).
2563
2564 Sat Mar  4 15:47:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2565
2566         * expr.c (build_chill_arrow_expr):  Error if pass == 1.
2567
2568 Thu Mar  2 19:28:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2569
2570         * decl.c (do_decl):  Setting seen_action must be done in pass 1.
2571         (save_decl):  Don't set DECL_CONTEXT to global_function_decl.
2572         (start_chill_function):  Simplify due to above change.
2573
2574         * parse.c (parse_case_label):  Hack to distinguish (ELSE) from (*).
2575         * grant.c (decode_constant):  Emit ELSE in case label.
2576
2577         * parse.c (serious_errors):  New global variable.
2578         * parse.c (to_global_binding_level):  Set serious_errors.
2579         (parse_pass_1_2):  Exit after pass 1 if serious_errors > 0.
2580         * lex.c (readstring):  Recover from unterminstaed control sequence.
2581
2582 Tue Feb 28 17:08:08 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2583
2584         Re-write of module-level actions.  No longer generate a module
2585         function for module-level actions.  Instead, put them inside
2586         a new global dummy function.  Nest everything logically inside it.
2587
2588         * lex.h, grant.c (chill_module_name):  Removed declaration.
2589         * grant.c (write_spec_module):  Instead use current_module->name.
2590         * grant.c (chill_start_module_code, chill_finish_module_code):
2591         Removed.
2592         * grant.c (chill_finish_compile):  Make rtl for global function.
2593
2594         * actions,c (push_action):  Don't call chill_start_module_code.
2595         * expr.c (build_chill_function_call, build_generalized_call):
2596         Likewise.
2597         * parse.c (INIT_ACTION):  Likewise.
2598
2599         * parse.c (seen_action):  New variable.
2600         * parse.c (end_function):  Always call pop_chill_function_context.
2601         (parse_procedure_definition):  Always call push_chill_function_context.
2602         (parse_modulion):  Parse optional handler.
2603         (parse_modulion, parse_spec_module):  Do find_granted_decls.
2604         (parse_action):  Set seen_action if global and a real action.
2605         ([arse_program):  Call start_outer_function and finish_outer_function.
2606
2607         * ch-tree.h:  Appropriate updates.
2608
2609         * tasking.c (generate_tasking_code_variable):  Make it lifetime-bound.
2610         (build_process_header):  Always push_chill_function_context;
2611         we are now always nested.
2612         (build_process_wrapper):  Always pop_chill_function_context.
2613
2614         * tasking.c (build_start_process):  Only expand_start_bindings and
2615         expand_end_bindings if pass 2.
2616
2617         * decl.c (global_function_decl):  New variable.
2618         (do_decl):  Implement reach-bound initialization of static variables.
2619         (start_chill_function):  Set DECL_CONTEXT to NULL if
2620         it would be global_function_decl (so as to not confuse gcc backend).
2621         (start_chill_function, finish_chill_function):  If compiling
2622         global_function_decl in pass 2 and !seen_action, suppress it.
2623         (set_module_name):  New function.
2624         (global_bindings_p):  Re-defined to check against global_function_decl.
2625         (start_outer_function, finish_outer_function):  New functions.
2626
2627 Tue Feb 28 16:00:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2628
2629         * typeck.c (build_chill_modify_expr):  Inline logic from
2630         chill_expand_array_assignment,
2631         * actions.c (chill_expand_array_assignment):  Removed.
2632         (chill_expand_assignment):  Remove call to removed function.
2633
2634         * lex.c (reinit_parse_for_function):  Removed empty unused function.
2635         * decl.c (start_chill_function):  Don't call removed function.
2636
2637 Tue Feb 28 00:29:51 1995  Per Bothner  <bothner@cygnus.com>
2638
2639         * configure:  Merge in code for calculating host, build, and
2640         target and canon_{host,build,target} from ../configure.  
2641         Fix calculation of mainsrcdir.  Host canon_* variables
2642         to merge in build-make (as in ../configure).
2643
2644 Sun Feb 26 18:59:02 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2645
2646         * typeck.c (expand_constant_to_buffer):  Use new function
2647         get_set_constructor_bytes.
2648
2649 Tue Feb 21 01:41:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2650
2651         * inout.c (build_chill_writetext): Add processing of
2652         conditional expressions in argument list.
2653
2654         * parse.c (parse_opt_name_string): Print error message only 
2655         in pass 1.
2656
2657         * chill.texi: Add chapter about compiler directives.
2658
2659 Tue Feb 14 16:45:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2660
2661         * decl.c (start_chill_function):  Set FUNCTION_NEEDS_STATIC_CHAIN
2662         unless nested.
2663
2664         * decl.c (decl_temp1):  Make lifetime_bound iff static.
2665
2666 Fri Feb  3 04:30:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2667
2668         * grant.c (really_grant_this, search_in_list): New static
2669         functions to determine if a decl should be written to 
2670         grant file.
2671         (write_spec_module): Add call to really_grant_this.
2672
2673 Fri Jan 27 00:06:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2674
2675         * actions.c (check_expression): Apply Per's patch.
2676         (chill_expand_result): New argument to indicate if we come
2677         from a RETURN or RESULT action. Change various error messages.
2678
2679         * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2680         New argument for chill_expand_result.
2681
2682         * chill.in: In case of -fgrant-only, clear library, libpath and
2683         startfile to avoid warnings from gcc.
2684
2685         * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2686
2687         * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2688
2689         * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2690         and subsequent SEIZEs to grant file, if the seize file is
2691         used restricted.
2692
2693         * lex.c (read_directive): Process new compiler directive
2694         USE_SEIZE_FILE_RESTRICTED.
2695         (handle_use_seizefile_directive): Same as above.
2696         (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2697         if this seize file is used restricted.
2698
2699         * parse.c (parse_action, case RETURN): Change RETURN expr action
2700         to RESULT expr; RETURN. This enables range checking and
2701         exception delivery in case of rangefail.
2702
2703 Tue Jan 17 07:38:27 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2704
2705         * decl.c (init_decl_processing): Add definition of
2706         library function __inbitstring (see expr.c).
2707
2708         * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2709         __inpowerset fir POWERSET's and function __inbitstring for
2710         BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2711         in case of BITSTRING's we have to do one.
2712         (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2713         statement with no effect).
2714
2715 Fri Jan 13 13:35:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2716
2717         * actions.c (check_expression):  Simplify result.
2718
2719         * ch-tree.h (SET_CH_NOVELTY_NONNIL):  New macro.
2720         * expr.c, timing.c, typeck.c:  Use SET_CH_NOVELTY_NONNIL.
2721
2722         * typeck.c (valid_array_index_p), ch-tree.h:  Change interface
2723         to return modified index expression.  Call error if out-of-range.
2724         * actions.c, typeck.c:  Modify
2725         for new valid_array_index_p interface.
2726
2727         * actions.c (build_chill_slice):  Copy novelty of index type.
2728
2729 Fri Jan 13 13:04:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2730
2731         * convert.c (digest_array_tuple):  Allow mode name in array
2732         tuple label.  Print error message instead of aborting.
2733
2734         * parse.c (parse_body):  Error message only if pass 1.
2735
2736         * decl.c (check_identifier), ch-tree.h:  Remove.  Unused.
2737
2738 Wed Jan 11 14:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2739
2740         * parse.c (parse_modulion):  Undo yesterday's change (to allow
2741         an ON-handler to follow) until we re-implement module.  
2742
2743 Tue Jan 10 17:23:55 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2744
2745         * loop.c (declare_temps):  Remove bogus prohibition against
2746         iterating over BOOL arrays.
2747
2748         * parse.c (parse_semi_colon):  Make it a pedwarn (instead of an
2749         error) if a semi-colon is missing before an END.
2750         (parse_action):  Likewise.
2751         * parse.c (parse_modulion):  Allow an ON-handler to follow.
2752
2753         * parse.c (parse_set_mode):  Use parse_expression to get
2754         values for number set elements.
2755
2756         * expr.c (build_compare_expr):  Make sure result has
2757         CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
2758         (finish_chill_binary_op):  Likewise for IN_EXPR.
2759
2760 Tue Jan 10 04:46:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2761
2762         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
2763         checking the argument.
2764         (chill_expand_assignment): Take care of a newmoded dst_offset
2765         when calling __pscpy and a newmoded from_pos when calling
2766         __setpowersetbits.
2767
2768         * expr.c (chill_expand_expr): When calling __psslice take care
2769         of a newmoded min_value.
2770
2771         * parse.c (parse_name_string): Print error message only in 
2772         pass 1.
2773
2774 Tue Jan  3 19:56:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2775
2776         * typeck.c (build_chill_array_ref_1):  Use varying_to_slice
2777         instead of building a VRAY_ARRAY_REF node.
2778         * ch-tree.def (VARY_ARRAY_REF):  Removed.
2779         * actions.c (chill_expand_assignment):  Will never call
2780         expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
2781         (expand_assignment_to_varying_array):  Removed.
2782         * convert.c (convert):  Remove unneeded VARY_ARRAY_REF support.
2783         * expr.c (chill_expand_expr):  Likewise.
2784
2785 Tue Jan  3 19:50:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2786
2787         * parse.c (parse_iteration):  Set step_value to NULL if missing.
2788         * loop.c (ITER_TYPE):  Remove DO_RANGE.
2789         (build_loop_iterator):  Implement old DO_RANGE in terms of DO_STEP.
2790         (begin_loop_scope):  Don't return on error.
2791         (build_loop_iterator):   Calculate loop variable type using
2792         resulting classes (as in Z200), rather than precision.
2793
2794         * loop.c (initialzie_iter_var, bottom_loop_end_check):  For DO_STEP,
2795         make iter_var one less to avoid overflow.
2796         * loop.c (build_loop_iterator):  If !flag_local_loop_counter,
2797         declare a new variable if needed, as allowed by Z200 (1984).
2798
2799         * ch-tree.h (ch_class):  Add typedef.
2800
2801         * typeck.c (chill_resulting_class):  New function.
2802         (chill_root_resulting_class):  Remove.
2803         * ch-tree.h (CH_RESULTING_CLASS):  New macro.
2804         (CH_ROOT_RESULTING_CLASS):  Re-implement using CH_RESULTING_CLASS.
2805
2806 Tue Jan  3 19:36:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2807
2808         * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
2809         Change interface to take IDENTIFIER tree node, rather char char*.
2810         (check_expression): Change (simplify) callers appropriately.
2811         * parse.c (parse_action), typeck.c (valid_array_index_p):  Likewise.
2812         * lex.h (enum rid):  Add RID_ASSERTFAIL.
2813         * lex.c (init_lex):  Enter RID_ASSERTFAIL.
2814         * parse.c (parse_action case ASSERT):  Fix thinko TRUTH_ANDIF_EXPR
2815         to TRUTH_ORIF_EXPR.  Use RID_ASSERTFAIL.
2816
2817         * typeck.c (discrete_type_p):  Re-implement using INTEGRAL_TYPE_P.
2818
2819 Tue Jan  3 19:20:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2820
2821         Move checking for modeless tuples in invalid contexts from parser
2822         to semantic function check_have_mode (for better error recovery):
2823         * expr.c (check_have_mode), ch-tree.h:  New function.
2824         * satisfy.c (safe_satisfy_decl):  Use check_have_mode.
2825         * expr.c (build_compare_expr, finish_chill_binary_op,
2826         finish_chill_unary_op):  Likewise.
2827         * parse.c (parse_primval):  Don't complain about mode-less tuple here.
2828
2829 Tue Jan  3 17:36:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2830
2831         * expr.c (varying_to_slice):  Support varying arrays whose
2832         lower bound is non-zero.
2833
2834         * parse.c (parse_body):  Allow (with warning) definition to
2835         follow action.
2836
2837         * expr.c (check_case_selector), ch-tree.h:  New function.
2838         (chill_expand_case_expr):  Use it.
2839         * parse.c (parse_case_action):  Likewise.
2840
2841 Fri Dec 23 00:47:54 1994  Wilfried Moser  <moser@rtl.cygnus.com>
2842
2843         * actions.c (chill_expand_return): Change error message.
2844
2845         * ch-tree.h: Change prototypes of do_decl and do_decls.
2846
2847         * convert.c (convert): Add missing initialisation of
2848         variable orig_e_constant.
2849
2850         * decl.c: Change all calls to do_decl.
2851         (maybe_static): New function to process the ALL_STATIC_ON/OFF
2852         compiler directives.
2853         (do_decls): New argument.
2854         (do_decl): New argument and process reachbound and lifetime
2855         bound initialisation.
2856
2857         * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
2858         ALL_STATIC_OFF.
2859
2860         * grant.c: Change all calls to do_decl.
2861
2862         * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
2863         directive.
2864
2865         * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
2866         do_decls.
2867
2868         * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
2869
2870         * tasking.c: Change all calls to do_decl.
2871
2872 Mon Dec 19 23:13:58 1994  Wilfried Moser  <moser@rtl.cygnus.com>
2873
2874         * parse.c (parse_procedure_definition): Save chill_at_module_level
2875         flag, set ot to 0 and restore it at the end of function.
2876         A sequence BEGIN x: PROC () RETURN; END x; END; at module level
2877         have produced an error.
2878
2879         * expr.c (build_chill_repetition_op): Fix typo in error message.
2880
2881 Tue Dec 13 12:26:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2882
2883         * actions.c (expand_assignment_to_varying_array):  Fix thinko:
2884         build_chill_array_ref -> build_chill_array_ref_1.
2885
2886 Sun Dec 11 23:04:27 1994  Per Bothner  <bothner@rtl.cygnus.com>
2887
2888         * actions.c (chill_expand_assignment):  Simplify the lhs if it is
2889         a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
2890
2891 Thu Dec  8 13:45:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2892
2893         * loop.c, ch-tree.h (build_loop_iterator):  Fix to return void.
2894         If start_exp is ERROR_MARK, return.
2895         * expr.c (build_generalized_call):  More robust on syntax errors.
2896
2897 Tue Dec  6 02:33:23 1994  Wilfried Moser  <moser@rtl.cygnus.com>
2898
2899         * inout.c (build_chill_readtext): In case of reading a SET mode
2900         pass ignore_case flag to runtime library.
2901
2902 Tue Nov 29 14:41:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2903
2904         * parse.c (parse_receive_case_action):  Print error only if pass==1.
2905         * decl.c (push_scope_decls):  Use error_with_file_and_line
2906         to get correct line number of SEIZE.
2907
2908 Mon Nov 28 16:59:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2909
2910         * expr.c (resolve_component_ref):  Call fold on result.
2911
2912         * expr.c (resolve_component_ref):  Use check_expression.
2913         * actions.c (chill_convert_for_assignment):  Likewise.
2914         * actions.c (cond_exception), ch-tree.h:  Removed.
2915         * actions.c (check_expression):  First part of COMPOUND_EXPR
2916         should be boolean_type_node;  void_type_node loses in SAVE_EXPRs.
2917
2918         * actions.c (chill_convert_for_assignment):
2919         Check string_assignment_condition for varying strings too.
2920
2921         * typeck.c (build_chill_cast):  If the types have different sizes,
2922         don't allow nondiscrete->discrete conversion, and only allow
2923         discrete->nondiscrete if input expression is constant.
2924
2925         * typeck.c (chill_similar):  Don't use losing array_type_nelts.
2926
2927         * ch-tree.h (ELSE_VARIANT_NAME):  New.
2928         * convert.c, decl.c, grant.c:  Use ELSE_VARIANT_NAME.
2929         * decl.c (handle_one_level):  Recurse on ELSE_VARIANT_NAME too.
2930
2931         Reduce dependencies on ../c-typeck.c:
2932         * expr.c:  Fix c_expand_start_case -> expand_start_case.
2933         Fix c_expand_expr_stmt -> expand_expr_stmt.
2934         (build_chill_indirect_ref):  Call convert instead of build_c_cast.
2935         * loop.c (bottom_loop_end_check):  Don't use build_modify_statement.
2936         * expr.c, except.c, typeck.c:  Don't call default_conversion.
2937         * typeck.c (string_assignment_condition):  Fix build_component_ref ->
2938         build_chill_component_ref.
2939         * decl.c:  Fix build_indirect_ref -> build_chill_indirect_ref (twice).
2940         * decl.c:  Don't set unused constructor_no_implicit (from c-typeck.c).
2941         * decl.c:  Don't call declare_function_name.
2942
2943         * parse.c: Don't always keep a valid token in terminal_buffer[0].
2944         The extra look-ahead may have made the parser faster, but caused
2945         some problems synchronizing with the lexer.  Specifically:
2946         (PEEK_TOKEN):  Now calls an optimized variant of peek_token_(0).
2947         (next_token_):  Don't call peek_token_.  Renamed to forward_token_.
2948         (NEXT_TOKEN):  Renamed to FORWARD_TOKEN.
2949         (parse_program):  Don't call yylex yet.
2950
2951         * parse.c (parse_action):  Re-do case ASSERT.
2952         Fix c_expand_expr_stmt -> expand_expr_stmt.
2953
2954         * lex.l:  Re-written to not use [f]lex, and renamed to ...
2955         * lex.c:  ... new lexer.
2956         * Makefile.in, Make-lang.in:  Remove [f]lex crud.
2957
2958         * lex.h (enum rid), lex.c (init_lex):  Added RID_ELSE.
2959
2960 Tue Nov 22 15:19:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2961
2962         * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
2963
2964 Fri Nov 18 14:27:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2965
2966         * parse.c (parse_structure_node):  Simpler, and more robust.
2967
2968 Wed Nov 16 14:40:52 1994  Ian Lance Taylor  (ian@cygnus.com)
2969
2970         * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
2971         not at compile time.
2972         * typeck.c (expand_constant_to_buffer): Likewise.
2973         extract_constant_from_buffer): Likewise.
2974
2975 Tue Nov 15 14:41:53 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2976
2977         * convert.c (convert):  Call build_chill_range_type rather than
2978         build_index_2_type (which has obstack and canonicalization problems).
2979         * expr.c (build_chill_pred_or_succ):  Convert expr to root class
2980         before arithmetic.
2981         * loop.c (declare_temps):  If location iterated over is not
2982         a location, make a temporary variable for it.
2983
2984 Mon Nov 14 16:33:47 1994  Per Bothner  <bothner@kalessin.cygnus.com>
2985
2986         * typeck.c, ch-tree.h (chill_equivalent):  Change to return
2987         a tree (a Boolean expression).  Also, add some missing tests.
2988         * ch-tree.h (CH_EQUIVALENT):  Modify accordingly.
2989
2990         * expr.c (chill_expand_expr case CONCAT_EXPR):  When the 2nd operand
2991         is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
2992         Also, replace MEM (which is not a mode) by Pmode.
2993
2994         * ch-tree.h, typeck.c (chill_comptypes):  Removed.
2995         * convert.c (convert):  Remove calls to chill_comptypes.
2996
2997 Fri Nov 11 13:06:29 1994  Wilfried Moser  (moser@rtl.cygnus.com)
2998
2999         * grant.c (write_grant_file): Call pfatal_with_name instead
3000         of abort when something goes wrong when opening or writing
3001         the grant file.
3002         unlink grant file if something goes wrong during writing
3003         (i.e. device full).
3004
3005         * Make-lang.in (CHILL_SRCS): Add timing.c
3006
3007         * ch-tree.h: Add prototype for chill_tasking_type_node.
3008         * lex.l (equal_number): Use chill_tasking_type_node instead of
3009         integer_type_node for converting the result.
3010         Print error messages in pass 2, in pass 1 no error will be
3011         detected.
3012         * tasking.c: New variable chill_tasking_type_node for all
3013         generated tasking related variables.
3014         Use chill_tasking_type_node instead of chill_unsigned_type_node.
3015
3016         * expr.c (chill_expand_expr): Apply Per's change.
3017
3018         * expr.c (build_chill_sizeof): In case of error just
3019         return error_makr_node.
3020         Set CH_DERIVED_FLAG at the result.
3021
3022         * timing.c (build_after_timeout_start): Clear the the timeout
3023         level to know if we are in the action part of AFTER statement
3024         or in the TIMEOUT part.
3025
3026         * typeck.c (build_chill_slice_with_length): Convert the class
3027         of the result to class of first value in expression.
3028
3029         * inout.c (build_chill_writetext, build_chill_readtext): Use stack
3030         temporary variables for the iolist so that they can get reused in
3031         subsequent calls. Emit code immediately instead of building a 
3032         compound expr.
3033
3034 Fri Nov  4 12:00:54 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3035
3036         * expr.c (build_chill_function_call):  Don't set TREE_TYPE
3037         of assignment to void_type_node - it confuses save_expr.
3038         * decl.c (init_decl_processing):  Removed unused code.
3039         * parse.c:  Changes to avoid warnings.
3040
3041         * grant.c (chill_finish_module_code):  Minor simplification.
3042         * lex.l (readstring):  Set *len to 1 on error.
3043
3044 Thu Nov  3 01:05:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3045
3046         * grant.c (decode_decl): Add granting of BASED declarations.
3047
3048 Wed Nov  2 12:14:31 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3049
3050         * expr.c (build_chill_lower_or_upper):  Take more care to
3051         ensure result has the right class.
3052         (build_chill_pred_or_succ):  Be more careful to get the right
3053         resulting class, and check bounds using *root* mode.
3054
3055         * typeck.c (build_chill_slice_with_range):  Check that array
3056         really is an array or string.
3057         (build_chill_slice_with_length):  Likewise.
3058
3059         * typeck.c (extract_constant_from_buffer):  Fix calculation of
3060         SET_TYPE size.  (Cannot depend on 1-byte TYPE_PRECISION field.)
3061
3062 Wed Nov  2 05:33:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3063
3064         * Make-lang.in: Change version of compiler.
3065
3066         * ch-tree.h: Add new prototypes.
3067
3068         * decl.c (init_decl_processing): Remove timing related 
3069         initialisations. Add call to timing_init.
3070
3071         * parse.c (parse_action): Process AFTER action.
3072
3073         * tasking.c (build_receive_case_start,
3074         build_receive_signal_case_label, build_receive_buffer_case_label,
3075         build_delay_case_start, build_delay_action, expand_send_buffer):
3076         Add processing of timesupervision.
3077         (tasking_init): Change definitions of runtime   functions.
3078
3079         * timing.c (timing_init): New function for initialisation of
3080         timing related stuff.
3081         (build_cycle_start, build_cycle_end): Changed due to
3082         implementation of timesupervision.
3083         (build_after_start, build_after_timeout_start, build_after_end):
3084         Implement the AFTER action.
3085         (build_timeout_preface, build_timesupervised_call): New functions
3086         to handle timesupervision in case of blocking system calls (i.e.
3087         SEND buffer action, RECEIVE CASE action etc.).
3088         
3089 Thu Oct 27 12:50:24 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3090
3091         * expr.c (build_chill_repetition_op):  Fix repeating all-zero
3092         bitstring with orig_len!=1.  Also, call build_boring_bitstring
3093         if original string was all ones, using one range.  Also:
3094         Cannot use one-bit TYPE_PRECISION to get bitstring length.
3095
3096 Tue Oct 25 14:11:07 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3097
3098         * convert.c (convert):  When converting BOOL constant to
3099         bit-string, bit_one_node and bit_zero_node were switched.
3100         * actions.c (chill_expand_assignment):  Use force_addr_of,
3101         not build_chill_addr_expr - latter yields bogus error.
3102
3103 Fri Oct 21 14:26:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3104
3105         * expr.c (build_chill_indirect_ref):  Check for POINTER_TYPE (only)
3106         after converting from REFERENCE_TYPE.
3107         * expr.c (build_compare_expr):  Convert to common mode *after*
3108         we've checked compatibility.
3109
3110 Fri Oct 21 02:29:15 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3111
3112         * lex.l (check_newline): Use getc instead of getlc to read
3113         the filename in a # line name directive to avoid possibly
3114         downcaseing of a filename.
3115
3116 Thu Oct 20 05:37:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3117
3118         * expr.c (build_chill_indirect_ref): Add check for really
3119         dereferencing a pointer.
3120
3121         * convert.c (convert): Take care of TREE_CONSTANT of a
3122         SYNONYM having mode ARRAY () VARYING something.
3123
3124 Mon Oct 17 02:30:38 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3125
3126         * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for 
3127         boolean_true_node and boolean_false_node. TRUE and FALSE have
3128         the BOOL derived class.
3129
3130         * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
3131         of NUM. NUM delivers the INT derived class.
3132
3133         * grant.c (write_spec_module): Add writing of
3134           <> USE_SEIZE_FILE "x.grt" <>
3135           SEIZE ALL;
3136         to generated grant file.
3137
3138 Thu Oct 13 14:45:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3139
3140         * convert.c (convert_from_reference):  Make non-static.
3141         * ch-tree.h (convert_from_reference):  Add prototype.
3142         * parse.c (parse_name):  If the decl is a REFERENCE_TYPE, just
3143         call convert_from_reference - and not a full-scale convert.
3144
3145         * convert.c (convert):  Only call digest_array_tuple if ARRAY_TYPE.
3146         * typeck.c (chill_expand_tuple):  Print error if type is
3147         neither array, struct, or powerset.
3148
3149         * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
3150         UNDEFINED_EXPR):  Call preserve_temp_slots for temp targets.
3151         If target is not MEM, make temp (even if not REG) to simplify
3152         - and don't copy original target to temp target first.  (Not needed.)
3153
3154         * lang.c (maybe_objc_comptypes):  Just return -1.
3155
3156 Wed Oct 12 12:24:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3157
3158         * tasking.c (tasking_setup):  Fix breakage from previous check-in.
3159
3160 Tue Oct 11 16:00:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3161
3162         * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
3163         timing.c, typeck.c:  Change build1 (ADDR_EXPR, ptr_type_node, XX)
3164         to force_addr_of (XX).  Add call to mark_addressable where needed
3165         for other calls to build 1 (ADDR_EXPR, TYPE, XX).
3166
3167 Thu Oct  6 06:36:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3168
3169         * inout.c (build_chill_writetext): Remove processing
3170         of POWERSET's.
3171
3172 Tue Oct  4 14:08:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3173
3174         * convert.c (convert):  If flag_old_strings, support converting
3175         CHARS(1) and BOOLS(1) to INT.
3176
3177 Fri Sep 30 01:44:51 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3178
3179         * inout.c (build_chill_readtext): Add check for item is
3180         referable and not READonly. Add processing of BITSTRINGs.
3181
3182 Mon Sep 26 16:19:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3183
3184         * expr.c (build_chill_descr):  Add missing call to mark_addressable.
3185         * loop.c (toop_loop_end_check):  Replace build1 (ADDR_EXPR ...)
3186         with call to force_addr_of (which calls mark_addressable).
3187         * expr.c (build_chill_descr, build_chill_inttime):  Likewise.
3188         * inout.c (build_chill_writetext):  Likewise.
3189
3190 Mon Sep 26 05:19:21 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3191
3192         * grant.c (print_struct): Move printing of VARYING from
3193         here ...
3194         * grant.c (grant_array_type): ... to here.
3195
3196 Mon Sep 26 00:09:08 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3197
3198         * ch-tree.h (force_addr_of):  New prototype.
3199         * expr.c (force_addr_of):  Call mark_addressable.  Make non-static.
3200         * inout.c (build_chill_writetext):  Use force_addr_of.
3201
3202 Sun Sep 25 23:41:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3203
3204         * except.c (push_handler), actions.h:  Removed unused parameter.
3205         * actions.c (push_action):  Remove unused paramater.
3206         * parse.c, actions.c:  Remove no-longer-used parameter to
3207         calls to push_handler and push_action.
3208
3209         * decl.c (push_extern_process):  Only build types in pass 1.
3210         * tasking.c (build_process_header):  Only build types in pass 1.
3211         * tasking.c (build_start_process):  Do pushdecl/popdecl etc
3212         even after an error (to maintain consistency between passes).
3213
3214         * convert.c (convert_to_boolean):  Allow any integral input type.
3215
3216 Sat Sep 24 22:47:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3217
3218         * typeck.c (extract_constant_from_buffer):  Add (somewhat kludgey)
3219         support for UNION_TYPE.  (Patch from Wilfried.)
3220         Also, reverse RECORD_TYPE constructor list.
3221
3222 Fri Sep 23 19:06:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3223
3224         * expr.c (build_concat_expr):  Fix calculation of result_size.
3225
3226 Wed Sep 21 00:54:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3227
3228         Give up on trying to use the cleanup mechanism in stmt.c to
3229         make sure the exception handler get unlinked on goto/exit/return.
3230         Instead, do it ourselves.  (Much simpler.)
3231         * except.c, ch-tree.h (action_nesting_level):  New global.
3232         * ch-tree.h (DECL_ACTION_NESTING_LEVEL):  New macro.
3233         * decl.c (define_label):  Set DECL_ACTION_NESTING_LEVEL.
3234         * except.c (expand_goto_except_cleanup):  New function.
3235         (cleanup_chain):  New variable.
3236         (push_handler, pop_handler):  Adjust action_nesting_level.
3237         (emit_setup_handler):  Push cleanup.
3238         (chill_finish_on):  Pop cleanup.
3239         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
3240         Call expand_goto_except_cleanup.
3241         * parse.c (parse_action):  Before RETURN, call
3242         expand_goto_except_cleanup.
3243
3244 Mon Sep 19 00:59:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3245
3246         * lex.l (equal_number):  Make sure converted synonym
3247         is on permanent obstack.
3248         * typeck.c (extract_constant_from_buffer):  Fix INTEGER_TYPE
3249         loop to traverse in big-endian order.
3250
3251 Sat Sep 17 20:48:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3252
3253         * typeck.c (build_chill_cast):  Call mark_addressable.
3254         * expr.c (build_chill_function_call):  Call mark_addressable.
3255
3256 Thu Sep 15 23:47:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3257
3258         * typeck.c (expand_constant_to_buffer):  Fix an endian-ness
3259         problem for INTEGER_CST.
3260         (extract_constant_from_buffer):  Likewise.
3261
3262 Thu Sep 15 22:59:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3263
3264         * decl.c (pushlevel):  Do different things depending on
3265         actual parameter.
3266         * decl.c, parse.c, tasking.c:  Change argument to to pushlevel to 1.
3267         * actions.c (push_action):  Take new parameter.
3268         * except.c (push_handler):  Likewise.
3269         * parse.c:  Change calls to push_action and push_handler.
3270         * loop.c (begin_loop_scope):  Always call expand_start_bindings.
3271         * loop.c (end_loop_scope):  Always call expand_end_bindings.
3272         * except.c (emit_setup_handler):  Add a cleanup to
3273         unlink from exception stack if we return/exit/goto from here.
3274         * loop.c (begin_loop_scope):  Move pushlevel from here ...
3275         * parse.c (parse_do_action): ... to here.
3276
3277         Clean up do-decl interface (for decl_temp1).
3278         * parse.c (parse_loc_declaration):  If global_bindings_p (),
3279         treat as static.
3280         * decl.c (do_decl):  Don't test global_bindings_p ().
3281
3282         * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3283         Not used.  Removed.
3284         (struct scope::keep, scope::keep_if_subblocks):  Likewise.
3285         (keep_next_level):  Likewise.
3286         (kept_level_p, pushlevel, poplevel):  Simplify.
3287
3288         * decl.c (init_decl_processing):  Don't call init_iterators.
3289         * Makefile.in (C_OBJS):  Don't get ../c-iterator.o - not needed.
3290
3291 Thu Sep 15 05:54:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3292
3293         * lex.l (readstring): Add processing of control sequence
3294         in character string literals. The granting mechanism writes
3295         this to grant files.
3296
3297 Tue Sep 13 06:19:42 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3298
3299         * expr.c (compare_records): In case of -fpack do always
3300         a memcmp instead of comparing each field of the
3301         structure. If the structure is a variant structure, 
3302         issue a warning.
3303
3304 Mon Sep 12 13:15:09 1994  Per Bothner  (bothner@cygnus.com)
3305
3306         * grant.c (write_spec_module):  Add cast, to avoid PCC warning.
3307         * grant.c (header_template):  Don't use ANSI-specific string
3308         literal concatenation.
3309
3310 Fri Sep  9 01:53:30 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3311
3312         * tasking.c (get_process_wrapper_name): New function.
3313         (add_taskstuff_to_list): Add a new argument, which is
3314         the entrypoint of a process.
3315         (build_process_header): Change PROCESS arguments to be
3316         like arguments of a function. There will be a wrapper
3317         which is the real entry point for a PROCESS. This wrapper
3318         is automatically build after a PROCESS definition and gets
3319         as argument a pointer to a structure looking like the 
3320         arguments of the PROCESS. This wrapper will call the
3321         PROCESS (see build_process_wrapper).
3322         (build_process_wrapper): New function (see above).
3323         (build_start_process): Change processing of arguments.
3324         (tasking_setup): Add processing of a different entry point
3325         in case of PROCESSes.
3326
3327         * parse.c (parse_process_definition): Add call to
3328         build_process_wrapper.
3329         * parse.c (end_function): Remove the poplevel() call.
3330         build_process_header no longer makes the corresponding
3331         pushlevel().
3332
3333         * grant.c (print_proc_tail): Remove special processing
3334         of PROCESSes, they look now like normal functions.
3335
3336         * decl.c (init_decl_processing): Add declaration of memcmp
3337         function.
3338
3339         * ch-tree.h: Add new prototype for build_process_wrapper,
3340         change prototypes for add_taskstuff_to_list and
3341         build_process_header.
3342
3343         * grant.c (write_spec_module): Write GNUCHILL and gcc
3344         version into grant file.
3345
3346         * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and 
3347         GNUCHILL_VERSION to ch/Makefile.
3348         * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3349
3350         * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3351         will get generated every time a new Makefile will get 
3352         generated.
3353         * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3354         Make-lang.in.
3355
3356         * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3357         to the compiler to avoid generation of an object file.
3358
3359 Thu Sep  8 12:07:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3360
3361         * convert.c (display_int_cst), ch-tree.h:  New function.
3362         * convert.c (digest_array_tuple):  Use digest_int_cst to
3363         provide better error messages.  Return error_mark_node on error.
3364         * grant.c (decode_const):  Simplify by using digest_int_cst.
3365         * grant.c (format_character, find_assoc):  Removed.
3366
3367         * decl.c (do_decl):  Add missing TREE_CHAIN.
3368
3369         * decl.c (finish_incomplete_decl):  Removed.
3370         (init_decl_processing):  Don't set incomplete_decl_finalize_hook.
3371         (finish_decl):  Remove old C-specific code to deduce size of
3372         array from initialization.
3373         (complete_array_type):  Just make it abort.
3374
3375         * except.c (finish_handler_array):  Avoid calling C-specific kludge
3376         complete_array_type.
3377
3378         * convert.c (digest_constructor):  Rename, and re-write to:
3379         (digest_array_tuple, convert):  No longer use the code in
3380         ../c-typeck.c;  use a Chill-only implementation (sigh).
3381
3382         * typeck.c (chill_expand_tuple):  Remove unneeded call to
3383         complete_array_type.
3384
3385         * expr.c (fold_set_expr), grant.c (decode_constant),
3386         typeck.c (expand_constant_to_buffer):  Update name of called
3387         function unpack_set_constructor to get_set_constructor_bits.
3388         * expr.c (powersetlen ):  Remove redundant call to convert.
3389
3390         * ch-tree.h (unpack_set_constructor):  Removed obsolete declaration.
3391
3392         * inout.c (build_chill_writetext):  Handle 64-bit integer literals
3393         by trying to convert them to a smaller type.
3394
3395         * lex.l (convert_number):  Always use long long type (possibly
3396         unsigned) to avoid problems with constant folding truncation.
3397
3398 Mon Sep  5 08:08:22 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3399
3400         * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3401         Add new prototype (see tasking.c).
3402
3403         * expr.c (build_generalized_call): Add processing of
3404         BUILT_IN_QUEUE_LENGTH.
3405
3406         * tasking.c (build_queue_length): New function.
3407
3408         * tasking.c (tasking_init): Add new external function definition.
3409
3410 Thu Sep  1 15:38:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3411
3412         * lex.l (default_lex):  New function.  Progress towards
3413         getting rid of [f]lex.
3414
3415         * lex.l (convert_number):  Use mul_double and add_double.
3416         Set result type to a reasonable type in which the literal
3417         will fit.  Give error message if literal is too big.
3418
3419         * lex.l (equal_number):  Switch (temporarily) to permanent obstack.
3420
3421         * typeck.c (build_chill_slice_with_range):  Check for empty
3422         slice *after* we have checked for upper/lower limit in range.
3423
3424         * grant.c (decode_mode):  Remove unused code.  (BOOL and
3425         CHAR ranges are represented as INTEGER_TYPEs.)
3426
3427         * tasking.c (build_process_header):  Add missing call to
3428         expand_start_bindings.
3429         * parse.c (end_function):  Add missing expand_end_bindings.
3430
3431 Wed Aug 31 17:25:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3432
3433         * decl.c (init_decl_processing):  Set set_alignment.
3434
3435 Tue Aug 30 16:40:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3436
3437         * actions.c (print_missing_cases, check_missing_cases,
3438         BITARRAY_TEST, BITARRAY_SET):  New functions and macros,
3439         to check for completeness of case actions and expressions.
3440         * decl.c (c_decode_option, init_decl_processing):
3441         Don't set warn_switch.
3442         * expr.c (chill_expand_case_expr):  Call check_missing_cases
3443         instead of check_for_full_enumeration_handling.
3444         * parse.c (parse_case_actions):  Call check_missing_cases.
3445
3446         * expr.c (build_chill_binary_op):  Remove some dead code.
3447         * expr.c (chill_truthvalue_conversion):  Call build_chill_binary_op
3448         instead of build_binary_op.
3449         * ch-tree.h (binary_op_error, build_binary_op):  Unused.  Removed.
3450
3451         * parse.c (end_function):  Use kept_level_p in parameter to
3452         poplevel.  This reverts a June 13 change.
3453
3454 Fri Aug 26 11:50:19 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3455
3456         * configure: Ignore --without, as ../configure does.
3457
3458 Wed Aug 24 01:17:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3459
3460         * lex.l: Change rule for decimal numbers to allow identifiers
3461         to start with an underscore (_).
3462
3463 Fri Aug 19 16:38:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3464
3465         * tasking.c (build_receive_signal_case_label):  Remove backwards
3466         chill_convert_for_assignment (which converted whatever garbage
3467         was in the *target* to the type of the signal argument!).
3468
3469 Fri Aug 19 07:10:43 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3470
3471         * inout.c (build_chill_io_list_type, build_enum_tables),
3472         tasking.c (build_tasking_struct): Temporarily reset
3473         maximum_field_alignment to 0, so that the compiler-built
3474         data structures needed by the RTS can be independent of -fpack.
3475
3476 Thu Aug 18 13:39:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3477
3478         * typeck.c (build_init_struct):  Temporarily reset
3479         maximum_field_alignment to 0, so that the compiler-built
3480         data structures needed by the RTS can be independent of -fpack.
3481
3482 Wed Aug 17 23:48:33 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3483
3484         * parse.c (parse_primval, expect, parse_on_exception_list):
3485         Print error message only in pass 2.
3486
3487 Wed Aug 17 13:47:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3488
3489         * decl.c (switch_to_pass_2):  Revert June 13 change,
3490         (Don't exit after pass 1 if an error was found.)
3491
3492         * ch-tree.def (SLICE_EXPR):  New tree-code.
3493         * typeck.c (build_chill_slice):  For building a slice of a
3494         bit-string, just generate a SLICE_EXPR.
3495         * decl.c (init_decl_processing):  Declare __pscpy.
3496         * actions.c (chill_expand_assignment):  Handle a SLICE_EXPR
3497         on the LHS of assignment, by calling __pscpy.
3498         * expr.c (chill_expand_expr):  Handle SLICE_EXPR (as a RHS
3499         value) by using __psslice to copy slice to a temp.
3500
3501 Wed Aug 17 05:52:44 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3502
3503         * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3504         * expr.c (build_chill_length): Enable LENGTH built-in to process
3505         Buffers and Events too (Z.200/1992).
3506         * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3507         a linux system the previous version was not able to run.
3508         * tasking.c: Correct processing of infinite buffer- and event-length
3509         to avoid RANGEFAIL warning.
3510
3511 Thu Aug 11 11:46:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3512
3513         * parse.c (parse_if_expression_body):  Don't call the C-specific
3514         build_conditional_expr.  Just do build_nt (COND_EXPR, ...).
3515         * convert.c (convert):  Convert a COND_EXPR by converting
3516         each branch.
3517
3518         * convert.c (convert):  Don't call convert before
3519         convert_to_reference.  It's apt to do weird and unneedful things.
3520         * convert.c (convert):  If the expression is varying, just call
3521         varying_to_slice, which simplifies quite a bit.
3522
3523         * ch-tree.h (varying_to_slice):  Add prototype.
3524         * typeck.c (varying_to_slice):  Remove prototype.
3525
3526         * satisfy.c (satisfy):  Move case PAREN_EXPR from type 'e'
3527         to type '1'.
3528
3529         * except.c (emit_setup_handler):  Temporarily reset the
3530         maximum_field_alignment to zero so the compiler's exception
3531         data structures can be compatible with the run-time system,
3532         even when we're compiling with -fpack.
3533
3534         * expr.c (compare_records):  Call saved_if_needed on operands.
3535
3536         * expr.c (build_set_expr case NE_EXPR):  Don't use __nepowerset
3537         which has been reimplemented to just call __eqpowerset and
3538         invert the result.  Inline this new implementation by
3539         handling as EQ_EXPR, and inverting the result.
3540         * decl.c (init_decl_processing):  Don't define unused __eqpowerset.
3541
3542         * typeck.c (valid_array_index_p):  The TRUTH_ANDIF_EXPR has
3543         type boolean_type_node, not void_type_node.  (Fixing this
3544         avoids a crash in the back-end.)
3545
3546         * grant.c (decode_constant):  In a CALL_EXPR, if the argument
3547         list is not a TREE_LIST (as in string repetiation), don't
3548         emit parentheses.
3549
3550 Wed Aug 10 13:13:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3551
3552         * decl.c (proclaim_decl):  Use CH_DECL_ENUM to check that a
3553         CONST_DECL is from a SET definition.  (This is safer than
3554         checking that the type is ENUMERAL_TYPE, because synonym
3555         definitions may have a NULL TREE_TYPE.)
3556         Also, if we have duplicate enums whose types are identical,
3557         this is an error.
3558         * decl.c (proclaim_decl, pushdecllist, push_scope_decls):  Add
3559         an extra 'quiet' parameter, which is true if we're called from
3560         bind_sub_modules.  (In that case an error message about duplicated
3561         decls would be repeated later, so suppress it.)
3562
3563         * parse.c (stmt_count):  Removed, not used.
3564         (INIT_ACTION):  Call emit_line_note only if !ignoring.
3565         (parse_begin_end_block):  Do INIT_ACTION even if ignoring.
3566
3567 Fri Aug  5 12:39:11 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3568
3569         * parse.c (parse_untyped_expr):  Add missing semi-colon.
3570
3571 Thu Aug  4 17:40:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3572
3573         * parse.c (parse_untyped_expr):  Fix various problem for the
3574         case that we see a '(':  Add missing 'case' keyword.
3575         Only recurse if '(' is followed by 'if', 'case' or '[',
3576         and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3577
3578         * parse.c (parse_send_action):  Remove extra nreverse.
3579
3580 Thu Jul 28 04:00:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3581
3582         * expr.c (build_allocate_global_memory_call, build_allocate_memory_call): 
3583         Add new checks.
3584
3585 Tue Jul 26 22:48:15 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
3586
3587         * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3588         Added a missing call to `require' as well.
3589
3590 Tue Jul 19 10:30:12 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3591
3592         * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3593         the extern declaration in the flex skeleton.
3594
3595 Mon Jul 18 23:06:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3596
3597         * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3598         Check the type of the instance expr using CH_COMPATIBLE,
3599         and not just == instance_type_node.  (This allows
3600         the expression to have mode READ INSTANCE).
3601         * tasking.c (build_instance_type):  Give instance_type_node
3602         a non-null novelty (i.e. different from a struct).
3603         * tasking.c (build_receive_case_start, build_delay_case_start):
3604         Check that for a location using CH_LOCATION_P.
3605
3606 Mon Jul 18 13:22:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3607
3608         * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3609         to modify a tree code.
3610
3611 Mon Jul 18 11:24:57 1994  Bill Cox  (bill@rtl.cygnus.com)
3612
3613         * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3614           comparison.
3615
3616 Mon Jul 18 05:40:15 1994  Doug Evans  (dje@canuck.cygnus.com)
3617
3618         * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3619
3620 Thu Jul 14 18:37:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3621
3622         * parse.c (parse_send_action):  Do tree_cons *before* checking
3623         for end of loop.
3624
3625 Mon Jul 11 15:33:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3626
3627         * convert.c (digest_structure_tuple):  Don't use convert to
3628         coerce initial value,  use chill_convert_for_assignment instead.
3629         (Thus we also get range_checking.)
3630
3631         * expr.c (build_chill_card):  Use force_addr_of instead of
3632         build_chill_addr_expr.
3633
3634         * loop.c (build_temporary_variable):  Stylistic tweak.
3635         * loop.c (maybe_make_for_temp):  Initialize temp using
3636         explicitly, not using assignment.  Avoids a problem if
3637         the expression is read-only.
3638         * typeck.c (smash_dummy_type):  Always used the saved TYPE_NAME
3639         and CH_NOVELTY_FLAG.
3640
3641 Wed Jul  6 20:12:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3642
3643         * expr.c, ch-tree.h (finish_chill_unary_op):  New function,
3644         based on code ripped out of build_chill_unary_op.
3645         (build_chill_unary_op):  Call finish_chill_unary_op unless pass==1.
3646         * satisfy.c (satisfy):   Call finish_chill_unary_op when needed. 
3647
3648 Mon Jun 27 11:29:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3649
3650         * tree.c (save_if_needed), ch-tree.h:  New function.
3651         * typeck.c (build_chill_slice_with_range,
3652         build_chill_slice_with_length):  Call save_if_neeed on array arg.
3653         * expr.c (varying_to_slice):  Re-write to use save_if_needed.
3654
3655         * typeck.c (extract_constant_from_buffer):  Handle BOOLEAN_TYPE.
3656
3657 Mon Jun 27 01:11:10 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3658
3659         * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3660         that it is always the same, regardless if compiled with -fpack
3661         or not.
3662
3663 Tue Jun 14 16:44:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3664
3665         * lex.l (yywrap):  Kludge to work around mis-synchronization
3666         between lexer (which read ahead) and parser:  Don't emit
3667         (left-over) uze_seizefile directives at the end of file.
3668
3669         * typeck.c (build_chill_array_ref):  Allow the derived
3670         array indexing syntax for arrays of bit strings.
3671         Add a comment explaining why.
3672
3673         * typeck.c, ch-tree.h (string_assignment_condition):  Change
3674         the interface.  Return a boolean expression (which can be
3675         used in a conditional at run-time);  never expand anything.
3676
3677         * actions.c (chill_convert_for_assignment):  Check
3678         string_assignment_condition here, rather than in callers.
3679         * actions.c (chill_expand_assignment):  Don't need to check
3680         string_assignment_condition here.
3681         * expr.c (build_chill_function_call):  Likewise.
3682         * satisfy.c (safe_satisfy_decl):  Update accordingly.
3683         * decl.c (do_decl):  Simplify testing and conversion by
3684         deferring everything to chill_convert_for_assignment.
3685
3686         * parse.c:  Combine the two variables 'ignore_exprs' and
3687         'ignore_actions' into one variable called 'ignoring'.
3688         * ch-tree.h:  Add 'extern int ignoring'.
3689         * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3690         Rename ignore_actions and ignore_exprs to ignoring.
3691         Remove unneeded extern declarations.
3692         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3693         build_chill_arrow_expr, build_generalized_call, build_delay_action,
3694         build_buffer_type, build_event_type):  I changed my mind.  It is
3695         cleaner to check for 'ignoring' in the parser, rather than here.
3696         * parse.c (parse_action, parse_primval, parse_opt_mode):
3697         Therefore we must check for ignoring here.
3698         * parse.c (parse_loc_declaration):  Set ignoring in pass 2
3699         when parsing the mode.
3700         
3701         * tasking.c (generate_tasking_code_variable):  Do arithmetic
3702         on signal_code etc using unsigned rather than signed shorts.
3703
3704         * grant.c (static char* current_grant_modename):  Removed.
3705         * grant.c (decode_decl case CONST_DECL):  Remove error message.
3706
3707         * Make-lang.in (CHILL_SRCS):  Add $(srcdir)/ch/parse.c.
3708         * Makefile.in:  Fix dependencies for parse.o.
3709         Remove some duplicate dependencies for $(TREE_H).
3710
3711 Mon Jun 13 14:25:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3712
3713         * typeck.c (build_chill_cast):  Allow a value cast between
3714         non-discrete object of the same size, but with a pedwarn.
3715         * typeck.c (bit_string_assignment_condition,
3716         char_string_assignment_condition):  Merge near-duplicate functions
3717         and place the code in string_assignment_condition.
3718
3719         * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3720         Removed.  Not used.
3721         * decl.c (start_chill_function, finish_chill_function):  Make
3722         parameter level have same nesting level as body, as required by Z200.
3723         * decl.c (switch_to_pass_2):  Always exit if an error has been found.
3724         * decl.c (pop_module):  Copy DECL_SEIZEFILE to a new ALIAS_DECL
3725         generated from GRANT ALL.
3726         * decl.c (lookup_name_for_seizing):  Don't seize from
3727         the nesting level of builtins (predefined objects).
3728         * decl.c (lookup_name_for_seizing):  Make more robust on error.
3729
3730         * decl.c (start_chill_function):  MAKE DECL_NAME (chill_result_decl)
3731         be 'RESULT' (or 'result').  This makes it more accessible from gdb.
3732         Also, use do_decl to declare it, so that debugging symbols are
3733         generated.  And, re-arrange so that actions that need to
3734         be done both passes (such as push_levels) use the same code.
3735
3736         * parse.c (get_type_of):  If ignore_exprs, don't lookup name.
3737         * parse.c (end_function):  Fix poplevel params.
3738         * parse.c (expect):  Don't read forwards on an error.
3739         * parse.c (parse_field):  Don't define two tag_list locals!
3740         * parse.c (parse_pass_1_2):  Better error message.
3741
3742         * parse.c (parse_mode, parse_opt_mode):  Have parse_mode call
3743         parse_opt_mode, rather than vice versa.  If parse_opt_mode
3744         returns NULL_EXPR, then parse_mode gives an error.
3745         Change parse_opt_mode (and any functions it calls) to only
3746         return NULL_TREE if there is no mode (even on ignore_exprs).
3747         (parse_set_mode, parse_structure_mode, parse_procedure_mode):
3748         Never return NULL_EXPR.
3749         * tasking.c (build_buffer_type, build_event_type):  Return
3750         void_type_node instead of NULL_EXPR if ignore_exprs is true.
3751
3752         * parse.c (parse_synonym_definition):  Call parse_untyped_expr
3753         only if we have a mode.
3754         * parse.c (parse_send_action):  Parse list of untyped_expr's,
3755         rather than a list of (typed) expressions.
3756         * parse.c (parse_primval):  Emit error if '[' seen without
3757         preceding mode name.  (If this is to be allowed, call
3758         parse_untyped_expr instead.)
3759
3760         * parse.c (parse_array_index):  Renamed to ...
3761         (parse_index_mode):  ... to match Z200 terminology.
3762         Re-write to resolve some of the nastier ambiguities,
3763         and allow things like ' CHAR(10) : CHAR(20) '.
3764
3765         * parse.c (parse_tuple_element):  Change interface to return
3766         reversed list, so don't call nreverse.
3767         * parse.c (parse_tuple):  No longer nreverse element list here.
3768         * parse.c (parse_opt_element_list):  Do nreverse here instead.
3769         * parse.c (parse_case_label_list):  Call nreverse at end.
3770
3771 Fri Jun 10 15:36:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3772
3773         * typeck.c (chill_similar):  Remove bogus "else".
3774
3775 Wed Jun  8 00:01:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3776
3777         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  New macro (and comment)
3778         to make it clearer that we are using TYPE_MAX_VALUE in a special way.
3779         * typeck.c (build_chill_slice):  Use TYPE_ARRAY_MAX_SIZE.
3780         * expr.c (chill_expand_expr case CONCAT_EXPR):  Likewise.
3781         * convert.c (convert):  When converting a fixed string/array
3782         to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
3783         of (the type of) the padding.
3784         * convert.c (convert): If the concatenation is non-constant, use
3785         the low-level 'build' to set the type of the result (which is usually
3786         a fixed-size array) rather than depend on build_chill_binary_op
3787         to figure it out (it's unable to simplify the size to a constant).
3788
3789 Mon Jun  6 18:16:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3790
3791         * lang.c (lang_decode_option):  Let -fspecial_UC imply
3792         -fno-ignore-case without requiring it explicitly.
3793         * lang.c (lang_decode_option):  Support (experimentally)
3794         the -fpack and -fno-pack flags.
3795
3796 Thu Jun  2 20:49:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3797
3798         * configure: Add support for --program-prefix and --program-suffix.
3799
3800 Tue May 31 18:12:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3801
3802         * convert.c (digest_constructor):  Check that initial value
3803         is compatible with element mode before calling convert.
3804         * typeck.c (chill_compatible):  A string mode is not compatible
3805         with an untyped constructor.
3806         * decl.c (do_decl):  Clean up error messages.  Use error_with_decl.
3807
3808         * ch-tree.h:  Fix inconsistencies: bool_true_node ->
3809         boolean_true_node, and bool_false_node -> boolean_false_node.
3810         * typeck.c (valid_array_index_):  Minor simplification.
3811
3812 Tue May 31 04:33:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3813
3814         * inout.c (build_chill_writetext): Add correct processing 
3815         of POWERSET RANGE (setmode).
3816
3817         * lex.l (same_file): Add searching for file(s) in
3818         seize_path_list.
3819
3820 Fri May 27 14:22:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3821
3822         * Make-lang.c (CHILL.mostlyclean, CHILL.distdir):  Don't list
3823         yacc/bison output files, since the grammer is no longer in yacc.
3824         * config-lang.in (diff_excludes):  Likewise.
3825
3826 Thu May 26 16:38:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3827
3828         * gperf, hash.h, lex.l, parse.h:  Rename PROCESS_TYPE token
3829         (in some files spelled PROCESS_TYPE_ to avoid clashes
3830         with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
3831
3832 Thu May 26 02:18:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3833
3834         * timing.c (build_cycle_start): Change call to __define_timeout.
3835         * decl.c (init_decl_processing): Change definitions of
3836         __define_timeout and __wait_timeout.
3837
3838 Wed May 25 11:53:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3839
3840         Replace yacc-based parser with a recursive-decent parser.
3841         (This may seem backwards, but Chill [like C++] is not a
3842         language that is remotely LALR(1).  Using a R-D parser
3843         allows us to use look-ahead and to back-up to resolve the
3844         difficult ambiguities.)
3845         * parse.y:  Removed.
3846         * parse.c, parse.h:  New files, containing new r-d parser.
3847         * Makefile.in:  Update accordingly.
3848         * actions.c (chill_convert_for_assignment):  Don't return
3849         NULL_EXPR if ignore_exprs is true.  It simplifies the parser
3850         if we consistently reserve NULL_EXPR for a missing expression.
3851         * expr.c (build_chill_function_call):  Likewise.
3852
3853         * lex.l:  Tweaks for new parser.
3854         * lex.l (prepare_paren_colon, paren_paren_colon_level,
3855         paren_level):  Ugly hack no longer needed.
3856
3857         * expr.c (build_chill_function_call):  Cleanup.
3858         Call chill_convert_for_assignment to convert IN/INOUT
3859         paramaters on both input and output.  For LOC parameters,
3860         give error if actual is a non-referable location.
3861         * actions.c (convert_for_assignment):  Add new parameter (a
3862         "place" string used in error messages).
3863         * actions.c (adjust_parm_or_field):  Removed.
3864         * actions.c (chill_expand_assignment):  Take just a single LHS,
3865         and move support for multiple assignments to ...
3866         (expand_assignment_action): ... here.  Some cleaning up.
3867         * timing.c (build_cycle_start):  Adjust accordingly.
3868         * actions.c (expand_assignment_to_varying_array):  Likewise.
3869         * tasking.c (many places): Ditto.
3870         * ch-tree.h:  Fix declarations appropriately.
3871
3872         * parse.c (parse_defining_occurrence_list):  Return a single
3873         IDENTIFIER_NODE (instead of a singleton list) in the common
3874         case.  Minor complication to save a minor amount of space.
3875         * decl.c (do_based_decls):  Move guts of code into ...
3876         (do_based_decl):  ... this new function.
3877         * decl.c (do_decls):  Handle either IDENTIFIER_NODE or a TREE_LIST.
3878         * decl.c (push_syndecl):  Replace by ...
3879         (push_syndecl):  ... (which only supports a single name).
3880         (push_modedef):  Only handle a single name.
3881         * tasking.c (build_process_header, build_signal_struct_type):
3882         Adjust accordingly.
3883
3884         * expr.c (build_generalized_call):  Handle string repetition.
3885         * expr.c (build_chill_repetition_op):  Change interface.
3886         * grant.c (decode_constant):  Allow parameter list to be
3887         a non-TREE_LIST.  (Used for string repetition.)
3888
3889 Wed May 25 11:28:48 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3890
3891         * lex.l (make_identifier):  Replaced by ...
3892         (read_identifier, handle_name): ... new functions.
3893         * lex.l: Parse an identifiers using read_identifier using
3894         read_identifier and handle_name, rather than having [f]lex
3895         do it.  (One reason is that lex uses a fixed-size buffer.)
3896
3897         * lex.l (read_directive, skip_directive):  New functions.
3898         Use them to parse compiler-directives, instead of rather
3899         ugly and useless use of lexer start conditions.
3900
3901 Tue May 24 22:36:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3902
3903         * decl.c (unnamed_module_number):  Renamed to ...
3904         (module_number):  .. and make non-static.
3905         (push_module):  Always increment module_number.
3906         * lex.l (yywrap):  Print warning if no modules seen.
3907
3908         * decl.c (pop_module):  Don't set DECL_SEIZEFILE of granted
3909         decl to current_seizefile_name (which is unreliable).
3910         * grant.c (chill_grant):  Set it here instead.
3911
3912         * expr.c (fold_set_expr):  Use int_size_in_bytes instead of
3913         TYPE_PRECISION (which is not defined for a SET_TYPE).   
3914
3915 Fri May 20 15:21:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3916
3917         Cleanup to remove need for variables in common storage.
3918         * decl.c:  Remove unused use of current_obstack.
3919         * actions.c (maybe_chill_check_decl):  Remove unused function.
3920         * actions.h, lang.c:  Remove uses of doing_chill_thang.
3921         * ch-tree.h (void_list_node):  Make extern (rather than common).
3922         * decl.c (void_list_node):  Add definition.
3923
3924 Thu May 19 06:54:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3925
3926         * configure (build): Build canon_host and canon_target
3927         to pass it to all subsequently generated Makefiles (needed
3928         for testsuite/execute in case of cross build).
3929
3930 Wed May 18 13:27:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3931
3932         * grant.c (decode_mode):  Remove.  It checks the TYPE_NAME of
3933         the input type, which loses with the no-longer-new 2-pass
3934         implementation, since the input "type" could be an IDENTIFIER_NODE.
3935         * grant.c (raw_decode_mode):  Rename to decode_mode.
3936
3937 Tue May 17 13:19:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3938
3939         * typeck.c (chill_location):  Neither a STRING_CST nor a
3940         CONSTRUCTOR is a location.
3941         * typeck.c (chill_root_mode):  Convert a function to a
3942         pointer-to-function.
3943         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3944         build_chill_arrow_expr):  If ignore_exprs, return operand
3945         rather than NULL_EXPR.  This makes it easier for the parser to
3946         distinguish missing expressions.
3947         * expr.c (build_max_min):  Convert the lower bound of a
3948         set to a long before calling run-time routine.
3949         * expr.c (build_chill_pred_or_succ):  Use discrete_type_p
3950         to check the argument type.
3951         * expr.c (build_chill_arrow_expr):  If argument is not a location,
3952         do a predwarn if it is a STRING_CST or has function type.
3953
3954 Tue May 17 06:05:13 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3955
3956         * configure (build): Remove building of canon_host and canon_target.
3957         It doesn't work in any case.
3958
3959 Mon May 16 02:10:35 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3960
3961         * configure (build): Build canon_host and canon_target
3962         to pass it to all subsequently generated Makefiles (needed
3963         for testsuite/execute in case of cross build).
3964         * Make-lang.in (chill-runtime): Change chill to CHILL in the case
3965         statement to build chill-runtime automatically.
3966
3967 Mon May  9 15:30:08 1994  Doug Evans  (dje@canuck.cygnus.com)
3968
3969         * Makefile.in (FLAGS_TO_PASS): Define.
3970         (OBJDEPS): Define.
3971         (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
3972         * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
3973         (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
3974
3975 Sun May  8 13:05:00 1994  Per Bothner  (bothner@cygnus.com)
3976
3977         * Make-lang.in (cc1chill):  Should not depend on libgcc.a.
3978
3979 Thu May  5 18:58:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3980
3981         * decl.c (copy_lang_decl):  New (dummy) function.
3982
3983 Mon May  2 14:33:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3984
3985         * parse.y (sendaction):   Fix thinko (in sense of condition).
3986         * tasking.c (build_receive_case_label):  Another thinko.        
3987
3988         * parse.y (optsigdest):  Force ignore_exprs to 0 while parsing
3989         the (signal-)name.
3990
3991         * decl.c (build_chill_function_type):  Don't call layout_type
3992         (since that may prevent parameter or result types being
3993         properly satisfied).
3994         * satisfy.c (satisfy):  Layout FUNCTION_TYPEs.
3995         * parse.y (procmode):  Call build_chill_pointer_type, rather
3996         than build_pointer_type (which incorrectly sets TYPE_SIZE). 
3997
3998         * parse.y (get_type_of):  Handle TYPE_DECL (again).
3999         * parse.y (optresultspec):  Call build_chill_reference_type, rather
4000         than build_reference_type (which incorrectly sets TYPE_SIZE).
4001         * parse.y (range_or_mode):  Rename to plain range, since it
4002         no longer matches modename.
4003         * actions.c (chill_handle_case_label_range):  New function, with
4004         functionality moved out of chill_handle_case_label.
4005         * actions.c (chill_handle_case_label):  Handle here the case that
4006         the label_value is a TYPE_DECL (modename).   Also clean up some.
4007         * typeck.c (build_chill_slice_with_length):  Convert max_index
4008         to the type of min_value.  (Old code broke on varying strings.)
4009
4010 Sun May  1 13:53:36 1994  Doug Evans  (dje@canuck.cygnus.com)
4011
4012         * Makefile.in (BC_OBJS): Delete all references
4013         (OBJS): Cat ../stamp-objlist to get language independent files.
4014         (../cc1chill): Delete dependency on $(OBJS).
4015         * Make-lang.in (cc1chill): Depend on stamp-objlist.
4016
4017 Sat Apr 30 14:50:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4018
4019         * lex.h, lex.c:  Remove lastiddecl.
4020         * lex.l (name_type_signal):  Simplify.  We no longer check for
4021         TYPENAME or SIGNALNAME (which was unreliable with two passes).
4022         Also rename to make_identifier.
4023         * parse.y:  Cleaned up grammar to not need SIGNALNAME or TYPENAME.
4024         * Makefile.in (stamp-parse);  One conflict fewer!
4025         * parse.y (rccase_label_flag):  Moved to tasking.c.
4026         * parse.y (rccase_label):  Move most of the logic to
4027         build_receive_case_label in tasking.c.
4028         * parse.y (sendaction):  Re-write to not depend on SIGNALNAME.
4029
4030         * parse.y (name):  Do name lookup here (and not in location).
4031         * parse.y:  Replace most uses of NAME by higher-level non-terminals:
4032         simple_name_string, name_string, defining_occurrence, or name.
4033
4034         * tasking.c (build_receive_signal_case_label,
4035         build_receive_buffer_case_label):  New functions, split out from
4036         build_receive_case_label.
4037         * tasking.c (build_receive_case_label):  Change parameters
4038         and return type.  Moved stuff here (from the parser).
4039         * tasking.c (struct rc_state_type):  Removed had_errors.
4040         Return error_mark_node instead.
4041         * tasking.c (build_rccase_set_error), ch-tree.h:  Removed.
4042
4043         * expr.c (build_generalized_call):  If func is a signal type,
4044         call build_signal_descriptor.
4045
4046         * parse.y (arrayindex):  Renamed to index_mode, to match Z.200.
4047         * parse.y (ioindexmode):  Removed;  use index_mode instead.
4048         * expr.c (build_generalized_call):  If args is a RANGE_EXPR,
4049         we have either a slice or a range mode, depending on func.
4050         * parse.y (index_mode):  If we got an 'expr', only allow a name,
4051         or a range mode.
4052         * parse.y (call):  A slice with both end points can be a range
4053         mode, so defer handling to build_generalized_call (or index_mode).
4054
4055         * typeck.c (build_chill_slice_with_length):  Fix type-checking.
4056         * typeck.c (chill_novelty):  Undo (part of) change of April 28:
4057         The novelty of a range mode is the novlety of the parent.
4058         * typeck.c (chill_root_mode):  Don't return integer_type_node
4059         if argument has non-nil novelty.
4060
4061         * decl.c (global_bindings_p):  Return -1 as true, for the sake
4062         of variable_size (in ../stor-layout.c).
4063
4064 Fri Apr 29 13:42:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4065
4066         * parse.y:  Remove TYPENAME and modename.  These are now plain
4067         NAMEs.  Modify parsing actions appropriately.
4068         * expr.c (build_generalized_call):  Handle the case that
4069         TREE_CODE (func) == TYPE_DECL (as in a cast).
4070         * lex.l (name_type_signal):  Never return TYPENAME.
4071         * parse.y (get_type_of):  If pass 1, just return the argument.
4072
4073         * decl.c (do_decl):  If an initializer has the wrong type,
4074         replace it by NULL_TREE, to avoid subsequent errors.
4075
4076 Thu Apr 28 15:21:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4077
4078         * Makefile.in: Add new file timing.c to rules.
4079         * timing.c: New file. Implements the timing actions AT,
4080           CYCLE and AFTER.
4081         * decl.c (init_decl_processing): Add new builtin function
4082           descriptions.
4083         * expr.c (build_chill_indirect_ref): Change error message and
4084           add check agains an IDENTIFIER_NODE.
4085         * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
4086           They are no longer needed.
4087         * grant.c (print_integer_type): Add processing of builtin types
4088           DURATION and TIME.
4089         * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
4090         * parse.y (timingactions): split up to afteraction, ataction
4091           and cycleaction.
4092         * parse.y (afteraction): New rule.
4093         * parse.y (ataction): New rule and put actions in.
4094         * parse.y (cycleaction): New rule and put actions in.
4095         * parse.y (sendaction): Add code for SEND buffer.
4096         * parse.y (rccase_label): Change error processing.
4097         * tasking.c (build_gen_inst): More checks.
4098         * tasking.c (build_gen_code): Add checking for argument is a 
4099           PROCESS or a SIGNAL.
4100         * tasking.c (struct rc_state_type): Add new fields for easier
4101           error processing.
4102         * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
4103         * tasking.c (build_rccase_set_error), ch-tree.h: New function.
4104         * tasking.c (build_receive_case_label): Add processing of BUFFER's.
4105         * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
4106           New functions to process the end of a RECEIVE CASE action in case
4107           of BUFFER's and SIGNAL's.
4108         * tasking.c (build_receive_case_end): Do only general processing and
4109           call one of the above mentioned functions.
4110         * tasking.c (build_delay_case_start, build_delay_case_label,
4111           build_delay_case_end): Rewritten due to new implementation of events.
4112         * tasking.c (build_delay_action): Rewritten due to new implementation
4113           of EVENT's.
4114         * tasking.c (expand_send_buffer), ch-tree.h: New function.
4115         * timing.c (build_at_action, build_cycle_start, build_cycle_end),
4116           ch-tree: New functions.
4117
4118 Thu Apr 28 14:11:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4119
4120         * typeck.c (smash_dummy_type):  Handle the special case of a
4121         NEWMODE of a range mode, as required by Z200, by creating a
4122         new parent mode with the new novelty (and casting the min
4123         and max of the range to teh new parent mode).
4124         * typeck.c (chill_novelty, chill_root_mode):  Remove special
4125         kludges for of NEWMODE ranges.
4126         * expr.c (build_chill_lower_or_upper):  New function, combining
4127         the "guts" of build_chill_lower and build_chill_upper.
4128         * expr.c (build_chill_lower_or_upper):  Simplify;  no longer
4129         need to kludge the novelties.
4130
4131         * typeck.c (valid_array_index_p):  A string index expression
4132         need not be Compatible with the index type;  only similar.
4133
4134         * decl.c (layout_chill_variants):  If error seen, skip stuff
4135         (rather than aborting or crashing).
4136         * decl (push_modedef):  If newdecl's type is an error mark,
4137         continue rather than aborting.
4138
4139 Thu Apr 28 02:07:42 1994  Doug Evans  (dje@cygnus.com)
4140
4141         * Make-lang.in: Update of directory reorg from fsf.
4142         * config-lang.in: Ditto.
4143
4144 Mon Apr 25 13:09:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4145
4146         * typeck.c (chill_similar):  Check RECORD_TYPEs properly,
4147         * convert.c (convert):  If all else fails, just call convert1.
4148         Thus we can now convert RECORD_TYPEs (assuming they are similar).
4149
4150         * parse.y, lex.l:  Remove BUFFERNAME (use location/expr instead).
4151         * parse.y:  Re-do BUFFER handling (similar to previous EVENT change).
4152         * grant.c (raw_decode_mode):  Re-do BUFFER mode handling.
4153         * ch-tree (lang_type_record):  Removed max_queue_size field.
4154         * tasking.c (build_buffer_type):  Re-write.
4155         * tasking.c (max_queue_size):  Fix to support buffer modes.
4156         * tasking.c (buffer_element_mode), ch-tree.h:  New function.
4157         * tasking.c ch-tree.h (expand_send_buffer):  Now has 3 parameters.
4158         * parse.y (modename):  No longer match SIGNALNAME.  Instead, add it
4159         to name and simple_name_string.  This removes a reduce/reduce conflict.
4160         * Makefile.in (stamp-parse):  Expect fewer conlicts.
4161
4162         * lex.l (yywrap):  Move check for circularly seizeing current
4163         grant-file from here ...
4164         * lex.l (handle_use_seizefile_directive):  ... to here.
4165         This is to avoid calling stat on a not-yet written grantfile,
4166         now that we're using same_file (which calls stat).
4167         * grant.c (set_use_this_gf):  Removed.
4168         * grant.c (set_default_grant_file):  Set grant_file_name here,
4169         because we need it earlier (due to above lexer change).
4170
4171         * typeck.c (layout_chill_struct_type):  Remove useless code to
4172         remove zero-width bitfield (which messes up CONST_DECLs).
4173
4174 Sat Apr 23 13:16:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4175
4176         * Makefile.in (check): Assure that 'ld' is available before checking.
4177
4178 Thu Apr 21 13:23:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4179
4180         * grant.c (print_an_int):  Removed.
4181         (raw_decode_mode):  Generalized to use decode_constant
4182         instead of print_an_int.
4183         (decode_constant):  Print directly, instead of calling print_an_int.
4184         * parse.y (event_list):  Fix syntax.
4185         * parse.y (optqueuesize):  Default is NULL_TREE, not zero.
4186         * tasking.c (check_queue_size):  New function, for error checking.
4187         * ch-tree.h:  Add declaration for check_queue_size.
4188         * satisfy.c (satisfy case RECORD_TYPE):  Satisfy constant fields
4189         (used for queue size of EVENT and BUFFER), and call check_queue_size.
4190
4191 Tue Apr 19 13:42:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4192
4193         Re-implement EVENT modes to support general EVENT objects
4194         (and not just EVENT names), according to Z200.  (Not finished!)
4195         * tasking.c, ch-tree.h (max_queue_size):  New function.
4196         * parse.y (dcalternative, event_list, event_list_head):  New
4197         implementation of DELAY CASE, avoiding parsing ambiguities.
4198         (call, locdec, delayaction):  Remove old EVENTNAME kludges.
4199         * lex.l (name_type_signal):  Remove EVENTNAME recognition.
4200         * tasking.c (build_event_type):  Re-written.
4201         * typeck.c (chill_similar), decl.c (print_lang_type):
4202         Use new max_queue_size function.
4203         * typeck.c (layout_chill_struct_size):  Ignore CONST_DECL.
4204         * tasking.c (build_delay_action):  Preliminary changes - just to
4205         make it compile.  FIXME!
4206         * grant.c (raw_decode_mode):  Use new max_queue_size function.
4207         Move EVENT support from LANG_TYPE to RECORD_TYPE.
4208         * ch-tree.h (process_event_decls):  Removed.
4209
4210 Tue Apr 19 11:44:01 1994  Bill Cox  (bill@rtl.cygnus.com)
4211
4212         * regression.sh: Complete previous change - eliminate all
4213           references to objdir as a user parameter.
4214
4215 Mon Apr 18 10:17:55 1994  Bill Cox  (bill@cygnus.com)
4216
4217         * Makefile.in (check): Simplified regression.sh call.
4218         * regression.sh: Change command-line parsing.  Default
4219           srcdir to the script's path.  Calculate objdir
4220           internally - don't pass it in.
4221
4222 Thu Apr 14 13:30:19 1994  Wilfried Moser  (moser@phishhead.cygnus.com)
4223
4224         * expr.c (build_chill_duration): Add range checking.
4225
4226         * lex.l (init_lex): Add predefined names DURATION and TIME.
4227         * lex.h (enum rid): Add RID_DURATION and RID_TIME.
4228         * ch-tree.h: Add prototypes and externals.
4229         * decl.c (init_decl_processing): Add builtin function
4230         descriptions.
4231         * expr.c (build_generalized_call): Add processing of some
4232         builtin's.
4233         * expr.c (build_chill_abstime): New function to process builtin
4234         ABSTIME.
4235         * expr.c (build_chill_inttime_type): New function to built type
4236         for the INTTIME builtin.
4237         * expr.c (build_chill_inttime): New function to process builtin
4238         INTTIME. 
4239         * expr.c (build_chill_duration): New function to process builtin's
4240         MILLISECS, SECS, MINUTES, HOURS and DAYS.
4241
4242 Tue Apr 12 11:55:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4243
4244         * lex.l (chill_same_grant_file):  Rename to same_file.  Change to
4245         take two files names rather than two DECLs.  Also check that the
4246         filesystems (st_dev) are equal.  Finally, make static.
4247         * lex.l (handle_use_seizefile_directive):  Check for duplicate
4248         USE_SEIZE_FILE directives using same_file.
4249         * decl.c (pop_module):  Remove dubious call to chill_same_grant_file.
4250
4251 Sun Apr 10 17:19:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4252
4253         * decl.c, ch-tree.h (chill_result_decl):  New variable.  Used to
4254         store RESULT value.  (Cannot use DECL_RESULT;  see comment in decl.c.)
4255         * actions.c (chill_expand_result, chill_expand_return):
4256         Use chill_result_decl appropriately.
4257         * ch-tree.h, decl.c, actions.c (saved_result_rtx):  Removed.
4258         Subsumed by chill_result_decl.
4259
4260         * expr.c (chill_expand-expr case CONCAT_EXPR):  Generate temporary
4261         using the mode of the result type, and don't assume it is BLKmode.
4262
4263 Fri Apr  8 17:46:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4264
4265         * actions.c (chill_expand_assignment):  Check for compatibility
4266         _after_ "expanding out" a binary operation.  This fixes
4267         the case "STRING //:= CHAR".
4268
4269         * lex.l (equal_number):  Convert symbol to integer_type_node, to
4270         force the value to be INT-derived (and avoid novelty conflicts).
4271
4272 Mon Apr  4 22:06:31 1994  Per Bothner  (bothner@cygnus.com)
4273
4274         * ch-tree.h (CH_FUNCTION_SETS_RESULT):  New flag.
4275         * ch-actions.c (chill_expand_return), ch-tree.h:  Extra
4276         parameter, indicates if implicit return at end of function.
4277         * ch-parse.y:  Modify accordingly.
4278         * ch-actions.c (chill_expand_return):  Various improvements.
4279
4280         * decl.c, ch-tree.h (result_never_set):  New variable.
4281         * actions.c (chill_expand_result, chill_expand_return):  Clear it.
4282         * ch-parse.y (end_function):  Warn if no RETURN or RESULT action.
4283
4284         * decl.c, ch-tree.h (saved_result_rtx):  New variable.
4285         * decl.c (start_chill_function):  Use saved_result_rtx as return
4286         value if there is a RESULT in a REG that might get clobbered.
4287         * actions.c (chill_expand_result):  Save result in saved_result_rtx
4288         or assign to DECL_RESULT as appropriate.
4289         * decl.c, ch-tree.h (current_function_returns_value,
4290         current_function_returns_null, current_extern_inline):
4291         Don't use.  Only define first two to allow linking with ch-typeck.c.
4292
4293         * typeck.c (chill_l_equivalent):  Add forward declaration.
4294
4295 Fri Apr  1 11:02:27 1994  Wilfried Moser  (fs_moser at rcsw47)
4296
4297         * lex.l (readstring): Handle control sequence in all cases (Z.200
4298         5.2.4.4 page 54).
4299
4300 Fri Apr  1 13:11:27 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4301
4302         * configure:  Simplify and fix the logic for looping through
4303         sub-directories.
4304
4305 Thu Mar 31 18:59:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4306
4307         * ch-tree.h (CH_L_EQUIVALENT):  Moved from typeck.c.
4308         * typeck.c (chill_similar):  Add support for checking
4309         FUNCTION_TYPEs for similarity.  Also, treat
4310         pointer-to-function-type the same as function-type.
4311
4312 Thu Mar 31 11:22:56 1994  Wilfried Moser  (fs_moser at rcsw47)
4313
4314         * ch-tree.h: Change prototype of function expand_send_signal.
4315         * parse.y: Change calls to expand_send_signal.
4316         * tasking.c (expand_send_signal): Change handling of optsetto
4317         argument. New argument signame to get a possible destination
4318         process for the signal.
4319
4320 Wed Mar 30 14:54:48 1994  Wilfried Moser  (fs_moser at rcsw1j)
4321
4322         * tasking.c (make_process_struct): Change error message in case of
4323         a process argument has other attribute then IN or LOC.
4324         * tasking.c (build_start_process): Add check that the optset is
4325         referable in case it is specified (this makes
4326         noncompile/start_.ch working).
4327
4328 Tue Mar 29 13:24:27 1994  Wilfried Moser  (fs_moser at rcsw1h)
4329
4330         * Makefile.in: Change version string to 1.2.1
4331         * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4332           entries. 
4333         * ch-tree.h: Change prototype for build_chill_readtext.
4334         * decl.c (init_decl_processing): Add builtin_function _readstring,
4335           _readunixstd and READTEXT.
4336         * expr.c (build_generalized_call): Add processing of READTEXT.
4337           Delete handling of no longer valid builtin_functions.
4338         * gperf: Remove keyword READTEXT.
4339         * parse.y: Remove token READTEXT.
4340         * inout.c (build_chill_io_list_type): Add building type for
4341           READTEXT. 
4342         * inout.c (build_chill_readtext): Implement the function
4343           (partial).
4344         * inout.c (build_chill_writetext): Do some cleanups.
4345
4346 Tue Mar 29 12:30:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4347
4348         * typeck.c (build_chill_cast):  Re-arrange, to support casts
4349         of const integer to type of different size, if there is
4350         an integral type of the desired size:  Go through the
4351         const conversion code.
4352
4353         * actions.c (adjust_parm_or_field):  Move support for LOC to ...
4354         * expr.c (build_chill_function_call): ... here.
4355         Fix a number of bugs in OUT/INOUT handling.
4356
4357         * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4358         parse.y (location), typeck.c (chill_comptypes):  Remove unused
4359         support for ENCAPSULATED_ARRAY_P.
4360         * typeck.c (build_chill_array_parm_type), ch-tree.h:  Remove; unused.
4361
4362         * ch-tree.h, decl.c (shadow_record_fields), decl.c
4363         (shadow_record_fields), expr.c (chill_expand_case_expr,
4364         build_chill_function_call), grant.c (chill_finish_compile),
4365         typeck.c (build_empty_string, build_init_struct):  Rename magic 
4366         identifiers of the form "<...>" to "__..." for better portability.
4367
4368         * actions.c (adjust_parm_or_field):  Remove extraneous
4369         call to build_chill_repetition_op.
4370         * expr.c (build_chill_function_call):  Some simplifictions
4371         (since neither valtail nor typetail can be NULL).
4372         Clean up error message for OUT//INOUT not location to use only 1 line.
4373         Add error message for OUT/INOUT if type is READonly.
4374         * typeck.c (build_chill_modify_expr):  Simplify.
4375
4376 Sun Mar 27 19:30:25 1994  Bill Cox  (bill@rtl.cygnus.com)
4377
4378         * Makefile.in: Clean up generally.  Assure that
4379           runtime is built before running regressions.
4380           Build correct parameters to regression.sh.
4381           Remove a lot of 'clean' cruft.
4382         * Make-lang.in, config-lang.in: New files for
4383           subdirectory architecture.
4384
4385 Sat Mar 26 10:39:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4386
4387         * Makefile.in (check): Build correct parameters for regression.sh.
4388
4389 Fri Mar 25 10:13:06 1994  Bill Cox  (bill@rtl.cygnus.com)
4390
4391         * configure: Also mark regression.awk3 as executable.
4392         * regression.sh: Add comments about command-line options.
4393           Calculate srcdir correctly, defaulting to the script's path.
4394           Add OPT flag to pass to the Makefiles, to specify the
4395           compiler's optimization level, and -O  and -O2 options.
4396           Delete GLOBAL flag and tests.  Use a different make.log
4397           file for optimized and unoptimized test results.  Add the
4398           compiler's host and target triples to the report header.
4399
4400 Wed Mar 23 21:41:26 1994  Bill Cox  (bill@rtl.cygnus.com)
4401
4402         * expr.c (build_chill_function_call): Handle INOUT and OUT
4403           parameters better (for the rangefail test, at least).
4404
4405 Wed Mar 23 14:13:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4406
4407         * regression.sh (srcdir, objdir):  Fixed hard-wired paths.
4408         (grep args):  Changed [XYZ-] to [-XYZ] for SCO.
4409
4410 Wed Mar 23 13:34:18 1994  Bill Cox  (bill@rtl.cygnus.com)
4411
4412         * expr.c (build_generalized_call): Revert previous change.
4413           To do this correctly, we need a new parsing mechanism, and
4414           C++ initializer technology.
4415
4416 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4417
4418         * expr.c (build_generalized_call): Be sure we're inside the
4419           module-level function before calling build_gen_inst, for
4420           example.
4421
4422 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4423
4424         * regression.sh (dodirectory): Count the gcov and abort tests
4425           among the .dat files.
4426
4427 Tue Mar 22 15:39:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4428
4429         * satisfy.c (safe_satisfy_decl):  When checking that a SYN
4430         value fits in a specified discrete type, don't convert first,
4431         and use compare_int_csts instead of tree_int_cst_lt.
4432
4433 Tue Mar 22 15:25:38 1994  Bill Cox  (bill@rtl.cygnus.com)
4434
4435         * configure: Generate better .gdbinit files.
4436
4437 Tue Mar 22 11:59:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4438
4439         * actions.c (check_range):  Don't emit dynamic checks
4440         if not current_function_decl.
4441
4442         * parse.y (arrayindex):  Allow expr (error is emitted
4443         at semantic level if not the NAME of a type).
4444         * typeck.c (build_chill_cast):  Re-enable some casts.
4445         * satisfy.c (safe_satisfy_decl):  Remove redundant CONST check.
4446
4447 Tue Mar 22 11:46:28 1994  Bill Cox  (bill@rtl.cygnus.com)
4448
4449         * configure: Access the utils directory correctly.
4450         * expr.c (build_compare_expr): Reenable compatibility test.
4451
4452 Tue Mar 22 11:24:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4453
4454         * typeck.c (valid_array_index_p):  Call
4455         build_compare_discrete_expr instead of build_compare_expr.
4456         * typeck.c (build_chill_cast):  Improve logic.
4457         * satisfy.c (safe_satisfy_decl):  Simplify test.
4458
4459 Tue Mar 22 10:17:58 1994  Bill Cox  (bill@rtl.cygnus.com)
4460
4461         * actions.c (chill_expand_assignment): Correct detection of
4462           string assignment case.
4463         * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4464           the actual parameters need to be converted to the unsigned long
4465           type explicitly.  Do that.    
4466         * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4467
4468 Mon Mar 21 16:25:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4469
4470         * Makefile.in: Correct prediction of grammar conflicts.
4471         * actions.c(check_range): Fix reference to NULL_TREE pointer.
4472           And allow compile-time errors even if range_checking is off.
4473         * parse.y: Clean up some comments.
4474         * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4475
4476 Mon Mar 21 13:29:23 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4477
4478         * typeck.c (layout_chill_range_type):  Instead of tree_int_cst_lt
4479         use compare_int_csts (which is more robust when signedness differs).
4480         Also, convert the bounds *after* doing range checking.
4481
4482         * ch-tree.def (SET_IN_EXPR):  New.
4483         * expr.c (chill_expand_expr):  Code to expand SET_IN_EXPR,
4484         moved from expand_expr in ../expr.c.  Also add some extra
4485         conversions (because we're now using build_chill_function-call).
4486         * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c: 
4487         Use SET_IN_EXPR in place of IN_EXPR.
4488
4489         * expr.c (build_compare_discrete_expr), ch-tree.h:  New function,
4490         with code moved from build_compare_expr.
4491         * expr.c (build_compare_expr):  Re-enable compatibility test.
4492
4493 Mon Mar 21 11:02:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4494
4495         * Makefile.in: Rewrite byacc related rules.
4496         * actions.c (chill_convert_for_assignment): Use the
4497           referenced type only for generating range checks.
4498         * configure: Add 'utils' directory to SUBDIRS variable.
4499
4500 Sun Mar 20 21:49:59 1994  Bill Cox  (bill@rtl.cygnus.com)
4501
4502         * actions.c (check_range): Call build_compare_expr rather than
4503           build_binary_op.
4504           (adjust_parm_or_field): Call convert_for_assignment rathern than
4505           convert, to get the range-checking.
4506         * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4507           Generate a compile-time message if possible.
4508           (build_compare_expr): Comment out compatibility test - should
4509           not be needed in here.  Fix a couple of typos.  Add some types
4510           to some build calls.
4511
4512 Sun Mar 20 11:48:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4513
4514         * decl.c (init_decl_processing):  Clean up parameter type
4515         list for __setbitpowerset,
4516
4517         * typeck.c (chill_compatible_classes):  Allow the M-reference
4518         to be compatible with the N-value class, with suitable M and N.
4519         * typeck.c (build_chill_slice):  Don't smash a void TREE_TYPE.
4520         (We don't need to, and it causes confusion.)
4521
4522         * expr.c (build_compare_expr):  Fix thinko.  Add save_exprs.
4523
4524         * expr.c (build_compare_expr):   Fix a transcription bug
4525         (for converting NULL INSTANCEs).  Also #include convert.h.
4526
4527         * expr.c (compare_int_csts):  New.  Compare INTEGER_CSTs.
4528         Works even if their types have different TREE_UNSIGNED.
4529         * expr.c (finish_chill_binary_op):  Moved code dealing with
4530         the comparison operators from here ...
4531         * expr.c (build_compare_expr):  ... to new function here.
4532         Also, for discrete types, tries to Do The Right Thing, even for
4533         differing values of TYPE_PRECISION and TREE_UNSIGNED.
4534         the code from lay
4535         * ch-tree.h:  Declare new functions.
4536         * typeck.c (valid_array_index_p):  Various cleanups,
4537         including using new build_parse_expr.
4538         * parse.y:  Use new build_compare_expr.
4539
4540         * inout.c (build_chill_writetext):  Handle REFERENCE_TYPE args.
4541
4542 Sun Mar 20 08:54:27 1994  Bill Cox  (bill@rtl.cygnus.com)
4543
4544         * actions.c (expand_assignment_to_varying_array): 
4545           Call build_chill_array_ref to get index checking.
4546           (chill_convert_for_assignment): Delete unused errstr
4547           variable.
4548           (chill_expand_assignment): Call build_chill_array_ref
4549           to get runtime index checking.
4550           (expand_varying_length_assignment): Use new interface
4551           to varying_array_index_p.
4552         * ch-tree.h (varying_array_index_p): New proto.
4553         * convert.c (convert): Call build_chill_array_ref
4554           to get runtime index checking.
4555         * expr.c (build_chill_pred_or_succ): Fix cond tree
4556           to have consistent operand types.
4557         * typeck.c (valid_array_index_p): Change interface to pass
4558           validity conditions back on caller's TREE_LIST.  We
4559           cannot link the conditions to anything which a
4560           layout_type routine will expand, since that will occur
4561            before the exception handler is set up.
4562           Change calls to valid_array_index_p also.
4563
4564 Fri Mar 18 14:40:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4565
4566         * actions.c, except.c, loop.c, tasking.c:  Call
4567         build_chill_function_call instead of the C-specific
4568         build_function_call.
4569         * except.c (initialize_exceptions):  Fix parmtype of __builtin_setjmp.
4570         * loop.c (top_loop_end_check):  Coerce library function arg.
4571         * convert.c, expr.c:  Re-write to avoid calls to C-specific
4572         function build_unary_op (e.g. by calling build1 directly).
4573
4574         * typeck.c (chill_equivalent):  Change to force failure
4575         for non-matching integral types (even if not ranges).
4576
4577         * typeck.c, ch-tree.h (build_chill_slice):  Make non-static.
4578         * expr.c (varying_to_slice):  Call build_chill_slice (and not
4579         build_chill_slice_with_length, which does bunches of range
4580         checking and does not allow the length to be zero).
4581         * convert.c (convert):  Fix off-by-one error.
4582         * actions.c (chill_expand_array_assignment):  Minor cleaning up.
4583
4584 Fri Mar 18 00:12:48 1994  Per Bothner  (bothner@deneb.cygnus.com)
4585
4586         * decl.c (init_decl_processing):  __lepowerset and __ltpowerset
4587         take *two* pointer parameters, not one.
4588         * satisfy.c (satisfy):  Only call the appropriate layout routine
4589         if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4590         * typeck.c (build_chill_slice_with_length):  Fix Bill's previous fix.
4591
4592 Thu Mar 17 17:29:43 1994  Bill Cox  (bill@rtl.cygnus.com)
4593
4594         * expr.c (build_chill_function_call): Give function call the correct
4595           type tree.
4596         * typeck.c (build_chill_slice_with_length): Restore dynamic range
4597           checking, so it doesn't obscure the CONSTANTness of the length.
4598
4599 Wed Mar 16 17:23:31 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4600
4601         * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4602         [case CONCAT_EXPR]):  Remove kludge setting slice size upper bound
4603         in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4604         * typeck.c (build_chill_slice):  Use TYPE_MAX_VALUE of
4605         array_type if needed for size upper bound of slice_type.
4606         * expr.c (build_concat_expr):  Improve calculation of size upper bound.
4607
4608         * typeck.c (valid_array_index_p):  Check compatibility using
4609         correct types.
4610         * typeck.c (build_chill_slice_with_length);  For now revert
4611         calling valid_array_index_p on length.  (It makes it harder 
4612         to realize when the slice is constant length.)
4613         * expr.c (build_chill_indirect_expr):  Minor tweak.  (This
4614         seems to work around a weird C compiler bug. ??)
4615
4616         * expr.c (build_chill_function_call):  Cleanup so it doesn't
4617         call build_function_call (in c-typeck.c).
4618         * typeck.c, expr.c:  Use build_chill_function_call instead of
4619         build_function_call (in c-typeck.c).
4620
4621         * parse.y (discrete_mode):  Move some of the rules from
4622         non_array_mode into new non-terminal.
4623         (arrayindex):  Use discrete_mode (with NAME and TYPENAME) to
4624         avoid some misparses.
4625         * ch-tree.h (SLICE_PTR, SLICE_LENGTH):  Removed;  unused.
4626         * convert.c (digest_structure_tuple):  Add missing parameter.
4627         * decl.c (comptypes):  Remove unused prototype.
4628         * decl.c (build_chill_function_type):  Handle NULL return_type
4629         correctly (convert to void_type_node).
4630         * decl.c (init_decl_processing):  layout boolean_type_node *after*
4631         we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4632
4633 Wed Mar 16 16:08:22 1994  Bill Cox  (bill@rtl.cygnus.com)
4634
4635         * ch-tree.h: Add prototype.
4636         * convert.c (convert): Correct calculation of padding length.
4637         * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4638           parse.y where it belongs.  This permits the removal of a kludge
4639           in make_process_struct.
4640         * lex.l, parse.y: Call to_global_level for several errors.  Add
4641           code to output error in only one pass.
4642         * tasking.c (make_process_struct): Delete kludge inserted on
4643           March 8.
4644           (build_receive_case_end): Add Wilfried's check for errors.
4645
4646 Tue Mar 15 08:42:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4647
4648         * actions.c: Fix comment.
4649           (build_rts_call): Ifdef it out - never used.
4650           (expand_varying_length_assignment): call valid_array_index_p.
4651           rather than validate_varying_array_ref.
4652         * ch-tree.h: Fix prototype for valid_array_index_p.
4653         * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4654           index validation.
4655           (build_hill_lower, build_chill_upper): Return value now inherits
4656           the novelty of the input parameter.
4657           (varying_to_slice): Use CH_NOVELTY macro rather than calling
4658           chill_novelty directly.
4659         * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4660           to unsigned.
4661           (print_integer_type): Pass string value as APPEND's second parameter.
4662           (decode_decl): Pass a boolean expression as print_proc_tail's
4663           first parameter.
4664           (chill_finish_module_code): Make xmalloc's parameter unsigned.
4665         * lex.l: Pass sizes to xmalloc as unsigned ints.  Pass second
4666           parameter to in_word_set as unsigned.
4667         * loop.c (build_loop_start): Check top_loop_end_check return value.
4668         * parse.y: Add casts to int for third do_decls parameter, fifth
4669           build_loop_iterator parameter, etc.
4670         * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4671         * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4672           valid_array_index): Delete them.  They're now unused.
4673           (valid_array_index_p): Add function, call it everywhere that an
4674           array index is checked.
4675           (build_chill_slice): Restore old functionality where varying_to_slice
4676           is called to handle slices of varying arrays, rather than handling
4677           handling them here.
4678           (build_chill_slice_with_range, build_chill_slice_with_length):
4679           Check range limits for TREE_CONST before calling tree_int_cst_lt.
4680           Delete now-obsolete checks of constant indices.
4681
4682 Mon Mar 14 17:26:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4683
4684         * parse.y (modeless_expr):  New rule to allow ([...]) and (if...)
4685         to count as untyped_exprs.  (This is not really permitted by the
4686         Blue Book, but has been requested by customers.)
4687
4688 Thu Mar 10 10:11:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4689
4690         * chill.texi: Document new command-line options.
4691         * expr.c (build_chill_num): Set unsigned parameter for
4692           type_for_size call correctly (unsigned for enums).
4693         * lang.c (lang_decode_option): Add command-line options to
4694           enable/disable runtime range-checking.
4695         * lex.l: Eat more whitespace.
4696
4697 Thu Mar 10 09:41:37 1994  Bill Cox  (bill@rtl.cygnus.com)
4698
4699         * Makefile.in: Have rules to make parse.h, y.tab.c and other
4700           derived files.  This allows the gcc/configure list of CHILL
4701           files machinery to work.
4702         * ch-tree.h (permanent_allocation): Add a parameter flag.
4703         * decl.c (finish_chill_function, finish_decl): Provide the 
4704           new permanent_allocation flag.
4705           (poplevel): Return early, avoid a seg fault.
4706         * lex.l (NORMAL): Replace this whole state with the predefined 
4707           INITIAL state.  Force compilation state to global level after
4708           compiler directive error - prevents endless loop on error.
4709           (handle_use_seizefile_directive): Rewrite for readability.
4710           (chill_same_grant_file): Reindent.
4711           Generally handle whitespace differently.
4712         * regression.prpt: Print ten PR numbers per line.  The report's
4713           getting too long.
4714
4715 Wed Mar  9 09:58:51 1994  Bill Cox  (bill@rtl.cygnus.com)
4716
4717         * decl.c (do_decl): Suppress the string-assignment-condition
4718           error - it was too often seen.
4719         * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4720           runtime-changing length (as in a slice), get the parent array's
4721           allocation size from its type tree.
4722         * typeck.c (build_chill_slice): Support VARYING arrays.  Pass
4723           parent array's static allocation size along in the slice type.
4724
4725 Wed Mar  9 08:54:24 1994  Bill Cox  (bill@rtl.cygnus.com)
4726
4727         * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4728
4729 Tue Mar  8 11:51:10 1994  Bill Cox  (bill@rtl.cygnus.com)
4730
4731         * expr.c (build_chill_sizeof): Fix typo in error msg, add
4732           some whitespace.
4733         * lex.l (name_type_signal): Add debug output.
4734         * parse.y (call):  Allow EVENTNAME and BUFFERNAME parameters
4735           to a call, so that SIZE () works on them.
4736         * tasking.c (make_process_struct): Force ignore_exprs non-zero
4737           when processing a SEIZEd PROCESS declaration.  This prevents
4738           grox-fixed_fields from returning a NULL, and indirectly protects
4739           the chill_integer_type_node tree from corruption.
4740
4741 Mon Mar  7 19:14:05 1994  Bill Cox  (bill@rtl.cygnus.com)
4742
4743         * Makefile.in: Use the 'all' target to build the runtime 
4744           library and chillrt0.o.
4745         * README: Explain rules for files in this directory.
4746         * addtest, addtest.man, build-release, 
4747           chill.regress.cron: Move to utils subdirectory.
4748         * expr.c (build_chill_function_call): Mark the INOUT
4749           temporary so it doesn't get optimized into a
4750           register.  Fixes the execute/inout.ch bug.
4751         * typeck.c (layout_chill_range_type): Restrict it
4752           from complaining about an empty string type's
4753           bounds (0:-1).
4754
4755 Mon Mar  7 09:06:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4756
4757         * Makefile.in (compiler): Restore this target.
4758           (OBJS, BC_OBJS): Delete unused variables.
4759           Add $(FLAGS_TO_PASS) to sub-make invocations.
4760         * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
4761           tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
4762
4763 Sat Mar  5 18:37:50 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
4764
4765         * except.c (finish_handler_array): When computing address of
4766         the array ex_decl, don't call build_array_ref.
4767
4768 Sat Mar  5 17:43:36 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
4769
4770         * loop.c (declare_temps): Force powerset temp to memory.
4771
4772 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
4773
4774         * typeck.c (layout_chill_range_type): Convert highval and
4775           lowval to a common type before range-checking them.
4776
4777 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
4778
4779         * ch-tree.h: Add loop-related prototypes.
4780         * decl.c, grant.c: Fix -Wall violations.
4781         * parse.y: Fix format of %type directives.
4782
4783 Fri Mar  4 10:04:18 1994  Wilfried Moser  (fs_moser at rcsw1h)
4784
4785         * Makefile.in: Update version number.
4786         * expr.c: Fix a comment.
4787         * inout.c (build_chill_writetext): Add handling of a REAL.
4788         * lex.l (INITIAL): Remove all code to discard 'header lines'.
4789           no longer needed.
4790         * parse.y (optheader): Remove - it's obsolete, as is the
4791           HEADEREL token definition.
4792
4793 Fri Mar  4 09:41:18 1994  Bill Cox  (bill@rtl.cygnus.com)
4794
4795         * addtest: Fix suffix removal when suffix is .c186.
4796         * regression.sh: Allow for underscores on PR filenames.
4797         * typeck.c: Check in the rewrite mentioned earlier.
4798
4799 Thu Mar  3 09:42:10 1994  Wilfried Moser  (fs_moser at rcsw1h)
4800
4801         * tasking.c (build_process_header): Build a debug structure
4802           for easier access to PROCESS parameters.
4803
4804 Thu Mar  3 09:42:10 1994  Bill Cox  (bill@rtl.cygnus.com)
4805
4806         * typeck.c (*string_assignment_condition): Complete rewrite
4807           of a verbose first draft.
4808
4809 Wed Mar  2 16:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
4810
4811         * actions.c (adjust_return_value): Simplify.
4812           Delete references to CH_RETURNS_LOC, extra parameters to
4813           push_extern_function and start_chill_functions.
4814           (convert_for_assignment): Check whether to generate runtime
4815           range-checking code.  Handle reference_type in convert call.
4816           (chill_expand_assignment): Produce an INDIRECT_REF for a
4817           reference_type on the LHS.  Delete conversions subsumed by
4818           convert_for_assignment.
4819         * ch-tree.h: Delete parameters from prototypes.
4820         * decl.c (print_lang_decl): Print out signal flag.
4821           (push_extern_function, start_chill_function): Delete
4822           extra parameters, references to CH_RETURNS_LOC.
4823         * grant.c (chill_finish_compile): Delete extra parameter.
4824         * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
4825           push_extern_function and start_chill_functions.
4826         * regression.sh (checkprms): Skip PRMS discrepancies if we
4827           can't access PRMS for some reason.
4828         * satisfy.c: Correct indentation.
4829         * tasking.c (build_process_header): Delete extra parameters
4830           passed to push_extern_function and start_chill_functions.
4831
4832 Wed Mar  2 10:33:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4833
4834         * addtest: Require a fill filename.  Be more careful about
4835           adding the same test twice.
4836         * expr.c: Add FIXME to comment.
4837         * regression.sh: Add configure script call.
4838
4839 Tue Mar  1 16:24:20 1994  Wilfried Moser  (fs_moser at rcsw1h)
4840
4841         * Makefile.in: Change version of chill to 1.1.2
4842         * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
4843
4844 Tue Mar  1 07:34:56 1994  Bill Cox  (bill@rtl.cygnus.com)
4845
4846         RETURN of LOC value is only half-baked.  Stay tuned...
4847         * actions.c (adjust_parm_or_field): Add to comment.
4848           (adjust_return_value): New function for issuing errors about
4849           RETURN and RESULT expressions.  Also converts them.
4850           (chill_expand_result, chill_expand_return): Call new
4851           adjust_return_value function.
4852         * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
4853           New parameter for push_extern_function and start_chill_function.
4854         * decl.c (push_extern_function, start_chill_function): New parameter
4855           to say whether return value is a LOC.
4856         * expr.c (build_chill_indirect_ref): Further qualify the issuing
4857           of the error message.
4858         * grant.c (raw_decode_mode): Move test for instance mode under 
4859           STRUCT handling.
4860           (start_chill_module_code, chill_finish_compile): Add new
4861           parameter to start_chill_function calls.
4862         * parse.y (get_type_of): Do lookup_name more often.
4863           (quasi_pdef, procedure, procmode, optresultspec): Set 
4864           CH_RETURNS_LOC flag.
4865           (optresultattr): Code keywords as a bitmask.
4866         * tasking.c (build_process_header): Add new parameter to
4867           start_chill_function call.
4868
4869 Sat Feb 26 12:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
4870
4871         * Makefile.in: Replace undefined $(RM) with rm -f.
4872         * configure: Make sure scripts are executable.
4873         * regression.sh: Make variables to invoke make 
4874           and awk.  Don't process a directory if it 
4875           doesn't exist.
4876
4877 Fri Feb 25 14:48:48 1994  Bill Cox  (bill@rtl.cygnus.com)
4878
4879         * Makefile.in (check): Force the building of ../gcov and
4880           ../xgcc before testing.  Move the printf dependency here
4881           since we don't need it until we're testing.
4882         * addtest: Strip suffix from each input filename.
4883         * decl.c (do_decl): Correct error checking.  Call
4884           string_assignment_condition for some of it.
4885         * tasking.c (build_gen_inst): Add ability to pass an integer
4886           for either the process ID or the copy number.  If a number
4887           is passed, range-check it against the CHILL unsigned type
4888           limits.
4889           (build_buffer_descriptor): Add draft code to check the buffer
4890           name for correctness.
4891
4892 Wed Feb 23 15:07:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4893
4894         New cleaner solution to the following problem:
4895         Chill allows an action to be followed by an ON-handler.
4896         But we don't know if an action has a handler until we've parsed
4897         its end, yet we want to generate extra code to set up an
4898         exception handling contour only if needed.  The old solution
4899         would generate code for the action into an rtl sequence, and then
4900         splice in the exception-setup code if we later found we needed it.
4901         This has a few problems (for example it confuses the management
4902         of stack temporaries), and is ugly.  Now that the compiler is 2-pass
4903         we have a cleaner solution:  In pass 1, we remember which actions
4904         were followed by ON-handlers.  In pass 2, we use this information
4905         to generate appropriate code before an action.
4906         * except.c (push_handler, pop_handler):  In pass 1, set up data
4907         structures (global_handler_list) to remember if an action has an
4908         ON-handler.  In  pass 2, digest this information, and setup
4909         handler if needed.
4910         * except.c, actions.h (pop_handler):  Take an extra int arg.
4911         * except.c (emit_setup_handler):  New function, with code (moved
4912         from chill_start_on) to emit code before an action that has a handler.
4913         * except.c (except_init_pass_2):  New function.
4914         * parse.y (pass1_2):  Call except_init_pass_2 before pass 2.
4915         * parse.y (POP_UNUSED_ON_CONTEXT):  Don't call pop_sequence.
4916         * parse.y:  Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
4917         in pass 1 as well as pass 2.
4918         * parse.y (BEGIN ... END):  Re-arrange logic to avoid block_stack
4919         (local to ../stmt.c) getting out of sync.
4920         * actions.c (push_action):  Don't need to emit a NOP,
4921         now that we're no longer moving sequences around.
4922         * actions.c (push_action):  Call push_handler even in pass one.
4923
4924 Wed Feb 23 11:06:14 1994  Bill Cox  (bill@rtl.cygnus.com)
4925
4926         * decl.c (do_decl): Check for possible overflow in initializing
4927           a declared variable.
4928         * expr.c (build-chill_indirect_ref): Add error message for
4929           a syntax error that C programmers converting to CHILL are
4930           quite likely to make.
4931         * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
4932           seg-faulting.
4933
4934 Tue Feb 22 17:54:43 1994  Bill Cox  (bill@rtl.cygnus.com)
4935
4936         * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
4937           defined.  Build chill script differently, and build an install script.
4938           Add an action to run the regression test.
4939         * actions.c (chill_expand_assignment): Change
4940           string_assignment_condition call.
4941         * ch-tree.h: Add prototype.
4942         * expr.c (build_chill_function_call): Change
4943           string_assignment_condition call.
4944         * satisfy.c (safe_satisfy_decl): Add check that string INIT value
4945           will fit in the declared mode.
4946         * typeck.c (string_assignment_condition): Add flag to disable
4947           runtime code generation.  Add code to generate runtime test.
4948
4949 Mon Feb 21 14:04:20 1994  Bill Cox  (bill@rtl.cygnus.com)
4950
4951         * Makefile.in (check): Add target to trigger a regression test.
4952
4953 Mon Feb 21 13:54:20 1994  Bill Cox  (bill@rtl.cygnus.com)
4954
4955         * decl.c (do _based_decls): Add error check for
4956           decls BASED on a PROC or PROCESS name.
4957
4958 Mon Feb 21 13:24:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4959
4960         * grant.c (chill_finish_compile): Bypass handling
4961           module-level code if an earlier error has made
4962           is useless.
4963         * tasking.c (build_start_process): Generate error, 
4964           return if process name unknown.
4965
4966 Mon Feb 21 14:29:41 1994  Wilfried Moser  (fs_moser at rcsw47)
4967
4968         * expr.c (build_generalized_call): Use 
4969           build_arrow_expr semantics for ADDR () builtin.
4970
4971 Mon Feb 21 12:49:14 1994  Bill Cox  (bill@rtl.cygnus.com)
4972
4973         * tasking.c (build_gen_inst): Output correct
4974           constructor for GEN_INST.
4975
4976 Mon Feb 21 08:14:59 1994  Wilfried Moser  (fs_moser at rcsw47)
4977
4978         * lex.l (yywrap): Fix punctuation error.
4979
4980 Sun Feb 20 19:58:14 1994  Bill Cox  (bill@rtl.cygnus.com)
4981
4982         * regression.sh: Fix cvs update-related commands.
4983           Have cron job always perform the update, so it's
4984           always reporting on the current state of the 
4985           sources.
4986         * typeck.c (string_assignment_condition): Allow a 
4987           mis-match if the LHS is varying.
4988
4989 Fri Feb 18 18:10:04 1994  Bill Cox  (bill@rtl.cygnus.com)
4990
4991         * actions.c (expand_chill_assignment): Add call to test the
4992           string assignment condition.
4993         * expr.c (build_chill_function_call):  Add call to test the
4994           string assignment condition.
4995         * regression.awk2: Report WITHDRAWN PRs as well.
4996         * regression.sh: Delete extra commentary about FEEDBACK PRs.
4997         * typeck.c (string_assignment_condition): Add function to
4998           perform the check.
4999
5000 Fri Feb 18 16:30:40 1994  Bill Cox  (bill@rtl.cygnus.com)
5001
5002         * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
5003           and exclude them from the regression test report.  Mark them
5004           in the list of PRs as 'W' status.
5005
5006 Thu Feb 17 09:13:42 1994  Wilfried Moser  (fs_moser at rcsw47)
5007
5008         * Makefile.in: Define a version number.  Build chill script
5009           differently.  Makefile depends upon ../configure, not configure.
5010         * chill.in: Define some new flags.
5011
5012 Wed Feb 16 19:44:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5013
5014         * grant.c (decode_constant): Restore a 'return result' statement
5015           that seems to have gotten lost.
5016
5017 Wed Feb 16 12:37:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5018
5019         * ch-tree.h (various STRING-type macros):  Use new TYPE_STRING_FLAG.
5020
5021         * typeck.c (make_chill_array_type):  Remove unused args.
5022         Simplify to build only one-dimensionsal arrays, so change
5023         index list to single index.  Call layout_chill_array_type
5024         if pass!=1.  And rename to:  build_simple_array_type.
5025         * typeck.c (layout_chill_array_type):  Only recurse
5026         if TREE_TYPE has not been laid out.
5027         * typeck.c (build_chill_array_type):  Update accordingly.
5028         * typeck.c (build_chill_slice):  Replace calls to build_array_type
5029         (which does hash-canonicalization, which breaks if we later set
5030         the TYPE_STRING_FLAG) by calls to build_simple_array_type.
5031         * convert.c (convert):  The same.
5032
5033         * grant.c (decode_constant):  Clean up.  Remove remnants of switch
5034         on TREE_TYPE of the value, and fold those cases into first switch.
5035
5036 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5037
5038         * Makefile.in: Add printf as a dependency of ../cc1chill.
5039         * regression.sh: Make srcdir and objdir really work.
5040
5041 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5042
5043         * expr.c (build_char_array_expr): Fix spelling
5044           error in error msg.
5045         * tree.c (build_string_type): Make check for overlarge
5046           string more robust.
5047
5048 Wed Feb 16 02:37:43 1994  Mike Stump  (mrs@cygnus.com)
5049
5050         * grant.c (decode_constant): Remove useless tests
5051         for STRING_TYPE (which isn't used by anyone, including CHILL).
5052
5053 Tue Feb 15 15:35:07 1994  Bill Cox  (bill@cygnus.com)
5054
5055         * build-release:  Add refinements to checkout commands.
5056         * decl.c (init_decl_processing): Move initialization of
5057           chill_unsigned_type_node before 1st call to build_string_type.
5058         * tree.c (build_string_type): Add compile-time test of string
5059           allocated length.
5060         * typeck.c (layout_chill_range_type): Add compile-time range limit
5061           checking.
5062
5063 Tue Feb 15 08:55:37 1994  Bill Cox  (bill@cygnus.com)
5064
5065         * Makefile.in:  Add stamp-chill-objs as a dependency of ../cc1chill.
5066         * regression.sh: Rename test directory names.
5067
5068 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5069
5070         * Makefile.in: Change interface with parent directory's
5071           Makefile, decoupling the lists of each others' files.
5072
5073 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5074
5075         * lex.l: Delete obsolete comment.
5076         * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
5077           instance constructor.
5078
5079 Mon Feb 14 04:04:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5080
5081         * lex.l (maybe_number): Add octal to numbers
5082           handled by Feb 1 change.
5083
5084 Sat Feb 12 16:24:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5085
5086         * actions.c, convert.c, decl.c, expr.c, lex.l,
5087           tasking.c, typeck.c: gcc -Wall cleanups.
5088         * ch-tree.h: Change loop-related prototypes.
5089         * loop.c, parse.y: Rewrite to set up correct loop scope.
5090           Fix error path where loop variable not declared.
5091
5092 Fri Feb 11 11:12:29 1994  Bill Cox  (bill@rtl.cygnus.com)
5093
5094         * Makefile.in: Add rule to build printf.  Make it a dependency
5095           of ../cc1chill.
5096         * printf.c: New tool for regression testing script.
5097         * regression.sh: Look for print in ${objdir}.
5098
5099 Thu Feb 24 17:31:12 1994  Wilfried Moser  (fs_moser at rcsw1j)
5100
5101         * tasking.c (build_gen_inst): Allow integer expression as argument
5102           1 to this function. This was a change request to get rid of
5103           unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
5104           or STRUCT (t UINT, c UINT).
5105
5106 Thu Feb 10 09:49:31 1994  Bill Cox  (bill@rtl.cygnus.com)
5107
5108         * regression.awk3: Recognize upper-case PRMS state names.
5109
5110 Wed Feb  9 15:26:19 1994  Bill Cox  (bill@cygnus.com)
5111
5112         * parse.y (dowithaction): Allow EXIT from DO WITH.
5113
5114 Tue Feb  8 13:13:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5115
5116         * configure: Change to require grant.c for evidence that we've
5117           found the source directory.
5118         * decl.c (init_decl_processing): delete unused builtin_slice
5119           function declaration.
5120         * expr.c (chill_expand_expr): Calculate powerset's length
5121           correctly, calling powersetlen to do it.
5122         * regression.sh: Replace BASE references with objdir references.
5123         * typeck.c (build_chill_slice): Build the compound expression
5124           in the right order.
5125
5126 Mon Feb  7 15:56:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5127
5128         * expr.c (build_chill_lower, build_chill_upper): Handle
5129           LOC parameter types.
5130         * regression.sh: Correct path to executable sub-shell-scripts.
5131
5132 Mon Feb  7 11:33:47 1994  Bill Cox  (bill@rtl.cygnus.com)
5133
5134         * regression.sh: Pervasive changes to allow for separate
5135           source and object directories.
5136
5137 Wed Feb  2 17:5620 1994  Bill Cox  (bill@rtl.cygnus.com)
5138
5139         * decl.c (find_implied_typed): Delete obsolete reference to
5140           PROCESS_TYPE.
5141         * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
5142           obsolete.
5143
5144 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5145
5146         * Makefile.in: Delete bogus runtime/Makefile lines.
5147         * configure: Build testsuite directory.
5148
5149 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5150
5151         * configure: Correct srcdir for chill.examples directory.
5152
5153 Wed Feb  2 11:24:57 1994  Wilfried Moser  (fs_moser at rcsw47)
5154
5155         * ch-parse.y (rule call): Add
5156               BUFFERNAME LPRN untyped_expr RPRN
5157           to enable generating a descriptor same as for SIGNALS.
5158         * ch-tasking.c (generate_tasking_code variable,
5159           decl_tasking_code_variable): Implement overflow check of
5160           taskingcode in case a tasking code is specified with the
5161           compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
5162           PROCESS_TYPE.
5163
5164 Wed Feb  2 09:31:37 1994  Bill Cox  (bill@rtl.cygnus.com)
5165
5166         * configure: Add ${srcdir} to Makefile.in's path.
5167         * loop.c: Delete unused whitespace.
5168
5169 Tue Feb  1 17:09:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5170
5171         * expr.c (string_char_rep): Process STRING_CST correctly.
5172
5173 Tue Feb  1 15:29:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5174
5175         * expr.c (build_boring_bitstring):  New function.
5176         * expr.c (build_chill_repetition_op):  Fix a number of bugs in
5177         implementation of bitstring repetition.
5178         Also, implement repetition of Booleans.
5179
5180 Tue Feb  1 15:28:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5181
5182         * configure: Delete code to check for gas or ld.  Add code to
5183           store a config.status file in each configured subdirectory.
5184         * expr.c (): Spell concatbitstring as concatps, which is the
5185           runtime routine name.
5186         * regression.sh: Force use of GNU make.
5187
5188 Tue Feb  1 15:22:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5189
5190         * tasking.c: Mark compiler-generated temps to prevent
5191           GRANTing them.
5192
5193 Tue Feb  1 17:38:51 1994  Wilfried Moser  (fs_moser at rcsw1j)
5194
5195         * lex.l (equal_number): Improve check for number after = in a
5196           compiler directive.
5197         * tasking.c (build_tasking_struct): Make field TaskValue
5198           pointer to chill_unsigned_type_node.
5199         * tasking.c (generate_tasking_code_variable): Declare tasking
5200           code variable as chill_unsigned_type_node.
5201         * tasking.c (decl_tasking_code_variable): Declare tasking
5202           code variable as chill_unsigned_type_node.
5203
5204 Mon Jan 31 14:01:58 1994  Bill Cox  (bill@rtl.cygnus.com)
5205
5206         * addtest (update_Makefile): No longer build actions - they're
5207           now in pattern rules.
5208         * ch_makedepend: Do the grep first, to avoid processing non
5209           USE_SEIZE_FILE lines.
5210         * configure: Pervasive rewrite to support configuring regression
5211           test directories.
5212
5213 Mon Jan 31 04:35:53 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5214
5215         * typeck.c (build_chill_slice): Compute EXTENT correctly.
5216
5217 Sun Jan 30 14:33:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5218
5219         * tasking.c (build_gen_inst): Return a typed tuple with
5220           INSTANCE type.
5221
5222 Sun Jan 30 12:01:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5223
5224         * actions.c (chill_expand_assignment): Recognize LENGTH builtin
5225           in the left hand side, pass it to
5226           expand_varying_length_assignment.
5227           (expand_varying_length_assignment): Clean up bitrot.
5228         * convert.c (convert): Revert most recent change.
5229         * loop.c (maybe_skip_loop): New function, split out of
5230           begin_chill_loop.  Add conditional to skip processing an empty 
5231           VARYING array.
5232         * parse.y (assignaction): Delete code to recognize LENGTH
5233           on left-hand-side.
5234         * typeck.c (validate_varying_array_ref): Correct misleading comment.
5235
5236 Sat Jan 29 10:54:06 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5237
5238         * typeck.c (build_chill_slice): Pass a valid identifier to
5239         `get_unique_identifier'.
5240
5241         * convert.c (convert): Rename LENGTH variable to MAXIDX, and
5242         use correct value for VAR_LENGTH when initializing a varying array.
5243
5244         * decl.c (do_decl): Set DECL_COMMON.
5245
5246         * actions.c (check_range): Temporarily inhibit warnings so the
5247         compiler doesn't warn the user about useless range checks that it
5248         might create.  It's far easier for the compiler to figure out that
5249         a range check need not be done than it is for us to try to figure
5250         it out for ourselves.
5251
5252         * expr.c (build_concat_expr): Generalize to handle bitstrings.
5253         (scalar_to_string): New function.
5254         (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5255         library call (__concatbitstring).
5256
5257 Sat Jan 29 08:43:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5258
5259         * ch_makedepend: Fix the 'sed' command so that seize file
5260           name can be delimited by double quotes as well as apostrophes.
5261
5262 Thu Jan 27 17:26:19 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5263
5264         * typeck.c (my_build_array_ref):  Do constant folding.
5265
5266 Thu Jan 27 16:24:24 1994  Bill Cox  (bill@rtl.cygnus.com)
5267
5268         * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5269           decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5270           lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5271           tree.c, typeck.c: New 'Copyright' line for 1994.
5272
5273 Thu Jan 27 14:12:07 1994  Mike Stump  (mrs@cygnus.com)
5274
5275         * configure: Don't configure this directory with this configure,
5276         just subdirectories and cleanup.
5277         * Makefile.in (Makefile): Run config.status in parent directory,
5278         if we need rebuilding.
5279
5280 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5281
5282         * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5283           Thanks, Zoo!  
5284
5285 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5286
5287         * expr.c (build_concat_expr): Fix SunOS portability problem.
5288
5289 Wed Jan 26 14:57:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5290
5291         * convert.c (digest_powerset_tuple):  New function, used to set
5292         TREE_CONSTANT and TREE_STATIC properly.
5293         (digest_structure_tuple, convert (NULL to instance, non-varying
5294         to varying)):  Set TREE_CONSTANT and TREE_STATIC when appropriate.
5295         * expr.c (varying_to_slice):  Preserve novelty of slice type.
5296         * expr.c (build_concat_expr):  Make sure class of result is
5297         correct (including correct novelty).
5298         * satisfy.c (safe_satisfy_decl):  If value of CONST_DECL is
5299         not TREE_CONSTANT, emit an error.
5300         * typeck.c (build_chill_slice):  Preserve novelty of result.
5301         * typeck.c (build_chill_slice):  Simplify for varying argument
5302         (by using varying_to_slice).
5303         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5304         New functions.
5305         * typeck.c (build_chill_cast): Use above new functions to convert
5306         constant expressions.
5307         * typeck.c (copy_novelty), ch-tree.h:  New function.
5308         * chill.texi:  Update for new constant conversion semantics.
5309
5310 Tue Jan 25 14:00:02 1994  Wilfried Moser  (fs_moser at rcsw1j)
5311
5312         * ch-decl.c (init_decl_processing): Add new builtin function
5313           DESCR. Add call to build_chill_descr_type.
5314         * ch-expr.c: Add function build_chill_descr_type, which actually
5315           build the type the DESCR builtin returns.
5316           Add function build_chill_descr, which process the DESCR builtin.
5317         * ch-expr.c (build_chill_length): Add code to enable
5318           LENGTH (bitstring). 
5319         * ch-expr.ch (build_generalized_call): Add processing of DESCR
5320           builtin.
5321         * ch-grant.c: Add code to avoid producing of unnecessary grant
5322           files.
5323         * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5324           for build_chill_descr.
5325         * ch-inout.c (build_chill_io_list_type): Change generation of the
5326           type passed to runtime library according to the new definition.
5327         * ch-inout.c (build_chill_writetext): Change processing of format
5328           string that a character constant is allowed as format string if
5329           compiler gets called with -fold-strings option.
5330         * ch-inout.c (build_chill_writetext): Change processing of
5331           integers in case NEWMODE x = INT.
5332         * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5333         * ch-inout.c (build_chill_writetext): Add processing of
5334           bitstrings.
5335
5336 Tue Jan 25 09:07:10 1994  Mike Stump  (mrs@cygnus.com)
5337
5338         * Makefile.in (all, OBSTACK): Build interesting things be default,
5339         and make sure we include OBSTACK.
5340
5341 Sun Jan 23 12:35:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5342
5343         * grant.c (decode_constant):  Handle RANGE_EXPR.
5344         Simplify handling of CONSTRUCTOR.
5345
5346         * typeck.c (build_chill_slice):  Use build_chill_array_ref_1,
5347         not build_chill_array_ref.
5348
5349 Sat Jan 22 16:23:30 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5350
5351         * parse.y:  Generate a RANGE_EXPR (instead of a confusing
5352         TREE_LIST) to indicate a range in case and tuple lables.
5353         * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5354         Update accordingly to handle these RANGE_EXPRs.
5355         * satisfy.c (satisfy):  Don't call finish_chill_binary_op
5356         for a RANGE_EXPR.
5357
5358 Fri Jan 21 15:39:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5359
5360         * expr.c (force_addr_of):  New function, to encapsulate passing
5361         by reference a powerset or string  to a library function.
5362         * expr.c (build_min_max, build_set_expr):  Use force_addr_of.
5363         * expr.c (chill_expand_expr case CONCAT_EXPR):  Fix passing of
5364         rtl modes.  (Old code fails on 64-bit Alpha.)
5365         * expr.c (build_chill_function_call):  Remove bogues check for
5366         READonly variable passed as parameter.
5367         * expr.c (build_set_expr):  Merge common code.
5368         * parse.y (string repetition):  Fix logic for 2-pass scheme.
5369         * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5370         satisfy.c (satisfy):  Handle REPLICATE_EXPR.
5371         * chill.texi:  Fix typo.
5372
5373 Mon Jan 17 13:55:48 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5374
5375         * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5376         tree.c can find ch-tree.h.
5377
5378 Sat Jan 15 15:34:11 1994  Mike Stump  (mrs@rtl.cygnus.com)
5379
5380         * configure: Fix problem so that building in a separate directory
5381         works.
5382
5383 Sat Jan 15 09:51:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5384
5385         * Makefile.in: Recurse down into runtime to
5386           create its Makefile, and to clean up.
5387         * configure: Recurse into runtime to make its Makefile.
5388
5389 Sat Jan 15 09:15:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5390
5391  << This set of CHILL frontend sources is now the
5392     maintainable and master set. Accept no substitutes! >>
5393         * Makefile.in, configure: Completely rewritten
5394           to be invoked by gcc/Makefile.in and 
5395           gcc/configure.
5396         * addtest (update_ChangeLog): Fix insertion
5397           of the '*'.
5398         * regression.sh: Add global option to suppress results of
5399           proprietary tests.
5400         * cpy.sh: Add necessary edits to files as they
5401           are copied down.
5402         * actions.c, ch-tree.def, ch-tree.h, convert.c,
5403           decl.c, except.c, expr.c, grant.c, inout.c,
5404           lang.c, lex.h, lex.l, loop.c, parse.y,
5405           satisfy.c, tasking.c, typeck.c: Latest
5406           versions from the repository. 
5407
5408 Fri Jan 14 12:28:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5409
5410         * addtest: Fix insertion of line into ChangeLog.
5411         * configure: Add a script.
5412         * Makefile.in: Hack from ../Makefile.in
5413         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5414         * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5415
5416 Mon Jan 10 11:38:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5417
5418         * build-release: Rewrite for easier tailoring.
5419
5420 Wed Jan  5 08:38:21 1994  Bill Cox  (bill@cygnus.com)
5421
5422         * actions.c, convert.c, decl.c, except.c, expr.c,
5423           inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5424           Current versions from devo/gcc.
5425
5426 Wed Dec 29 14:07:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5427
5428         * addtest: Don't add comment headers to source or .dat files
5429           if they're already present.
5430
5431 Wed Dec 29 13:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
5432
5433         * mktg_leads: New file.
5434         * regression.sh, regression.awk2: Updated status report scripts.
5435         * addtest: New script to add a test to a directory.
5436         * ch_makedepend: Add full path to ch_decomment.
5437         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5438           lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5439           Updated copies of actual sources.
5440         * chill.brochure, chill.texi: Update with current status.
5441         * cpy.sh: Script for updating copies of sources.
5442         * chill.patches: New script for creating a patch release.
5443           Pretty rough.
5444
5445 Wed Dec  8 09:35:54 1993  Bill Cox  (bill@rtl.cygnus.com)
5446
5447         * build-release: Delete lots of unused regression-testing cruft.
5448         * chill.brochure: Initial draft of marketing brochure.
5449         * chill.patches: Preliminary script for building patch sets
5450           for CHILL.
5451         * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5452           building a tcov report on the CHILL compiler.
5453
5454 Sun Nov 21 08:34:33 1993  Bill Cox  (bill@rtl.cygnus.com)
5455
5456         * Makefile.in: Adjust gperf rule for names in this directory.
5457         * ch_decomment.l: New file.  Ignores CHILL comments.
5458           Executable is used bu ch_makedepend.
5459         * ch_makedepend: New script.  Makes CHILL dependencies for
5460           Makefiles.
5461         * gperf, hash.h: New files about lexer tokens.
5462         * regression.sh: Delete notes justifying non-summing
5463           report rows.
5464         * regression.awk2: Report PRMS status when there are
5465           missing test results.
5466         * regression.awk3: Add #! line, so this can be used separately.
5467         * Other files: latest versions copied from devo/gcc.
5468
5469 Sat Oct 30 15:02:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5470
5471         * chill.texi:  Add new node about conversions. 
5472
5473 Fri Oct 29 14:17:31 1993  Bill Cox  (bill@cygnus.com)
5474
5475         * chill.regress.cron: Change path to executable, enable PR report.
5476         * regression.awk2: Add terminating periods to messages.
5477         * regression.sh: Change path to testsuites.  Add disclaimer at end
5478           of report.  Print explicit lists of resolved/unresolved PRs.
5479
5480 Thu Oct 28 09:22:20 1993  Bill Cox  (bill@rtl.cygnus.com)
5481
5482         * regression.sh: More PR-related status is printed.
5483
5484 Thu Oct 21 19:24:02 1993  Bill Cox  (bill@rtl.cygnus.com)
5485
5486         * regression.sh: Simplify the paths, make the source
5487           and test files accessed separately from the executables.
5488
5489 Wed Oct 20 16:35:30 1993  Bill Cox  (bill@rtl.cygnus.com)
5490
5491         * regression.sh: Finally fix the file-delete problem.
5492           Thanks, Jeffrey!
5493         * build-release: Make more verbose, fix comment.
5494
5495 Mon Oct 18 00:21:24 1993  Bill Cox  (bill@cygnus.com)
5496
5497         * regression.sh: Build linker if -U option.  Put stderr
5498           into make.log files, too.  Also report on Z.200 examples.
5499         * regression.awk3: New script to help build release note.
5500
5501 Fri Oct 15 16:33:54 1993  Bill Cox  (bill@cygnus.com)
5502
5503         * regression.sh, regression.prpt: Output PR status only
5504           conditionally.  Add command-line flag for CVS updates.
5505
5506 Thu Oct 14 07:53:59 1993  Bill Cox  (bill@rtl.cygnus.com)
5507
5508         * regression.sh: Count PRs accurately.
5509         * Makefile.in: New file.
5510
5511 Sat Oct  9 19:46:58 1993  Bill Cox  (bill@rtl.cygnus.com)
5512
5513         * regression.awk?: Add program fragments for
5514           report of PRMS/test exceptions.
5515         * regression.sh: Add options and PRMS reports.
5516
5517 Fri Oct  8 06:44:41 1993  Bill Cox  (bill@rtl.cygnus.com)
5518
5519     Create chill frontend directory, populate it.
5520     Later, the chill-specific frontend files will be moved here.
5521
5522         * chill: Moved here from gcc directory.
5523         * chill.regress.cron: Add crontab file for regression tests.
5524         * regression.sh: Add regression test control script.
5525
5526 #
5527 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5528 #
5529 Sat Jan 15 14:54:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5530
5531         * ch-*.*: All of these files are now moved to the ch subdirectory.
5532         Further update changes should be recorded in the ch/ChangeLog file.
5533
5534 Fri Jan 14 21:09:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5535
5536         * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5537         ch-satisfy.c, ch-typeck.c:  Undo all of initializer-related changes
5538         that Tiemann did earlier this month.
5539         * c-typeck.c (really_start_incremental_init):  Save
5540         constructor_elements and (old value of) constructor_stack
5541         on constructor_stack, to allow for nested initializers.
5542         * ch-convert.c (digest_constructor):  If we need a varying
5543         array, and have a constructor (for the array elements),
5544         make sure to use convert so that the constructor gets
5545         wrapped in an implicit record constructor.
5546         * ch-decl.c (do_decl):  If there is no initializer for a
5547         varying array (or bitstring), create default constructor.
5548
5549         * ch-expr.c (build_chill_lower):  Fix thinko for ARRAY_TYPE.
5550         * ch-satisfy.c (safe_satisfy_decl):  Make sure that we make
5551         original decl to check if we need to make an rtl.
5552
5553         * ch-typeck.c (build_chill_array_ref_1), ch-tree.h:  New function
5554         which does the actual work for build_chill_array_ref (which
5555         now just loops over an argument list).
5556         * ch-actions.c, ch-expr.c, ch-inout.c:  Use build_chill_array_ref_1
5557         instead of build_chill_array_ref where appropriate.
5558         * ch-actions.c, ch-expr.c, ch-typeck.c:  Make operand 1 of a
5559         VARY_ARRAY_REF is a single index, not an index list.
5560
5561         * ch-grant.c (__init_list):  Renamed to _ch_init_list, to
5562         avoid a conflict on the Alpha.
5563
5564 Wed Jan 12 10:19:35 1994  Bill Cox  (bill@rtl.cygnus.com)
5565
5566         * ch-lex.l (WS): Add BS, VT and CR to definition of 
5567           whitespace.
5568           (convert_number): Allow for uppercase hex digits.
5569
5570 Tue Jan 11 19:43:55 1994  Bill Cox  (bill@cygnus.com)
5571
5572         * ch-actions.c (lookup_and_handle_exit): Correct
5573           conditional so error messages are output.
5574         * ch-expr.c (build_chill_addr_expr): Add error message.
5575         * ch-grant.c (chill_finish_module_code): Avoid abort by
5576           giving the init_list constructor a type.
5577           (chill_finish_compile): Delete unused code.
5578         * ch-lex.l: Make most build_init_2 calls from the
5579           permanent obstack, so that enumeration values endure.
5580         * ch-loop.c (build_chill_iterator): Add several error
5581           messages.
5582
5583 Tue Jan 11 12:31:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5584
5585         * ch-expr.c, ch-typeck.c:  Rewrite some instances of
5586         'struct ch_class class = chill_expr_class (expr);' to
5587         'struct ch_class class; class = chill_expr_class (expr);'
5588         to work around a bug in /usr/ucb/cc on SunOS4.
5589
5590 Mon Jan 10 18:29:36 1994  Bill Cox  (bill@rtl.cygnus.com)
5591
5592         * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5593         * ch-expr.c (expand_packed_set): Add new parameter to pass
5594           set's minimum ordinal value.  Fix loop invariant problem.
5595           (fold_set_expr): Change to add new parameter to 
5596           expand_packed_set call.
5597         * ch-grant.c: Move extern declaration to ch-tree.h.
5598         * ch-lex.l (convert_bitstring): Also output the bitstring
5599           if yydebug is set.
5600         * ch-tree.h: Add prototype.
5601
5602 Mon Jan 10 11:29:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5603
5604         * ch-inout.c: Fix comment.
5605         * ch-tree.h: Add prototype.
5606
5607 Sun Jan  9 18:22:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5608
5609         * ch-tree.h (chill_expr_class):  New prototype.
5610         * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5611         Convert result to correct class.
5612         * ch-expr.c (build_chill_repetition_op):  Preserve CH_DERIVED_FLAG.
5613         Also, fix some bugs for bitstrings (with ranges).
5614
5615         (Patches from Tiemann.)
5616         * ch-convert.c (convert1):  New function to force TREE_TYPE.
5617         (convert):  Use convert1 where appropriate.
5618         * ch-typeck.c:  Formatting change.
5619         * ch-parse.y (build_chill_constructor):  Fix thinko.
5620
5621         * ch-expr.c (varying_to_slice):  If array is not referable,
5622         call save_expr on it, rather than stabilize_reference.
5623         * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5624         Don't force value to value class if mode is not explicitly
5625         specified.  Also, make sure convert etc is only done once.
5626
5627 Sat Jan  8 16:37:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5628
5629         * ch-decl.c (build_chill_function_type):  Don't call
5630         build_function_type, because it does hash canonicalization,
5631         which once in a while looses badly.
5632         * tree.c (build_function_type):  Remove no-longer-needed test
5633         for doing_chill_thang.
5634
5635         * ch-tree.h (CH_DERIVED_FLAG):  New flag.
5636         * ch-tree.h (enum ch_expr_class):  Renamed to ch_class_kind.
5637         (struct ch_class):  New type, used to represent a Chill
5638         'class' as a first-class value.
5639         (CH_ROOT_RESULTING_MODE):  Replaced by CH_ROOT_RESULTING_CLASS.
5640         * ch-typeck.c (chill_expr_class):  Change interface to return
5641         a struct ch_class.
5642         (chill_compatible, chill_compatible_classes):  Update accordingly.
5643         (chill_root_resulting_mode):  Replace by ....
5644         (chill_root_resulting_class):  ... new function.
5645         * ch-convert.c (convert_to_class):  New function.
5646         * ch-decl.c (layout_enum):  Mark enum values with CH_DERIVED_FLAG.
5647         * ch-lex.l (string_or_int):  Rename to string_or_char.
5648         * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5649         convert_float, convert_number):  Set CH_DERIVED_FLAG for literals.
5650         * ch-expr.c (finish_chill_binary_op):  Use convert_to_class.
5651         * ch-satisfy.c (safe_satisfy_decl):  For CONST_DECL, make sure
5652         DECL_INITIAL gets set to result of convert.
5653         Also, clear CH_DERIVED_FLAG for SYN value.
5654         * expr.c (store_constructor):  If a [power]set is exactly one
5655         word long, use single-word move.
5656
5657 Sat Jan  8 08:38:29 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5658
5659         * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5660
5661 Wed Jan  5 05:18:46 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5662
5663         * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5664         ARRAY_TYPE before assuming so.  Also, subtract 1 from LENGTH in
5665         computation of SLICE_END.
5666
5667         * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5668
5669         * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5670
5671         * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5672         for unary set operations).
5673
5674         * ch-expr.c (build_chill_array_expr): Take new argument FORCE.  All
5675         callers changed.  All callers changed.
5676
5677         * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5678         being NULL_TREE until we've started walking the list of values via
5679         the loop over VARIANTs.
5680
5681         * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5682         treat it as an enum value (and hence constant).  Also, only set
5683         TREE_STATIC if the constructor is indeed constant.
5684         * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5685         VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5686         recurse on the DECL_INITIAL.
5687
5688 Wed Jan  5 01:24:50 1994  Bill Cox  (bill@cygnus.com)
5689
5690         * Makefile.in: Add CHILL to LANGUAGES variable.
5691         * ch-actions.c (check_range): Call build_binary_op instead of
5692           fold, build to get the common types chosen.
5693           (cond_range_exception, cond_overflow_exception,
5694            cond_type_range_exception): Delete, obsolete.
5695           (chill_convert_for_assignment): Enable this, get particular
5696           about when to generate rangecheck code.
5697         * ch-expr.c (build_chill_function_call): Sketch in where to
5698           perform chill_convert_for_assignment on actual parameters.
5699           (build_chill_addr_expr): Correct compiler warning.
5700         * ch-loop.c (build_chill_iterator): Add runtime check for
5701           negative loop step expression.
5702         * ch-tree.h: Add prototype.
5703         * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5704           A varying array's length field counts the NUMBER of active array
5705           array entries, not the byte-length of them.
5706
5707 Tue Jan  4 17:57:39 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5708
5709         * ch-decl.c (do_decl): Call `suspend_momenary' if the
5710         converted constructor must live on the permanent_obstack.
5711         * ch-convert.c (convert): When building a new SET_TYPE
5712         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5713         * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5714
5715         * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5716         are locations.
5717         * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5718         on permanent_obstack if necessary.
5719
5720         * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5721         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5722
5723         * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5724         the patch below helped to mess up.
5725
5726         * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5727         (build_chill_addr_expr): Take new argument ERRORMSG.
5728         All callers changed.  Also, call `build_chill_addr_expr' where
5729         we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5730         that now calls `mark_addressable' automagically.
5731
5732         * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5733         This is needed because variables may appear in initialization
5734         statements, and their DECL_INITIALs are their values at
5735         initialization time.
5736         * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5737         to handle VAR_DECLs as initializers.
5738
5739         * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5740         they aren't destroyed for later use.
5741
5742 Tue Jan  4 15:25:30 1994  Bill Cox  (bill@cygnus.com)
5743
5744         * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5745           parameter for varying_array_ref calculations.
5746           (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5747         * ch-typeck.c (build_chill_slice_with_range): Correct issuance
5748           of bogus error in votrics.
5749           (build_chill_slice_with_length): Change for debug tracability.
5750
5751 Tue Jan  4 02:43:37 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5752
5753         * ch-convert.c (digest_structure_tuple): Fix phasing problem in
5754         handling variant record initializers.
5755         (various places): Change `pop_init_level' calls to match
5756         `push_init_level' wrt implicit variable.
5757
5758         * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
5759         `integer_type_node' before using it in comparisons.  FIXME: should
5760         this be done in `chill_max_vary_array_index' by default?
5761
5762 Tue Jan  4 00:24:14 1994  Bill Cox  (bill@cygnus.com)
5763
5764         * ch-actions.c: Fix comments.
5765         * ch-parse.y: Define caseaction_flag.
5766           (caseaction): Create new caseaction_flag node at the start, 
5767           then free it at the end.  Check it before the ELSE code.
5768           (expanded_case_label): Check the flag here.  If set in either
5769           place, generate a jump to the end of the case.
5770         * ch-typeck.c (build_chill_slice_with_length,
5771           build_chill_slice_with_range): Add lots of compile-time
5772           parameter range checking.
5773
5774 Mon Jan  3 21:49:04 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5775
5776         * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
5777         implicit==0 everywhere, not 1.
5778         (digest_constructor): Ditto.
5779
5780         * ch-actions.c (check_range): Permit limits to be NULL_TREE.
5781         Also, hack out some dead code.
5782         * ch-typeck.c (build_chill_slice): Check varying and non-varying
5783         slice constructs for range failures.
5784         (build_chill_slice_with_range): Reindented, but not changed.
5785
5786         * ch-typeck.c (chill_max_vary_array_index): New function.
5787         * ch-expr.c (chill_expand_expr): Call it.
5788
5789         * ch-decl.c (var_data_id, var_length_id): New variables.
5790         (init_decl_processing): Initialize them.  All calls to
5791         get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
5792         by references to these variables.  This simplifies the code
5793         w/o obscuring anything.
5794
5795 Mon Jan  3 21:24:44 1994  Bill Cox  (bill@cygnus.com)
5796
5797         * c-typeck.c: Fix comment.
5798         * ch-actions.c (chill_expand_assignment): Error assigning to 
5799           READONLY location.  (PR_3903)  Pass filename, linenumber 
5800           to setbitpowerset runtime routine.    
5801         * ch-decl.c (init_decl_processing): Add filename, linenumber
5802           parameters to setbitpowerset prototype.
5803         * ch-expr.c (build_chill_function_call): Error when passing a
5804           READonly location as a LOC or INOUT parameter.
5805         * ch-parse.y (mode): Correct code marking type as readonly.
5806
5807 Mon Jan  3 19:03:55 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5808
5809         * ch-actions.c (chill_expand_assignment): Disable code that defeats
5810         building varying array references.
5811         * ch-expr.c (chill_expand_expr): Add rangecheck code to
5812         VARY_ARRAY_REF case.
5813         * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
5814         function (in this case, `validate_varying_array_ref') when we're
5815         doing a `build_' operation.
5816
5817         * ch-typeck.c (validate_varying_array_ref): Simplify interface
5818         since INDEX parameter can never meaningfully be an INDEXLIST.
5819         * ch-actions.c (expand_varying_length_assignment): Caller changed.
5820         
5821 Mon Jan  3 07:29:45 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5822
5823         * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
5824         * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
5825         if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
5826         (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
5827         call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD).  This
5828         can happen when constructors are output incrementally.
5829         * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
5830         * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
5831         CONSTRUCTORS.
5832
5833 Sun Jan  2 08:17:09 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5834
5835         * ch-convert (digest_structure_tuple): Handle SET_TYPEs.  Also, call
5836         `convert' so we can handle INSTANCE types (and other anomolies)
5837         correctly.
5838
5839         * ch-convert.c (digest_structure_tuple): Fixed variant
5840         structure initialization.  Also fixed a typo (TYPE_NAME
5841         was being used on a FIELD_DECL instead of DECL_NAME).
5842         * c-typeck.c (initializer_constant_valid_p): Pass missing
5843         ENDTYPE argument on recursive call.
5844         (set_init_field): New function, needed by ch-convert.c change above.
5845
5846         * ch-decl.c (layout_chill_variants): Added a FIXME next to an
5847         almost certain typo.
5848
5849         * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
5850         TREE_CONSTANT for static references.
5851         * ch-except.c (chill_start_on): Change calls to
5852         `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
5853         which has CHILL semantics.
5854         * ch-convert.c (convert): Ditto (albeit in some disabled code).
5855
5856 Sat Jan  1 21:26:43 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5857
5858         * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
5859         TREE_CODE of DECL in case it's altered by actions in the switch.
5860
5861         * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan.  CVS log
5862         mentions where to find code that triggers this case.
5863
5864         * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
5865         well.
5866
5867         * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
5868         we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
5869         (digest_constructor): Ditto.
5870
5871 Sat Jan  1 10:29:19 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5872
5873         * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
5874         so that CONSTRUCTORS are properly handled before being used.
5875
5876         * ch-convert.c (chill_start_init): New function.  All callers to
5877         `start_init' changed to call this function instead.
5878         (digest_struct_tuple): Defend against initialization machinery
5879         mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
5880         IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots.  This is
5881         needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
5882         can be refered to throughout the compilation unit.  Also remove an
5883         extraneous call to `process_init_element' erroneously added to the
5884         variant record sub-loop.
5885         (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
5886         CONSTRUCTORS of SET_TYPE.
5887         * ch-parse.y (build_chill_constructor): Refix typo.  Also set
5888         TREE_STATIC if at top level.
5889
5890         * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
5891         TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
5892         should have been called.
5893
5894         * ch-convert.c (digest_struct_tuple): Restore code which tracks 
5895         field initializations so that the compiler can deduce what variant
5896         initializations to assume.
5897
5898         * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
5899         when we push into a scope that has a DECL with a CONSTRUCTOR as its
5900         DECL_INIT.
5901
5902         * ch-parse.y (build_chill_constructor): Change the name of the
5903         parameter to something more meaningful.  Fix typo.  Also, handle case
5904         where element is an untyped CONSTRUCTOR.
5905
5906         * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
5907         constant ADDR_EXPRs.
5908         (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
5909         on JBUF_REF (instead of calling `build1' which does not).
5910
5911         * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
5912
5913         * ch-typeck.c (chill_expand_tuple): Deleted.
5914         * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
5915         instead, use initialization machinery for CONSTRUCTORS that
5916         come through here.
5917         * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
5918         that are created here.
5919         * ch-satisfy (satisfy): Abort in case we would have called
5920         chill_expand_tuple.  FIXME: some other code is needed here,
5921         but I don't know what yet.
5922
5923         * ch-parse.y (build_chill_constructor): New function to
5924         propagate TREE_CONSTANT bits to CONSTRUCTORS.
5925         (untyped_expr rule): Use it.
5926         (primval rule): Use it.
5927
5928         * ch-decl.c (do_decl): Call `finish_init'.
5929         * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
5930         this function, make sure the initialization machinery is set up.
5931
5932         * ch-convert.c (digest_structure_tuple, digest_constructor): Add
5933         missing prototypes.
5934
5935 Fri Dec 31 11:31:01 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
5936
5937         * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
5938         as being TREE_CONSTANT.  Otherwise it gets bounded by the initializer
5939         code.
5940
5941         * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
5942         * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
5943         rewritten to work with GCC's initialization code.  The basic change
5944         was to keep the initializers in sync with the initialization
5945         machinery that `process_init_element' imposes.  Both of these
5946         functions now return `void'.
5947         * ch-convert.c (convert): Changed calls to `digest_...' functions.
5948
5949         FIXME: the code handling UNION_TYPE (and variant records) has not
5950         been tested yet.
5951
5952 Fri Dec 31 15:32:56 1993  Bill Cox  (bill@rtl.cygnus.com)
5953
5954         * ch-lex.l (convert_number): Output the converted number if 
5955           yydebug is enabled.
5956         * ch-parse.y (signaldef): Set ignore_exprs correctly for a 
5957           SIGNAL declaration.
5958
5959 Fri Dec 31 13:17:48 1993  Bill Cox  (bill@cygnus.com)
5960
5961         * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
5962           a RETURN without a value (which cannot have an exception
5963           handler) from a RETURN with a value (which can).  Eliminate
5964           some shift/reduce and reduce/reduce conflicts.
5965
5966 Thu Dec 30 17:42:32 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
5967
5968         * ch-inout.c (build_chill_writetext): Deal with 2 cases where
5969         types returned from `type_for_size' are not expected.  FIXME.
5970         * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
5971         This is required when range checking is enabled.
5972
5973 Thu Dec 30 14:28:25 1993  Bill Cox  (bill@rtl.cygnus.com)
5974
5975         DELAY CASE works now.
5976         * ch-decl.c (init_decl_processing): Move rest of tasking-related
5977           initialization into tasking_init().
5978         * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
5979           (optsetprio): New non-terminal.
5980         * ch-tasking.c (get_task_name): Delete, obsolete.
5981           (build_instance_type): build pointer to instance type also.
5982           (build_receive_case_start): Cleanup per -Wall messages.
5983           (build_receive_case_label): Move between start and end functions.
5984           (build_delay_case_start): Pass SET name and priority also.
5985           Generally update to correct functioning.
5986           (build_delay_case_label): Move between start and end fucntions, 
5987           correct its functioning.
5988           (build_delay_case_end): Correct the code.
5989           (tasking_init): Lots of tasking-related code moved here from
5990           init_decl_processing.
5991         * ch-tree.h: Update, add prototypes.
5992
5993 Wed Dec 29 10:13:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5994
5995         * ch-expr.c (build_chill_indirect_ref): Revert change which
5996           failed full regression testing.
5997         * ch-lex.l (name_type_signal): Add debug output.
5998         * ch-parse.y (structured_variable): Add a debug variable.
5999
6000 Wed Dec 29 02:05:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6001
6002         * ch-decl.c (get_next_decl): Revert change which failed full
6003           regression testing.
6004
6005 Tue Dec 28 18:20:14 1993  Bill Cox  (bill@rtl.cygnus.com)
6006
6007         DELAY actions work now.
6008         * ch-decl.c: Correct spelling in comments.
6009           (get_next_decl): NULL out the decl's TREE_CHAIN before returning
6010           it, to prevent accidental access to the remembered_decls.
6011           (init_decl_processing): Add wait_event to runtime functions.
6012         * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
6013           becoming a seg fault.
6014         * ch-grant.c: Correct a comment.
6015         * ch-loop.c: Delete/correct comments.
6016         * ch-parse.y (delaycaseaction): Add push/poplevel calls.  Turn 'sorry'
6017           into rough draft of actual code.
6018           (delayaction): Don't make a new scope here, use get_unique_identifier
6019           instead.
6020           (locdec): process event decls here, too.
6021           (mode): Add code to forbid READonly EVENT and BUFFER decls.  Delete
6022           code which required EVENTs and BUFFERs to be declared at global scope.
6023           (simple_name_string): Add an EVENTNAME.
6024         * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
6025           becoming a seg fault.
6026         * ch-tasking.c (tasking_setup): Add the event queue's max. length
6027           as the 'entry_point' parameter in the list.
6028           (build_receive_case_start, build_receive_case_label): Defer
6029           calling runtime routine until we know whether we have a signal
6030           or a buffer to wait for.
6031           (build_delay_case_start, build_delay_case_end, 
6032            build_delay_case_label, build_delay_action,
6033            process_event_decls): Added functions.
6034         * ch-typeck.c (chill_similar): Allow all integers of differing
6035           precisions to be similar.
6036
6037 Thu Dec 23 18:00:40 1993  Bill Cox  (bill@rtl.cygnus.com)
6038
6039         * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
6040           options.  Delete C-specific defines.  Disable piping from
6041           pre-processor to cc1chill (even if -pipe is specified), since cc1chill
6042           rewinds its input for its second pass.  Piping still works
6043           from cc1chill to as.
6044
6045 Thu Dec 23 12:31:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6046
6047         * ch-tasking.c (decl_tasking_code_variable): Assure that the
6048           tasking_code variable is allocated on the permanent obstack.
6049           (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
6050           queue length (passed as the entry_point parameter).
6051           Other changes to variable names to increase 'self-documentation'
6052           the only kind GNU CHILL will get, for a while..
6053
6054 Wed Dec 22 10:46:31 1993  Bill Cox  (bill@rtl.cygnus.com)
6055
6056         * ch-decl.c (do_seize): Delete - it's unused.  Fix comments.
6057         * ch-loop.c (build_chill_iterator): Convert BY expression
6058           so loop involving a SET works.  Additional errors generated
6059           for numbered SET expression as start or end expression.
6060         * ch-tree.h: Prototypes for future DELAY functions.
6061         * ch-typeck.c: Standard indentation.
6062
6063 Tue Dec 21 15:30:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6064
6065         * ch-actions.c (build_cause_exception):  New function.
6066         (expand_cause_exception):  Re-write to use build_cause_exception.
6067         (check_expression, check_range):  New functions.
6068         (chill_convert_for_assignment):  New function.
6069         * ch-expr.c (build_chill_pred_or_succ):  New function.
6070         (build_chill_succ, build_chill_pred):  Removed.
6071         (build_generalized_call):  Use build_chill_pred_or_succ.
6072         * ch-lex.h, ch-lex.l (init_lex):  Add RID_OVERFLOW and RID_RANGEFAIL.
6073         * ch-lex.l (init_lex):  Use new macro to make more terse.
6074         * ch-typeck.c (chill_equivalent):  New function.
6075         Also check that ranges have the same bounds.
6076         * ch-typeck.c (my_build_array_ref):  Add optional range-checking.
6077         * ch-typeck.c (chill_location):  Handle COMPOUND_EXPR properly.
6078         Return 2 if also a referable.
6079         * ch-typeck.c (chill_referable):  Re-define to use chill_location.
6080         * ch-tree.h (CH_EQUIVALENT):  Re-defined to use chill_equivalent.
6081
6082         * dbxout.c (dbxout_type):  Output the type attribute "@S;" to
6083         distinguish a string from a char array, and to distinguish a
6084         bitstring from regulat (power)set.  (Needed for Chill.)
6085         * dbxout.c (dbxout_type):  Only check for baseclasses in
6086         type.binfo is a vector.  (It is used in Chill for tagged unions.)
6087
6088 Fri Dec 17 09:56:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6089
6090         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6091           ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
6092           ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
6093           Fix -Wall problems.
6094         * ch-actions.c (chill_expand_assignment): Error if assigning
6095           a value to a BUFFER or EVENT variable.
6096         * ch-expr.c (invalid_left_operand): Delete, unused.
6097         * ch-grant.c (tasking_setup): Call build_enum_tables.
6098         * ch-inout.c (get_final_type_and_range, build_enum_tables,):
6099           New functions.
6100           (build_chill_writetext): Lots of changes to support other
6101           basic CHILL data types.
6102         * ch-loop.c (build_chill_iterator): Lots of new code to check
6103           the expressions in a STEP loop.
6104         * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
6105           names in receivecasealternative.  Generate error messages
6106           if they're mixed in the same receive case.
6107           (process_buffer_decl): Renamed from build_buffer_decl.
6108         * ch-tree.h: Fix prototypes.
6109         * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
6110           correctly.  Thanks Per!
6111
6112 Wed Dec 15 15:05:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6113
6114         * ch-decl.c (push_scope_decls):  Re-arrange some more, so
6115         that normal SEIZES (without ALL) are handled before SEIZE ALL.
6116
6117 Wed Dec 15 13:01:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6118
6119         * ch-loop.c (declare_temps): Calculate end-of-array pointer
6120           using correct type (NOT chill_integer_type).
6121           (begin_chill_loop): Build loop-bypass expression in the
6122           type of the start expression, not in the unsigned type.
6123
6124 Tue Dec 14 15:41:32 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6125
6126         * ch-decl.c (push_scope_decls):  Re-arrange so that normal
6127         (non-seize) declarations are proclaim_decl'd *before* we
6128         handle the ALIAS_DECLs for seizes.  The advantage is
6129         that we can now test for (an approximation) to the
6130         'seizeable' concept, thus avoiding duplicate definitions
6131         when a module has both GRANTs and SEIZE ALL.
6132
6133         * ch-expr.c (build_chill_arrow_expr): No longer re-write
6134         addr-of-conversion to pointer-conversion-of-addr.
6135         * ch-expr.c (build_chill_addr_expr): Re-write to just use
6136         build_chill_arrow_expr.
6137
6138 Mon Dec 13 16:44:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6139
6140         * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr):  Don't re-write 
6141
6142         * ch-tree.h (chill_root_resulting_mode):  Fix typo (missing '_').
6143
6144         * ch-expr.c (finish_chill_binary_op):  Use CH_ROOT_RESULTING_MODE
6145         macro (which works on expressions), rather than CH_RESULTING_MODE
6146         (which works on modes, and isn't quite correct).
6147         * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE):  New macro.
6148         * ch-typeck.c (chill_read_compatible, chill_compatible):
6149         Use the new macro, which handles NEWMODEs of PTR correctly.
6150         * ch-typeck.c (chill_similar):  Return 1 rather than 0 for
6151         dynamic-length array (and string) types (e.g. slices).
6152         * ch-typeck.c (chill_root_mode):  If the mode has a Novelty,
6153         just return it as is.  (This is still not 100% correct for
6154         NEWMODE of RANGEs, but is close enough.)
6155
6156 Mon Dec 13 16:27:06 1993  Bill Cox  (bill@rtl.cygnus.com)
6157
6158         * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
6159           build_buffer_decl, which then seg faults.
6160         * ch-tasking.c (build_buffer_descriptor): Move declaration
6161           of bufdecl closer to its use.
6162
6163 Mon Dec 13 14:57:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6164
6165         * ch-actions.c (chill_expand_result): Use expand_expr_stmt
6166           to avoid C-specific conversions.
6167         * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
6168         * ch-parse.y (sendaction): Delete unused statement, use the 'name'
6169           variable.
6170         * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
6171           conversions.
6172           (build_buffer_decl): Save the tasking_code_variable's decl
6173           in the buffer decl tree.
6174           (build_buffer_descriptor): Real, working version.
6175
6176 Mon Dec 13 03:13:36 1993  Bill Cox  (bill@rtl.cygnus.com)
6177
6178         * ch-decl.c (print_lang_identifier): Delete code
6179           to print buffer size - it's no longer kept here.
6180         * ch-parse.y (expand_send_buffer): Renamed from
6181           build_send_buffer.
6182           (locdec): Enable building of a buffer decl.
6183           (optresultspec, optresultattr): Add optional
6184           result attributes such as LOC.  Semantics
6185           not enabled yet.
6186         * ch-tasking.c (expand_send_buffer): Renamed.
6187         * ch-tree.h (build_send_buffer): Renamed.
6188         * ch-typeck.c (chill_expr_class): Do more complete,
6189           job of classifying expressions.  Thanks, Per.
6190
6191 Mon Dec 13 00:59:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6192
6193         * ch-typeck.c (chill_expr_class):  Return CH_DERIVED_CLASS
6194         for bitstring constants.
6195         * ch-typeck.c (chill_novelty):  The novelty of an (unnamed)
6196         range mode is that of its parent mode; the novelty of READ M
6197         is that of M.
6198
6199 Sat Dec 11 15:14:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6200
6201         * ch-expr.c (varying_to_slice):  Call stabilize_reference
6202         rather than save_expr.
6203         * ch-typeck.c (build_chill_slice):  Don't emit warning
6204         if array is a SAVE_EXPR (it is effectively referable).
6205         * ch-typeck.c (chill_root_resulting_mode):  Handle
6206         correctly the case that one operand is DERIVED and one is VALUE.
6207
6208 Fri Dec 10 10:00:42 1993  Bill Cox  (bill@rtl.cygnus.com)
6209
6210         * ch-grant.c (decode_decl): Restore code mistakenly deleted.
6211           Move instance-handling code to raw_decode_mode.
6212         * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
6213           Add rough draft of DELAY statement handling.
6214         * ch-tasking.c (build_event_type): New function.
6215         * ch-tree.h (build_event_type): Add prototype.
6216         * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
6217
6218 Wed Dec  8 18:02:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6219
6220         Parse and grant BUFFER modes.
6221         * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
6222           Moved from decode_decl.
6223         * ch-parse.y: Fix several sorry() messages.
6224         * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
6225           info.
6226
6227 Wed Dec  8 12:59:54 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6228
6229         * ch-actions.c (chill_expand_assignment):  In a multiple
6230         assignment, check that all the targets are equivalent.
6231
6232         * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT):  New function
6233         and macro to (partially) implement the relation l-equivalent.
6234         * ch-typeck.c (chill_read_compatible):  Implement at least
6235         initial check of read-only-ness.
6236         * ch-typeck.c (build_readonly_type):  Fix thinkos.
6237
6238 Wed Dec  8 09:11:46 1993  Bill Cox  (bill@rtl.cygnus.com)
6239
6240         * ch-decl.c (pop_module): Only warn about duplicate grant
6241           statements if they inhabit different files, by examining
6242           inode numbers.  Only report compatibility problems in pass 1.
6243         * ch-lex.l (chill_same_grant_file): New function to support the
6244           above test.
6245
6246 Tue Dec  7 17:10:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6247
6248         * ch-decl.c (start_chill_function):  Handle attributes in pass 1,
6249         rather than in pass 2.  (It seems to make more sense that way.)
6250         * ch-parse.y (procedureattr):  Build attribute list if pass != 2.
6251
6252         * ch-parse.y (mode):  Don't call build_readonly_type in pass 2.
6253
6254 Mon Dec  6 14:35:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6255
6256         This implements NOVELTY and READONLY checking.
6257         * ch-tree.def:  Added comment about use of LANG_TYPE.
6258         * ch-typeck.c (build_readonly_type, smash_dummy_type):  New functions.
6259         * ch-tree.h: New prototypes.
6260         * ch-decl.c (push_modedef):  If newmode, lazily "copy" the given mode
6261         immediately (even if it's just a type name), using a LANG_TYPE.
6262         * ch-parse.y (mode):  Call build_readonly_type to handle READ.
6263         * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6264         ch-satisfy.c (satisfy):  Handle a LANG_TYPE.
6265         * ch-decl.c:  Remove chill_modes_equiv and other unused junk.
6266         * ch-satisfy.c (safe_satisfy_decl/CONST_DECL):  Better
6267         mode compatibility checking for SYN declarations.
6268
6269         * ch-typeck.c (chill_similar):  Be more general when checking set
6270         modes for similarity - specifically support calling chill_similar
6271         BEFORE the modes have been satisfied (needed by proclaim_decl).
6272         * ch-decl.c (proclaim_decl):  Allow duplicate definitions
6273         of set elements of similar set modes.
6274
6275         * ch-parse.y (caseaction):  Call language-independent
6276         expand_start_case rather than c_expand_start_case (which
6277         doesn't allow chars or booleans).
6278
6279 Sat Dec  4 22:16:19 1993  Bill Cox  (bill@rtl.cygnus.com)
6280
6281         * ch-actions.c (cond_range_exception, 
6282           cond_type_range_exception): Check command-line flag before
6283           generating code.  Fix comments.
6284         * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6285           code, commented out.
6286         * ch-loop.c (build_chill_iterator): Comment out
6287           exception code generation.
6288         * ch-parse.y: Delete quasi_signal flag, use 
6289           current_module->is_spec_module instead.
6290         * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6291           Delete quasi_decl flag.  Look at current_module
6292           instead.
6293         * ch-tree.h: Take quasi_decl flag out of buffer
6294           related prototypes.
6295         * ch-typeck.c (valid_array_index, chill_similar):
6296           Comment out runtime range checking for now.
6297         * expr.c (store_constructor): Fix word-size set problem.
6298         * varasm.c (emit_set_data): Fix word-size set problem.
6299
6300 Wed Dec  1 19:08:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6301
6302         * ch-actions.c: Delete unused prototype for build_compound_expr.
6303         * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6304           expression to lp->iter_type before expanding it.  Prevents an abort
6305           deep in expand_expr and friends.
6306
6307 Wed Dec  1 17:00:44 1993  Bill Cox  (bill@rtl.cygnus.com)
6308
6309         * ch-actions.c (chill_expand_assignment): Comment out strange
6310           test and its error message.
6311         * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6312           jump around the loop.
6313         * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6314
6315 Wed Dec  1 14:19:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6316
6317         * ch-actions.c (cond_exception): Clarify that it generates
6318           an exception if the given expression is TRUE.  Make it so, Number One.
6319         * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6320           (print_lang_type): Print max queue size.
6321           Add casts to DECL_TASKING_CODE_DECL references.  Fixes a
6322           portability problem.
6323           (init_decl_processing): Add filename and linenumber arameters
6324           to tasking and memory-allocate runtime prototypes.
6325         * ch-expr.c (finish_chill_binary_op): Check for division
6326           by a constant zero.  Replace build_temporary_variable
6327           calls with decl_temp1 calls, to decouple from ch-loop.c.
6328           (build_chill_succ, build_chill_pred): Sketch code to generate
6329           exceptions.  Add error check for numbered set.
6330           (build_generalized-call): Correct call for return_memory.
6331           Standardize whitespace before left parens.
6332         * ch-grant.c: Use new macro for checking for BUFFER mode.
6333         * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6334           and EVENT names.
6335         * ch-loop.c (build_temporary_variable): Make static, unavailable
6336           to outsiders.
6337           (declare_temps): Make user's variable for him/her, in the
6338           true Z.200 case, where it hasn't previously been declared.
6339           (begin_chill_loop): simplify control flow a bit.
6340         * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6341           (rccase_label): Delete bogus error checks.  Rough draft of
6342           BUFFER-related code.
6343           (assertaction): Remove logical negation - it's now in cond_exception.
6344           (locdec): Sketch of buffer-related code.
6345           (non_array_mode): Add EVENT and BUFFER modes here.  Add setting of
6346           set-numbered flag for pred and succ functions.
6347           (optqueuesize): Default to integer_zero_node.
6348           (simple_name_string): Add BUFFERNAME.
6349         * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6350           (build_chill_start_process, expand_send_signal,
6351            build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6352           to tasking-related runtime calls.  Sketches of BUFFER mode
6353           processing.
6354         * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6355           macro, for portability to non-gcc compilers.  Add prototypes
6356           for buffer-related functions.
6357         * ch-typeck.c: Replace build_temporary_variable calls with
6358           decl_temp1 calls, to decouple from ch-loop.c.
6359           (chill_similar): Add tests for BUFFER and EVENT modes.
6360
6361 Wed Dec  1 14:05:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6362
6363         * ch-actions.c (malloc prototype):  Remove; can cause conflicts.
6364
6365 Wed Dec  1 09:49:58 1993  Bill Cox  (bill@rtl.cygnus.com)
6366
6367         * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6368
6369 Tue Nov 30 14:05:23 1993  Bill Cox  (bill@rtl.cygnus.com)
6370
6371         * ch-decl.c (init_decl_processing): Add filename, line number
6372           parameters to tasking-related runtime routines.
6373         * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6374         * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to 
6375           lex-only list.
6376           (quasi_locdec): Set/reset quasi_decl flag.
6377         * ch-tasking.c (build_start_process, expand_send_signal,
6378           build_receive_case_start, build_send_buffer): Add filename. linenumber to
6379           (build_buffer_decl, build_buffer-type): New rough-draft functions.
6380           generated runtime routine call.
6381         * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6382           to mark a synchronization mode.  Update the prototypes.
6383         * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6384           similarity.
6385
6386 Tue Nov 30 09:51:47 1993  Doug Evans  (dje@canuck.cygnus.com)
6387
6388         * cccp.c (main): Add missing chill sanitization.
6389
6390 Sun Nov 28 15:50:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6391
6392         * ch-loop.c (initialize_iter_var): Build count expression
6393           more robustly.
6394           (bottom_loop_end_check): Call emit_line_note.
6395           (end_chill_loop): Delete emit_line_note call.
6396         * ch-parse.y (doaction): Move DO keyword
6397           after end_chill_loop call.
6398
6399 Wed Nov 24 08:49:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6400
6401         * c-typeck.c (c_expand_start_case): Back out previous
6402           change.
6403
6404 Tue Nov 23 12:33:50 1993  Bill Cox  (bill@rtl.cygnus.com)
6405
6406         * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6407           type as a CASE label.
6408
6409 Tue Nov 23 11:37:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6410
6411         * ch-decl.c (grok_chill_variantdefs):  Use NULL as the name
6412         of variant fields (not __CASE or anything based on it).
6413         * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6414         Don't check for field name __CASE.
6415
6416 Tue Nov 23 09:37:54 1993  Bill Cox  (bill@rtl.cygnus.com)
6417
6418         * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6419           name for the FIELD_DECL.
6420         * ch-parse.y (optstartset): More error tests.
6421         * ch-tasking.c (make_process_struct): Only report error in pass 1.
6422           (build_start_process): Remove bogus restriction, allowing
6423           an INSTANCE expression as the optset parameter.
6424
6425 Mon Nov 22 17:56:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6426
6427         * ch-tree.h (expand_function_end):  Now is takes parameters, not 2.
6428         * ch-decl.c (finish_chill_function):  Add 3rd parameter to
6429         call of expand_function_end.
6430
6431         * ch-expr.c (chill_expand_expr):  For set and strings ops,
6432         if target is in a register, use a stack temporary (since we must
6433         take its address).  (Similar to Oct 29 change for store_constructor.)
6434         * ch-expr.c (resolve_component_ref):  Fix variant field lookups.
6435
6436 Mon Nov 22 14:23:13 1993  Bill Cox  (bill@rtl.cygnus.com)
6437
6438         * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6439           parameter 1 and its mode are always in sync.
6440           (build_chill_pred, build_chill_succ): Allow pred/succ of a
6441           pointer.
6442         * ch-loop.c (chill_unsigned_type): New function, used instead of
6443           unsigned-type, since it understands the chill_integer_type.
6444           (decl_iteration_var): Delete, use build_temporary_variable
6445           instead.
6446           (declare_temps): Use lp->iter_type for the temp evaluations.
6447           (initialize_iter_var): More careful calculation, to handle
6448           MININT to MAXINT loops w/o overflow/underflow.
6449           (begin_chill_loop): Use the original start/end expressions
6450           for the loop bypass test.
6451
6452 Mon Nov 22 14:02:06 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6453
6454         * ch-typeck.c (build_chill_slice):  If the argument is
6455         is constant, use a read-only static variant, as the
6456         existing algorithm assumes addressability.
6457         * ch-typeck.c (chill_compatible):  De-reference reference types.
6458         * ch-typeck.c (layout_chill_range_type):  Set TREE_UNSIGNED.
6459
6460 Sat Nov 20 20:17:15 1993  Bill Cox  (bill@rtl.cygnus.com)
6461
6462         * ch-decl.c (init_decl_processing): Add filename
6463           and linenumber to allocate, free memory calls.
6464         * ch-expr.c (build_allocate_memory_call,
6465           (build_allocate_global_memory_call): Add 
6466           filename, linenumber to call.
6467         * ch-loop.c: Complete rewrite for maintainability.
6468
6469 Sat Nov 20 17:30:05 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6470
6471         * ch-except.c:  Make it so that (by default at least) the
6472         code to push/pop the __exceptionStack is done using library
6473         functions __ch_link_handler and __ch_unlink_handler.  This
6474         provides better flexibility (for e.g. multi-threading).
6475
6476         * ch-decl.c (layout_chill_variants):  Allow (useless) selectors
6477         even for tag-less variants.
6478
6479 Fri Nov 19 14:32:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6480
6481         * ch-decl.c (init_decl_processing): Add memmove builtin
6482           function definition.
6483         * ch-actions.c (chill_expand_array_assignment): Use memmove
6484           call to copy an array or slice across the assignment.
6485
6486 Wed Nov 17 18:23:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6487
6488         * ch-satisfy.c (satisfy):  If a CONTRUCTOR already has a
6489         TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6490         to force expansion (processing of the elements).
6491         * ch-grant.c (decode_constant):  If a tuple (CONTRUCTOR) has
6492         a mode, write it out.
6493         * ch-decl.c (init_decl_processing): Add some missing inits.
6494
6495 Wed Nov 17 17:13:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6496
6497         * ch-loop.c: Fix unterminated strings in design comments.
6498           Add enumeration to the iterator structure for type of loop.
6499           unused for now.
6500
6501 Wed Nov 17 16:40:05 1993  Bill Cox  (bill@rtl.cygnus.com)
6502
6503         * ch-decl.c (init_decl_processing): Add long parameters to lots
6504           of powerset runtime routines.
6505         * ch-expr.c (chill_expand_expr): Change parameters to powerset
6506           runtimes so bitlengths are long unsigned ints.
6507         * ch-inout.c (build_chill_writetext): Add filename and linenumber       
6508           as runtime parameters, for better error messages.
6509         * ch-loop.c: general pre-rewrite cleanup.
6510         * expr.c (store_constructor): Rewrite set interface to
6511           setpowersetbits for long bitnumbers, rather than shorts.
6512
6513 Tue Nov 16 13:41:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6514
6515         * ch-expr.c (build_chill_function_call): Stop generating empty
6516           copyback statements, which lead to a seg fault.
6517
6518 Tue Nov 16 12:20:17 1993  Per Bothner  (bothner@cygnus.com)
6519
6520         * ch-satisfy.c (satisfy):  If satisfying a type whose
6521         TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6522         * ch-actions.c (build_exception_variant):  Remove some crud.
6523         * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6524         Remove unused first argument.
6525         * ch-decl.c (start_chill_function):  Call build_exception_variant
6526         in pass 1, not in pass 2.
6527
6528 Tue Nov 16 11:10:03 1993  Bill Cox  (bill@rtl.cygnus.com)
6529
6530         * ch-decl.c (shadow_record_fields): Call new function
6531           build_chill_arrow_expr, which returns a ptr-to-a-type.
6532         * ch-expr.c (build_chill_arrow_expr): New function, works like
6533           build_chill_addr_expr used to do, returning a typed ptr.
6534           (build_chill_addr_expr): Now returns unbound ref - analogous
6535           to C 'void *'.
6536         * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6537           (operand6): Call build_chill_arrow_expr.  Reindent a bit.
6538         * ch-tree.h (build_chill_arrow_expr): New prototype.
6539
6540 Mon Nov 15 16:38:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6541
6542         * stor-layout.c (layout_type): If a SET_TYPE needs more than
6543         INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6544
6545         * ch-decl.c (start_chill_function):  Set DECL_CONTEXT of params.
6546
6547 Mon Nov 15 14:49:17 1993  Bill Cox  (bill@rtl.cygnus.com)
6548
6549         * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6550           build_function_call, etc.) to tasking_init.
6551         * ch-gperf, ch-hash.h: Add ASM keyword.
6552         * ch-parse.y: Add ASM statement rules.
6553           (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6554         * ch-tasking.c: Move tasking stuff here.
6555
6556 Sun Nov 14 15:50:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6557
6558         * ch-parse.y (mode2):  Split into array_mode and non_array_mode
6559         to resolve layout ambiguity.
6560         * ch-parse.y (checked_name):  Remove.  Use name_string instead.
6561         * ch-parse.y (variantdef):  Don't crash if no tag fields.
6562         * ch-typeck.c (build_chill_array_type):  If varying_p,
6563         actually do build_varying_struct here (rather than in ch-parse.y).
6564
6565 Fri Nov 12 15:37:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6566
6567         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6568         static names.  (Let make_decl_rtl generate a unique name.)
6569
6570 Sun Nov 14 13:15:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6571
6572         * ch-expr.c (build_chill_lower, cuild_chill_upper):
6573           Rewrite for modes, values, etc.
6574         * ch-inout.c (build_chill_writetext): Add ability
6575           to write out characters.
6576         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6577           static names.  (Let make_decl_rtl generate a unique name.)
6578         * varasm.c (unpack_set_constructor): Subtract
6579           lower domain value from a bit's index value,
6580           to match the runtime and allow powersets
6581           with negative lower bounds.
6582
6583 Fri Nov 12 14:00:48 1993  Bill Cox  (bill@rtl.cygnus.com)
6584
6585         * ch-inout.c (build_chill_writetext): Save reserved words in
6586           uppercase if -fspecial_UC was specified.
6587
6588 Fri Nov 12 13:27:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
6589
6590         * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6591         string concatenation by treating varying strings as slices.
6592         (varying_to_slice): New function.
6593         * ch-typeck.c (build_chill_slice): Changed to support the above.
6594
6595 Fri Nov 12 12:07:28 1993  Bill Cox  (bill@rtl.cygnus.com)
6596
6597         * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6598         * ch-expr.c (build_generalized_call): Start module before a
6599           writetext action, so its variables are inside the module-level
6600           function.
6601         * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6602           for enumeration loop on a varying array.
6603
6604 Thu Nov 11 07:49:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6605
6606         * cccp.c (main): Disable trigraphs for CHILL.
6607         * ch-decl.c (grok_chill_fixedfields): Add special_UC
6608           to conditional to determine case of reserved words.
6609           Make PACK/UNPACK warning more specific.
6610         * ch-expr.c (build_generalized_call): Enable recognition
6611           of WRITETEXT call here.
6612         * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6613           word.  It's only predefined.
6614         * ch-inout.c: Add special_UC to conditionals
6615           to determine case of reserved words.
6616           (build_chill_writetext): Change for call from 
6617           build_generalized_call.  Add code to format
6618           integers.
6619         * ch-lang.c (lang_decode_option): Add special_UC and
6620           special_LC flags and logic to interlock with
6621           ignore_case flag.
6622         * ch-lex.l: Add special_UC to conditionals
6623           to determine case of reserved words.
6624         * ch-parse.y: Delete WRITETEXT as reserved word.
6625         * ch-tasking.c: Add special_UC to conditionals
6626           to determine case of reserved words.
6627           (build_instance_type): Make components of INSTANCE
6628           unsigned 16-bit integers.
6629         * ch-tree.h (build_chill_writetext): Fix prototype.
6630         * ch-typeck.c (build_chill_array_type): Make PACK
6631           /UNPACK warning more specific.
6632         * toplev.c (lang_options): Add -fspecial_LC
6633           and -fspecial_UC flags.
6634
6635 Wed Nov 10 02:29:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6636
6637         * Makefile.in: Move ch-hash.h from ch-lex.o
6638           rule to ch-lex.c rule, so flex is rerun.
6639         * ch-actions.c (chill_expand_assignment): Error if
6640           user tries to assign to a LHS function.
6641         * ch-decl.c (grok_chill_fixedfields): Use of PACK
6642           /UNPACK is only a warning.
6643           (init_decl_processing): Add ADDR as a builtin function.
6644         * ch-expr.c (build_generalized_call): Add ADDR
6645           as a builtin function.
6646           (build_chill_addr_expr): Sanity check parameters.
6647         * ch-gperf: Remove ADDR as a reserved word,
6648           make ASM into one.
6649         * ch-hash.h: gperf'd version of the above.
6650         * ch-inout.c (chill_stdio_p): Recognize upper/lower
6651           case file names.
6652         * ch-lex.l: Make ignore-case work.  Downcase
6653           token before checking for reserved words.
6654         * ch-parse.y: Delete ADDR as a reserved word.
6655           (mode2, optlayout): Allow PACK/UNPACK specifier.
6656           (call): Use build_generalized_call for 
6657                   primval LPRN modename RPRN.
6658           (primval): Delete ADDR reference.  It's now only
6659           predefined, not reserved.
6660         * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6661         * ch-typeck.c (build_chill_array_type): Just
6662           a warning for PACK/UNPACK usage.
6663         * toplev.c: Add -fignore-case and -fno-ignore-case.
6664
6665 Tue Nov  9 15:07:02 1993  Bill Cox  (bill@rtl.cygnus.com)
6666
6667         * ch-actions.c: Reindent for readability.
6668         * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6669           a conversion to INSTANCE.
6670         * ch-decl.c: Change special_UC to ignore_case everywhere.
6671           (init_decl_processing): Add builtin_function calls for lots of
6672           predefined functions.
6673         * ch-expr.c: Change builtin function handlers back to accepting
6674           args, not a treelist.  
6675           (route_to_predefined_function): Delete it and its call.
6676           (build_generalized_call): Add lots of builtin functions.
6677         * ch-gperf (backwards, duration, inttime, null): Delete them.
6678         * ch-hash.h: New version.
6679         * ch-inout.c: Change special_UC to ignore_case everywhere.
6680         * ch-lang.c: Delete special_UC flag.
6681         * ch-lex.l: Change special_UC to ignore_case everywhere.
6682         * ch-loop.c (high_domain_value, low_domain_value): Change
6683           interfaces to build_chill_upper and built_chill_lower.
6684         * ch-parse.y: Delete lots of stuff which should only be predefined.
6685         * ch-tasking.c: Change special_UC to ignore_case everywhere.
6686           Change builtin function handlers back to accepting args,
6687           not a treelist.  
6688         * ch-tree.h: Add lots of builtin functions to the enumerator.
6689
6690 Mon Nov  8 18:08:27 1993  Bill Cox  (bill@rtl.cygnus.com)
6691
6692         * ch-tasking.c (tasking_init): Disable last-minute change for now.
6693
6694 Mon Nov  8 17:30:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6695
6696         * Makefile.in: New commands to build ch-hash.h.  Add ch-lex.h to
6697           dependencies where it's used.
6698         * ch-decl.c (init_decl_processing): Build predefined constants
6699           for TRUE, FALSE and NULL.  Add declaration for abs builtin
6700           function.
6701           (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6702           stuff for builtin constant like TRUE.
6703         * ch-expr.c (route_to_predefined_function): Add a bunch of 
6704           predefined functions to the list.
6705         * ch-gperf: Define the list of reserved words, minus the predefined
6706           words, using the special_UC flag.  Remove NULL, TRUE, FALSE -
6707           these are only predefined, not reserved.
6708         * ch-hash.h: Check this into repository, even though it's derived
6709           from ch-gperf, for those users who don't have gperf.
6710         * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6711           to refer to the IO types. Standardize the indentation.
6712         * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6713         * ch-lex.l: Total rewrite of reserved-word recognition, using
6714           the ch-hash.h lookup routines.
6715         * ch-parse.y: Delete a bunch of unused rules for predefined 
6716           procedures and their parameters.
6717         * ch-tasking.c (tasking_init): Build predefined functions
6718           for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE.  Not
6719           complete yet.  Change interface to builtin handlers to accept
6720           just an expression list.
6721
6722 Wed Nov  3 18:07:08 1993  Bill Cox  (bill@rtl.cygnus.com)
6723
6724         * Makefile.in: Debug, activate rule to make CHILL hash table.
6725         * ch-actions.c: Compress parameter type lists per standard.
6726         * ch-decl.c: Correct spelling in comment, compress parameter lists.
6727           (init_decl_processing): Check special_UC flag to build builtin
6728           function declarations.
6729         * ch-expr.c (route_to_predefined_function): Check for upper OR
6730           lowercase function names.
6731         * ch-gperf: Update the list of keywords.
6732         * ch-inout.c (build_chill_io_list): Check for special_UC flag
6733           to build I/O list type.  Compress parameter lists.
6734           (chill_stdio_p): Check for special_UC flag in recognizing
6735           file streams.
6736         * ch-lang.c (lang_decode_option): Add command-line options
6737           for upper-case keywords and user labels.
6738         * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6739           if special_UC flag is set.
6740           (downcase, getlc, check_newline): Don't do this if ignore_case
6741           flag is set.
6742         * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6743           multiple selector expressions.
6744
6745 Sat Oct 30 01:06:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6746
6747         * ch-expr.c (compare_record, finish_chill_binary_op): Compare
6748         STRUCTs (and INSTANCEs) for equality.
6749         * ch-expr.c (invalid_operand):  New functions, combines most of
6750         the functionality of invalid_left_operand and invalid_right_operand.
6751         * ch-convert.c (digest_constructor):  Set TREE_CONSTANT if it is.
6752
6753 Sat Oct 30 11:12:47 1993  Bill Cox  (bill@rtl.cygnus.com)
6754
6755         * Makefile.in (chill): Add back in the commands to build chill
6756           (the script) from chill.in.
6757
6758 Fri Oct 29 16:25:38 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6759
6760         * expr.c (store_constructor):  If SET_TYPE target is in a register,
6761         use a stack temporary (since we must take its address).
6762
6763         * ch-expr.c (build_allocate_global_memory_call,
6764         build_allocate_memory_call):  Cast argument pointer to PTR,
6765         if needed (using location cast).  Also, some other cleanups.
6766         * ch-parse.y (bracketed_action):  Re-arrange things so that
6767         a handler following BEGIN END comes before the final poplevel.
6768         * ch-typeck.c (build_chill_cast): Just return if already correct type.
6769
6770         Re-do DO WITH so that build_component_ref for is done lazily
6771         (at each reference) instead of eagerly (at the beginning
6772         of DO WITH).  This is needed for tagged variants,
6773         * ch-tree.def (WITH_DECL):  New declaration tree code.
6774         * ch-decl.c (lookup_name):  Recognize WITH_DECLs.
6775         * ch-decl.c (handle_one_level):  Variant parts are currently
6776         indicacted with '__CASE'.  Recognize that.
6777         Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
6778
6779 Thu Oct 28 22:17:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6780
6781         * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
6782         Remove some old crud.
6783         * ch-typeck.c (build_chill_cast):  Another attempt at a
6784         compromise between robustness and generality for casts.
6785         Location conversions are now less likely to confuse things.
6786         * ch-parse.y (optactions):  Allow further optactions following
6787         an initial semicolon.
6788         * ch-parse.y:  Add error messages on EVENT and BUFFER.
6789
6790         * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
6791         Undo some of the Oct 27 changes.
6792
6793         Convert (some) builtin functions previously using reserved
6794         names to be just predefined.
6795         * tree.h (enum builtin_in_function):  Added END_BUILTINS at end.
6796         * ch-decl.c:  Add predefines for allocate_memory,
6797         allocate_global_memory, return_memory, writetext.
6798         * ch-expr.c (check_arglist_length):  New function.
6799         * ch-expr.c (build_generalized_call):  If "function" is
6800         a builtin, build the appropriate tree.
6801         * ch-parse.y, ch-lex.l:  No longer recognize many pre-defined
6802         functions at the lexer/parser level.
6803         * ch-tree.h (enum chill_built_in_function):  New type.
6804
6805 Thu Oct 28 16:43:36 1993  Bill Cox  (bill@rtl.cygnus.com)
6806
6807         * ch-expr.c (allocate_memory, allocate_global_memory):
6808           Check for invalid parameters, issue errors.
6809         * expr.c (store_constructor): Calculate bitlength, startrtx
6810           and endrtx of powerset correctly.  Define targetx, use it
6811           and XEXP correctly.
6812
6813 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6814
6815         * ch-expr.c (build_max_min): Error for passing empty tuple
6816           as the argument.
6817
6818 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6819
6820         * ch-decl.c (init_decl_processing): Make allocate
6821           builtins have a pointer-to-pointer-to-void
6822           first parameter, rather than a reference parameter.
6823         * ch-expr.c (build_allocate_memory_call,
6824           build_allocate_global_memory_call): Do automatic
6825           ADDR () on the first parameter, for backward
6826           compatibility.
6827         * ch-grant.c (grant_one_decl): Don't grant if
6828           DECL_SOURCE_LINE is zero.
6829           (start_chill_module_code): Set DECL_SOURCE_LINE
6830           to zero so that module-level function isn't granted.
6831         * ch-parse.y (handleraction): Add return_memory action.
6832         * ch-typeck.c (chill_similar): Allow a void_type
6833           to be similar to anything.  This makes allocate_memory
6834           and return_memory pointer parameters slide through.
6835
6836 Tue Oct 26 00:12:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6837
6838         * ch-typeck.c (build_chill_array_ref):  Check for and complain
6839         if there are more index expressions than the array rank.
6840
6841         * ch-actions.c (chill_expand_assignment):  Emit appropriate
6842         error message if RHS of multiple assignment is tuple/case/if.
6843         * ch-tree.def (CONCAT_EXPR):  Change TREE_CODE_CLASS from
6844         'e' to the more specific '2'.  (Fixes a satisfy bug.)
6845
6846 Thu Oct 21 17:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
6847
6848         * ch-parse.y: Revert experimental error-generating change
6849           that was checked in by mistake.
6850
6851 Thu Oct 21 12:15:30 1993  Bill Cox  (bill@rtl.cygnus.com)
6852
6853         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6854           code variables associated with a process or signal.
6855           (Apparently I forgot to actually check these in last time.)
6856         * ch-tasking.c: Replace last calls to get_tasking_code with
6857           working references to DECL_TASKING_CODE_DECL.
6858
6859 Thu Oct 21 10:27:42 1993  Bill Cox  (bill@rtl.cygnus.com)
6860
6861         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6862           code variables associated with a process or signal.
6863         * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
6864           tasking_code_decl pointer, rather than trying to look it up
6865           in the hash table or linked scope list.
6866
6867 Wed Oct 20 09:52:44 1993  Bill Cox  (bill@rtl.cygnus.com)
6868
6869         * ch-actions.c (lookup_and_handle_exit): Only output error message
6870           in pass 1.
6871         * ch-convert.c (convert): Correct conversion of VARYING array to/
6872           from non-VARYING one.
6873         * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
6874           field in the node.
6875           (decl_tasking_code_var): Delete it.  Its calls are replaced woth
6876           generate_tasking_code_variable calls, plus a little glue.
6877           (push_extern_process): generate tasking_code_variable as local
6878           static variable, point the process' function_decl at it for later 
6879           reference by build_start_process.
6880           (print_mode): Use CHILL upper-case convention to print modes.
6881         * ch-lex.l: Must initialize tasking-related trees to NULL at start
6882           of each pass, or we lose the fact that the user did or did not
6883           specify a value for each of them.
6884         * ch-parse.y (check_end_label, action, exceptlist): Only output
6885           error message in pass 1.
6886           (sendaction): Add comments.
6887           (sigdef): Comment out special handling for external signals.
6888           Chain tasking_variable_decl onto signal structure decl, for
6889           easier non-symbol-table access later.
6890         * ch-tasking.c (generate_tasking_code_variable): Do work in both
6891           passes, using do_decl so we can pass the pass 2 value of the
6892           process_type or signal_code to it.  Only update the process_type
6893           if the incoming pointer isn't null and pass == 2.  Use a new
6894           parameter to know whether to include an init expression.
6895           (build_process_header): Attach tasking-code_variable to process
6896           function_decl for easy access later, not through the hash table.
6897           (build_start_process): Get tasking_code_variable out of the process'
6898           function decl.
6899           (build_signal_struct_type): Return the type decl, to be accessed by ...
6900           (build_signal_descriptor): .. this function.
6901           (build_receive_case_label): Get data buffer pointer not from hash 
6902           table, but from Tiemann's current rc_state structure instead.
6903         * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
6904           macro for tasking_code_variable storage.
6905
6906 Tue Oct 19 17:39:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6907
6908         * ch-lex.l (equal_number):  If the "number" is a CONST_DECL,
6909         return its DECL_INITIAL.
6910         * ch-satisfy.c (safe_satisfy_decl):  Change logic for rtl
6911         generation for decls to not use DECL_ASSEMBLER_NAME.
6912         * ch-decl.c:  Set DECL_ASSEMBLER_NAME to DECL_NAME.
6913         This matches C, and allows dbxout to emit proper user-level names.
6914         (It would be cleaner to fix dbxout to use DECL_NAME ...)
6915         * ch-decl.c (outer_decls):  New global list of the decls granted
6916         into the outer scope.
6917         (pop_module):  Change code that grants into outer scope accordingly.
6918         (lookup_name_for_seizing):  Similarly update.
6919         (push_scope_decls):  Handle SEIZE ALL from the global scope
6920         by searching outer_decls.
6921         * ch-grant.c (grant_array_type):  Fix thinko.
6922         * ch-inout.c (build_chill_writetext):  Remove excessive TREE_TYPE.
6923
6924 Mon Oct 18 15:57:00 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6925
6926         * varasm.c (output_constructor):  Add support for non-zero
6927         lower array bound.
6928         * c-typeck.c (output_init_element):  Revert recent changes.
6929         * varasm.c (emit_set_data):  Fix emitting set constant data.
6930         * ch-lex.l (yywrap):  Reset line number to 0, not 1.
6931         It sets incremented to 1 by check_newline.
6932         * ch-tree.h:  Restore old version.
6933         * ch-expr.c (finish_chill_binary_op):  Convert TRUNC_DIV_EXPR
6934         to RDIV_EXPR if an operand is floating.  (This functionality
6935         got dropped when hacking finish_chill_binary_op).
6936
6937         * ch-actions.c (build_chill_case_expr):  Set type to NULL_TREE.
6938         not error_mark_node.
6939         * ch-actions.c (chill_expand_assignment):  Allow such borderline
6940         constructs as:  LHS OR:= [X].
6941         * ch-convert.c (convert):  Hande CASE_EXPR (and COND_EXPR)
6942         with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
6943         * ch-decl.c (do_decl):  Remove CONSTRUCTOR kludge.
6944         * ch-typeck.c (chill_compatible):  Allow expr to have NULL mode
6945         if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
6946
6947 Mon Oct 18 13:20:53 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
6948
6949         * c-typeck.c (output_init_element): Limit previous changes to
6950         ARRAY_TYPE and SET_TYPE initializers.
6951
6952 Sun Oct 17 23:15:00 1993  Bill Cox  (bill@cygnus.com)
6953
6954         * c-typeck.c (output_init_element): Handle NULL domain case.
6955         * ch-decl.c (do_decl): Revert bogus initializer type change.
6956         * ch-grant.c (chill_finish_module_code): Put module's decl onto
6957           the module_init_list, for chill_finish_compile's possible use.
6958           (chill_finish_compile): Rename variables for clarity, add 
6959           commented-out code as example for assignment of module address to its
6960           init_list entry.
6961
6962 Sun Oct 17 15:16:54 1993  Bill Cox  (bill@cygnus.com)
6963
6964         * ch-convert.c: Move semicolon to separate line - easier to see.
6965         * ch-decl.c (do_decl): Handle untyped_expr initializers by
6966           simply using the variable's declared type - no compatibility
6967           check can be made if the expression has no type.
6968         * ch-expr.c (expand_packed_set): Fix endless loop - increment
6969           the loop variable.
6970           (fold_set_expr): Fix two other endless loops by passing
6971           correct parameters to unpack_set_constructor.
6972         * varasm.c: Standardize 'for' loop.
6973
6974 Sun Oct 17 12:16:21 1993  Bill Cox  (bill@cygnus.com)
6975
6976         * c-typeck.c (output_init_element): Handle initializer for
6977           array with non-zero lower index bound.
6978
6979 Sat Oct 16 16:48:48 1993  Per Bothner  (bothner@cygnus.com)
6980
6981         * ch-expr.c (finish_chill_binary_op):  Use TREE_SET_CODE
6982         to change TREE_CODE.
6983
6984 Sat Oct 16 08:07:17 1993  Bill Cox  (bill@rtl.cygnus.com)
6985
6986         * ch-expr.c (finish_chill_binary_op): Disable
6987           rough-draft code, not intended for release.
6988
6989 Fri Oct 15 21:44:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
6990
6991         * expr.c (store_constructor): use PROTO for pack_set_constructor
6992
6993 Fri Oct 15 10:30:09 1993  Bill Cox  (bill@cygnus.com)
6994
6995         * ch-expr.c (finish_chill_binary_op): Activate some 
6996           type-setup code.
6997         * expr.c (store_constructor): Subtract arrays minimum element.
6998           Makes orientexpress work.
6999
7000 Fri Oct 15 09:26:24 1993  Bill Cox  (bill@cygnus.com)
7001
7002         * ch-convert.c, ch-expr.c: Add externs so it'll compile.
7003         * ch-tree.def: Add BASED_DECL definition.
7004
7005 Thu Oct 14 13:20:02 1993  Bill Cox  (bill@cygnus.com)
7006
7007         * ch-actions.c (build_chill_cause_exception): Pass the 
7008           *address* of the filename string to the runtime routine,
7009           rather than passing the string by value.
7010
7011 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7012
7013         * expr.c (store_constructor):  Use a (usually) more efficient
7014         algorithm for setting SET types.
7015
7016 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7017
7018         Changes to better support 1984 version of Chill, which doesn't
7019         really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
7020         * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings):  New flag.
7021         * ch-typeck.c (chill_similar):  Support flag_old_strings.
7022         * ch-convert.c (convert_to_boolean):  Generalize code to
7023         convert singleton bitstring to Boolean.
7024         * ch-convert.c (convert):  Use string_one_type_node.
7025         * ch-convert.c (convert):  Add code to convert Boolean to BOOLS(1).
7026         * ch-convert.c (convert):  In code that converts fixed string to
7027         varying use new 'e' variable, rather than original 'expr' variable.
7028         Allows cascaded conversions:  CHAR -> CHARS(1) -> varying CHARS.
7029         * ch-decl.c (string_type_node, const_string_type_node,
7030         int_array_type_node), ch-tree.h:  Removed.
7031         * ch-decl.c (string_one_type_node, bitstring_one_type_node,
7032         bit_zero_node, bit_one_node), ch-tree.h:  New globals tree nodes.
7033         * ch-decl.c (init_decl_precessing):  Remove some junk.
7034         * ch-expr.c (build_generalized_call):  If flag_old_strings,
7035         treat string index as string slice.  Also, better error checking.
7036
7037         Added support for (some kinds of) BASED declarations.
7038         * ch-tree.def (BASED_DECL):  New tree code.
7039         * ch-decl.c (lookup_name):  Implement BASED_DECL using
7040         build_chill_indirect_ref.
7041         * ch-decl.c (do_based_decls):  Make a BASED_DECL.
7042         * ch-parse.y:  Call do_based_decls for DCL ... BASED(...).
7043         * ch-satisfy.c (safe_satisfy_decl):  Handle BASED_DECL.
7044
7045         Improve handling of set binary operations.
7046         * ch-expr.c (expand_packed_set):  New function.
7047         (fold_set_expr):  Re-write.  Simpler, more general algorithm.
7048         (build_set_expr):  Only used for comparsions now.
7049         (finish_chill_binary_op):  Handle set ops better (more directly).
7050         (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
7051         fold_set_ne, fold_set_xor):  Removed.  No longer needed.
7052
7053         * ch-decl.c:  Remove calls to allocate_lang_decl.
7054         * ch-tree.c (build_string_type):  If const length, layout immediately.
7055
7056 Mon Oct 11 17:23:02 1993  Bill Cox  (bill@cygnus.com)
7057
7058         * ch-decl.c (init_decl_processing): Define __whoami and
7059           __wait_buffer functions.
7060         * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
7061         * ch-parse.y (sigdef): Add new add_taskstuff_to_list 
7062           parameter.
7063         * ch-tasking.c (get_tasking_code): Search tasking_list for
7064           tasking code name match.  Can't use lookup_name.
7065           (get_task_name): New function.
7066           (generate_tasking_code_variable): Return if pass 1.
7067           Always update *tasking_code_ptr.
7068           (build_process_header): Add new add_taskstuff_to_list
7069           parameter.
7070           (tasking_setup): New code to unpack the tasking
7071           list entries no built by ..
7072           (add_taskstuff_to_list): Accept new parameter,
7073           add it to the list.
7074         * ch-tree.h (add_taskstuff_to_list): Add new 
7075           parameter.
7076
7077 Mon Oct 11 14:54:50 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7078
7079         * Makefile.in (cc1chill):  Also link in $(BC_OBJS).
7080
7081 Mon Oct 11 06:28:39 1993  Doug Evans  (dje@canuck.cygnus.com)
7082
7083         * ch-decl.c (flag_allow_single_precision): New global,
7084         from ss-931002 merge.
7085
7086 Sun Oct 10 09:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7087
7088         * Makefile.in: Remove references to chill.in and
7089           ch-hash.h.  Remove bogus cc1chil : chill
7090           dependency.
7091
7092 Fri Oct  8 16:00:04 1993  Bill Cox  (bill@cygnus.com)
7093
7094         * ch-actions.c (adjust_parm_or_field): Add parameter to 
7095           decl_temp1 call.
7096         *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
7097           decl_temp1 call.
7098           (decl_temp1): Add parameter to signal 'make this external'.
7099           (shadow_record_fields): Add parameter to decl_temp1 call.
7100         * ch-expr.c (chill_expand_case_expr): Add parameter
7101           to decl_temp1 call.
7102         * ch-grant.c (chill_finish_compile): Add code to spoof 
7103           get_file_function_name,  so we don't get __tmp_s1_code,
7104           for example, as the module-level code's name.
7105         * ch-loop.c (build_temporary_variable, begin_for_range,
7106           init_loop_counter): Add parameter to decl_temp1 call.
7107         * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
7108           for easier maintenance.
7109           (sendaction): Rewrite to receive SIGNALNAME token correctly
7110           from ch-lex.l (name_type_signal).
7111           (signaldef): Don't clear quasi_signal here.
7112         * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
7113           to make the variable public (visible to linker).
7114           (build_start_process): Add parameter to decl_temp1 call.
7115           (tasking_setup): Comment out band-aid hack which calls
7116           generate_tasking_code_variable.  Shouldn't be necessary.
7117           Use null_pointer_node rather than integer_zero_node in 
7118           entry_point.  More rewrites.
7119           (build_signal_descriptor): Name the non-signal in the error msg.
7120           Rewrite the building of the signal envelope - avoid seg fault.
7121           Add parameter to decl_temp1 call.
7122           (expand_send_signal, build_receive_case_start,
7123           build_receive_case_end, build_buffer_descriptor): Add parameter
7124           to decl_temp1 call.
7125         * ch-tree.h: Add parameter to decl_temp1 proto.
7126         * chill: Add new CHILL frontend directory
7127
7128 Tue Oct  5 13:51:27 1993  Bill Cox  (bill@cygnus.com)
7129
7130         * ch-grant.c: Standardize indentation.
7131         * ch-parse.y (end_function): Unconditionally poplevel for processes.
7132         * ch-tasking.c (build_process_header): Unconditionally pushlevel.
7133           (generate_tasking_code_variable): Stop using pass number to
7134           force a one-time action.
7135         * ch-tree.h (build_chill_slice): Delete proto since function went static.
7136
7137 Mon Oct  4 13:52:36 1993  Bill Cox  (bill@cygnus.com)
7138
7139         * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
7140           called here in both passes.  Set DECL_ASSEMBLER_NAME.
7141           (lookup_name_for_seizing): Move NULL test forward to prevent
7142           seg fault.
7143         * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
7144           to prevent a seg fault in telebras/dynsto.ch.  Make indentation
7145           changes.
7146         * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
7147           (build_send_signal): Rename to expand_send_signal.
7148           (generate_tasking_code_variable): Return the var's decl.
7149           (build_signal_struct_type): Move generate_tasking_code_variable
7150           and add_taskstuff_to_list calls to ..
7151         * ch-parse.y (sigdef): .. here.  And make indentation changes.
7152         * ch-tree.h: Rename functions, add return values.
7153
7154 Mon Oct  4 15:43:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7155
7156         * ch-convert.c (digest_constructor):  Convert element to element_type.
7157         * ch-parse.y (end_function):  Use DECL_ARGUMENTS to check
7158         for parameterless process.
7159
7160 Fri Oct  1 13:57:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7161
7162         * ch-typeck.c (chill_location):  New function.
7163         Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
7164         * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c:  Use
7165         chill_location instead of lvalue_p.
7166
7167
7168 Fri Oct  1 11:28:42 1993  Bill Cox  (bill@cygnus.com)
7169
7170         * ch-convert.c (convert): Back out Michael's changes, unintentionally
7171           checked in.
7172         * ch-lex.l (handle_use_seizefile_directive): No longer downcase
7173           seize file names.
7174         * ch-parse.y (sendaction): Fix a couple of seg faults.  Comment out
7175           SEND BUFFER processing for now.
7176         * ch-tree.h: Fix comment.
7177
7178 Thu Sep 30 17:00:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7179
7180         * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P):  New macros,
7181         for recognizing singleton strings.
7182         * ch-tree.h (MARK_AS_STRING_TYPE):  New macro.
7183         * ch-tree.c (build_string_type, build_bitstring_type),
7184         ch-convert.c (convert):  Use it.
7185         * ch-typeck.c (build_chill_slice):  Take length rather than upper
7186         bound.  This makes it easier to recognize that A(X UP LENGTH)
7187         really has fixed length.  Also, if the argument is string,
7188         mark the slice as a string too.  Also, handle varying strings.
7189
7190         * ch-typeck.c (conflate_singleton_strings):  New global.
7191         * ch-typeck.c (chill_similar):  If conflate_singleton_strings is
7192         set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
7193         to CHAR/BOOL, as required by the 1984 version of Z.200.
7194         * ch-convert.c (convert_to_char):  Convert CHARS(1) to CHAR.
7195         * ch-convert.c ( build_array_type_for_scalar):  If input is string,
7196         so is output.
7197         * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h:  Removed.
7198         * ch-convert.c (convert):  Convert CHAR to CHARS(1).
7199
7200         This fixes 'X // := Y' and is also a general simplification.
7201         * ch-actions.c (chill_expand_assignment):  Convert 'LHS OP := RHS'
7202         to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
7203         Also, call save_expr on RHS if a multiple assignment.
7204         * ch-parse.y (assignaction):  Therefore, no longer need to call
7205         stabilize_reference on RHS.
7206         * ch-typeck.c (build_chill_modify_expr), ch-tree.h:  Remove
7207         modifycode parameter.  Make it the caller's responsibility to
7208         handle <assigning operator>.
7209         * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
7210         ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
7211
7212 Wed Sep 29 18:02:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7213
7214         * ch-lang.c (string_index_type_dummy), ch-tree.h:  New variable.
7215         * ch-decl.c (integer_minus_one_node), ch-tree.h:  New variable.
7216
7217         * ch-parse.y (arrayindex: modename):  Remove useless code.
7218         * ch-satisfy.c (satisfy):  Don't gag on string_index_type_dummy,
7219         * ch-tree.c (build_string_type):  Pass string_index_type_dummy as
7220         the parent type of the index range.
7221         * ch-typeck.c (layout_chill_range_type):  Recognize and handle
7222         string_index_type_dummy - specifically allow an empty range.
7223
7224 Wed Sep 29 13:36:23 1993 1993  Bill Cox  (bill@cygnus.com)
7225
7226         * ch-convert.c (convert_to_reference): Check for loc-identity
7227           mismatches correctly (and remove one of those chill_compatible
7228           calls).
7229         * ch-decl.c (decl_tasking_code_var): New function, called from
7230           push_extern_process and push_extern_signal.
7231         * ch-parse.y (end_function): Delete parameter.  Check current_function_decl
7232           whether it's actually a process, and whether it has parameters.
7233           Make Michael's change simplifying the pass 2 test, preventing a seg
7234           fault.
7235           (procedure, process): Change calls to end_function, remove
7236           code saving value from build_process_header.  Delete redundant chill_
7237           phrases from some function calls.  
7238         * ch-tasking.c: Remove some redundant _chill phrases from function
7239           names.
7240         * ch-tree.h: Remove some redundant _chill phrases from function
7241           names.  Add the CH_VARYING_ARRAY_TYPE macro, call it from
7242           all relevant places.
7243         * ch-typeck.c: Use the new macro.  Cast TREE_CODEs to chill_tree_code.
7244
7245 Wed Sep 29 13:07:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7246
7247         * ch-convert.c (convert_to_reference):  Remove redundancies.
7248         * ch-convert.c (convert):  Handle convert_to_reference
7249         with a recursive convert call.
7250         * ch-decl.c (do_decl): Add missing compatibility-checking
7251         of initializer (don't depend on convert).
7252
7253 Tue Sep 28 00:02:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7254
7255         * ch-tree.h (CH_LOCATION_P):  New macro.
7256         * ch-typeck.c (layout_chill_range_type):  Fix call to
7257         type_for_size, when figuring out a defaulted parent type.
7258         * ch-expr.c (build_chill_lower, build_chill_sizeof):  Check
7259         for TREE_CODE_CLASS != 't' rather than == 'd'.
7260         * ch-expr.c (build_chill_function_call):  Use CH_LOCATION_P
7261         to check for location, rather than TYPE_CODE_CLASS == 'd'.
7262
7263         * ch-tree.c (build_string_type):  Make 2-pass safe.  Also,
7264         change parameter to be length, not index type.
7265         * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7266         (build_chill_string): Modify callers of build_string_type accordingly.
7267         * ch-lex.l (check_newline):  Don't look for # directive inside a
7268         C-style comment.
7269         * ch-grant.c (grant_array_type):  Make more robust for char-
7270         and bit-strings (allow non-constant sizes).  Change parameters
7271         and return types.  (raw_decode_mode):  Use grant_array_type
7272         for bitstrings.  (otherwise):  Fix grant_array_type callers.
7273
7274 Mon Sep 27 16:57:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7275
7276         Remove changes of Sep 15.
7277         * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7278         * ch-typeck.c (chill_similar):  Don't allow a singleton
7279         powerset to be similar to its domain.
7280         * ch-convert.c (convert_to_boolean):  Don't convert a singleton
7281         SET_TYPE constructor to a Boolean.
7282
7283         * ch-actions.c (chill_expand_assignment):  Handle IN_EXPR on
7284         LHS of assignment, which is what we're current (temporarily?) using.
7285
7286 Mon Sep 27 06:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7287
7288         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7289           ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7290           ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7291           -Wall cleanup.  Add prototypes where missing.
7292           Delete unused variables.  Cast uses of tree_codes
7293           to chill_tree_code, which they are.
7294
7295 Sun Sep 26 13:09:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7296
7297         * ch-decl.c (do_decl): Save initializer in pass zero
7298           case also.
7299         * ch-lex.l: Fix comments, indentation.
7300         * ch-parse.y: Standardize error messages to use
7301           uppercase for CHILL keywords rather than quoting them.
7302           Suggestion from docs department.
7303         * ch-tasking.c: Pervasive changes to get processes to
7304           compile and START.
7305         * ch-tree.h: Delete prototypes for functions whic
7306           I made static inside ch-tasking.c.
7307
7308 Sun Sep 26 02:40:02 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7309
7310         * ch-lex.l (yywrap): Call `check_newline' in case the file
7311         started with a line directive.
7312
7313 Sat Sep 25 13:54:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7314
7315         * ch-decl.c:  Expand pre-amble comment.
7316         * ch-decl.c (struct scope, push_module):  Use new field
7317         tail_chain_module to build child-module list in order.
7318         (Just to make compiler debugging a little less confusing.)
7319
7320         * ch-decl.c (struct scope):  New field weak_decls.
7321         * ch-decl.c (find_implied_types):  New interface.  Now pre-pend
7322         new enum types to a given input list.  This makes it easier to
7323         avoid duplicates, which should at least be more efficient.
7324         Also, handle FUNCTION_DECL.
7325         * ch-decl.c (bind_saved_names):  Removed.  Distribute its
7326         functionality over new functions (push_scope_decls, pop_scope_decls,
7327         build_implied_names, bind_sub_modules).  The goal (which seems to
7328         have been more-or-less attained) was to fix weak name handling.
7329         * ch-decl.c (poplevel):  Use new function pop_scope_decls.
7330
7331         * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7332         Use build_decl directly, rather than grok_chill_fixedfields
7333         (which depends on ignore_exprs and has more overhead).
7334         * ch-tasking.c (build_signal_struct):  Construct the type
7335         only in pass 1.
7336         * ch-typeck.c (build_chill_slice):  Use my_build_array_ref rather
7337         than build_array_ref (which does C-specific "optimizations").
7338         (Hence move my_build_array_ref up earlier in the file.)
7339
7340 Sat Sep 25 03:47:28 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7341
7342         * ch-tasking.c: Declare static variable `void_ftype_void'.
7343         (chill_tasking_init): Initialize `void_ftype_void' here.
7344         (build_tasking_struct): Use, don't declare `void_ftype_void'.
7345         (generate_tasking_code_variable): Call `do_decl', not
7346         `decl_temp1' to declare TASKING_CODE_NAME.
7347         (tasking_setup): Drop into 1-pass mode so that all
7348         tasking-related declarations are installed in the global
7349         scope.  Use correct CHILL types for initializers (since
7350         ptr_type_node doesn't have the right meaning for CHILL).
7351         Also, call `do_decl' instead of `decl_temp1' for
7352         `init_struct'.
7353         (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7354         `chill_finish_compile' in sync between passes.
7355
7356         * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7357         declarations on pass zero.  Keep obstacks in sync, and always
7358         call `finish_decl' for pass zero declarations.
7359         (push_chill_extern_function): Keep obstacks in sync, and always
7360         call `finish_decl' for pass zero declarations.
7361         (build_enumerator): Ditto.
7362         (grok_chill_variantdefs): Change PASS test to exclude only
7363         pass one.
7364         (finish_struct): Ditto.
7365         * ch-expr.c (build_chill_component_ref): Ditto.
7366         (build_chill_binary_op): Ditto.
7367         * ch-tree.c (build_powerset_type): Ditto.
7368         (build_bitstring_type): Ditto.
7369         * ch-typeck.c (build_chill_range_type): Ditto.
7370         (build_chill_struct_type): Ditto.
7371
7372         * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7373         extra pushing and popping of obstacks.
7374
7375         * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7376         on IO_DESCRIPTOR.  This causes IO_DESCRIPTOR to be laid out.
7377
7378         * ch-grant.c (chill_finish_compile): Clear out both
7379         MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7380         from pass one.
7381
7382         * ch-parse.y (rccase_label): Add NAME rules so that pass one
7383         works w/o knowing we're parsing a signal.  Simplify SIGNALNAME
7384         rules since we only get SIGNALNAME tokens in pass two.
7385         (sendaction): Ditto.
7386         * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7387         BUFFERNAME on pass two.  The grammar now handles this.
7388         * ch-decl.c (lookup_remembered_decl): Deleted.
7389
7390 Fri Sep 24 15:27:13 1993  Bill Cox  (bill@cygnus.com)
7391
7392         * ch-decl.c (lookup_remembered_names): Removed.  It was being
7393           misused in ch-lex.l.
7394         * ch-lex.l (name_type_signal): Revert last change.  Basically,
7395           we cannot use the C typedef/variable name trick in CHILL, due
7396           due to the language's 2-pass nature.
7397         * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7398           a seg fault.
7399         * ch-tree.h (lookup_remembered_name): Comment out the prototype. 
7400
7401 Fri Sep 24 11:01:31 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7402
7403         * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7404           checks so the pass == 0 case is handled for built-in types.
7405           (push_modedef): Add check for error_mark_node.
7406           (lookup_remembered_decl): New function.
7407           (pushlevel, poplevel) Change pass checks.
7408           (pushdecl): Check type as well for NULL.
7409           (build_enumerator): Handle pass == 0 case.
7410         * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7411           during pass 1.
7412         * ch-parse.y: Set pass to zero to indicate initial decl processing.
7413           Replace NAME references with SIGNALNAME references.
7414           (startaction): Only check copy number if not ignoring actions.
7415           Always call build_chill_start_process.
7416           (optstartset): Don't lookup the instance name.
7417         * ch-tasking.c (generate_tasking_code_variable): Replace
7418           do_decl call with decl_temp1 call.
7419           (build_chill_start_action): Check for ignore_actions here.
7420           (build_tasking_message_type): Layout the type.
7421           (rc_state_type): New structure to keep nested receive-case
7422           info in.
7423           (build_chill_receive_case_start, build_chill_receive_case_end):
7424           Use the new struct.
7425           
7426
7427 Fri Sep 24 04:19:15 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7428
7429         * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7430         should be a _DECL, not an IDENTIFIER_NODE.
7431
7432 Thu Sep 23 18:18:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7433
7434         * ch-decl.c (find_implied_types):  Handle VAR_DECLs.
7435
7436         * ch-decl.c (print_lang_identifier):  Print IDENTIFIER_OUTER_VALUE.
7437         * ch-actions.c (chill_expand_result):  Allow value-less RETURN.
7438         * ch-expr.c (resolve_component_ref):  Recognize error_mark.
7439
7440         * ch-convert.c (digest_constructor):  Handle a nested powerset tuple.
7441         * ch-satisfy.c (satisfy):  Use return value of layout_chill_range_type.
7442         * ch-typeck.c (chill_similar):  Repeatedly get parent modes
7443         of ranges, not just once.
7444         * ch-typeck.c (chill_root_resulting_mode), ch-tree.h:  New function.
7445         * ch-typeck.c (layout_chill_rang_type):  Re-do type-checking
7446         to follow Blue Book better (check for Compatibility).
7447
7448         * ch-tree.h (CH_ROOT_RESULTING_MODE):  New macro.
7449         * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7450         New variables.  The latter replaces in_seizefile.
7451
7452         Changes to store in the new DECL_SEIZEFILE field each seize
7453         ALIAS_DECL the name in the most recent use_seize_file directive.
7454         (This requires that use_seize_file directives written to the
7455         grant file be written before the SEIZEs that need it.)
7456         Allow clashing declarations granted into the global scope
7457         (produce a warning), but remember the seizefile case from
7458         (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7459         The a SEIZE will select the granted decl that matches its
7460         DECL_SEIZEFILE (in other words:  grants from the most recent
7461         use_seize_file will be preferred).
7462         * ch-tree.h (DECL_SEIZEFILE), ch-tree.def:  New macro.
7463         * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE):  Renamed
7464         to outer_value, IDENTIFIER_OUTER_VALUE.
7465         Changes to cause the use_seize_file directives to be written
7466         out in order as they're seen in source.
7467         * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7468         Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7469         * ch-lex.l (handle_use_seizefile_directive):  Modify appropriately.
7470         Don't call grant_use_seizefile.
7471         * ch-lex.l (mark_use_seizefile_written):  New function.
7472         * ch-grant.c (decode_decl):  Write out use_seize_file directive,
7473         if needed, before writing a seize declarations.
7474         * ch-decl.c (pop_module):  Handle decls granted into the global
7475         module specially, setting IDENTIFIER_OUTER_VALUE.
7476         * ch-decl.c (lookup_name_for_seizing):  Check IDENTIFIER_OUTER_VALUE.
7477
7478 Thu Sep 23 19:05:37 1993  Bill Cox  (bill@cygnus.com)
7479
7480         * ch-decl.c (push_chill_extern_process): Delete unused variables,
7481           declare the process' tasking_code variable as external.
7482         * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7483           the process header.
7484         * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7485           to (signaldef).
7486         * ch-tree.h: Add prototype.
7487         * expr.c (store_constructor): Emergency first-aid.  Rewrite later.
7488
7489 Thu Sep 23 12:57:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7490
7491         * ch-expr.c (build_chill_function_call):  Move possible call to
7492         chill_start_module_code until we know we're not calling a builtin.
7493         * ch-decl.c (save_expr_under_name):  Use pushdecllist,
7494         not proclaim_decl (which provide for popping the decl).
7495         * ch-parse.y (optname):  Also allow TYPENAME.
7496
7497 Thu Sep 23 09:18:35 1993  Bill Cox  (bill@cygnus.com)
7498
7499         * ch-decl.c (print_lang_decl): Make weak name output more standard.
7500           (print_lang_identifier): Make signal-data flag output more standard.
7501           (push_chill_extern_process): Pass correct arg tree to
7502           push_chill_extern_function.
7503           (push_syn_decls, fixup_unknown_type, chill_modes_equiv): 
7504           Standardize function header layouts (Makes the tcov script 
7505           work better).
7506         * ch-except.c (chill_finish_on): Standardize function header.
7507         * ch-expr.c (fold_set_or): Standardize function header.
7508         * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7509           function headers.
7510           (decode_constant): Make sure that alpha operators are surrounded
7511           with whitespace.
7512         * ch-parse.y: Spell Z.200 correctly in comments.
7513
7514 Wed Sep 22 10:42:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7515
7516         * ch-expr.c (build_chill_addr_expr), ch-tree.h:  New function.
7517         * ch-parse.y, ch-decl.c (shadow_record_fields):  Use it.
7518         * ch-lex.l (handle_use_seizefile_directive):  Don't emit
7519         use_seize_file directive if in_seizefile.
7520
7521         * ch-convert.c (digest_structure_tuple):  Fix code that checks
7522         for excess init values.
7523         * ch-decl.c (layout_chill_variants):  Move increment of nlabels
7524         inside the proper loop.
7525         * ch-grant.c (print_struct):  Add missing loop for tag_list.
7526         (print_struct):  Look for variant fields by checking for a
7527         UNION_TYPE, not a NULL name, since we must use a dummy name.
7528         * ch-parse.y (structured_variable):  Various fixing.
7529         * ch-decl.c (shadow_record_fields):  Rename arg decl -> struct_val.
7530
7531         * ch-satisfy.c (safe_satisfy_decl):  Disable copying of modes
7532         for NEWMODE (and hence novelty checking), until we figure out
7533         a better way.
7534
7535         * ch-except.c (finish_handler_array):  Use null_pointer_node,
7536         not integer_zero_node (which fails to type-check).
7537
7538         * c-typeck.c (get_constructor_element_type):  New function.
7539         * ch-tree.h (CH_NOVELTY_FLAG):  Now also used in TYPE_DECLs.
7540         (CH_NOVELTY):  Redefined to call new function chill_novelty.
7541         (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE):  Removed.
7542         * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7543         Take extra output parameter (for M, as in M-value class).
7544         * ch-typeck.c (chill_novelty):  New function.  (Also de-references.) 
7545
7546         * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7547         New functions.  Handle 2-pass and variant records.
7548         * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7549         * ch-satisfy.c (satisfy, case COMPONENT_REF):
7550         New case, call resolve_component_ref.
7551
7552         * ch-expr.c (build_generalized_call):  Extract single arg from
7553         arg list before calling build_chill_cast.
7554
7555         * ch-parse.y (defining_occurrence_list):  New non-terminal.
7556         Use it to replace locnamelist, synnames, and modenames.
7557         * ch-parse.y:  Re-write parsing of variant records.
7558
7559         * ch-decl.c (grok_chill_variantdefs):  Now return a FIELD_DECL
7560         rather than just its type.
7561         * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7562         Change callers appropriately.
7563
7564         * ch-tree.h (TYPE_TAG_VALUES):  Add an extra level of TREE_LIST,
7565         to support multiple tag fields.
7566         * ch-grant.c  (print_struct), ch-decl.c (layout_chill_variants):
7567         Support multiple tag fields.
7568
7569         * ch-convert.c (remove_tree_element, digest_structure_tuple):
7570         New functions, to digest structure tuples, without calling the
7571         code in c-typeck.c.  Handles variant tuples and tags (partially).
7572         * ch-convert.c (digest_constructor, convert):  Call
7573         digest_structure_tuple when appropriate.
7574         * ch-convert.c (digest_constructor): Re-arrange a bit.
7575
7576         * ch-decl.c (push_modedef):  Defer copying of tree until ...
7577         * ch-satisfy (safe_satisfy_decl): ... here.
7578
7579         * ch-decl.c (getdecls):  Add kludge to help dbxout_init.
7580
7581 Tue Sep 21 14:19:11 1993  Bill Cox  (bill@cygnus.com)
7582
7583         Partial tasking update - not done yet.
7584         * ch-actions.c: Comments, indentation.
7585         * ch-decl.c (push_chill_extern_process): No longer need to
7586           reformat the arg list for make_process_struct.
7587           (pop_module): Don't seg fault on null DECL_NAME.
7588           (handle_one_level): Error, not warning if tree not recognized.
7589           (shadow_record_fields): Rename formal param for readability.
7590         * ch-grant.c (decode_decl): Write proper header for a process.
7591         * ch-parse.y (quasi_pdef): process now uses processparlist,
7592           which doesn't change with the passes.
7593           (quasi_locdec): Call build_chill_reference_type to defer
7594           doing the type's layout.
7595           (processpar): Use paramnamelist, but reformat it into a
7596           list of identifiers in pass 2, so a processpar is the same
7597           structure in both passes.
7598           (locdec): Call build_chill_reference_type to defer doing the
7599           type's layout.
7600         * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7601           build the decl.  Only update the variable's tree in pass 2.
7602           (make_process_struct): Call build_chill_reference_type to defer
7603           doing the type's layout.
7604           (build_process_header): New code to call make_process_struct.
7605           New pass-2 code to make a PARM_DECL for start_chill_function.
7606           Pass a void_type_node, not a NULL_TREE for an empty list.
7607           Get input for shadow_record_fields from current_function_decl.
7608           (build_buffer_decl): Call do_decl not decl_temp1.
7609         * ch-typeck.c: Reindent to standards.
7610         * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7611
7612 Mon Sep 20 12:00:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7613
7614         * ch-typeck.c (classify_chill_expr):  An expression with a
7615         REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7616         * ch-actions.c (adjust_parm_or_field):, ch-tree.h:  Change last
7617         parameter, so we can reliably recognize LOC parameters.
7618         * ch-tasking.c, ch-expr.c:  Change callers appropriately.
7619
7620 Sun Sep 19 22:26:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7621
7622         * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE):  New macros.
7623         * ch-typeck.c (chill_referable, chill_read_compatible):  New functions.
7624         * ch-typeck.c (chill_compatible):  Allow un-resolved CONSTRUCTOR
7625         (with NULL TREE_TYPE), when reasonable.  (Simplifies callers.)
7626         Also, handle case of expr being of reference class.
7627         * ch-actions.c (adjust_parm_or_field):  Major re-arrange
7628         to handle conversions and LOC args better.
7629         * ch-actions.c (chill_expand_assignment):  Simplify conversions.
7630         * ch-expr.c (build_chill_function_call):  If needed, call
7631         chill_start_module_code.
7632         * ch-decl.c (declare_predefined_file):  New function, used
7633         to pre-define stdin, stdout, and stderr.
7634         * ch-inout.c (chill_stdio_p):  Change names of predefined
7635         files from chill-stdin etc to plain stdin (and change their types).
7636         * ch-lex.l:  Remove some obsolete stuff.
7637         * ch-convert.c (convert):  Move conversion from reference to
7638         to beginning of convert() so other conversion can work better.
7639         Also, remove bogus direct setting of TREE_TYPE.
7640
7641 Fri Sep 10 12:23:41 1993  Wilfried Moser  (fs_moser@cygnus.com)
7642
7643         * Makefile.in: Change installation of the chill script. gcc will
7644           be called always with the full path. That made problems when
7645           somebody was using chill but didn't have the installation
7646           directory in PATH.
7647         * ch-parse.y: Change parsing of WRITETEXT action.
7648         * ch-tree.h: Add some new prototypes according to the
7649           (partial) implementation of WRITETEXT.
7650         * ch-typeck.c: Add new function chill_varying_string_type_p. This
7651           functions checks a type for being CHAR(n) VARYING.
7652         * ch-decl.c (init_decl_processing): Add new built-in functions
7653           _writestring and _writeunixstd.
7654           Add call to  build_chill_io_list_type in ch-inout.c.
7655         * ch-inout.c (build_chill_writetext): Add some code there.
7656           Add new function build_chill_io_list_type.
7657           Add new static function chill_stdio_p. This function checks
7658           the text argument for being chill_stdin, chill_stdout or
7659           chill_stderr.
7660
7661 Fri Sep 17 22:02:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7662
7663         * ch-decl.c (push_modedef):  Fix TYPE_MAIN_VARIANT thinko.
7664
7665 Thu Sep 16 18:38:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7666
7667         * ch-decl.c (allocate_lang_decl):  Do nothing.
7668         * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7669         No longer used;  remove.
7670
7671         * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7672         (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7673         (make_chill_variants, layout_chill_variants):  Add (initial) part
7674         of support for multiple tags.
7675         * ch-decl.c (lookup_tag_fields):  New function.
7676         * ch-parse.y (stmt_count):  Not used; removed.
7677         * ch-parse.y (mode2):  Clear current_fieldlist before
7678         parsing STRUCT fields;  restore afterwards.
7679
7680         * ch-parse.y (push_action):  Moved to ch-actions.c.
7681
7682 Wed Sep 15 18:19:37 1993  Bill Cox  (bill@rtl.cygnus.com)
7683
7684         * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7685           constructor to a boolean.
7686
7687 Wed Sep 15 17:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7688
7689         * ch-decl.c (push_modedef): Enable novelty-setting code.
7690         * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7691         * ch-typeck.c (chill_similar): Add checking of singleton
7692           powerset against its base type.
7693
7694 Tue Sep 14 17:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7695
7696         * ch-actions.c (adjust_parm_or_field): Create a
7697           temporary for an non-referencable actual parameter
7698           passed to a LOC formal parameter.
7699           (chill_expand_assignment): Correct compatibility checking.
7700
7701         * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7702         * ch-parse.y (opsigdest): Only check for process name
7703           in pass 2, when we know.
7704         * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7705         * ch-typeck.c: Fix comment.
7706
7707 Mon Sep 13 17:33:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7708
7709         * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7710         decl_seen_p, processed_decls, allocated, nr_decls):  Removed
7711         no-longer-useful functions and variables that used to guard
7712         against writing a decl multiple times.  Since we now just
7713         go through the decl list linearly, that is no longer an issue.
7714         * ch-satisfy.c (safe_satisfy_decl):  Handle missing current_module.
7715
7716         * ch-decl.c (start_chill_function):  Clear DECL_ASSEMBLER_NAME.
7717         Don't make TREE_PUBLIC.  Don't generate rtl yet.
7718         * ch-decl.c (pop_module):  If a decl is granted, set TREE_PUBLIC,
7719         and its DECL_ASSEMBLER_NAME.
7720         * ch-decl.c (fix_identifier):  New function.
7721         * ch-grant.c (grant_one_decl):  Don't set TREE_PUBLIC.
7722         * ch-tree.h (struct module):  New field prefix_name.
7723         * ch-satisfy.c (safe_satisfy_decl):  If assembler_name isn't
7724         set, prefix it by the module name(s).
7725         * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7726         Call make_function_rtl if needed and !LOOKUP_ONLY.
7727         * ch-typeck.c (chill_similar):  Flesh out substantially.
7728         * ch-typeck.c (chill_compatible):  Re-structure.
7729
7730         * ch-actions.c (adjust_parm_or_field):  Use CH_COMPATIBLE
7731         instead of chill_comptypes to compare actual and formal.
7732
7733 Sun Sep 12 21:10:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7734
7735         * ch-parse.y (labellist):  Don't do anything if ignore_exprs.
7736
7737         * c-typeck.c (output_pending_init_elements): Handle
7738         !constructor_incremental case of filling in empty positions.
7739         (Patch by Jim Wilson.  CYGNUS LOCAL until we have approval.)
7740         * ch-decl.c (pop_module):  Don't grant a seized name.
7741         * ch-grant.c (decode_constant):  Support CALL_EXPR.
7742         * ch-tree.c (build_bitstring_type):  Don't try to fold non-constant
7743         size if pass==1 (since it may be an unsatisfied name).
7744
7745
7746 Sun Sep 12 18:06:23 1993  Bill Cox  (bill@rtl.cygnus.com)
7747
7748         2-pass fixes for processes.  Partially done.
7749         * ch-actions.c (chill_expand_assignment): Add real
7750           novelty-checking sketch, $ifdef'd out for now.
7751         * ch-decl.c: Generally fix indentation.  Move tasking
7752           init code from init_decl_processing to ch-tasking.c.
7753           Delete ObjC-related cruft.  More accurate parameter name
7754           for shadow_record_fields.  Move debug_scope before
7755           its first call.
7756         * ch-expr.c (build_chill_function_call): Return if not
7757           pass 2.
7758         * ch-grant.c (print_proc_tail): Avoid trying to format
7759           a VOID return type, or using a NULL pointer.
7760           (decode_decl): Minor changes for PROCESS arg access.
7761         * ch-lang.c (lang_decode_option): Use -itu flag to
7762           enable 'pedantic' mode.
7763         * ch-lex.l (init_lex): Initialize compiler-directive
7764           variable trees.
7765           (name_type-signal): Disable the returning of SIGNAL and BUFFER
7766           name tokens.
7767         * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
7768           All uses renamed also.
7769           (end_function): Always poplevel, not just in pass 2.
7770           (quasi_pdef): Check for end-label matching.
7771           (quasi_formparlist): Write more clearly.
7772           (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
7773           guards.
7774           (rccase_label, sendaction): Use NAME, not SIGNALNAME 
7775           or BUFFERNAME.
7776           (process): Handle like procedure.
7777           (mode): Add SIGNAL as a generic signal parameter.  This
7778           is a client-specific extension, so pedantic is checked.
7779         * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
7780         * ch-tree.h (CH_NOVELTY): Make it an lvalue.
7781         * ch-typeck.c: Fix comment.
7782
7783 Sun Sep 12 15:03:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7784
7785         * c-typeck.c (digest_init):  Compare types using comptypes
7786         instead of comparing pointers.  (Helps Chill front end.)
7787         * ch-expr.c (finish_chill_binary_op): 
7788         * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
7789         ch-expr.c (finish_chill_binary_op):  For now, prefer IN_EXPR
7790         over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
7791         (incomplete support for variable fields, and possible bug in
7792         optimize_bit_field_compare).
7793         * ch-expr.c (finish_chill_binary_op):  Fix type-checking
7794         and appropriately coerce operands for IN_EXPR and comparsions.
7795         * expr.c (expand_expr, case ARRAY_REF):  Coerce lower bound (if
7796         non-zero) to sizetype before subtraction.
7797         * expr.c (expand_expr):  Remove Chills-specific calls to
7798         __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
7799
7800 Fri Sep 10 15:47:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7801
7802         * ch-tree.def (UNDEFINED_EXPR):  New kind of expression.
7803         * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
7804         ch-convert.c (convert):  Handle UNDEFINED_EXPR.
7805
7806         * ch-expr.c (build_char_array_expr):  Move CONCAT_EXPR support to ...
7807         * ch-expr.c (build_concat_expr):  ... here.
7808         Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
7809         Also, make result varying only if one of the operands are.
7810
7811         * ch-expr.c (build_chill_binary_op):  Move stuff from here to ...
7812         * ch-expr.c (finish_chill_binary_op):  ... here, as needed for
7813         proper 2-pass split.  Also, clean up and simplify heavily.
7814
7815         * ch-tree.h (enum ch_expr_class):  The 5 kinds of expression classes.
7816         * ch-typeck.c (classify_chill_expr):  New function:  Determine
7817         class of expression.
7818         * ch-typeck.c (chill_compatible_classes):  Re-structure; fix
7819         asymmetry bugs.
7820         * ch-tree.h (CH_CLASS_IS_XXX):  Re-define to use classify_chill_expr.
7821
7822         * ch-convert.c (maybe_turn_scalar_into_array):  Complain
7823         unless scalar is a char constant (and we want a string).
7824         * ch-convert.c (convert):  New code for converting to variable
7825         string/array.  Avoid type errors by padding (with an UNDFIEND_EXPR).
7826         * ch-typeck.c (chill_expand_tuple):  Don't do conversion to
7827         varying type here;  that is handled by convert now.
7828         * ch-decl.c (digest_constructor):  Moved to ...
7829         * ch-convert.c (digest_constructor):  ... here.
7830         * ch-decl.c (do_decl):  Simplify; just use convert for initializer.
7831         * ch-decl.c (chill_digest_init):  Merged into convert, and removed.
7832         * ch-decl.c (init_decl_processing):  Set constructor_no_implicit flag.
7833         * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
7834         Replace chill_digest_init by convert.
7835         * ch-actions.c (chill_expand_array_assignment):  Simplify; use convert.
7836         * ch-lex.l (build_chill_string):  Make string type be derived
7837         from integer, not sizetype, because upper bound can be -1.
7838
7839 Thu Sep  9 18:21:46 1993  Bill Cox  (bill@rtl.cygnus.com)
7840
7841         * ch-typeck.c (my_build_array_ref): Delete pedantic
7842           C-specific error message.
7843
7844 Thu Sep  9 17:44:20 1993  Jeffrey Wheat  (cassidy@eclipse.cygnus.com)
7845
7846         * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
7847
7848 Thu Sep  9 12:22:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7849
7850         * ch-typeck.c (build_chill_array_ref):  Remove redundant and
7851         broken call to my_build_array_ref.
7852
7853 Wed Sep  8 13:03:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7854
7855         * ch-except.c (finish_handler_array), ch-decl.c (finish_decl): 
7856         Don't use store_init_value, since it calls digest_init instead
7857         of chill_digest_init.
7858         * ch-except.c (finish_handler_array):  Use build1 (ADDR_EXPR, ...)
7859         instead build_unary_op to avoid C-specific optimizations.
7860         * ch-typeck.c (my_build_array_ref):  Don't use default_conversion
7861         to convert array to pointer.
7862         * c-typeck.c (process_init_default):  New function, to support
7863         default values for array tuples in Chill.
7864         * c-typeck.c (default_conversion):  Don't convert array to pointer
7865         if compiling Chill.
7866         * ch-decl.c (digest_constructor):  New function;  used to be guts
7867         of chill_digest_init.  Now recursive, to handle nested tuples.
7868
7869         * ch-decl.c (chill_digest_init):  Handle struct labels.
7870         * ch-grant.c (get_tag_value):  Use decode_constant in general case.
7871         * ch-grant.c (decode_constant):  Add support for lots of missing
7872         binary and unary operators.
7873
7874 Wed Sep  8 10:11:04 1993  Bill Cox  (bill@rtl.cygnus.com)
7875
7876         * ch-lang.c: Look for '-I' option for seize file path.
7877         * ch-lex.l: Fix comment about above option.
7878
7879 Wed Sep  8 00:37:32 1993  Per Bothner  (bothner@rtl.cygnus.com)
7880
7881         * ch-satisfy.c:  Move code to set (and restore) file-and-line
7882         from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
7883         alias decls that refer to real decls with errors.
7884         * ch-actions.c (lang_init):  Move to ch-lang.c.
7885         * ch-decl.c (init_decl_processing):  Move code to initialize
7886         file-and-line from here ...
7887         * ch-lang.c (lang_init): ... to here, to avoid clobbering.
7888
7889         * ch-decl.c (chill_digest_init):  Add support for SET_TYPE,
7890         and index values.
7891         * ch-typeck.c (chill_expand_typle):  Just call chill_digest_init.
7892         * c-typeck.c:  Fix various things that got broken
7893         in the latest merge.
7894
7895 Tue Sep  7 15:45:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7896
7897         * ch-decl.c (build_enumerator):  Handle a "unnamed set element"
7898         (obsolete feature) by generating a dummy name.
7899         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation with
7900         "correct" value of top-level (to get better debugging output).
7901         * ch-decl.c (bind_saved_names):  Allow a null DECL_NAME.
7902
7903 Tue Sep  7 15:48:35 1993  Bill Cox  (bill@rtl.cygnus.com)
7904
7905         * ch-actions.c (chill_expand_return): Correct breakage
7906           due to recent fsf merge.
7907
7908 Tue Sep  7 11:16:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7909
7910         * .cvsignore: Add multilib.h.
7911         * ch-decl.c (chill_digest_init): New function.  Calls were
7912           changed, since it has fewer parameters than old digest_init.
7913         * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
7914           new init stuff.
7915           (elementlist): Delete unused code.
7916         * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
7917         * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
7918         * ch-tree.h: Delete digest_init prototype.
7919         * ch-typeck.c (digest_init): Much new code.
7920
7921 Tue Sep  7 12:06:28 1993  Bill Cox  (bill@rtl.cygnus.com)
7922
7923         * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
7924           files to their pre-init-change state.
7925
7926 Mon Sep  6 15:28:27 1993  Bill Cox  (bill@rtl.cygnus.com)
7927
7928         Preliminary adaptation to rms' new initializer code.
7929         * ch-decl.c (do_decl): Call chill_digest_init, not
7930           digest_init, which rms made static.
7931         * ch-expr.c (chill_truthvalue_conversion): Delete C-
7932           specific code.
7933         * ch-loop.c (init_loop_counter): Indent for readability.
7934         * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
7935         * ch-tree.h: Prototype changes for new init code.
7936         * ch-typeck.c (chill_expand_tuple): Call new init code.
7937         * chill.texi: Add necessary '-f' prefix on options.
7938
7939 Wed Sep  1 13:21:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7940
7941         * ch-convert.c (build_array_type_for_scalar),
7942         ch-tasking.c (build_chill_receive_case_end):  Index type
7943         specification is now chain of types (not chain of TREE_LIST).
7944         * ch-satisfy.c (satisfy):  Don't try to satisfy the
7945         abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
7946         * ch-expr.c (build_chill_binary_op):  If pass 1, do NOT
7947         call finish_chill_binary_op.
7948         * ch-parse.y (arrayindex):  Simplify.
7949
7950 Tue Aug 31 14:57:35 1993  Bill Cox  (bill@rtl.cygnus.com)
7951
7952         * ch-decl.c (print_lang_decl): Print weak-name status.
7953           (print_lang_identifier): Print signal_data as T or F.
7954         * ch-lex.l (convert_bitstring, convert_charliteral,
7955           convert_float, convert_number): Pass string directly to convert
7956           as a parameter.  Return token code consistently, return 0
7957           for error.
7958           (equal_number): Parse differently, allowing hex, binary
7959           and octal constants.
7960         * ch-parse.y (dowithaction, structured_variable): Only
7961           push/pop scopes once per DO WITH.
7962           (structured_variable_list): Check ignore_actions flag here.
7963         * gcc.c: Delete 'traditional' from string, add 'itu'
7964           as the standard flag's name.
7965
7966 Mon Aug 30 15:12:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7967
7968         * ch-typeck.c, ch-tree.h (build_chill_range_type):  Take 3
7969         parameters instead of 2 (explicit low and high bounds).
7970         * ch-parse.y (arrayindex):  Build range type from low:high.
7971         (rangesize, optrangesize):  Removed.
7972         (where appropriate):  Use new build_chill_range_type interface.
7973         * ch-grant.c:  Clean up writing of range and array types.
7974         * ch-satisfy.c (satisfy):  Don't ignore the return value of
7975         layout_chill_array_type. (It may be an error mark.)
7976         * ch-typeck.c (build_chill_array_type):  Simplify.
7977         * ch-typeck.c (layout_chill_array_type):  Clean up checks.
7978
7979 Fri Aug 27 12:55:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7980
7981         * ch-decl.c (decl_temp1):  Set DECL_ASSEMBLER_NAME.
7982         (push_chill_extern_function)  Don't set current_function_decl.
7983         * ch-parse.y (tupleelement):  Don't wrap index is a TREE_LIST
7984         (i.e. a range), don't wrap a PAREN_EXPR around it.
7985         * ch-grant.c (decode_constant):  For tuple CONSTRUCTORs,
7986         add support for ranges in purpose.
7987
7988 Wed Aug 25 16:58:13 1993  Bill Cox  (bill@rtl.cygnus.com)
7989
7990         * .cvsignore: Add g++.sum
7991         * ch-actions.c (chill_expand_result): Stop building a temp.
7992           Assign the expression directly into function's DECL_RESULT.
7993         * ch-decl.c: Add formfeeds.  
7994           (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
7995           (push_chill_function_context): Delete C pedwarn message.
7996         * ch-expr.c: Move builtin functions together.
7997         * ch-parse.y (end_function): Delete unused code.
7998           Reformat %union for readability.  Delete _MAX and _MIN
7999           tokens.
8000
8001 Wed Aug 25 13:24:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8002
8003         * ch-actions.c (get_result_tmp_name): Delete unused function.
8004           (chill_expand_result, chill_expand_return): Rewrite for
8005           2-pass.
8006         * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
8007           chain field, so we can make a temp, evaluate a RESULT action's
8008           expression into it, and hang it on here.
8009         * ch-parse.y (end_function): Look for RESULT temps to emit.
8010           (assertaction): Indentation.
8011
8012 Wed Aug 25 08:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8013
8014         * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
8015           It wasn't used anyway.
8016
8017 Tue Aug 24 17:51:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8018
8019         * ch-actions.c (chill_expand_result, chill_expand_return):
8020           No need to make a temp for the value, just use DECL_RESULT.
8021
8022 Tue Aug 24 16:38:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8023
8024         * ch-tree.c (layout_powerset_type):  Remove redundant code.
8025         Generalize (in error message) to also handle bitstrings.
8026         * ch-tree.c (build_bitstring_type):  Remove all layout-like
8027         stuff, and defer that to layout_powerset_type.
8028         * ch-expr.c (chill_expand_expr):  For various SET_xxx_EXPRs,
8029         allocate stack temp for target using correct mode. 
8030
8031 Tue Aug 24 10:27:19 1993  Bill Cox  (bill@rtl.cygnus.com)
8032
8033         * ch-actions.c, ch-decl.c, ch-except.c,
8034           ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
8035           ch-typeck.c: Change build_modify_expr calls to
8036           build_CHILL_modify_expr calls.
8037         * ch-expr.c (build_chill_modify_expr): Adapted from
8038           build_modify_expr in c-typeck.c.
8039
8040 Mon Aug 23 16:48:39 1993  Bill Cox  (bill@rtl.cygnus.com)
8041
8042         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
8043           ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
8044           ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
8045           Major re-allocation of functions to files.
8046
8047 Mon Aug 23 12:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
8048
8049         Thanks for the tip, Jim.
8050         * Makefile.in: Add dependency lines for ch-except.o and
8051           ch-satisfy.o.  Correct dependency lines for ch-convert.o,
8052           ch-expr.o, ch-inout.o, and ch-loop.o.
8053           (chill, install-common): Add clean-up commands.
8054
8055 Sat Aug 21 17:11:26 1993  Bill Cox  (bill@rtl.cygnus.com)
8056
8057         * ch-decl.c (get_type_precision): New function.
8058           (layout_enum): Call it.
8059         * ch-tree.c (layout_powerset_type, build_bitstring_type):
8060           Call it.
8061
8062 Sat Aug 21 13:59:40 1993  Bill Cox  (bill@rtl.cygnus.com)
8063
8064         * ch-decl.c (init_decl_processing): Define setbitpowerset       
8065           runtime function.
8066         * ch-expr.c (chill_expand_assignment): Call setbitpowerset
8067           to set a bit.
8068         * ch-parse.y: Indentation.
8069
8070 Fri Aug 20 17:29:56 1993  Bill Cox  (bill@rtl.cygnus.com)
8071
8072         * ch-parse.y: Delete unused %type declaration.
8073         * ch-tasking.c (build_signal_struct): Delete return, since
8074           function returns void.
8075         * ch-typeck.c: Indent to standard.
8076         * stor-layout.c: Fix comment.
8077         * toplev.c: Change -L option ti -I.
8078         * varasm.c (emit_set_data): Align set constant to word 
8079           boundary.
8080
8081 Fri Aug 20 08:20:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8082
8083         * ch-actions.c: Fix indentation, comments.
8084         * ch-decl.c (push_chill_extern_signal): Use same interface
8085           as build_signal_struct.
8086         * ch-parse.y (quasi_signaldef): Move build_signal_decl
8087           here to sigdef.  Add quasi_signal to distinguish contexts
8088           where sigdef gets used.
8089         * ch-tasking.c: Replace make_signal_struct and build_signal_decl
8090           with build_signal_decl, which doesn't loop through a
8091           TREE_LIST.
8092         * ch-tree.h: Fix protos.
8093
8094 Wed Aug 18 17:36:53 1993  Bill Cox  (bill@cygnus.com)
8095
8096         * ch-actions.c: Fix comments.
8097         * ch-decl.c (push_modedefs): Return the new decl.
8098           (shadow_record_fields): Move pushlevel (0) calls into
8099           the grammar, so they'll get done in both passes.
8100         * ch-parse.y (dowithaction): Always compute & save # of
8101           'with' variables seen (both passes), and always pop that
8102           number of levels.
8103           (structured_variable_list): Always chain variables into a list.
8104           (structured_variable): Put pushlevel here (from shadow_record_fields).
8105         * ch-tasking.c: Indentation fixes.
8106         * ch-tree.h: Change proto.
8107         * chill.texi: Add Blue Book section numbers to unimplemented
8108           features list.
8109
8110 Wed Aug 18 15:48:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8111
8112         * ch-actions.c (build_generalized_call):  New function.
8113         Classifies semantically (if pass 2) this that look like calls.
8114         * ch-parse.y (call):  Invoke build_generalized_call.
8115         * ch-parse.y (sigdef):  Use defining_occurrence instead of NAME.
8116         * ch-parse.y (opt_untyped_exprlist):  New non-terminal.
8117         * ch-satisfy.c (satisfy):  Handle CALL_EXPR.
8118
8119 Tue Aug 17 16:36:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8120
8121         * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
8122
8123 Mon Aug 16 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8124
8125         * ch-tree.h (TUPLE_NAMED_FIELD):  New macro.
8126         * ch-parse.y (labelled structure tupleelement):
8127         Set TUPLE_NAMED_FIELD flag.
8128         * ch-grant.c (decode_constant):  Check for TUPLE_NAMED_FLAG.
8129         * ch-satisfy.c (satisfy):  Check for TUPLE_NAMED_FLAG.
8130         Do satisfy the elements of a CONSTRUCTOR even if call
8131         chill_expand_tuple isn't correct.
8132         * ch-satisfy.c (satisfy):  Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
8133         * ch-parse.y (label_spec):  Defer any semantic checking until ...
8134         * ch-decl.c (layout_chill_variants):  ... here.
8135         Also make sure to call layout_type on the union type.
8136         * ch-decl.c (bind_saved_names):  For weak names, allocate an
8137         ALIAS_DECL, rather than a CONST_DECL.
8138
8139         Add support for implied (weakly visible) names.
8140         * ch-tree.h (DECL_WEAK_NAME):  New macro.
8141         * ch-satisfy.c (satisfy of IDENTIFIER_NODE):  Don't complain
8142         if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
8143         * ch-decl.c (proclaim_name):  Handle DECL_WEAK_NAME appropriately.
8144         * ch-decl.c (concat_lists, find_implied_types):  New functions.
8145         * ch-decl.c (bind_saved_names):  Search for implied names.
8146         * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
8147         * ch-lang.c (layout_chill_struct_type):  Don't use
8148         C_DECL_VARIABLE_SIZE.
8149
8150 Mon Aug 16 16:10:43 1993  Bill Cox  (bill@rtl.cygnus.com)
8151
8152         * ch-actions.c: Delete extra space in error message.
8153         * ch-parse.y: Fix comment.
8154         * expr.c (store_constructor): Avoid passing NULL to convert,
8155           and getting back an error_mark_node and trying to process
8156           *that* node.
8157
8158 Mon Aug 16 14:41:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8159
8160         * ch-decl.c:  Add more overview comments.
8161         * ch-decl.c (proclaim_decl):  New function.
8162         * ch-decl.c (temp_pushdecl, struct shadowing):  Removed.
8163         * ch-decl.c (bind_saved_names):  Remove blevel parameter;
8164         use current_scope global instead.  Do some other cleanups.
8165         * ch-decl.c (save_expr_under_name):  Create an ALIAS_DECL.
8166         * ch-decl.c (pushdecllist, save_expr_under_name):  Use proclaim_decl.
8167         * ch-satisfy.c (satisfy, safe_satisfy_decl):  Be more careful
8168         to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
8169
8170         * chill.texi:  Start collecting Chill documentation here.
8171         * ch-parse.y (mode):  Ignore READ specifier, for now.
8172
8173 Mon Aug 16 11:13:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8174
8175         * ch-actions.c (chill_comptypes): Correct handling reference        
8176           of type 1.
8177           (build_chill_length, build_chill_num,
8178            build_chill_sizeof): Convert result to CHILL integer.
8179           (build_chill_function_call): Clean up INOUT and OUT
8180           parameter handling.
8181         * ch-decl.c (build_chill_function_type): Handle INOUT and
8182           OUT parameters.
8183         * ch-loop.c: Fix up comments.
8184         * ch-parse.y: Fix up comments.
8185
8186 Sun Aug 15 15:06:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8187
8188         * ch-actions.c (build_chill_lower, build_chill_upper):
8189           Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
8190         * ch-decl.c (save_expr_under_name): New function to save
8191           addressing expressions for DO WITH and DO FOR handling.
8192           (handle_one_level): Call new function.
8193         * ch-loop.c (init_loop_counter): Call it here, too.
8194           Check lp->user_var before passing it to lookup_name.
8195           (high_domain_value, low_domain_value): Correct call
8196           to build_chill_upper and build_chill_lower.
8197           (begin_chill_loop, end_chill_loop): Move pushlevel,
8198           poplevel up into the grammar, so they're done in both
8199           passes.
8200         * ch-parse.y (doaction): Unconditionally make a scope
8201           for a loop, pop it later.
8202           (controlpart, iteration): Save return from
8203           build_chill_iterator.
8204         * expr.c: Readability changes.
8205
8206 Sat Aug 14 19:42:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8207
8208         * ch-expr.c (chill_expand_case_expr): Complete rewrite
8209           for 2-pass.  About 1/2 the size, too.
8210         * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
8211           This assures that a label preceding a module's first action
8212           is enclosed in the module-level function that's generated.
8213
8214 Sat Aug 14 14:56:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8215
8216         Re-implement how EXIT is done.
8217         'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
8218         'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
8219         Hence we no longer need any support for EXIT in stmt.c.
8220         * stmt.c (stamp_nesting_label, expand_exit_labelled):  Removed.
8221         * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
8222         * ch-tree.c, ch-tree.h (munge_exit_label): New function.
8223         * ch-parse.y:  Re-write bracked actions to support EXIT new way.
8224         * ch-decl.c, ch-loop.c:  Remove calls to stamp_nesting_level.
8225         * ch-parse.y:  Replace SC by new token semi_colon, which
8226         resets the 'label' global.  Also make sure that label gets
8227         reset whenever we might start a new action statement.
8228         * ch-parse.y (possibly_define_exit_label):  New function.
8229
8230         * ch-except.c (chill_start_on):  Wrap an ADDR_EXPR round the jmpbuf.
8231         * ch-grant.c (chill_finish_compile):  Make sure
8232         get_file_function_name is only called once.
8233         * ch-expr.c (chill_expand_array_assignment):  Use store_expr,
8234         instead of incorrectly calling emit_block_move.
8235
8236         * ch-parse.y (procedure):  Call push_chill_function_context
8237         in *both* passes (if nested).
8238         * ch-parse.y (primval):  Call get_type_of before chill_expand_type.
8239         * ch-parse.y (tupleelement):  Only build PAREN_EXPR during pass 1.
8240
8241 Fri Aug 13 16:36:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8242
8243         Re-implement GRANT and SEIZE, to support prefixes and prefix
8244         rename.  All of the Blue Book semantics for these should
8245         now work (except FORBID).
8246         * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
8247         DECL_POSTFIX, DECL_POSTFIX_ALL):  New ALIAS_DECL layout and macros.
8248         * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
8249         decl_check_rename):  New functions.
8250         * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
8251         * ch-satisfy.c (satisfy_decl):  Handle SYN initialized with tuple.
8252         * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
8253         * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8254         * ch-grant.c (decode_prefix_rename):  New function.
8255         Use to print out GRANT and SEIZE statements.
8256         * ch-decl.c (ALL_POSTFIX):  New global variable.
8257         * ch-decl.c (bind_saved_names, pop_module):  Change to use new
8258         ALIAS_DECL layout, and support general prefix rename and ALL.
8259         * ch-decl.c (various places):  Don't barf if DECL_ANME is NULL.
8260         * ch-parse.y (build_prefix_clause):  New function (handle PREFIXED).
8261         * ch-parse.y (optprogendname, optname):  Rename to opt_end_label.
8262         * ch-parse.y:  Add support for compound name strings, but defer
8263         using all over teh place, due to parser ambiguities.
8264         Howver, do use defining_occurrence where appropriate.
8265         * ch-parse.y:  Re-write syntax and semantics of GRANT and SEIZE
8266         statements to support Blue Book functionality.  Neato!
8267
8268 Fri Aug 13 17:10:52 1993  Bill Cox  (bill@rtl.cygnus.com)
8269
8270         * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8271         * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8272           (decl_temp): Deleted.
8273         * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8274         * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8275           readability, add comment.
8276         * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8277         * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8278
8279 Fri Aug 13 13:39:59 1993  Bill Cox  (bill@rtl.cygnus.com)
8280
8281         * ch-decl.c (decl_temp): Break the chain of decls.  This
8282           prevents an infinite loop.
8283         * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8284         * ch-lex.l (equal_number): Check passes in looking up a 
8285           symbolic value.
8286         * ch-parse.y: Fix comments.
8287         * ch-tasking.c (tasking_setup): Only act in pass 2.
8288           (make_signal_struct, build_signal_decl,
8289            build_chill_receive_case_label): Don't go indirect
8290            thru NULL decl pointer.
8291
8292 Thu Aug 12 11:02:34 1993  Bill Cox  (bill@rtl.cygnus.com)
8293
8294         * ch-actions.c (route_to_predefined_function): New function called
8295           from build_chill_function_call, to call the proper predefined routine.
8296           (build_chill_card, build_chill_length, build_chill_lower,
8297           build_chill_max, build_chill_min, build_chill_num, 
8298           build_chill_pred, build_chill_sizeof, build_chill_succ,
8299           build_chill_upper): Rewritten to run only in pass 2.
8300         * ch-decl.c (init_decl_processing): Build predefined functions for card,
8301           length, lower, max, min, num, pred, sizeof, succ and upper.  Delete
8302           unused builtin_function calls.
8303         * ch-grant.c (chill_finish_module_code): Save current_function_decl
8304           before calling finish_chill_function, and use that to build the
8305           initializer structure.
8306         * ch-lex.l: Remove following tokens, since they're now just predefined,
8307           not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8308           and upper.
8309         * ch-loop.c: Readability, indentation changes.
8310         * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8311           sizeof, succ and upper.  Delete special rules for calls to these.
8312           Delete mode_location and upper_lower_arg non-terminals.
8313           (pmodearg): Eliminate convolutions.
8314           (call): Add rule for typename parameter.
8315         * ch-tasking.c: Readability changes.
8316         * ch-tree.h: Add prototypes.
8317
8318 Thu Aug 12 00:38:17 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8319
8320         * ch-decl.c (save_decl):  Set DECL_CONTEXT (decl).
8321         * ch-grant.c (chill_finish_module_code):  Call
8322         finish_chill_function with nested==0.
8323         * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y:  Rename
8324         {push,pop}_c_function_context to {push,pop}_chill_function_context.
8325         * ch-parse.y (end_function): If nested, call
8326         pop_chill_function_context regardless of which pass we're in.
8327
8328 Wed Aug 11 02:34:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8329
8330         * ch-actions.c (finish_chill_binary_op):  Handle error marks.
8331         * ch-decl.c (do_decl):  Laying out decl and generating rtl
8332         is too late to do here (if there are forward references), so ...
8333         * ch-satisfy.c (satify_decl):  ... do it here instead.
8334         * ch-decl.c (finish_enum):  Fixup types of enum decls now.
8335         * ch-satisfy.c (safe_satisfy_decl):  New routine.  Supports
8336         checking illegal cyclic definitions.
8337         All *satisfy* routines now take a 'chain' parameter (instead
8338         of 'lookup_only') used for checking cycles.
8339         * ch-satisfy.c (satisfy_decl):  Return DECL_INITIAL if appropriate.
8340         * ch-satisfy.c (satisfy):  Lots of little fixes.
8341
8342         * ch-lex.l (init_lex):  Make all the standard ridpointers be
8343         lowercase, so that lookup_name on lower-cased user input
8344         will find the standard types.
8345         * ch-lex.l:  Remove all the standard types, in effect
8346         converting them from reservered anmes to predefined names.
8347         * ch-lex.l, ch-parse.y:  Remove PREDEF_MODEDECL - no longer used.
8348         * ch-grant.c (gfile):  Rename to grant_file_name.
8349         * ch-lex.l (yywrap):  Don't try to seize current grant_file_name.
8350
8351         * initname.c:  Removed. get_file_function_name is now in tree.c
8352         * Makefile.in (CHILL_OBJS): Remove initname.o
8353
8354         * ch-decl.c (do_decl):  New function, based on loop body of do_decls,
8355         * ch-decl.c (do_decls):  Just call do_decl.
8356         * ch-grant.c (chill_finish_module_code):  Minor cleasnups.
8357         Use new do_decl routine.  Clear init_entry_decl's source line.
8358         * ch-grant.c (print_proc_tail):  Fix for new param list structure.
8359         * ch-parse.y (whatpdef):  Removed.  Cleaned up procedure
8360         and process, allowing proper end-label-checking.
8361         * ch-typeck.c (build_chill_cast):  Remove decl->type conversion.
8362
8363 Wed Aug 11 00:33:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8364
8365         * ch-decl.c (layout_enum):  Don't call rest_of_type_compilation.
8366
8367         * ch-lex.l (RETURN_PREDEF):  Don't call lookup_name.
8368         * ch-expr.c (build_chill_indirect_ref):  Call get_type_of.
8369         * ch-parse.y (call):  Call get_type_of before build_chill_cast.
8370
8371 Tue Aug 10 21:33:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8372
8373         *  ch-actions.c (build_char_array_expr):  If a concat operand is
8374         a constant char, convert it to a STRING_CST.
8375         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation
8376         with toplev=0.
8377         * ch-typeck.c (build_chill_cast):  Allow type to be TYPE_DECL.
8378
8379         * ch-parse.y (actionlabel):  Call define_label in both passes.
8380         * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8381         New functions, using lookup_name to find LABEL_DECLs.
8382         * ch-parse.y (GOTO, EXIT):  Use above new functions.
8383         * ch-tasking.c (struct rc_state_type *current_rc_state):
8384         Use to store state for the current receive case statement.
8385         (build_chill_receive_case_start, build_chill_receive_case_end):
8386         Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8387         * ch-decl.c:  Remove all stuff dealing with specific label scopes,
8388         including functions push_label_level, pop_label_level.
8389         * ch-decl.c (define_label):  Re-write for 2-pass.
8390         * ch_tree.h (lang_identifier):  Removed label_value.
8391         * ch-tree.h (IDENTIFIER_LABEL_VALUE):  Removed.
8392
8393         * ch-parse.y (modename):  Changed to yield identifier, not type.
8394         This allows following changes, which work better for 2-pass:
8395         (location):  primval ARROW optmodename -> primval ARROW optname.
8396         (primval):  Tuple can now be prefixed by unsatisfied name.      
8397
8398         * ch-actions.c (chill_grant_only):  Renamed to grant_only_flag.
8399         * ch-lex.l (yywrap):  Don't read seizefiles if grant_only_flag.
8400         * ch-decl.c (switch_to_pass_2):  Exit if grant_only_flag,
8401
8402         * ch-satisfy.c (satisfy):  Support CONSTRUCTOR, REFERENCE_TYPE.
8403         * ch-satisfy.c (satisfy_decl, satisfy):  Kludge around
8404         to a TYPE_DECL can be simplified to its type.
8405         * ch-expr.c (build_chill_indirect_ref):  New function.
8406         * ch-lex.l (prepare_paren_colon):  Make kludge even uglier,
8407         since the left paran might already have been seen.
8408         * ch-lang.c (make_chill_pointer_type):  Allow parameter
8409         to select pointer or reference type.
8410         (build_chill_reference_type):  New function.
8411         Either function:  Be more careful (in case arg is identifier).
8412         * ch-except.c (initialize_exceptions):  Make
8413         exception_stack_decl be public.
8414         * ch-actions.c (build_char_array_expr):   Can only
8415         constant fold if operands are STRING_CST.
8416         * ch-grant.c (raw_decode_mode):  Allow TYPE_DECL.
8417         (chill_finish_compile:  Set TREE_PUBLIC of init function to 1.
8418
8419 Tue Aug 10 17:55:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8420
8421         * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8422         * ch-decl.c: Fix comment.
8423         * ch-parse.y (pmodearg): Build tree_list in all cases.
8424         * varasm.c (assemble_tasssking_entry): Delete unused code.
8425
8426 Tue Aug 10 13:58:21 1993  Bill Cox  (bill@rtl.cygnus.com)
8427
8428         * ch-actions.c (build_char_array_expr): save/restore
8429           a tree's constant status.
8430           (build_chill_binary_op): Don't convert an expression
8431           if the type we're converting to is NULL.
8432         * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8433           Call it from convert, and from ..
8434         * ch-expr.c (chill_expand_assignment): call new function.
8435           Move convert code earlier, too.
8436         * ch-decl.c (lookup_name): Delete bogus error message.
8437         * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8438           Add protos.
8439         * ch-typeck.c (valid_array_index): Comment out some strange code
8440           which now seg faults.
8441           (chill_expand_tuple): Re-enable prepending of VARYING
8442           length to a tuple.
8443           (chill_similar): Return FALSE if either mode is NULL_TREE.
8444
8445 Tue Aug 10 07:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
8446
8447         * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8448           Add commented-out calls to pushtag, in case we decide later
8449           to fill in TYPE_STUB_DECL for dbxout.
8450         * ch-lang.c (build_chill_struct_type): Add commented-out
8451           calls to pushtag, in case we decide later to fill in
8452           TYPE_STUB_DECL for dbxout.
8453
8454 Mon Aug  9 23:09:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8455
8456         * ch-decl.c (chill_seize):  Don't get_next_next in pass 2.
8457         * ch-decl.c (get_next_decl):  Skip ALIAS_DECLs.
8458         * ch-decl.c (bind_saved_names):  Handle SEIZE ALL.
8459         * ch-lang.c (layout_chill_struct_type):  Don't call
8460         rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8461         * initname.c (get_file_function_name):  Get new file and
8462         function for language-independent constructor name generation.
8463         * ch-grant.c (get_init_function_id):  Removed.
8464         * ch-grant.c (chill_finish_compile):  Call get_file_function_name
8465         instead of get_init_function_id.
8466
8467 Mon Aug  9 18:33:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8468
8469         * ch-decl.c: Formfeeds and comments.
8470         * ch-parse.y (quasi_formpar): Treat just like real formpar.
8471           Eliminate restriction on single name.
8472           (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8473
8474 Mon Aug  9 17:21:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8475
8476         * ch-lex.h (enum rid), ch-lex.l (init_lex):  Added RID_ALL.
8477         * ch-lang.c (build_chill_pointer_type):  Layout the pointer type,
8478         if the pointee is laid out, even if pass==1.
8479         * ch-parse.y:  Set ignore_exprs=(pass=2) for entire spec module.
8480
8481 Mon Aug  9 15:44:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8482
8483         This version compiles the 5-line program.  Thanks, Per!
8484         * ch-decl.c (print_lang_decl, print_lang_identifier):
8485           Add appropriate calls to indent_to().  Rename reverse_scopes
8486           to switch_to_pass_2, and wait to set pass = 2 until
8487           here.
8488         * ch-grant.c (chill_finish_module_code): Set module_init_list
8489           non-NULL in pass 1;  in pass2, chain on the module_init
8490           structure's decl.
8491           (chill_finish_compile): Clear module_init_list to NULL.
8492         * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8493           Rename reverse_scopes to switch_to_pass_2, delete setting 
8494           of pass = 2.
8495         * ch-tree.h: Rename reverse_scopes proto.
8496
8497 Mon Aug  9 13:21:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8498
8499         * ch-decl.c (build_enumerator):  If name is NULL,
8500         don't call save_decl or get_next_decl.
8501         * ch-decl.c (layout_enum):  Fix calculation of next value.
8502         * ch-grant.c (print_enumeral):  Re-do for new 2-pass scheme.
8503         * ch-grant.c (decode_constant):  Better CONSTRUCTOR support.
8504
8505 Mon Aug  9 11:59:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8506
8507         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8508           ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8509           Lots of new prototypes.
8510
8511 Mon Aug  9 01:00:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8512
8513         * ch-lex.h:  Remove unused RID_'s.  Make sure RID_MAX is last.
8514         * ch-decl.c (init_decl_processing):  Moved ridpointers
8515         initialization to init_lex().  Use them consistently.
8516         * ch-lex.l (RETURN_PREDEF):  New macro.  Uses ridpointers
8517         for all preferedined types.
8518         * ch-lex.l (init_lex):  Upper case all RIDs, so grantfiles
8519         (and error messages?) will use uppercase.
8520         * ch-decl.c (build_chill_enumerator):  Merged into build_enumerator.
8521         * ch-lang.c (finish_chill_enum):  Merged into ...
8522         * ch-decl.c (finish_enum): .... this function.
8523         * ch-decl.c (layout_enum):  New function.  Does all the pass-2
8524         stuff for enumerations.
8525         * ch-decl.c (finish_enum, start_enum):  Only trivial pass-1 stuff.
8526         * ch-satisfy.c (satisfy):  Support ENUMERAL_TYPE.  Improve ranges.
8527         * ch-parse.y:  Check ignore_exprs instead of ignore_decls when
8528         parsing and building types.
8529
8530 Sun Aug  8 16:26:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8531
8532         * ch-lex.h:  Add some missing RID_'s.
8533         * ch-decl.c (init_decl_processing): 
8534
8535 Sun Aug  8 15:32:54 1993  Bill Cox  (bill@rtl.cygnus.com)
8536
8537         * ch-grant.c (module_has_actions): Delete this and all
8538           references.  It was a botch.
8539           (chill_finish_module_code): Move finish_chill_function_call inside
8540           the test whether actions were found at module level.
8541           Use current_function_name in the initializer build,
8542           and init_entry_id in the module_list setup.
8543           (chill_finish_compile): Call lookup_name to get the
8544           decl from a module_init_list entry.
8545         * ch-parse.y: Revert module_has_actions additions.
8546         * ch-satisfy.c (satisfy): After satisfying the type  referenced
8547           by a pointer_type, call layout type for the pointer.
8548         * ch-tasking.c (tasking_registry): Only active in pass 2.
8549         * ch-typeck.c: Call build_chill_pointer_type everywhere.
8550
8551 Sun Aug  8 13:13:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8552
8553         * ch-tree.def (PAREN_EXPR):  New unary op:  '(' EXPR ')'.
8554         * ch-parse.y (primval):  If pass 1, generate PAREN_EXRR.
8555         * ch-satisfy.c (satisfy):  Reduce PAREN_EXPR to its operand.
8556         * ch-grant.c (decode_const):  Handle PAREN_EXPR.
8557         * ch-decl.c (pop_module):  Fix think.  Inprove error message.
8558
8559 Sun Aug  8 10:31:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8560
8561         Generally, replace 'function' with 'procedure' 
8562         and 'type' with 'mode' in error/warning messages.
8563         * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8564         * ch-decl.c: See Generally.
8565           (init_decl_processing): Call build_tasking_enum from here.
8566           Now, it doesn't need a flag to do its work only once.
8567           Also, build the TaskingStruct decl here.
8568         * ch-grant.c: Remove references to `current_grant_file';
8569           there's now only one.  See Generally.  Do gcc -Wall cleanup.
8570         * ch-lex.l: Remove references to `current_grant_file'
8571           and delete USE_GRANT_FILE token.
8572         * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8573         * ch-tasking.c (tasking_setup): Move TaskingStruct build
8574           to init_decl_procesing.  Delete build_tasking_enum calls.
8575         * ch-tree.c: See Generally.
8576         * ch-tree.h: Add proto for build_tasking_struct.
8577
8578 Sun Aug  8 08:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8579
8580         * ch-decl.c: Make unnamed_module_number static, reset it to zero
8581           before pass 2, so same module names get generated in both passes.
8582           (push_module): Return user name or generated name.
8583           (init_decl_processing): Build __tmp_initializer_type.
8584           Code moved from chill_finish_module_code.
8585         * ch-grant.c: New flag module_has_actions.  Set TRUE by push_actions,
8586           used, reset by chill_finish_module_code.    Replaces test of 
8587           module_function_name.  Shuffled finish-up code to end of module.
8588           (chill_finish_module_code): Use global_bindings_p to determine
8589           'nested' parameter for finish_chill_function.  Use new
8590           module_has_actions flag to trigger generation of module_init list
8591           entry.  We now can handle not only multiple modules per file,
8592           but modules nested inside functions (I think).
8593         * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8594         * ch-parse.y (push_actions): Set module_has_actions flag.
8595           (modulion, spec_module): Save possibly-generated module name
8596           returned by push_module.
8597         * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8598           case for POINTER_TYPE.
8599         * ch-tasking.c: Replace build_pointer_type calls with
8600           build_chill_pointer_type calls.
8601         * ch-tree.h: Fix, add prototypes.
8602
8603 Sat Aug  7 17:32:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8604
8605         * ch-parse.y:  Remove many useless tests for ignore_decls.
8606         * ch-parse.y:  Remove obsolete support for _EXTERN and _INIT.
8607         * ch-parse.y:  Reset ignore_exprs while parsing declarations,
8608         but handle initializers appropriately.
8609         * ch-grant.c (decode_constant):  Update (for 2-pass) support
8610         for CONSTRUCTOR and SET_TYPE.
8611         * ch-grant.c (chill_initializer_name):  Renamed to
8612         module_function_name.
8613         * ch-grant.c (function_generated):  Removed;
8614         use module_function_name != NULL instead.
8615         * ch-tree.h, ch-parse.y:  Removed unused current_locnamelist.
8616         * ch-decl.c (push_modedef):  Simplify to take just one mode.
8617         * ch-tasking.c (make_process_struct, make_signal_struct):
8618         Change calls to push_modedef correspondingly.
8619         * ch-tree.c (build_powerset_type):  Move the stuff that's
8620         suitable for pass 1 into new function make_powerset_type,
8621         and that for pass 2 into new function layout_powerset_type.
8622         * ch-lang.c:  Move pass-1 stuff from build_chill_pointer_type
8623         into new function make_chill_pointer_type, and split
8624         build_chill_struct_type into make_chill_struct_type
8625         and layout_chill_struct_type.
8626         * ch-decl.c (grok_chill_variantdefs):  Similarly split up
8627         into make_chill_variants and layout_chill_variants.
8628         * ch-satisfy.c (satisfy):  Add support for SET_TYPE, and UNION_TYPE.
8629         Call layout_chill_struct_type for RECORD_TYPE.
8630
8631 Sat Aug  7 09:59:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8632
8633         Fixup previous check-in.
8634         * ch-decl.c: Restore unnamed_module_number, which *was*
8635           used after all.
8636         * ch-grant.c (get_init_function_id): Return type s.b. tree.
8637
8638 Sat Aug  7 09:28:17 1993  Bill Cox  (bill@rtl.cygnus.com)
8639
8640         * ch-decl.c (print_lang_decl, print_lang_type): Add
8641           correct parameter list.  Add print statements for
8642           nesting_level, signal_dest, buffer_size, and the
8643           signal_data flag.
8644           (decl_temp, decl_temp1): Delete unused code.
8645           (init_decl_processing): Call build_instance_type and
8646           build_tasking_type in both passes.
8647           Generally change current_scope comparisons against 
8648           global_scope to global_biidings_p calls.
8649         * ch-except.c (push_handler): Add space before parameter paren.
8650         * ch-grant.c (chill_start_module, chill_finish_module,
8651           chill_finish_compile): Complete re-write for 2-pass and
8652           multiple modules per source file.
8653         * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8654         * ch-tasking.c: Diffused small adaptations to 2-pass.
8655         * ch-tree.h (print_lang_decl, print_lang_type): Correct
8656           the prototypes.
8657           (chill_finish_module_code): Add module name parameter.
8658         * ch-typeck.c: Fix comments, add whitespace.
8659
8660 Fri Aug  6 12:17:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8661
8662         * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8663         way I allocated the shadow_list on an obstack was too fragile,
8664         so just use xmalloc/free instead.
8665
8666 Fri Aug  6 08:31:49 1993  Bill Cox  (bill@rtl.cygnus.com)
8667
8668         * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8669           TYPE_MAX_VALUE for vanilla integer type.  Only need
8670           to satisfy TREE_TYPE for integer range type.
8671
8672 Fri Aug  6 00:53:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8673
8674         * ch-lang.c (build_chill_range_type):  Split up into two new
8675         functions (make_chill_range_type, layout_chill_range_type);
8676         only former part is done in pass 1.
8677         * ch-lang.c (build_chill_array_type):  Split up in the same
8678         way (yielding make_chill_array_type, layout_chill_array_type).
8679         * ch-satisfy.c (satisfy):  Handle array and range types.
8680         * ch-tree.h (TYPE_RANGE_PARENT):  Removed.  Not used.
8681         * ch-parse.y (mode2):  Handle optional rangesize.
8682
8683 Thu Aug  5 15:13:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8684
8685         * ch-grant.c (print_an_int):  Re-enable (but don't search for SYN).
8686         * ch-grant.c (raw_decode_mode):  Support printing
8687         of an IDENTIFIER_NODE (unresolved type name).
8688         * ch-grant.c (decode_constant):  Support printing of an unresolved
8689         IDENTIFIER_NODE, as well as some kinds of binary operations.
8690         * ch-grant.c (grant_one_decl):  Don't call globalize_decl.
8691
8692         * ch-grant.c (decode_decl):  Add support for ALIAS_DECLs
8693         (from SEIZEs and GRANTs).
8694         * ch-grant.c:  Remove support for multiple grantfiles.
8695         * ch-grant.c, ch-parse.y:  Removed grant_count, for now at least.
8696         * ch-lex.h (in_seizefile):  Moved to ch-tree.h.
8697         * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c:  Removed.
8698         * ch-tree.h (CH_DECL_GRANTED): Added.
8699         * ch-actions.c (build_chill_exception_decl):  Use
8700         IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8701         * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8702         Change to accept list of remember_decls and granted_decls.
8703
8704 Thu Aug  5 11:58:21 1993  Stan Shebs  (shebs@rtl.cygnus.com)
8705
8706         * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8707
8708 Thu Aug  5 10:03:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8709
8710         * ch-decl.c (init_decl_processing): Only build types
8711           in pass 2, since dbxout machinery is only ready for
8712           output then.
8713         * ch-grant.c (chill_finish_module_code): Do most of the
8714           work in pass 2.
8715
8716 Thu Aug  5 06:54:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8717
8718         * ch-parse.y (receivecaseaction): Pass label-group
8719           numbers around.
8720         * ch-tasking.c (build_chill_receive_case_start):
8721           Generate unique labels for each case, pass back
8722           the label-group's number.
8723           (build_chill_receive_case_end): Accept label-group
8724           number from parser, use it to build labels
8725         * ch-tree.h: Change prototypes.
8726
8727 Wed Aug  4 13:21:13 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8728
8729         * ch-decl.c (decl_temp1):  Call finish_decl().
8730
8731         * ch-grant.c (chill_start_module_code):  Don't call
8732         push_c_function_context - not needed since we're not nested.
8733         * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8734         with nested=0, not 1 (twice).
8735         * ch-grant.c (chill_finish_module_code): Clear function_generated.
8736
8737 Tue Aug  3 20:06:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8738
8739         * ch-decl.c (push_chill_extern_function):  Set TREE_PUBLIC.
8740
8741 Tue Aug  3 19:08:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8742
8743         * ch-actions.c (build_chill_function_call): Handle parameter
8744           attributes better - LOC still not handled.
8745         * ch-tree.def: Amplify comment.
8746
8747 Tue Aug  3 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8748
8749         * ch-lex.l (handle_use_seizefile_directive):  Update
8750         next_file_to_seize correctly.
8751         * ch-actions.c (build_chill_abs):  Create an ABS_EXPR, not an rts_call.
8752
8753 Tue Aug  3 14:03:50 1993  Bill Cox  (bill@rtl.cygnus.com)
8754
8755         First Aid, not real long-term fixes...
8756         * ch-decl.c (pop_module, lookup_name_for_seizing): Check
8757           current_module pointer for NULL before using it.
8758           (init_decl_processing): Set up wchar_type_node before using it.
8759         * ch-grant.c (chill_finish_module_code): Don't build
8760           initializer_type or initializer_decl until pass 2.
8761         * ch-lex.l: Readability - single statement per line.
8762         * ch-tasking.c (make_process_struct): Hide get_parm_info
8763           call inside #ifdef for now.
8764
8765 Tue Aug  3 09:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8766
8767         * ch-decl.c (pushdecllist): Add forward decl.
8768         * ch-parse.y (handler): Add rules which allo
8769           empty onalternativelist.
8770         * ch-tasking.c (get_tasking_code_name): Add
8771           cast of alloca() result.
8772
8773 Tue Aug  3 00:11:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8774
8775         * ch-lex.l (handle_use_seizefile_directive):  Make files_to_seize
8776         a queue.  Check for duplicate use_seizefile-s immediately.
8777         * ch-lex.l (yywrap):  Use this more portable mechanism,
8778         rather than the flex-specific <<EOF>>.  Also, clear saw_eof.
8779         * ch-lex.l:  Don't call push_module/pop_module automatically.
8780         * ch-decl.c (push_chill_extern_function:  Modify for 2-pass.
8781
8782 Mon Aug  2 14:24:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8783
8784         * ch-parse.y:  Rename actionstatement -> nonempty_actionstatement.
8785         New actionstatement is now nonempty_actionstatement | SC.  Use
8786         where appropriate.  This is closer to Blue Book terminology.
8787
8788         * ch-tree.def (ALIAS_DECL):  New tree type.
8789         * ch-decl.c:  Merged all the code we need (I hope) from c-decl.c,
8790         which is no longer used for cc1chill.
8791         * c-decl.c:  Remove all Chill-related code.
8792         * Makefile.in (CHILL_OBJS):  Don't use c-decl.o.
8793         * ch-decl.c:  No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
8794         Introduce a 'nesting_level' level concept instead.
8795         * ch-decl.c:  Merged push_scope into pushlevel; pop_scope into
8796         poplevel;  struct scope and struct binding_level.
8797         * ch-decl.c:  Other major name lookup algorithm changes.
8798         * ch-tree.h (struct lang_identifier): Remove granted_value field.
8799         * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro):  Removed.
8800         * ch-tree.h (DECL_NESTING_LEVEL):  New macro.
8801         * ch-satisfy.c (satisfy, satisfy_decl):  New 'lookup_only' arg.
8802         * ch-tree.h (struct module):  New fields nesting_level, granted_decls.
8803         * ch-grant.c (seize_implied_names, do_seize, chill_seize):  Move ...
8804         * ch-decl.c: ... here.
8805         * ch-grant.c (start_chill_function2):  Remove.
8806         * ch-grant.c (chill_start_module_code):  Now called in both passes.
8807         * ch-actions.c (lang_init):  Code moved to ...
8808         * ch-decl.c (init_decl_processing): ... here.
8809         * ch-actions.c (chill_expand_result, chill_expand_return):
8810         Handle being called during pass 1.
8811         * ch-lex.l (name_type_signal):  Don't try lookup_name during pass 1.
8812         * ch-parse.y (PUSH_ACTION, push_action):  Is now invoked during
8813         both passes, for the sake of chill_start_module_code.  Change all
8814         actions rules to invoke PUSH_ACTION unconconditionally.
8815         * ch-parse.y, ch-decl.c (push_module):  Module label is now optional.
8816
8817 Mon Aug  2 15:02:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8818
8819         * expr.c (store_constructor): Convert library function
8820           parameters to proper integer precision before calling
8821           emit_library_call.
8822
8823 Mon Aug  2 08:46:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8824
8825         * ch-grant.c (seize_implied_names): Check POWERSET's
8826           base type for names to seize.
8827
8828 Fri Jul 30 19:59:30 1993  Bill Cox  (bill@rtl.cygnus.com)
8829
8830         * ch-tree.h: Delete unused definition of JOINER
8831           macro.  Expand comment about INSTANCE_TYPE.
8832
8833 Thu Jul 29 14:57:11 1993  Bill Cox  (bill@rtl.cygnus.com)
8834
8835         * ch-convert.c (unreferenced_type_of): New function.
8836           (convert): Call new function.
8837
8838 Thu Jul 29 07:34:57 1993  Bill Cox  (bill@rtl.cygnus.com)
8839
8840         * ch-lex.l: Allow C-style comments before the module
8841           header.  Use #undef to assure that strchr isn't a
8842           macro (portability), and remove the extra paren-
8843           theses in its extern name.
8844           (check_newline): Call getlc less often, so that user
8845           labels aren't lowercased before their time. Add BEGIN
8846           INITIAL before starting pass 2, so the header is
8847           correctly ignored.
8848
8849 Wed Jul 28 14:23:24 1993  Bill Cox  (bill@rtl.cygnus.com)
8850
8851         * ch-grant.c (chill_start_module_code): Cast alloca()
8852           return value.
8853
8854 Wed Jul 28 12:39:51 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
8855
8856         * ch-grant.c: remove extra parens around extern function
8857         declarations (they confuse the DECstation compiler)
8858
8859 Wed Jul 28 12:28:56 1993  Bill Cox  (bill@rtl.cygnus.com)
8860
8861         * Makefile.in: Stop deleting flex's #line lines.
8862
8863 Wed Jul 28 07:05:25 1993  Bill Cox  (bill@cygnus.com)
8864
8865         Adjust after FSF merge:
8866         * calls.c (expand_call): Add comment.
8867         * ch-expr.c: Add newline.
8868         * expmed.c (store_split_bit_field): Add comment.
8869
8870 Tue Jul 27 17:32:13 1993  Bill Cox  (bill@rtl.cygnus.com)
8871
8872         * ch-actions.c (build_chill_binary_op): Set code0 and
8873           code1 only in pass 2.
8874           (get_result_tmp_name): Cast alloca return for portability.
8875         * ch-decl.c (pop_module): Test current_module ptr before
8876           using it.
8877         * ch-lex.l: Set lineno and input_filename for pass 2
8878           error messages.
8879
8880 Tue Jul 27 15:14:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8881
8882         * ch-lex.l: Fix the syntax error at line 329.  Will I
8883           *ever* quit fixing these in the ch-lex.c file?  Stay tuned..
8884
8885 Tue Jul 27 15:01:25 1993  Bill Cox  (bill@rtl.cygnus.com)
8886
8887         * ch-lex.l: Pervasive rewrite for queueing seize files,
8888           then parsing them at the end of pass 1.  Still some
8889           problems.
8890
8891 Tue Jul 27 07:40:39 1993  Bill Cox  (bill@rtl.cygnus.com)
8892
8893         * chill.in: Check for .i suffices only, and use -xchill
8894           to bracket the argument.
8895
8896 Thu Jul 22 19:17:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8897
8898         * c-decl.c (print_lang_identifier): Oops.  Syntax error.
8899
8900 Thu Jul 22 18:56:16 1993  Bill Cox  (bill@rtl.cygnus.com)
8901
8902         * c-decl.c (pushdecllist): Standardize loop for readability.
8903         * ch-decl.c (decl_temp): Call pushdecllist to store decl
8904           into hash table, move after current_scope declaration.
8905           (decl_temp1): Move also.
8906         * ch-lex.l (getlc): New function.  Force char to lower case.
8907           (check_newline): Call it, so comparisons work on uppercase
8908           keywords.
8909
8910 Wed Jul 21 22:17:22 1993  Bill Cox  (bill@rtl.cygnus.com)
8911
8912         * ch-decl.c (do_decls): Add saving of decl tree
8913           address into ID node in pass 2,  reindent.
8914         * ch-grant.c (start_chill_function2): New function.
8915           (chill_start_module_code,  chill_finish_module_code): Call it.
8916         * ch-loop.c (build_temporary_variable, begin_for_range):
8917           Replace start_decl, finish_decl pairs with decl_temp1 calls.
8918         * ch-parse.y (parnamelist): Eliminate warning by eliminating
8919           the %type for now.
8920         * ch-actions.c, ch-tasking.c: Replace do_decls calls with
8921           decl_temp1 calls.
8922         * ch-tree.h: New prototypes.
8923         * stmt.c (stamp_nesting_label): Check parameters for NULL.
8924         * toplev.c (lang_options): Add '-L' option.
8925
8926 Wed Jul 21 21:06:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8927
8928         Portability fixes.
8929         * ch-decl.c (save_decl): Make definition match forward declaration.
8930         * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
8931           in the macro - Sun's compiler throws warnings.  Thanks, Brendan.
8932         * ch-satisfy.c (satisfy): Add forward declaration.
8933           (SATISFY): Add outer parens for greater safety.
8934
8935 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8936
8937         * c-decl.c (pushdecllist): New function.  Add a list of decls
8938         to the current scope, checking for duplicates.
8939         * c-decl.c (start_function):  Remove some Chill junk.
8940         (This function should no longer be used for Chill.)
8941         * ch-lex.l (ch_lex_init):  New function, to re-init for 2nd pass.
8942         * ch-lex.l (<<EOF>>):  Cleanup, and re-start for 2nd pass.
8943         * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG):  New flags.
8944         * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
8945         Implement.  Add comments.
8946         * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
8947         Better Blue Book type checking.
8948         * ch-actions.c (finish_chill_binary_op): Handle folding
8949         and other stuff that couldn't be done in pass 1.
8950         * ch-actions.c (build_chill_binary_op):  Bail out early if pass 1.
8951         Use new CH_ROOT_MODE macro to handle integer promotions etc.
8952         * ch-except.c (push_handler):  Bail out if pass 1.
8953         * ch-tasking.c (make_process_struct):  Defer making this work.
8954         * ch-parse.y (assignaction):  Simplify, and move some code ...
8955         * ch-expr.c (chill_expand_assignment): ... here.
8956         * ch-typeck.c (chill_root_mode, chill_resulting_mode,
8957         chill_compatible_classes):  New functions, implementing the
8958         correspondingly named Blue Book concepts.
8959         * ch-parse.y generally:  Lots of little tweaks to support
8960         2-pass compilation.
8961         * ch-parse.y (push_module, pop_module):  Moved to ...
8962         * ch-decl.c (push_module, pop_module):  ... here.
8963         * ch-parse.y (push_action):  New function.
8964         * ch-parse.y (pdef):  Move complicated action to ...
8965         * ch-parse.y (end_function):  ... new function here.
8966         * ch-parse.y (procedure):  Major re-write.
8967         * ch-parse.y (paramname, paramnamelist):  New, to avoid conflict (?).
8968         * ch-decl.c (do_decls, push_syndecls, push_modedef,
8969         start_chill_function, finish_chill_function):  Do different things
8970         on each pass.  Hence, can use code in c-decl.c to lesser extent.
8971         * ch-decl.c (build_chill_function_type):  First arg is now
8972         just the return type, rather than a singleton list.
8973         * ch-decl.c (massage_param_node):  Remove not needed (we
8974         now encode parameter attributes directly in the TREE_PURPOSE).
8975         * ch-decl.c (chill_munge_params):  New function, called by parser.
8976         * ch-decl.c (push_parms):  Removed function.
8977         * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
8978         New functions, to coordinate decls between passes.
8979
8980 Wed Jul 21 14:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
8981
8982         * ch-actions.c (lang_decode_option): Add option -Lpath
8983           to specify seize file path.
8984           (ch_singleton_set): Readability formatting.
8985           Add comment, move functions to easier found places.
8986         * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
8987           (register_seize_path): Use memcpy so pathlen has an effect.
8988         * gcc.c (default_compilers): Add -L option to chill
8989           compiler SPECs.
8990
8991 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8992
8993         * ch-satisfy:  New file.  Used for name lookup.
8994         * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
8995
8996 Wed Jul 21 12:16:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8997
8998         * toplev.c (main): Delete -L option handling - breaks
8999           non-chill compilers.
9000
9001 Wed Jul 21 09:29:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9002
9003         * ch-grant.c: #undef strchr and strrchr names in extern
9004           declarations, to prevent RS6000 compiler from reporting
9005           their misuse as macros.
9006         * ch-lex.l (setup_seizefile_read): Refer to list of  paths
9007           for seizefiles specified by -L options on command line.
9008           (register_seize_path): Add a new path to the seize file list.
9009         * toplev.c (strip_off_ending): Recognize chill suffix.
9010           (main): Recognize -L option, specifying a seize file path.
9011
9012 Tue Jul 20 12:41:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9013
9014         * ch-lex.l (convert_float): Make it really portable,
9015           using the appropriate macros.
9016
9017 Tue Jul 20 11:26:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9018
9019         * ch-lex.l (convert_float): More casts for vxworks
9020           portability.
9021
9022 Tue Jul 20 11:01:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9023
9024         * ch-lex.l (convert_float): Give variable `d' correct
9025           type so build_real call is correct.  Should remove
9026           vxworks portability problem.
9027           (convert_float): Re-indent to standards.
9028
9029 Mon Jul 19 17:32:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9030
9031         * ch-actions.c (build_char_array_expr): Add field decls to
9032           constructor.  Now, it generates the library call.
9033         * ch-expr.c (chill_expand_array_assignment): Make sure that all
9034           error messages say 'mode' not 'type'.
9035
9036 Mon Jul 19 14:44:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9037
9038         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
9039           ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
9040           Make sure that all error messages say 'mode' not 'type'.
9041         * ch-decl.c (push_modedef): Add novelty computation,
9042           storage in each newmode.
9043         * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
9044           Reformat slightly for readability.  Fix comments.
9045         * ch-tree.h: Delete print_lang_type prototype.
9046
9047 Mon Jul 19 06:43:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9048
9049         * ch-actions.c (chill_expand_return): Disable
9050           error message which requires 2-pass analysis, for
9051           now.
9052         * ch-convert.c (convert): Build length-only constructor
9053           for empty string (PR 2930).
9054
9055 Fri Jul 16 16:08:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9056
9057         * ch-expr.c (chill_expand_array_assignment): Check
9058           non-varying string assignments for conformance to
9059           the "string assignment condition" (PR 2920).
9060
9061 Thu Jul 15 13:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9062
9063         * ch-actions.c (build_chill_array_expr): Check parameters.
9064           Call convert to build unitary array from scalar if
9065           needed.  Rewrite CONCAT_EXPR handling.
9066         * ch-convert.c (build_array_type_for_scalar): New functions.
9067           (convert): Call new function, to convert scalar to unitary
9068           array.  Only call chill_expand_tuple if expression hass
9069           NULL_TREE type.
9070         * ch-expr.c (chill_expand_expr): Allow a larger static
9071           varying array to be assigned to a smaller, with a runtime
9072           test (to be provided).
9073         * ch-parse.y (locdec): Comment out bogus error msg.
9074           (elementlist): Replace several lines with chainon call.
9075         * ch-tree.h (SCALAR_P): New macro.  New prototype for
9076           build_array_type_for_scalar.
9077         * ch-typeck.c (build_chill_cast): Re-indent.
9078           (chill_expand_tuple): Comment out strange addition of 
9079           varying string's length to front of constructor list.
9080
9081 Thu Jul 15 05:58:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9082
9083         * ch-except.c (start_handler_array): Use unique identifier for
9084           exception array, so we can have > 1 array per reach
9085           (PR 2931).  The change was originally entered June 23, and
9086           subsequently lost.
9087
9088 Mon Jul 12 16:07:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9089
9090         Get executable test cases running again...
9091         * c-typeck.c (build_function_call): Bypass default
9092           parameter promotions, format param syntax check for
9093           CHILL; they've already been converted in
9094           build_chill_function_call.
9095         * ch-actions.c (chill_expand-return): Correct tests
9096           for function which returns no value.
9097         * ch-convert.c (base_type_size_in_bytes): Check for
9098           NULL type parameter, just return.
9099           (convert): Allow conversion of CHAR to varying array
9100           of CHAR.
9101           Change error msg to "conversion" from "assignment".
9102           Remove default from case, which short-circuited before
9103           REFERENCE_TYPEs got converted.  Deleted second copy
9104           of REFERENCE_TYPE code.
9105         * ch-lang.c (build_chill_range_type): Simply exit if
9106           NULL input parameter.
9107         * ch-loop.c: Fix comment.
9108
9109 Sun Jul 11 11:27:08 1993  Bill Cox  (bill@cygnus.com)
9110
9111         * ch-actions.c (chill_expand_result, chill_expand_return):
9112           Move here from ch-typeck.c.  Add a temporary to remember the
9113           result value in.  Change return handler to fetch that 
9114           temporary value, if there is one.
9115         * ch-parse.y (pdef): Call chill_expand_return to fetch
9116           the temp's value.
9117         * ch-tree.h, ch-typeck.c: Move return, result functions to
9118           ch-actions.c.  And their prototypes.
9119
9120 Fri Jul  9 15:47:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9121
9122         * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
9123           ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
9124           ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
9125           ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
9126
9127 Fri Jul  9 09:41:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9128
9129         * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
9130           (print_integer): Delete old non-working INSTANCE code.
9131         * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
9132         * ch-parse.y (rccase_label): Move all actions inside if.
9133           Use BUFFERNAME to recognize receice case buffer clause,
9134           eliminate one shift-reduce conflict.
9135         * ch-tasking.c (build_buffer_descriptor): Check for
9136           CH_DECL_BUFFER flag, remove unused code.
9137
9138 Thu Jul  8 11:17:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9139
9140         Declaring and sending buffers..  first draft
9141         * ch-actions.c (lang_init): Define the send_buffer runtime
9142           function.
9143         * ch-decl.c (do_decls): Standardize loop, so stepping
9144           isn't hidden.
9145         * ch-lex.l: Clean up prototypes for readability.
9146         * ch-parse.y (sendaction): Add send buffer action.
9147           (locdec): Add rule for buffer declaration.
9148         * ch-tasking.c (generate_tasking_code): standardize indentation.
9149           (make_signal_struct): Readability changes.
9150           (build_chill_send_buffer, build_buffer_decl, 
9151            build_buffer_descriptor): New functions.
9152         * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
9153           buffer's maximum queue length in buffer decl.
9154           (CH_DECL_BUFFER): Add flag in decl.  Clean up for
9155           readability.  Add prototypes.
9156         * ch-typeck.c (build_chill_cast): Call convert rather
9157           than storing directly into TREE_TYPE field.
9158
9159 Tue Jul  6 12:34:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9160
9161         * ch-actions.c (lang_init): Set warn_switch so case labels
9162           get checked.  Move build_chill_case_expr to ch-expr.c.
9163         * ch-expr.c (chill_expand_case_expr): Enable checking
9164           of expression case labels.
9165         * ch-grant.c: Move a comment.
9166
9167 Mon Jul  5 10:02:27 1993  Wilfried Moser  (fs_moser at rcsw1j)
9168
9169         * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
9170         * ch-except.c (initialize_exceptions): Change the layout of the
9171           structure __ch_handler. The entry __jbuf is moved to the end 
9172           of the structure and its size was changed to _JBLEN+10.
9173         * ch-decl.c (push_chill_extern_process): Add processing of
9174           processes with no arguments.
9175         * ch-grant.c (decode_decl, do_seize): Add processing of
9176           processes with no arguments.
9177         * ch-tasking.c (build_process_header, build_chill_start_process):
9178           Add processing of processes with no arguments.
9179           (make_process_struct): Add processing of IN attribute for
9180           process arguments.
9181           (tasking_setup): Add NUL-character to name of a tasking
9182           element. The name must be NUL terminated.
9183           (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
9184           to 0 with a warning if -Wall specified on command-line.
9185         
9186 Fri Jul  2 16:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9187
9188         * ch-parse.y: Change 'empty' comments to new non-terminal
9189           so that exyacc doesn't discard them.
9190         * ch-lang.c (build_chill_range_type): New error messages.
9191
9192 Fri Jul  2 12:43:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9193
9194         * ch-parse.y (action): Catch and report actions which 
9195           shouldn't have exception clauses, but do.  Unfortunately,
9196           catching more than one of these per compilation will 
9197           have to await the general addition of syntax error
9198           recovery to the parser.
9199
9200 Fri Jul  2 10:45:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9201
9202         * ch-parse.y (locdec): Issue error for initialization 
9203           of bitstring with tuple, not for powerset init with
9204           tuple.
9205
9206 Thu Jul  1 15:29:26 1993  Bill Cox  (bill@rtl.cygnus.com)
9207
9208         * ch-lang.c (build_chill_array_type): Check for indices
9209           that didn't fold into constants, issue error (PR 2924b).
9210         * ch-parse.y: Add novelty counter, alphabeticalize.
9211         * ch-tree.h: Define CH_NOVELTY for novelty checks later.
9212
9213 Thu Jul  1 14:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9214
9215         For Wilfried Moser.
9216         * chill.in: Add -ansi switch at compiler call to avoid
9217           translation of i.e. sun to 1 by cpp.
9218
9219 Wed Jun 30 22:21:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9220
9221         * ch-grant.c (raw_decode_mode): Add code for
9222           integer and enumeral ranges.  Standardize indentation.
9223
9224 Wed Jun 30 14:02:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9225
9226         * ch-grant.c (print_an_int): New function to print a
9227           decimal integer string or the CONST_DECL (SYN) which
9228           best matches it.
9229           (print_integer): Call the above function.  Replace
9230           calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
9231           comparisons, as suggested by Jim Wilson.
9232           (decode_decl): Set current_grant_modename sooner,
9233           be sure to clear it when done.
9234
9235 Wed Jun 30 10:10:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9236
9237         * ch-actions.c (build_max_min): Change interface to accept
9238           just a max/min flag.  Get min/max values from an
9239           enumeral constructor.
9240           (build_chill_max, build_chill_min): Change calls to
9241           build_max_min.
9242         * ch-lang.c (deep_const_expr): Check for NULL_TREE
9243           arguments, don't seg fault.
9244
9245 Wed Jun 30 09:20:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9246
9247         * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
9248           to switch cases, preventing abort.
9249
9250 Tue Jun 29 19:04:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9251
9252         * ch-expr.c: Update comment.
9253         * ch-parse.y (range_or_mode): New non-terminal used in
9254           lexpr to implement mode as case label.
9255
9256 Tue Jun 29 13:13:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9257
9258         * ch-actions.c (build_chill_case_expr): Pass in the
9259           optional ELSE clause, error for multiple case-selector
9260           expressions, error for missing ELSE clause.
9261         * ch-expr.c (chill_expand_assignment): Error if multiple
9262           location assignment and locations not novelty 
9263           equivalent.
9264         * ch-parse.y (caseaction): Add range_list_clause non-
9265           terminal, sorry message for it.
9266           (assignaction): error if operator used on multiple
9267           assignment.
9268           (case_expr): Pass optional ELSE tree to 
9269           build_chill_case_expr for checking.
9270         * ch-tree.h (build_chill_case_expr): Change proto.
9271
9272 Fri Jun 25 17:22:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9273
9274         * ch-actions.c (chill_comptypes, build_chill_binary_op):
9275           Allow PROC mode variables.
9276         * ch-convert.c (convert): Turn a NULL literal into a zero
9277           valued pointer-to-function, given such a type.  Also
9278           build the ADDR_EXPR of a function variable.
9279         * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9280           (print_enumeral, print_integer, print_struct) Moved these
9281           large functions out of the switch in raw_decode_mode for
9282           readability, and to encourage future code-sharing.
9283           (print_proc_tail, print_proc_exceptions): Moved these out
9284           of decode_decl, to share them.  They're used also to
9285           output PROC modes.
9286         * ch-parse.y (mode2): Enable PROC modes.
9287           (procmode): Represent PROC mode as a ptr-to-function type.
9288           (call): Recognize ptr-to-function as indirect call.
9289           Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9290
9291 Thu Jun 24 15:59:20 1993  Bill Cox  (bill@rtl.cygnus.com)
9292
9293         * ch-grant.c: (raw_decode_mode): Add support for unnamed
9294           and user-numbered enumeration members.
9295
9296 Thu Jun 24 13:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9297
9298         * ch-actions.c (build_chill_array_expr, build_chill_length):
9299           Explicitly convert a varying array's length field to an
9300           integer_type_node, now that it's only a chill_integer_
9301           type_node.
9302         * ch-expr.c (chill_expand_expr, 
9303                      expand_assignment_to_varying_array, 
9304                      chill_expand_array_assignment,
9305                      expand_varying_length_assignment): Explicitly 
9306           convert a varying array's length field to an integer_type_node,
9307           now that it's only a chill_integer_type_node.
9308         * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9309           to handle varying array location iterations.
9310         * ch-parse.y (mode2): Count number of named SET members,
9311           as opposed to '*' members.  Issue error if there were none.
9312           (setelement): Count named set members.  Generate a unique
9313           identifier for the '*' element.
9314         * ch-typeck.c (validate_varying_array_ref):  Explicitly 
9315           convert a varying array's length field to an integer_type_node,
9316           now that it's only a chill_integer_type_node.
9317
9318 Wed Jun 23 19:18:28 1993  Bill Cox  (bill@rtl.cygnus.com)
9319
9320         * ch-lang.c (finish_chill_enum): Change test for too-
9321           large enumerations.
9322         * ch-parse.y (setelement, optsetvalue): Allow numbered,
9323           unnamed set elements.
9324
9325 Wed Jun 23 16:25:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9326
9327         * c-typeck.c (process_init_constructor): Suppress
9328           errors about un-initialized array elements if the
9329           array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9330         * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9331           enumerations *can* be only a byte in size.
9332           (adjust_parm_or_field): Convert untyped parameter before
9333           looking at its type to process it.
9334         * ch-convert.c (convert): Generate [ -1, -1 ] value for
9335           an INSTANCE type.
9336         * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9337           type, so that output_constant doesn't seg fault.
9338         * ch-except.c (start_handler_array): Use unique identifier for
9339           exception array, so we can have > 1 array per reach.
9340         * ch-lang.c (finish_chill_enum): Error if number of
9341           enumeration values exceeds 256.
9342         * ch-parse.y (check_end_label): Error, not warning if start
9343           and end labels don't match.
9344           (assignaction): Convert RHS.  Allows untyped tuples to be
9345           passed to stabilize_reference.
9346           (exceptlist, onexceptprefix): Error if non-unique exception
9347           name is coded.
9348         * ch-tree.c: Added form feeds, comment reformatted.
9349         * ch-typeck.c (chill_expand_tuple): Compare tree value to
9350           NULL_TREE, not zero.  Add a constructor element for a
9351           VARYING array's length to the constructor list.
9352           (build_varying_struct): Mark the type as VARYING for
9353           process_init_constructor.
9354         * toplev.c (lang_options): Add '-lang-chill' and
9355           '-fchill-grant-only' options to table.
9356
9357 Tue Jun 22 13:13:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9358
9359         * ch-actions.c (build_chill_function_call): Add check
9360           to prevent calling a PROCESS like a PROCEDURE.
9361         * ch-parse.y (rcalternative): Add check for an 
9362           receive case alternative after a RECEIVE CASE
9363           statement.
9364         * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9365         * ch-lang.c (lang_finish): Remove resetting errorcount
9366           and sorrycount for granting.
9367
9368 Mon Jun 21 17:56:48 1993  Bill Cox  (bill@rtl.cygnus.com)
9369
9370         Receiving signals works.
9371         * ch-actions.c (lang_init): Add else_clause flag to
9372           __wait_signal parameter list.
9373         * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9374         * ch-parse.y (SIGNALNAME): New token.  Delete 
9375           empty_untyped_exprlist token, no longer used.  Add 
9376           name_or_signal non-terminal.  Standardize a few NULL
9377           tests.  Add real RECEIVE CASE semantics.  Add checks that
9378           SIGNALS, BUFFERs are only declared at global scope.
9379           (call): Add signal declarations with/without data fields.
9380         * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9381           build_chill_receive_case_start, build_chill_receive_case_end,
9382           build_chill_receive_case_label): New functions.
9383           Replace build (CONSTRUCTOR, ... calls with build_nt 
9384           (CONSTRUCTOR, calls.
9385         * ch-tree.h: New prototypes.
9386
9387 Thu Jun 17 18:36:38 1993  Bill Cox  (bill@rtl.cygnus.com)
9388
9389         SIGNAL declaration compilation, seizing & granting,
9390           SENDing also.
9391         * ch-actions.c (lang_init): Move instance_type_node 
9392           build to ch-tasking.c.  Call build_tasking_message_type.
9393           Build a type for send_signal.  Put builtin_function
9394           calls into alpha order.
9395           (adjust_proc_param): Rename to adjust_parm_or_field,
9396           add is_signal flag, so signal fields can use it.  Rename
9397           calls to it, add flag to calls.
9398         * ch-decl.c (push_chill_extern_signal): Add function.
9399         * ch-grant.c (decode_decl): Correct signal decl output.
9400           (do_seize): Correct check for process seizure.  Add
9401           code for seized signal decl.
9402         * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9403         * ch-loop.c (get_unique_identifier): Standardize loop
9404           temporary's name to assure that it's not granted.
9405         * ch-parse.y (SIG_NAME): Delete unused token.
9406           (spec_declist): Delete silly printf.
9407           (quasi_signaldef): Add non-terminal.
9408           (sendaction, optsendwith, optsendto, optpriority):
9409           Implement actual working semantics.
9410           (call, empty_untyped_exprlist): Allow empty signal 
9411           fields between parens.
9412         * ch-tasking.c: Rename adjust_proc_param calls, add
9413           is_signal flag to calls.  Make instance_type_node a
9414           type, not a TYPE_DECL, change references.  Fix all
9415           CONSTRUCTOR builds.  Add make_signal_struct function.
9416           Move build_instance_type here from lang_init.
9417           (build_tasking_message-type, build_signal_descriptor,
9418           build_chill_send_signal): New functions.
9419         * ch-tree.h: Add, update protos.
9420         * ch-typeck.c (build_chill_cast): Check for NULL expression
9421           type as well as error_mark.
9422
9423 Thu Jun 17 12:28:03 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9424
9425         * Makefile.in (STAGESTUFF): Add chill to list.
9426
9427 Wed Jun 16 07:12:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9428
9429         * Makefile.in: Complete the renaming of ch-process.c
9430           to ch-tasking.c.
9431         * ch-decl.c (push_chill_extern_function): Drop is_process
9432           parameter, and marking process decl trees.
9433           (push_chill_extern_process): New function for
9434           SEIZEd processes.  Lotsa form feeds added for print
9435           readability.
9436         * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9437           (do_seize): New parameter seize_all.  Handle sseizing
9438           processes.
9439           (chill_seize): Pass seize_all parameter.
9440           (chill_grant): Check for __tmp_ prefix, to disable
9441           *either* seizing or granting.
9442         * ch-parse.y (quasi_pdef): Delete is_process parameter for
9443           push_chill_extern_functon, call push_chill_extern_process
9444           for processes.
9445           (specialinit): Comment these rules as needed only until
9446           2-pass compiler is operational.
9447           (extprocedure): Delete is_process parameter.
9448           (simpledec): Delete `sorry' about SIGNAL decls.
9449           (optsigdest): Correct check for process name.
9450         * ch-tasking.c (build_signal_decl): Finish coding.
9451         * ch-tree.h: Add macro to save a SIGNAL's destination
9452           process name in an id node.  Add/change prototype.
9453
9454 Mon Jun 14 18:17:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9455
9456         * ch-actions.c (lang_init): Build instance_type_node.
9457           Change `this' to a runtime function call.
9458         * ch-grant.c (do_seize): Generate tasking-code
9459           variable for seized process.
9460         * ch-lex.l (equal_number): Also accept synonym
9461           name for numeric value.
9462         * ch-parse.y (primval): Add process-related
9463           function calls.  
9464           (signaldef, etc.): Rough draft of SIGNAL definition
9465           processing. 
9466           (stopaction): Call runtime function.
9467           (pdef): Pop symbol level if ending a process
9468           and there were parameters.
9469           (primval): Call `whoami' runtime function for THIS.
9470         * ch-tasking.c (build_process_header): Be sure
9471           to define the tasking enum, if it hasn't already
9472           been done.  Only call shadow_record_fields if there
9473           are parameters.  
9474           (build_tasking_enum): Only call start_enum *after*
9475           checking the already_built flag.
9476           (build_copy_number, get_tasking_code,
9477           build_gen_code, build_gen_inst, build_get_ptype,
9478           build_proc_type): New functions for process-related
9479           builtins.
9480           (build_signal_decl): New function for SIGNAL
9481           declaration - rough draft.
9482         * ch-tree.def (INSTANCE_TYPE): new tree code.
9483         * ch-tree.h: New prototypes.  Defines for instance
9484           type field access.
9485
9486 Sat Jun 12 21:15:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9487
9488         Get start-process action working:
9489         * ch-actions.c (adjust_proc_param): new function,
9490           extracted from build_chill_function_call and called
9491           from there.
9492         * ch-tree.h, ch-grant.c (do_seize): Add process_type 
9493           parameter to add_taskstuff_to_list call, prototype.
9494         * ch-parse.y (start_parlist): New non-terminal for
9495           START action.
9496           (startaction): Reference start_parlist, check for
9497           integer-valued process copy-number.
9498           (optstartset): Check instance parameter - must be
9499           an INSTANCE_TYPE location.
9500         * ch-tasking.c (generate_tasking_code_variable): New
9501           function, extracted from tasking_setup and called 
9502           from there.  Also called from build_process_header.
9503           (build_process_header): Add process_type parameter
9504           to add_taskstuff_to_list call.  Remove incrementing
9505           of process_type (moved into generate_tasking_code
9506           _variable).
9507           (build_chill_start_process): Complete rewrite.
9508           (add_tasking_stuff_to_list): Add stuffnumber parameter
9509           putit on the list.          
9510
9511 Sat Jun 12 06:08:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9512
9513         Getting processes compiled, initialized and granted:
9514         * .cvsignore: Add chill file.
9515         * c-decl.c (shadow_record_fields): Allow PARM_DECL
9516           as well as VAR_DECL.
9517         * ch-actions.c (lang_init): Move build of
9518           initializer_type into ch-tasking.c.  Change
9519           definition of THIS to function call.
9520         * ch-decl.c (massage_param_node): Add comments.
9521           (start_chill_function): Set nested flag in
9522           start_function call based upon current_function_decl,
9523           not as constant zero.
9524         * ch-grant.c (decode_decl): lotsa code by Wilfried to
9525           GRANT process decls.  
9526           (finish_chill_module): Completely rewrote interface
9527           to runtime.
9528         * ch-lex.l (THIS): Just return the token code.
9529         * ch-parse: Add THIS token.
9530           (processpar, processparlist): New rules, to collect
9531           process parameters. 
9532           (pdef): Add code to pop the process' WITH scope.
9533           (procedure): Set process WITH scope flag to zero.
9534           (process): Move most code into build_process_header.
9535           (primval): Output function call for THIS.
9536         * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9537           make_process_struct, build_process_header): New code 
9538           to handle process translation and interface to runtime.
9539         * ch-tree.h: New prototypes.
9540
9541 Thu Jun 10 13:32:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9542
9543         * Makefile.in: Change ch-process.c to ch-tasking.c.
9544           A delayed part of the last change..
9545
9546 Thu Jun 10 11:14:59 1993  Bill Cox  (bill@rtl.cygnus.com)
9547
9548         * .cvsignore: Add 'chill' file.
9549         * ch-actions.c (lang_init): Add new runtime function
9550           __register_process.
9551         * ch-decl.c (push_chill_extern_function): Add is_process
9552           input flag, use it.
9553         * ch-grant.c (decode_decl): Recognize a process for
9554           granting.
9555           (do_seize): Put seized processes onto the tasking_list.
9556           (chill_finish_module_code): Declare init_list entry,
9557           link it onto the init_list.  Call tasking_setup and
9558           tasking_registry.
9559         * ch-lex.l: Make tasking-related variables global,
9560           delete their initialized flags.
9561         * ch-parse.y: Add is_process flag to push_chill_extern_function
9562           calls.  Put processes onto the tasking_list.
9563         * ch-process.c: Renamed to ch-tasking.c.
9564         * ch-tasking.h: New file.
9565         * ch-tree.h: New, adjusted prototypes.
9566
9567 Wed Jun  9 10:59:27 1993  Wilfried Moser  (moser@deneb.cygnus.com)
9568
9569         * chill: This file is replaced by chill.in and will be
9570           generated during 'make' and 'make install'. This script
9571           now finds the correct chillrt0.o and libchill.a during
9572           linking.
9573         * chill.in: New file that replaced chill.
9574         * Makefile.in: Add rules to make chill out of chill.in.
9575
9576 Wed Jun  9 09:03:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9577
9578         * .cvsignore: Add gfloat.h and xlimits.h.
9579         * ch-actions.c (lang_init): Create new type for module-
9580           level initializer list entry.
9581         * ch-grant.c (chill_start_module_code): Rename actual
9582           module-level code to just the modulename, which is
9583           *not* public.
9584           (chill_finish_module_code): Allocate space for initializer
9585           list entry, build real initializer function, which puts
9586           the list entry on the runtime list.  Name the init function
9587           as the module's constructor function.
9588         * ch-tree.h (build_init_struct): Add prototype.
9589         * ch-typeck.c (build_init_struct): Add function, called
9590           from lang_init.
9591         Note: these changes require a new devo/chillrt/chillrt0.c.
9592
9593 Thu Jun  3 17:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9594
9595         * c-decl.c: Fix comment.
9596         * ch-actions.c, ch-grant.c: Standardize front end:
9597           #define first, etc.  Add comments.
9598           (lang_init): Delete unused flag, code for inapplicable
9599           gen-decls option.  (lang_decode_option): Delete
9600           gen-decls option, add grant-only option, flag.
9601         * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9602           ch-typeck.c: Add form feed after front end.
9603         * ch-expr.c: Standardize testing for error_mark node.
9604         * ch-lang.c: Remove unused deep_fold function.
9605
9606 Fri May 21 11:04:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9607
9608         * c-typeck.c (build_binary_op, build_unary_op):
9609           Recognize BOOLEAN_TYPE.
9610         * ch-actions.c (build_chill_unary_op): Remove
9611           some crufty work-arounds.
9612
9613 Thu May 20 19:03:48 1993  Per Bothner  (bothner@deneb.cygnus.com)
9614
9615         * ch-grant.c (decode_constant):  If the granted value is a
9616         cast, make sure to emit an appropriate expression conversion.
9617
9618 Thu May 20 16:35:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9619
9620         * ch-lang.c (build_chill_range_type): Initialize the
9621           precision variable.  Double-negative ranges work now.
9622
9623 Thu May 20 11:24:42 1993  Bill Cox  (bill@rtl.cygnus.com)
9624
9625         * ch-actions.c (build_unary_op): Compound a wretched
9626           hack which hides a BOOLEAN_TYPE from the underlying
9627           C code.
9628
9629 Wed May 19 16:45:54 1993  Bill Cox  (bill@rtl.cygnus.com)
9630
9631         * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9632           from chill_comptypes. (build_chill_unary_op): Give
9633           better name to unsigned flag.
9634         * ch-expr.c (chill_expand_assignment): Correct calling
9635           sequence for setpowersetbits runtime routine.
9636         * ch-grant.c (raw_decode_mode): Give better name to 
9637           unsigned flag.  (decode_constant): Check for null
9638           'val' ptr, avoid seg fault.
9639         * ch-lex.l (convert_number):  Give better name to 
9640           unsigned flag. (convert_bitstring): Move increment
9641           of bl counter to emphasize that it increments once
9642           per loop.
9643         * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9644         * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9645           constructor if given a singleton set constructor.
9646
9647 Thu May 13 17:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9648
9649         * c-decl.c (pushdecl): Complete May 9 change.
9650         * ch-actions.c (build_chill_unary_op): Set the
9651           TREE_UNSIGNED flag FALSE for raw_decode_mode.
9652         * ch-grant.c (grant_array_type): Correct the May 12
9653           check for circularity.
9654           (raw_decode_mode): Use TREE_UNSIGNED flag to
9655           control range's printing.
9656           (chill_grant): Remove useless, bogus code.
9657         * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9658           flag TRUE for raw_decode_mode.
9659
9660 Wed May 12 18:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9661
9662         * ch-decl.c (push_syndecls, push_modedef): Comment
9663           reminders to check for circular definitions.  Later!
9664         * ch-grant.c (grant_array_type, decode_decl): Prevent
9665           circular definitions in the use of the array's 
9666           type name.
9667
9668 Wed May 12 16:06:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9669
9670         * ch-grant.c (grant_array_type): If array_type has
9671           a name, just use it.
9672         * ch-lang.c (build_chill_range_type): Don't force
9673           unsigned ranges on output.
9674         * expr.c (store_constructor): Preclude seg fault.
9675
9676 Wed May 12 07:49:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9677
9678         * ch-actions.c (fold_set_*): Correct tests for 
9679           range set-constructor list entries.
9680           (lang_init): Define setpowersetbits function.
9681         * expr.c (store_constructor): Handle non-constant
9682           set constructors.
9683
9684 Tue May 11 18:25:40 1993  Per Bothner  (bothner@cygnus.com)
9685
9686         * ch-lang.c (build_chill_range_type):  If the parent type
9687         is unknown, and the endpoints of the range are integer
9688         constants, use the smallest suitable integer type.
9689         * ch-lang.c (build_chill_range_type):  Remove kludge
9690         for dealing with char ranges.
9691
9692 Tue May 11 15:24:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9693
9694         * ch-actions.c (build_chill_repetition_op): Build a
9695           range-type set constructor if there's only one value
9696           in the repeated constructor.
9697           (fold_set_*): Abort if range value seen, for now.
9698         * expr.c (store_constructor): Handle range-type by
9699           storing bytes rather than bits as much as possible.
9700
9701 Mon May 10 18:45:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9702
9703         * ch-actions.c (invalid{left right}_operand): Add
9704           handlers for REPLICATE_EXPR.
9705           (build_chill_repetition_op): Build constructor list
9706           for repetition of bitstring.
9707         * ch-parse.y (call): Recognize more trees as arrays,
9708           to avoid error msg.
9709           (operand5): Add count, string temporaries, use them.
9710
9711 Mon May 10 16:49:08 1993  Per Bothner  (bothner@cygnus.com)
9712
9713         * ch-grant.c (seize_implied_names):  Fix code that assumed
9714         a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9715         * ch-grant.c (generate_set, grant_parent_of_enum,
9716         grant_parent_enum): Removed unused functions.
9717         * ch-grant.c (raw_decode_mode):  Remove commented-out code.
9718
9719 Mon May 10 10:54:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9720
9721         * ch-grant.c (do_seize, seize_implied_types): Move
9722           result and parameter processing to proper place.
9723           (chill_seize): Mark unseized identifier with
9724           error_mark_node, to avoid excessive errors.
9725         * ch-parse.y (call): Check for ERROR_MARK before 
9726           reporting an error.
9727
9728 Sun May  9 17:21:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9729
9730         * c-decl.c (pushdecl): If a strongly-visible name is
9731           seen, in conflict with a weakly-visible name, take
9732           the strongly-visible one and don't complain.
9733         * ch-actions.c (chill_comptypes): Allow chain of ref-
9734           erence types > 1 in length.
9735         * ch-grant.c: Turn disguised for-loops into actual
9736           ones, so continue works.  Delete redundant code in
9737           seize_implied_names.  Reindent.
9738         * expmed.c (store_split_bit_field): Disable abort for
9739           CHILL.
9740
9741 Sun May  9 17:11:33 1993  Per Bothner  (bothner@cygnus.com)
9742
9743         * ch-convert.c (convert):  Move handling of SET_TYPE until
9744         after we've handled de-referencing and such like.
9745         * ch-grant.c (grant_array_type):  Simplify; remove (now-)
9746         bogus call to generate_set.
9747         * ch-grant.c (get_type):  Remove obsolete stuff.
9748
9749 Fri May  7 10:30:34 1993  Bill Cox  (bill@rtl.cygnus.com)
9750
9751         * ch-actions.c (lang_init): Add definition of psslice
9752           runtime routine. (build_chill_binary_op_1,
9753           build_chill_binary_op): Have result type of
9754           TRUTH_ANDIF_EXPR be boolean, not integer.  Some
9755           reindenting.
9756         * ch-convert.c (convert): Use consistent notation
9757           for expression.
9758         * ch-parse.y: Add front-end pass count. (locdec):
9759           Add syntax for other BASED declaration.
9760         * ch-tree.c: Fix comment.
9761         * ch-typeck.c (build_chill_slice): Implement a runtime
9762           call for bitstring slices. (build_chill_cast):
9763           Add code for BITS_BIG_ENDIAN bit loop.
9764           (chill_expand_tuple): Don't pass ref type to
9765           digest_init, only underlying type.
9766
9767 Thu May  6 12:52:14 1993  Per Bothner  (bothner@cygnus.com)
9768
9769         * ch-typeck.c (build_chill_cast):  type_for_size takes
9770         a size in bits, not bytes.
9771
9772 Wed May  5 19:02:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9773
9774         * ch-actions.c: Break out separate routines for set
9775           folding, handle ranges in set_fold_eq and set_fold_ne.
9776           Fix folding as req'd by TTC test.
9777         * ch-grant.c (raw_decode_more): Check for content match
9778           to decide output mode, not pointer identity.
9779         * ch-typeck.c: Add cross-reference comment.
9780         * varasm.c (emit_set_data): Clarify parameter name.
9781           Handle INTEGER_CST as set constructor.
9782           (output_constant): Handle CONSTRUCTOR node for sets.
9783           Apparently forgot to actually 'checkin' this one last
9784           time.
9785
9786 Wed May  5 12:23:58 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9787
9788         * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
9789
9790 Tue May  4 15:47:44 1993  Bill Cox  (bill@rtl.cygnus.com)
9791
9792         * ch-actions.c (fold_set_expr): new function to fold
9793           set expressions.  Calls inserted into 
9794           build_chill_binary_op and build_chill_unary_op.
9795           (build_chill_repetition_op): New function, called
9796           from build_chill_function_call.
9797         * ch-expr.c (chill_expand_assignment): Call 
9798           build_chill_repetition_op.
9799         * ch-grant.c (decode_constant): Comment out deep_fold
9800           call.  The earlier fold_set_expr calls should make
9801           this one unnecessary.  Prevent seg fault when name
9802           of structure field is NULL.  Standardize for loop.
9803         * ch-parse.y: Fix comments.
9804           (operand5): build a REPLICATE_EXPR.  Don't call
9805           build_repetition_op until we have a type.
9806         * ch-tree.def (REPLICATE_EXPR): Define tree-code.
9807         * ch-tree.h (build_chill_repetiton_op): Fix proto.
9808         * ch-typeck.c (chill_expand_result): Call 
9809           build_chill_repetition_op if needed.
9810         * varasm.c (emit_set_data): Clarify parameter name.
9811           Handle INTEGER_CST as set constructor.
9812           (output_constant): Handle CONSTRUCTOR node for sets.
9813
9814 Mon May  3 13:06:47 1993  Per Bothner  (bothner@cygnus.com)
9815
9816         * ch-typeck.c (build_chill_cast):  Allow more liberality to
9817         casting:  Any discrete type to any non-discrete type that is the
9818         same size as some other discrete type (and vice versa).
9819         * stor-layout.c (layout_type, case SET_TYPE):  If the number
9820         of bits will fit in a char or short, only use that many bits.
9821
9822 Mon May  3 08:22:45 1993  Bill Cox  (bill@rtl.cygnus.com)
9823
9824         * ch-grant.c (decode_constant): Revert interpretation
9825           of SET_TYPE as integer.
9826
9827 Mon May  3 07:55:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9828
9829         * chparse.y (casealternative): Allow empty action list.
9830
9831 Sat May  1 15:07:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9832
9833         * expr.c (expand_expr): Add parameter to __inpowerset
9834           runtime call, to match new runtime.
9835
9836 Sat May  1 14:55:58 1993  Bill Cox  (bill@rtl.cygnus.com)
9837
9838         * ch-actions.c: Cleanup from -Wall.  Reindent.
9839           Redefine __inpowerset to take a 'minval' parameter
9840           that matches the new runtime.  Added comments.
9841         * ch-expr.c (chill_handle_case_label): Handle
9842           NULL or ERROR trees.
9843         * ch-grant.c (get_type): Survive bogus type params,
9844           return empty string.
9845         * ch-tree.c (build_powerset_type): Diagnose powerset
9846           of non-discrete type.
9847         * ch-typeck.c (discrete_type_p): Reindent.
9848
9849 Fri Apr 30 16:08:54 1993  Bill Cox  (bill@rtl.cygnus.com)
9850
9851         * ch-grant.c (decode_constant): Interpret SET_TYPE
9852           with integer value, so we output the same stuff as
9853           the user gave us.
9854         * ch-parse.y: Fix indentation.
9855
9856 Fri Apr 30 09:34:03 1993  Bill Cox  (bill@rtl.cygnus.com)
9857
9858         * ch-actions.c (chill_comptypes): Simplify, correct
9859           integer subrange analysis.
9860         * ch-grant.c (seize_implied_names): Add handling for
9861           PROCESS_DECL, PROCESS_TYPE.
9862           (do_seize): Call seize_implied_names for process,
9863           procedure parameters and return value.
9864         * ch-lang.c (finish_chill_enum): Canonicalize enum
9865           types.
9866         * ch-tree.def (PROCESS_TYPE): Add.
9867         * ch-typeck.c (valid_array_index): Call chill_comptypes
9868           rather than broken macro CH_COMPATIBLE.  The logic
9869           in chill_comptypes will get moved to the macro later.
9870
9871 Thu Apr 29 13:07:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9872
9873         * ch-actions.c (build_chill_lower, build_chill_upper):
9874           Handle enumeration types.
9875           (build_chill_binary_op): Call chill_comptypes
9876           to error check IN arguments.  Change error
9877           messages to say 'mode' rather than 'type'.  Cast
9878           tree codes when build is called.
9879         * ch-expr.c (chill_expand_array_assignment): Call
9880           chill_comptypes to validate assignment args.
9881         * ch-lex.l: Add newline for readability.
9882
9883 Wed Apr 28 15:22:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9884
9885         * Makefile.in (ch-hash.h): Add rule to build this
9886           from chill.gperf.  Not yet used.
9887         * ch-actions.c (build_chill_binary_op): Allow enum
9888           subranges on RHS of IN operator.
9889         * ch-grant.c (decode_constant): Recognize 
9890           error_mark_node as empty powerset initializer,
9891           re-indent a bit.
9892         * ch-lang.c (deep_fold): Return error_mark_node for
9893           NULL input pointer or incoming error_mark_node.
9894         * ch-lex.l: Ignore PACK and UNPACK keywords. Return
9895           POS, ROW, and STEP as user-defined names.
9896           (name_or_type): New function for above.
9897         * ch-parse.y: Move token defs for following, comment
9898           them separately: NOPACK, PACK, POS, ROW, STEP
9899         * varasm.c (output_constant): Check for VAR_DECLs in 
9900           records & unions, like arrays.  Don't abort.
9901
9902 Tue Apr 27 17:42:29 1993  Bill Cox  (bill@rtl.cygnus.com)
9903
9904         * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
9905           rewrite for generality.
9906         * ch-decl.c (grok_chill_variantdefs): Use chill
9907           comptypes, so that subrange compatibility is ok.
9908           (start_chill_function): Use lookup_name(), not
9909           IDENTIFIER_GLOBAL_VALUE, for full generality.
9910         * ch-expr.c (chill_expand_assignment): Need to
9911           handle non-NOP modify codes here, since C code
9912           in build_modify_expr won't understand powersets, 
9913           etc.
9914
9915 Tue Apr 27 09:05:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9916
9917         * ch-actions.c (build_max_min): Assign the set's
9918           base type to the function's return type.
9919           (build_chill_function_call): Before complaining
9920           about parameter mismatches, convert certain actual
9921           parameters.
9922         * ch-expr.c (chill_expand_assignment): Before 
9923           complaining about LHS/RHS mismatches, convert
9924           certain RHS expressions.
9925         * ch-grant.c (decode_constant): Deep-fold incoming 
9926           expression, so we can output it.
9927         * ch-lang.c (deep_const_expr): New function, called
9928           from const_expr, actually traverses the tree 
9929           looking at its leaves for 'const'ness.
9930           (deep_fold): New function to fold already-built 
9931           trees.
9932         * ch-parse.y (case_expr): Add whitespace.
9933         * ch-tree.h: Add prototype for deep_fold.
9934
9935 Tue Apr 27 07:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
9936
9937         * ch-actions.c (chill_comptypes): Allow enumeration
9938           subranges as compatible with the parent enum.
9939           (build_chill_function_call): Before checking type
9940           compatibility, use convert on typeless expressions,
9941           like constructors.
9942         * ch-expr.c (chill_expand_assignment): Before 
9943           checking type compatibility, use convert on 
9944           typeless expressions, like constructors.
9945         * ch-lex.l: Add comment.
9946
9947 Thu Apr 22 17:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9948
9949         * .cvsignore: Add genopinit, insn-opinit.c
9950         * c-common.c (binary_op_error): Prevent seg fault on
9951           unknown node code.
9952         * ch-typeck.c (build_chill_array_ref): Remove old
9953           lower-bound-of-array-index-nonzero code.
9954         * expr.c (expand-expr, get_inner_reference): Remove
9955           old lower-bound-of-array-index-nonzero code.
9956
9957 Thu Apr 22 16:01:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9958
9959         * c-decl.c (shadow_record_fields): Add pushlevel for
9960           each PROCESS parameter, too.
9961         * ch-process.c (make_process_struct): First working
9962           version.
9963         * ch-tree.def: Add PROCESS_DECL definition.
9964         * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
9965           for make_process_struct.
9966         * expr.c (expand_expr): Add references to 
9967           PROCESS_DECL.  Add #include of ch-tree.h.
9968         * tree.c (decl_function_context): Add check for a
9969           PROCESS_DECL, and #include for ch-tree.h.
9970
9971 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
9972
9973         * expr.c (expand_expr): Add missing prototypes, and
9974           parameters to expand_expr call.
9975
9976 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
9977
9978         * c-decl.c (shadow_record_fields): Add ability to
9979           handle pointers to records/unions.  For PROCESS
9980           compilation.
9981
9982 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
9983
9984         * ch-expr.c (chill_expand_expr): Add missing
9985           parameters to expand_expr calls.  Some trivial
9986           reformatting for readability.
9987
9988 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
9989
9990         * ch-lex.l: Make send_*_prio externally visible,
9991           default them to zero, eliminate the init flags.
9992           Same for process_type.
9993
9994 Sat Apr 17 10:59:50 1993  Bill Cox  (bill@rtl.cygnus.com)
9995
9996         * ch-actions.c (build_chill_binary_op): Build a
9997           BIT_FIELD_REF tree for IN_EXPR operations.
9998         * ch-typeck.c (build_chill_array_ref): Build a
9999           BIT_FIELD_REF tree for access to packed array of
10000           bits.
10001
10002 Fri Apr 16 12:33:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10003
10004         * ch-parse.y (EXIT action): Improve error checking,
10005           messages.
10006         * ch-typeck.c (chill_expand_tuple): Remove code to
10007           pack sets (moved to varasm.c long ago).
10008         * varasm.c (unpack_set_constructor): Rename size to
10009           bit_size, since 'size' always means bytes.
10010           (pack_set_constructor): Rename size to wd_size,
10011           since 'size' always means bytes.
10012           (output_constant): Set size to zero, so that extra
10013           bytes of padding aren't output after set constants.
10014
10015 Fri Apr 16 11:57:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10016
10017         * .cvsignore: Add .gdbinit.
10018         * ch-decl.c (start_chill_bindings): Add function name
10019           to binding contour's exit_label for EXIT stmt.
10020         * ch-parse.y (EXIT action): Call lookup_name to avoid
10021           inserting label for function name.  Also check
10022           IDENTIFIER_LABEL_VALUE for label's decl.
10023           (caseaction, beginendblock, ifaction): Call
10024           stamp_nesting_label to put action's label into
10025           contour for EXIT to find.
10026
10027 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10028
10029         * expr.c (expand_expr): Unify, clean up handling of
10030           IN_EXPR, and handling of bit-string element ref.
10031           Now, all goes through IN_EXPR handler.
10032         * stmt.c (stamp_nesting_label, expand_exit_labelled):
10033           New functions, which allow either label or 
10034           function decls.
10035
10036 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10037
10038         * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
10039           ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
10040           ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
10041           ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
10042         * ch-actions.c (build_chill_binary_op): Move runtime function call
10043           to expr.c.  Just build a tree here.  Clean up error checking.
10044         * ch-convert.c (convert): Simply store a type into an expression if
10045           TREE_TYPE (expr) == NULL.  Prevent error if an enum is to be
10046           converted to a set of such enums.
10047         * ch-loop.c (init_loop_counter): Restore error msg for undeclared
10048           variable if no local scope is to be created for the loop.
10049         * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
10050           remove redundant code which wasn't ever called.
10051
10052 Wed Apr 14 07:54:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10053
10054         * .cvsignore (y.tab.c) : Add to list.
10055         * ch-convert.c (convert): Check pointers better - avoid NULL reference.
10056           Remove redundant check for ERROR_MARK - already checked earlier.
10057         * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
10058           error_mark_node.
10059
10060 Tue Apr 13 16:00:37 1993  Per Bothner  (bothner@cygnus.com)
10061
10062         * c-decl.c (start_function):  If there is a previous
10063         function declaration of the same name, steal its RTL.
10064         This is a kludge needed for forward declarations of
10065         nested functions.
10066         * ch-decl.c (push_chill_extern_function), ch-tree.h:  New
10067         function, for external and seized function declarations.
10068         Make sure to use permanent obstack.
10069         * ch-parse.y (quasi_pdef, extprocedure):  Use new function.
10070
10071         * ch-grant.c (chill_finish_module_code):  Since module
10072         function is no longer visible,, can't get it using
10073         lookup_name().  Use current_function_decl instead.
10074
10075         * ch-decl.c (build_chill_function_type):  Add void_type_node
10076         to end of parameter types list.
10077
10078         * ch-grant.c (chill_start_module_code):  Make sure module
10079         function isn't visible (and hence isn't granted).
10080
10081 Tue Apr 13 15:48:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10082
10083         * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
10084           current contour for DO FOR EVER loops.
10085
10086 Tue Apr 13 14:37:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10087
10088         * ch-parse.y (actionstatement): Add error rule.  Delete 
10089           POP_UNUSED_ON_CONTEXT.  Add comments about label name usage.
10090           (nohandleraction): Better error check in EXIT processing.
10091           (optexprlist): Comment out make_function_rtl call.
10092           (seizestatement): Change error to warning.
10093
10094 Tue Apr 13 08:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10095
10096         * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
10097           call.
10098         * ch-loop.c (begin_chill_loop): Take loop label as parameter.  Stamp
10099           its name into the current contour's exit_label, for EXIT to use.
10100         * ch-parse.y: (actionlabel): Save label tree in global variable.
10101           (actionstatement): Clear label to NULL when action is finished.
10102           (handlerstatement, nohandlerstatement): Split actions into 
10103           categories which do/don't permit exception handlers.
10104           (exitaction): Move code into nohandleraction, make it work.
10105           (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
10106         * ch-tree.h: Add parameter  to begin_chill_tree prototype.
10107         * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
10108           Note: This implementation of EXIT only exits from loops, not yet 
10109                 from other bracketted statements.
10110
10111 Mon Apr 12 13:41:55 1993  Per Bothner  (bothner@rtl.cygnus.com)
10112
10113         * ch-grant.c (chill_grant):  Remove obsolete code.
10114
10115         * ch-decl.c (push_synmode, push_newmode):  Merged to yield ...
10116         * ch-decl.c (push_modedef):  ... w/ slightly different interface.
10117         * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
10118         (modedefinition):  Use new push_modedef function.
10119         * ch-parse.y (modedefinition):  Don't depend on inherited
10120         attributes (- implemented incorrectly!): Use a global variable
10121         parsing_newmode to distinguish synmode and newmode.
10122
10123 Mon Apr 12 08:10:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10124
10125         * ch-loop.c: Diffuse cleanup after big functional changes.
10126         * ch-parse.y: Eliminate temporary variables, now unnecessary.  Use
10127           parse-time stack instead.
10128         * ch-tree.h: Change build_chill_iterator prototype.
10129
10130 Sun Apr 11 15:50:33 1993  Bill Cox  (bill@rtl.cygnus.com)
10131
10132         * ch-convert.c (convert): Replace an ERROR_MARK type - from a 
10133           untyped_expr with the given type.  Move chill_expand_case_expr
10134           call inside chill_expand_expr.
10135         * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default, 
10136           chill_handle_case_label, chill_expand_case_expr):  Move to ch-expr.c
10137           from ch-typeck.c.
10138         * ch-loop.c: Major reorganization to support multiple iterators in
10139           DO FOR loop, very little new code, just a re-org.
10140         * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
10141
10142 Sat Apr 10 14:40:12 1993  Bill Cox  (bill@rtl.cygnus.com)
10143
10144         * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
10145         * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
10146           member.
10147         * ch-lex.l (equal_number): Add function to look in the input for '='
10148           followed by a decimal literal.  Call it from directive scanning.
10149           (start state 'ccitt'): Deleted, unused.  Moved unused, but reserved,
10150           tokens to NORMAL state.
10151           (compiler_directive): Replaced by equal_number.  Now the only
10152           recursive call to yylex happens in check_newline at the beginning
10153           of a compilation.
10154
10155 Sat Apr 10 09:55:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10156
10157         * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
10158         * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
10159           'reserve' them.
10160         * ch-parse.y (case_expr): Move code into ch-actions.c.  There will
10161           need to be much more written.
10162         * ch-tree.def (VARY_ARRAY_REF): Add comment.
10163         * ch-tree.h (build_chill_case_expr): Add prototype.
10164         * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
10165           type to the expr.  Check for CASE_EXPR, call expand_case_expr.
10166
10167 Sat Apr 10 01:10:51 1993  Per Bothner  (bothner@rtl.cygnus.com)
10168
10169         * ch-parse,y (in_pseudo_module): New variable.  Try if we're
10170         in a seizefile, but not in a module nested in the seizefile.
10171         Use for backwards compatibility with old grantfiles.
10172         * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
10173         If in_pseudo_module, grant new declaration.
10174         * ch-decl.c (pushd_newmode):  If there is a granted previous
10175         incomplete type, fix it up.
10176         * ch-grant.c (seize_implied_names):  Do remaining types.
10177         Guard against recursion.
10178         * ch-tree.h (IDENTIFIER_ENUM_VALUE):  Removed, not used.
10179         * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
10180         (finish_chill_enum):  Enum constants are marked with
10181         CH_DECL_ENUM so they don't get written to the grantfile.
10182         * ch-tree.h (IDENTIFIER_GRANTED_VALUE):  Allow fast seizing.
10183         * ch-lex.l:  Re-write to use start states, to avoid calling
10184         yylex() recursively.
10185         * ch-lex.l (compiler_directive);  This is now obsolste. FIXME.
10186         * ch-lex.l:  Call push_module and pop_module when reading a
10187         seizefile.  This creates a pseudo-module.
10188         * ch-parse.y:  Clean up handling of empty declarations and
10189         action statements; semicolons are now optional a number of
10190         places.
10191         * ch-parse.y:  Remove some bogus tests for "statement
10192         out of sequence" (they're both legal and work).
10193         * varasm.c (mak_function_rtl):  Remove  kludge that may
10194         not be necessary (and loses anyway).
10195
10196 Fri Apr  9 09:37:38 1993  Bill Cox  (bill@rtl.cygnus.com)
10197
10198         * ch-expr.c (chill_expand_array_assignment): Remove false error about
10199           arrays that are too small.    
10200         * ch-parse.y (callaction): Don't pass an error_mark_node to
10201           c_expand_expr_stmt.
10202
10203 Fri Apr  9 00:26:54 1993  Per Bothner  (bothner@rtl.cygnus.com)
10204
10205         * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
10206         New macros.
10207         * ch-actions.c (build_chill_function_call):  Use latter.
10208         * ch-typeck.c (chill_similar):  Fix typo.
10209         * ch-grant.c (raw_decode_mode):  Handle ENCAPSULATED_ARRAY_P
10210         parameter types.
10211         * ch-grant.c (seize_implied_names):  Handle ranges of enums.
10212         * ch-grant.c (do_seize):  Set DECL_SOURCE_FILE and _LINE of
10213         seized declaration to be the point of the seize itself.
10214         * ch-grant.c (chill_grant), ch-tree.h:  Add a parameter
10215         which is the list (in order) of decls in the module.
10216         Don't reverse the getdecls() list; that is handled by caller.
10217         * ch-grant.c (chill_grant):  Test that a declaration is
10218         visible before writing it.
10219         * ch-parse.y (push_module):  Make sure to hide declarations
10220         from surrounding module.
10221         * ch-parse.y (pop_module):  Restore those declarations.
10222         * ch-parse.y (pop_module): This function is now responsible
10223         for writing out for calling chill_grant() to the grant file.
10224         * ch-actions.c (lang_finish):  Remove calls to chill_grant().
10225
10226 Thu Apr  8 16:56:52 1993  Bill Cox  (bill@rtl.cygnus.com)
10227
10228         * ch-actions.c (build_char_array_expr): Add handling of varying
10229           arrays in relational expressions.
10230         * ch-decl.c: Add prototype for lookup_name_current_level.
10231         * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode, 
10232           so its length is used as the temp's size.
10233           (chill_expand_array_assignment): Correct for varying := varying
10234           assignment, clean up.
10235         * ch-typeck.c: Add prototype for require_complete_type.
10236
10237 Wed Apr  7 16:41:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10238
10239         * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
10240           diffuse changes to fix location loops.
10241         * ch-parse.y (location): Remove ref through NULL ptr.
10242
10243 Wed Apr  7 13:42:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
10244
10245         * ch-decl.c (massage_param_node):  New function.
10246         It handles the LOC/IN/OUT/INOUT parameter distinction,
10247         as well as calling build_chill_array_parm_type if needed.
10248         * ch-tree.h (massage_param_node):  New prototype.
10249         * ch-decl.c (push_parms):  Use new massage_param_node().
10250         * ch-parse.y (pmodearg):  Use new massage_param_node().
10251         * ch-parse.y (formpar):  Don't call build_chill_array_parm_type;
10252         now handled by massage_param_node.
10253         * ch-typeck.c (my_build_array_ref):  Handle non-zero array
10254         lower bounds.
10255         * ch-actions.c (build_chill_function_call):  If the formal
10256         parameter is a pseudo record wrapped around an array, make
10257         sure we wrap the actual parameter in a record CONSTRUCTOR.
10258         * ch-typeck.c (build_chill_array_parm_type):  Make sure
10259         the pseudo struct type is allocated on the permanent_obstack.
10260         * ch-parse.y (location):  Remove thinko.
10261         * ch-actions.c (chill_comptypes):  Comment out test for
10262         NEWMODEness - it gets broken by the forward declaration hacks.
10263
10264 Tue Apr  6 18:05:40 1993  Bill Cox  (bill@rtl.cygnus.com)
10265
10266         * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10267         * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10268         * ch-parse.y (location): Do build_component_ref for an array wrapped
10269           in a structure.
10270         * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10271         * ch-typeck.c (build_chill_array_parm_type): Add function, move
10272           build_varying_struct here from ch-actions.c.
10273
10274 Mon Apr  5 19:56:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10275
10276         * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop 
10277           rather than in-line code - tests LOW and HIGH values.
10278         * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10279         * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10280           isn't zero.
10281
10282 Mon Apr  5 15:45:10 1993  Bill Cox  (bill@rtl.cygnus.com)
10283
10284         * ch-typeck.c (my_build_array_ref): Add some more code from 
10285           build_array_ref.  Change checks, error messages to mention 
10286           'discrete types'.  I.E. types which don't kiss and tell..
10287
10288 Sat Apr  3 09:27:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10289
10290         * ch-except.c, ch-expr.c: Turn externs into prototypes.
10291         * ch-grant.c (chill_grant): Remove orphan #else.
10292         * ch-tree.h: Add prototype for build_chill_bin_type.
10293         * ch-typeck.c: Turn externs into prototypes, delete code which
10294           was commented out in chill_expand_return; it will never be used.
10295
10296 Fri Apr  2 21:55:14 1993  Per Bothner  (bothner@rtl.cygnus.com)
10297
10298         Major re-write of New module/seize/grant stuff.
10299         Now, a grantfile is a spec module and contains all the
10300         top-level declarations of the granting module, not just
10301         those that are granted.  It also contains explicit grant
10302         statments naming those declared names that are granted.
10303         It also has seize statements and use_seize_file directives
10304         to correctly handle transitive dependencies.
10305
10306         * ch-parse.y:  Change to allow multiple modules per source file.
10307         Allow spec modules (including quasi definitions) as well as
10308         regular modules.
10309         Allow spec modules inside normal modules;  these behave as if
10310         they were outermost.  This violates the Blue Book, but is
10311         needed by the new grantfile mechanism.  (A grant file is a
10312         spec module that gets included by the use_seize_file directive.)
10313         * ch-parse.y (struct module *current_module, push_module,
10314         pop_module):  Support module nesting (for spec modules only).
10315
10316         * ch-tree.h (struct module): New.
10317         * ch-grant.c (granted_decls):  New list of declarations
10318         that have been granted into the outermode pseudo-module.
10319         * ch-grant.c (decode_mode):  If the decl has a name,
10320         always write the name, not just if the decl has already
10321         been written.  Since we write out all decls, we can assume
10322         it will be written later, and depend on the forward
10323         declaration kludges to catch it.
10324         * ch-grant.c (decode_decl):  Don't write out _EXTERN.
10325         Instead write out standard (Blue Book) quasi-definitions.
10326         * ch-grant.c (push_granted):  New function.
10327         * ch-grant.c (seize_implied_names):  New function.  Re-write
10328         how set element names are seized when a set type is seized.
10329         * ch-grant.c (chill_seize):  Work by seraching the
10330         granted_decls list and copying the declaration.
10331         * ch-grant.c (chill_grant):  Write all declarations
10332         declared in this module.  Write GRANT statements for
10333         those granted.   seize statements for decls seized from
10334         other modules.  Write extra syntax to make a complete
10335         spec module.
10336         * ch-grant.c (grant_use_seizefile):  Copy use_seize_file
10337         directives into grant file.
10338         * ch-lex.l (setup_seizefile_read):  Call grant_use_seizefile.
10339
10340         * ch-lex.l (struct input_state, current_input_state,
10341         push_input_file, pop_input_file):  New (type, variable,
10342         function*2).  Used to save and  restore state on an input file.
10343         * ch-lex.l:  Clean up to handle nested input seizefiles
10344         (needed by new grant/seize mechanism.
10345         * ch-lex.l (skip_to_end_of_directive):  New function.
10346         * ch-lex.l (compiler_directive: USE_SEIZE_FILE):  Make sure
10347         we skip to the end of the directive *before* we switch
10348         input files.
10349         * ch-lex.l (setup_seizefile_read):  Prevent reading the
10350         same seizefile twice (otherwise likely with new grant/seize).
10351         * ch-lex.l:  Recognize SPEC.  Misc cleanups.
10352
10353         * ch-parse.y:  Fixed foreward references of types.
10354         Removed the unknown_type_node crock.
10355         * ch-decl.c:  Remove all uses of unknown_type_node.
10356         Check for TYPE_SIZE zero instead.
10357         * ch-decl.c (fixup_unknown_type):  Make sure new mode
10358         gets copied into old mode.  Merge their variant chains.
10359         * c-decl.c (lookup_name_current_level):  Make non-static.
10360         * ch-decl.c (lookup_name_current_level):  No longer needed.
10361
10362         * ch-parse.y (call):  Allow an implicitly defined function
10363         name following the CALL keyword.
10364         * ch-tree.h (struct lang_identifier): Add implicit_decl,
10365         and make sure order of fields matches c-tree.h.
10366
10367         * ch-actions.c (lang_init, build_allocate_memory_call,
10368         build_allocate_globals_memory_call):  Fix names (add initial '_')
10369         and prototypes of _allocate_[global_]memory (2nd param is ref).
10370         Use build_chill_function_call, not build_function_call,
10371         so the reference parameter gets handled.
10372         * ch-actions.c. (lang_init):  Make sure boolean_{true,false}_node
10373         have boolean_type_node as their types.
10374         * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10375         work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10376
10377         * ch-except.c:  Make sure an end_label is generated,
10378         and jump to it if there is no exception.
10379
10380         * ch-convert.c (convert_to_reference):  Strip off NOP_EXPR casts.
10381         * expr.c (expand_expr):  Handle NOP_EXPR as Chill-style casts.
10382         (Need cleaning up and FSF installation!)
10383         * ch-parse.y:  If taking the address of a cast, move the
10384         ADDR_EXPR inside the NOP_EXPR.
10385
10386         * ch-typeck.c (my_build_array_ref):  Simplified, more suitable
10387         versions of build_array_ref from c-decl.c.  (E.g. don't barf
10388         if index type is char or bool.)
10389         * ch-typeck.c (build_chill_array_ref):  Use my_build_array-ref.
10390
10391         * ch-typech.c (build_chill_bin_type):  New function.
10392         Support BIN(N) range type specification.
10393         * ch-parse.y (mode2), ch-lex.l:  Recognize BIN(N).
10394
10395         * ch-tree.h (CH_SIMILAR):  Redefine in terms of chill_similar.
10396         * ch-typeck.c (chill_similar):  New function.  Recognize that
10397         that range types are similar to their parent types.
10398
10399         * ch-tree.h:  Declare flag_local_loop_counter.
10400         * ch-loop.c:  Whether the loop variable is local to the loop
10401         in now controlled by flag_local_loop_counter, instead of
10402         #ifdef'd on CREATE_SCOPE.
10403         * ch-actions.c (lang_decode_option):  Recognize flags
10404         "-f[no-]local-loop-counter".
10405         * toplev.c (lang_options):  Add Chill flags -f[no-]local-loop-counter.
10406
10407         * varasm.c (make_function_rtl):  Due to problems with forward
10408         references, don't rename nested functions in Chill.  (Kudge!)
10409
10410 Sun Mar 28 10:12:45 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
10411
10412         * ch-lex.l (push_back, readstring): Fix prototypes.
10413
10414 Fri Mar 26 18:32:15 1993  Bill Cox  (bill@rtl.cygnus.com)
10415
10416         * ch-parse.y: Put %type directives back into alpha order.
10417           (variant_alternative): Simplify error_mark test.
10418           (variantfields, varianthack): Add error_mark checks.
10419
10420 Fri Mar 26 13:36:23 1993  Bill Cox  (bill@rtl.cygnus.com)
10421
10422         * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10423         * ch-parse.y (get_type_of): Add function to deal with possible fwd
10424           declared type name.  Call it from lotsa places.  Add lotsa checks
10425           for error_mark_node.  Standardize indentations.
10426
10427 Thu Mar 25 15:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
10428
10429         * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10430           for array assignments.
10431         * ch-parse.y (action): Add recognition for allocate_memory and
10432           allocate_global_memory system calls.
10433           (mode2): Remove ill-conceived error check that broke REFs to
10434           as-yet-undeclared types.  Check for IDENTIFIER_NODE, lookup its
10435           DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10436           (variantfields, varianthack): Clean up.
10437           (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10438           there, pass TREE_TYPE of decl to grok_fixedfields.
10439           (labellist): Explicitly assign error_mark_node to signal error.
10440         * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10441           rather than seg faulting.
10442
10443 Thu Mar 25 10:35:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10444
10445         * ch-actions.c (lang_init): build_function_type for allocate_memory
10446           and allocate_global_memory runtime routines.  Move discrete_type_p
10447           into ch-typeck.c.
10448         * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10449           in build_chill_cast.
10450
10451 Wed Mar 24 16:25:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
10452
10453         * ch-grant.c:  Don't grant previously seized names.
10454
10455 Tue Mar 23 15:25:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10456
10457         * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10458         * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10459           avoid abort.
10460
10461 Tue Mar 23 09:03:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10462
10463         * ch-actions.c (build_char_array_expr): Just build a type for the
10464           result of a CONCAT_EXPR, and pass the tree back.  
10465           chill_expand_array_assignment can do a better job of 
10466           code-generation.
10467         * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10468           code.
10469
10470 Mon Mar 22 12:42:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
10471
10472         * ch-except.c (start_handler_array):  Make sure the handler
10473         array and its type get on the permanent obstack.
10474         * ch-grant.c (write_grant_file):  Don't write the _INIT=name
10475         specifier:  It isn't needed, and loses (because of funny
10476         characters in the chill_initializer_name).
10477         * ch-decl.c (push_synmode):  Set TYPE_NAME(mode) = syndecl.
10478         * ch-lang.c (finish_chill_enum):  Don't allocate a dummy
10479         TYPE_DECL for the enum.  I don't think it is needed (?),
10480         and removing it is needed for the change above.
10481
10482         * ch-grant.c (grant_array_type, decode_mode):  Remove unused
10483         'decl' parameter.
10484         * ch-grant.ch (raw_decode_mode):  New function, based on old
10485         decode_mode.
10486         * ch-grant.c (decode_mode);  This is now just a wrapper around
10487         raw-decode_mode - but does not call raw_decode_mode if the
10488         type is named and has already been emitted.
10489
10490 Fri Mar 19 11:55:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10491
10492         * ch-actions.c: Add prototypes, remove unused variables.  Attempt to
10493           continue generating grant file in presence of error (Wilfried's 
10494           patch to lang_finish).
10495         * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10496           after each statement.  Move convert call into
10497           chill_expand_assignment from ch-parse.y.
10498         * ch-grant.c: Generally re-order, clean up.  Include Per's decode_mode
10499           simplification.  Include commented-out hack in decode_mode to return
10500           type's name if type SEIZEd or already GRANTed in this file.
10501         * ch-lex.l: Add prototypes.
10502         * ch-parse.y (assignaction): Move convert call into
10503           chill_expand_assignment.
10504
10505 Thu Mar 18 16:04:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10506
10507         * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10508           comparison.
10509         * ch-decl.c: Add prototypes, correct error message spelling, remove
10510           unused variables.
10511         * ch-lang.c (build_chill_range_type): Add error message.  Add prototypes.
10512           Correct comment spelling.
10513         * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10514           assignment in conditional.
10515         * ch-loop.c: Add prototypes, remove unused variable.
10516         * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10517           parameter is seen, don't count it in structured_variable_list.  Pre-
10518           vents seg fault when only WITH operand is invalid.
10519         * ch-parse.y (label_spec): Correct assignment within IF expression which
10520           was intended to be equality test.  Remove unused variables.
10521         * ch-tree.h: Add prototype.  Remove unused EXCP_CODE enumeration, and
10522           prototyping editorial comments.
10523         * ch-typeck.c: Disable generation of code to validate array index for
10524           now.  Should be done as a call-back from more generic array_ref code.
10525           Clean up parameter checking.  Remove unused variables.
10526
10527 Fri Mar 12 11:57:32 1993  Bill Cox  (bill@rtl.cygnus.com)
10528
10529         * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10530         * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10531           build_char_array_expr.
10532         * ch-convert.c (convert): protect against seg fault, if type == NULL.
10533         * ch-expr.c (chill_expand_expr): Add FIXME comment.
10534
10535 Fri Mar 12 11:04:02 1993  Bill Cox  (bill@rtl.cygnus.com)
10536
10537         * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10538           Thanks very much to dje!
10539
10540 Thu Mar 11 21:06:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10541
10542         * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10543           Move CONCAT_EXPR handling from binary_op to array_expr.  Add
10544           handling for relationals between varying arrays to array_expr.
10545
10546 Thu Mar 11 19:20:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10547
10548         * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10549           *BIT* length of powersets and arrays of BOOLs.
10550           (invalid_left_operand, invalid_right_operand): Disallow relationals
10551           with arrays of BOOL as operands.
10552         * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10553           comparing pointers.
10554         * ch-decl.c (push_newmode): Re-indent.
10555         * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10556           and arrays of BOOLs.
10557         * ch-lang.c (build_chill_array_type): Add parameter error checking.
10558
10559 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10560
10561         * expr.c (store_constructor): Handle set construction.
10562         * varasm.c (output_constant): Prevent seg fault - terminate case
10563           alternative with a 'break'.
10564
10565 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10566
10567         * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10568         * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10569         * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10570
10571 Mon Mar  8 13:16:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10572
10573         * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10574           be folded.
10575
10576 Mon Mar  8 10:13:57 1993  Bill Cox  (bill@rtl.cygnus.com)
10577
10578         * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10579           Correct some non-standard indentations.
10580
10581 Fri Mar  5 14:58:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10582
10583         * ch-actions.c: Fix up comment.
10584
10585 Thu Mar  4 18:05:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10586
10587         * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10588           negating the result of calling __eqpowerset.  New function
10589           discrete_type_p().
10590         * ch-grant.c (get_tag_value): Don't seg fault referring to an
10591           anonymous enumeration's name.
10592         * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10593         * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10594         * ch-parse.y (label_spec): redefine variant structure label_spec
10595           to agree with the Z.200 spec.
10596                      (locdec): Error if set/bitstring initialized with a tuple.
10597                      (case_label, arrayindex): Use new discrete_type_p 
10598                      function. 
10599         * ch-process.c: Fix typo.
10600
10601 Wed Mar  3 14:30:53 1993  Per Bothner  (bothner@rtl.cygnus.com)
10602
10603         * ch-lang.c, ch-tree.h: Rename build_range_type to
10604         build_chill_range_type.  Call new build_range_type() in tree.c.
10605         * ch-parse.y:  Call build_chill_range_type as approriate.
10606         * ch-typeck.c (build_chill_cast);  Clean up.
10607
10608 Wed Mar  3 09:36:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10609
10610         * ch-parse.y: Define CONTINUE_EVENT token.
10611         * ch-parse.y (mode2): Give error message for SYN modea = modeb
10612           where modeb is undefined.
10613
10614 Tue Mar  2 20:16:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10615
10616         * ch-actions.c: Add builtin function descriptions for memset and
10617           bitsetpowerset.  Allow build_chill_num expression to exceed 16 bits,
10618           but not 32.
10619         * ch-tree.h: Correct chill_handle_case_default prototype.
10620         * ch-actions.h, ch-lex.h: Add prototypes.
10621         * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10622
10623 Thu Feb 25 17:35:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10624
10625         * c-decl.c (init_decl_processing): Disable creation of C-specific
10626           builtin functions.  They pollute the CHILL name space.
10627         * stor-layout.c (variable_size): Allow variable-size objects at file
10628           scope, for CHILL.
10629
10630 Fri Feb 26 07:14:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10631
10632         * c-decl.c (finsh_decl): Don't output non-constant storage size 
10633           error for CHILL
10634         * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10635           call in build_chill_cause_exception.
10636         * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10637         * ch-loop.c (build_temporary_variable): New function
10638         * ch-process.c: Call build_temporary_variable, spell start_process
10639           correctly.
10640         * ch-tree.h: Extern for build_temporary_variable
10641
10642 Thu Feb 25 12:09:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10643
10644         * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10645           builtins - they pollute the CHILL name space.
10646         * ch-typeck.c (valid_array_index): Correct upper-bound check.
10647         * expr.c (expand_expr): Use actual library name for __inpowerset
10648           builtin.
10649         * stor-layout.c (variable_size): Disable complaint about variable-
10650           size type or decl at file scope.  Perhaps later this s.b. a warning.
10651         * varasm.c (emit_set_data): Add function.
10652           (output_constant): Call new emit_set_data function for VAR_DECLs, 
10653           in addition to CONSTRUCTORs.
10654
10655 Thu Feb 25 11:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
10656
10657         * ch-actions.c: Change all builtin functions names to their
10658           actual library names.  Change references to boolean_type_node
10659           to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10660           convention.
10661           build_set_expr: Remove length parameter, call powersetlen() instead.
10662             remove handling of CHAR arrays - they're handled in build_char_array_expr.  
10663             Call __eqpowerset to test for equality - we can't use a byte-length -
10664             need bitcount instead.
10665           build_chill_compound_expr, internal_build_compound_expr: Copy from C
10666             version that does stuff we don't want.
10667           build_binary_op: Check for in_size_in_bytes return < 0, indicating
10668             size is changeable at run time.  Build two memcpy calls to implement
10669             string concatenation.
10670           powersetlen: Add function.
10671           build_chill_card: Call powersetlen.
10672           build_chill_max_min:  Common code for powerset max/min.
10673           build_chill_length: Move VARYING array handling before regular char
10674             array handling.
10675         * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10676           the VARYING status of the target to do this correctly.  Use powersetlen
10677           for the powerset operations, not a byte length.
10678         * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10679           for each CHILL loop, as Z.200 requires.  Add powerset and error flags
10680           to loop structure.  Evaluate user's powerset expression into a temp,
10681           scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10682           for powerset loop.  Only do loop-end assignments if NOT a powerset
10683           loop, which has much less overhead now.
10684         * ch-tree.h: Add prototype for powersetlen.
10685
10686 Fri Feb 19 08:40:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10687
10688         * ch-lex.l (convert_number): Evaluate number and pass it as
10689           HOST_WIDE_INT.
10690
10691 Fri Feb 19 08:56:44 1993  Michael Tiemann  (fs_tie at rcsw18)
10692
10693         * ch-typeck.c (build_chill_array_ref): Handle newmodes
10694         correctly.
10695
10696         * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10697         we are going to return 0.
10698
10699         * ch-convert.c (convert_to_reference): Don't use
10700         TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10701         (which must match the type of the expr).
10702
10703         * ch-grant.c (chill_seize): Don't let a type be copied just
10704         because we are seizing it.
10705
10706         * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10707         TYPE_MAX_VALUE to integer type.
10708
10709         * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10710         tree type of the bounds.
10711         (build_loop_top): type of GE_EXPR and LE_EXPR is
10712         boolean_type_node, not lp->iter_type.
10713         (for_location): Ditto.
10714
10715         * ch-action.c (build_chill_lower,build_chill_upper): Handle
10716         ENUMERAL_TYPE.  Also, handle different kinds of arguments more
10717         cleanly.
10718
10719         * ch-parse.y (iteration): Convert start_exp and end_exp to
10720         match the type of modename.
10721
10722         * ch-grant.c (chill_seize_aggr): Search also through anonymous
10723         types.
10724
10725         * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10726         already been seized, and if so, do nothing.
10727
10728         * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10729         comes out error_mark_node, set ERRONEOUS.
10730
10731         * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10732         don't use it.
10733
10734         * ch-action.c (chill_comptypes): Test for structural
10735         equivalence of enums.
10736
10737         * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10738         TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10739
10740         * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10741         ARRAY_TYPE, seize the domain type if its a set.
10742
10743 Thu Feb 18 20:02:15 1993  Per Bothner  (bothner@rtl.cygnus.com)
10744
10745         * c-typeck.c (process_init_constructor):  Emit error if some
10746         array elements are not initialized.
10747         * c-typeck.c (process_init_constructor):  Call digest_init()
10748         recursively to expand default_value.
10749         * ch-expr.c (chill_expand_array_assignment):  Simplify, and
10750         handle the case that the lhs has dynamic size (e.g. a slice).
10751         * ch-parse.y (elementlist):  Handle the case that tupleelement
10752         generates more than one TREE_LIST node.
10753
10754 Thu Feb 18 12:40:56 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
10755
10756         * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
10757         * c-typeck.c (lookup_field): add function, calls.
10758         * ch-actions.c (build_chill_binary_op): figure return_type differently.
10759         * ch-convert.c (convert_to_reference): return error_mark_node,
10760           STRIP_NOPS.  (convert): Braces for readability.
10761         * ch-decl.c (build_chill_function_type): accept typespec as parm.
10762           Handle exceptions.
10763           (grok_chill_variantdefs): call comptypes, not chill_comptypes.
10764         * ch-expr.c (chill_expand_assignment): handle references.
10765         * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
10766         * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
10767           call convert.  Generally handle reference types.
10768
10769
10770 Thu Feb 18 09:30:11 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
10771
10772         * ch-actions.c (chill_comptypes): Figure out which newmode or
10773           synmode decls look most canonical.
10774         * ch-convert.c (convert): handle location conversions of records,
10775           unions and arrays.
10776         * ch-decl.c (fixup_unknown_type): changes for variant records
10777         * ch-parse.y (tupleelement): avoid confusing digest_init.
10778         * ch-typeck.c (build_chill_array_ref): give element ref the
10779           type of the ELEMENT, not the array (Bill Cox).
10780
10781 Wed Feb 17 11:52:20 1993  Bill Cox  (bill@rtl.cygnus.com)
10782
10783         * ch-parse.y: change push_newmode and push_synmode interfaces.
10784         * ch-actions.c (build_chill_binary_op): convert operands.
10785
10786 Wed Feb 17 10:54:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10787
10788         * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
10789           handle reference types.
10790         * ch-decl.c (push_newmode, push_synmode): rewritten
10791         * ch-process.c (make_process_struct): new push_newmode interface.
10792         * ch-typeck.c (build_chill_cast): change interface, error checks.
10793
10794 Wed Feb 17 09:50:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10795
10796         * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
10797           code.
10798         * ch-typeck.c (valid_array_index): new function.
10799
10800 Tue Feb 16 22:36:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
10801
10802         * ch-convert.c (convert):  Slightly more correct conversion
10803         for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
10804         * ch-expr.c (chill_expand_array_assignment):  Invoke
10805         __builtin_memcpy using build_function_call, not directly at
10806         the rtx level (which doesn't work).
10807         * ch-typeck.c (build_chill_slice):  First attempt at slices.
10808         * ch-tree.h,  ch-typeck.c (build_chill_slice_with_range,
10809         build_chill_slice_with_length):  New functions.
10810         * ch-parse.y:  Use new slice-building functions.
10811         * expr.c (get_inner_reference):  Subtract low bound of
10812         array when doing an ARRAY_REF.
10813
10814 Tue Feb 16 14:17:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10815
10816         * ch-actions.c (build_chill_function_call): better comments.
10817         * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
10818         * ch-parse.y: indentation cleanup
10819
10820 Tue Feb 16 12:03:53 1993  Michael Tiemann  (tiemann@cygnus.com)
10821
10822         * ch-decl.c (grok_chill_variantdefs): Really implement variant
10823         records for CHILL.
10824         * ch-grant.c (get_tag_value): New function.
10825         * ch-grant.c (decode_mode): Grant variant records.
10826
10827         * ch-grant.c (chill_seize): If we seize a set, seize the set
10828         values.
10829
10830         * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
10831         constructs.
10832
10833         * ch-parse.y (EMPTY): New pseudo-token to disambiguate
10834         variant_alternatives.
10835         (current_fieldlist): New variable to help processing tag
10836         declarations in variant records.
10837         (fields): Renamed from structdef.
10838         (field): Renamed from fields.
10839         (varianthack): New non-terminal to handle parsing ambiguity
10840         for variant records.
10841         (optlabellist): Changed to preserve CONST_DECLs when they are
10842         parsed.
10843
10844         * ch-tree.h (TYPE_TAGFIELD): New macro.
10845         (TYPE_TAG_VALUES): Ditto.
10846
10847 Mon Feb 15 00:49:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
10848
10849         * ch-grant.c (decode_mode):  Fix output for powerset modes.
10850         * ch-grant.c (decode_constant):  Support grant output of
10851         powerset literals.
10852         * ch-actions.c (build_chill_binary_op):  IN_EXPR fix.
10853         * expr.c (expand_expr):  Add Chill-specific kludge for
10854         BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
10855         * ch-expr.c (chill_expand_assignment):  Remove no-longer-needed
10856         special-case support for a BIT_FIELD_REF in right-hand-side.
10857         * ch-lang.c (finish_chill_enum):  Patch up enum elements to
10858         have the correct type (instead of integers, as in C).
10859
10860         * ch-lex.l, ch-parse.y:  Add disgusting hack (involving
10861         context-dependent look-ahead) so we can parse exception
10862         handlers correctly.
10863         * c-typeck.c (digest_init):  Set output type for SET_TYPEs.
10864         * varasm.c (unpack_set_constructor):  Add support for
10865         (power-)set ranges (i.e. low_element:high_element).
10866
10867 Sun Feb 14 13:37:52 1993  Bill Cox  (bill@rtl.cygnus.com)
10868
10869         * ch-inout.c: delete unused #include
10870         * ch-typeck.c (build_chill_slice): turn abort call into error msg.
10871
10872 Sat Feb 13 13:13:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10873
10874         * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
10875
10876 Sat Feb 13 12:17:41 1993  Bill Cox  (bill@rtl.cygnus.com)
10877
10878         * Makefile.in: add lots of header files to the CHILL dependencies
10879
10880 Fri Feb 12 15:48:27 1993  Per Bothner  (bothner@rtl.cygnus.com)
10881
10882         * ch-actions.c (build_chill_function_call):  Don't return
10883         error_mark_node on empty parameter-list.
10884
10885 Fri Feb 12 12:54:52 1993  Bill Cox  (bill@rtl.cygnus.com)
10886
10887         * ch-actions.c (build_chill_function_call): fix start_decl parms.
10888         * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
10889
10890 Fri Feb 12 10:32:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10891
10892         * ch-actions.c (build_chill_function_call): create temps, do
10893           assignments to handle INOUT and OUT parameters.
10894         * ch-decl.c (build_chill_function_type): better parameter name.
10895         * ch-parse.y (action): keep rules in alpha order.
10896           (pmodearg): turn INOUT, OUT parameter types into reference types.
10897         * ch-typeck.c (build_tree_slice): indentation change.
10898
10899 Thu Feb 11 23:16:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
10900
10901         * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
10902         take a list of elements which are in the set.  This corresponds
10903         better to the tuple input form in Chill (and Pascal).
10904         * varasm.c (unpack_set_constructor, pack_set_constructor):
10905         New functions, to expand SET_TYPE CONSTRUCTORs.
10906         * varasm.c (output_constructor):  Use pack_set_constructor
10907         to assemble a SET_TYPE constant from a CONSTRUCTOR.
10908
10909         * ch-grant.c (decode_constant):  Better grant for strings,
10910         enumeral, and bitstring constants.
10911         * ch-grant.c:  Fixes in seize to avoid duplicates, and emit
10912         things in the correct order.
10913         * c-typeck.c (chill_initializer_constant_valid_p):  Kludge
10914         needed to export a static function.
10915         * ch-typeck.c (convert):  Avoid needlessly (and lossingly) calling
10916         chill_expand_tuple to convert fix string to varying.
10917         * ch-actions.c (build_chill_binary_op):  Promote short
10918         integer operands if needed (otherwise emit routines barf).
10919         * ch-tree.h (SET_WORD_SIZE):  New macro.
10920         * ch-parse.y:  Fix syntax for RECEIVE CASE.
10921         * ch-parse.y (location):  If IDENTIFIER is a CONST_DECL
10922         return its value instead.
10923
10924 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10925
10926         * ch-actions.c (build_chill_max, build_chill_min): clean up
10927         * ch-typeck.c (chill_expand_tuple): correct set initialization from
10928           an enumeration tuple.  Add sort_constructor function.
10929
10930 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10931
10932         * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
10933           BOOLEAN_TYPE w/out an abort.
10934
10935 Wed Feb 10 14:59:53 1993  Bill Cox  (bill@rtl.cygnus.com)
10936
10937         * ch-actions.c: change most integer_type_node references to
10938           chill_integer_type_node.  Rewrite _max and _min routines,
10939           redefine the signatures for those runtime routines.  Move
10940           empty-set check into runtime.
10941         * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
10942           most integer_type_node references to chill_integer_type_node.
10943
10944 Tue Feb  9 16:00:05 1993  Per Bothner  (bothner@rtl.cygnus.com)
10945
10946         * ch-except.c:  New file.  Stuff for exception handling.
10947         * ch-parse.y:  Add working exception handling support.
10948         * ch-lex.l, ch-parse.y:  Prefer standard type terminology
10949         (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
10950         * ch-grant.c:  Fix various problems related to granting
10951         types such as bitsets.
10952         * ch-tree.c (build_bitstring_type):  Set TYPE_MIN_VALUE
10953         to distinguish bitstrings from powersets (in the same way
10954         we distinguish char strings from char arrays).
10955         * ch-tree.h:  New macro CH_BOOL_TYPE_P.
10956         * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
10957         Undo kludge where integer_type_node was hardwired to 16 bits.
10958         Make integer_type_node etc have the same size as in cc1.
10959         New types chill_integer_type_node and chill_unsigned_type_node
10960         that correspond to the Chill source types INT and UINT.
10961         For now, these match the C 'short' types, but that should
10962         become a configuration option later,
10963
10964 Tue Feb  9 11:41:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10965
10966         * ch-actions.c (build_chill_unary_op): allow NOT of a set.
10967
10968 Tue Feb  9 08:27:18 1993  Bill Cox  (bill@rtl.cygnus.com)
10969
10970         * ch-actions.c (build_chill_function_call): add test for
10971           too many/few actual parameters (and avoid seg fault).
10972         * ch-decl.c (do_decls): code cleanup for readability.
10973         * ch-loop.c (begin_chill_loop, end_chill_loop): remove
10974           emit_nop() calls - they now (since exceptions) cause seg faults.
10975           Make derogation on poor CHILL compiler non-specific.
10976         * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
10977         * ch-tree.h: remove prototypes added to c-tree.h.
10978         * ch-typeck.c (build_chill_array_ref): correct getting domain
10979           subtree for a PARM_DECL.  Subscripting a SET_TYPE is turned into
10980           an IN_EXPR.
10981
10982 Sun Feb  7 18:20:49 1993  Bill Cox  (bill@rtl.cygnus.com)
10983
10984         * ch-tree.def: add a new tree type - just for varying array 
10985           references.  We were using ARRAY_REF, but the underlying C
10986           code also generates that one.
10987         * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
10988
10989 Sun Feb  7 17:33:17 1993  Bill Cox  (bill@rtl.cygnus.com)
10990
10991         * ch-convert.c: test given type against type of expr before
10992           calling chill_expand_tuple.  We were getting lots of spurious
10993           calls...
10994
10995 Fri Feb  5 15:24:01 1993  Per Bothner  (bothner@rtl.cygnus.com)
10996
10997         * cccp.c:  Merge in various Chill-specific changes.
10998         * gcc.c (default_compilers array):  Pass -lang-chill
10999         to cpp, not -lang-ch.
11000
11001 Fri Jan 29 17:18:22 1993  Per Bothner  (bothner@rtl.cygnus.com)
11002
11003         * Makefile.in (install-libchill, install-librmt):  Removed.
11004         * ch-actions.c (build_chill_exception_decl):  Change decl
11005         to initialized char array, rather than unitialized common.
11006         (Simplifies extracting string name of exception.)
11007         * ch-actions.c:  Adjust interface to cause_exception accordingly.
11008         * ch-typeck.c (build_chill_array_ref):  Cause rangefail if
11009         index > limit, not >= limit.
11010
11011         * ch-actions.c (build_chill_function_call):  Rename misleading
11012         formal parameter.
11013         * ch-decl.c (do_decls):  Allow (again) general initializer exprs.
11014         * ch-parse.y (call):  Test for function call needs to test for
11015         FUNCTION_TYPE, not FUNCTION_DECL.
11016         nreverse arg list to build_chill_array_ref.
11017         * ch-typeck.c (build_chill_array_ref):  Do recursive call at end
11018         and only if multiple indexes.
11019         * ch-typeck.c:  Cleanups.
11020
11021 Fri Jan 29 11:05:58 1993  Bill Cox  (bill@rtl.cygnus.com)
11022
11023         * ch-decl.c (do_decls): handle set initializations better, more to do.
11024         * ch-loop.c (begin_for_range): correct interface to expand_start_cond
11025           and build_binary_op.
11026         * ch-tree.h: lots more prototypes
11027         * ch-typeck.c (build_array_from_set): added function.
11028         * ch-typeck.c (chill_expand_tuple): handle set initializations better.
11029
11030 Thu Jan 28 17:41:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
11031
11032         * ch-grant.c (set_default_grant_file):  Change default.
11033         Normally, grant file should end up in cwd.
11034         * ch-lang.c (build_chill_struct_type):  Call pushtag,
11035         for the sake of debugging.
11036         * ch-lex.l:  Improve comment parsing.
11037         * ch-lex.l (readstring):  Some improvements.
11038         Initial support for control sequences in string literals.a
11039
11040 Thu Jan 28 16:16:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11041
11042         * ch-convert.c (convert): correct fixed->varying conversion.
11043         * ch-parse.y (mode2): delete unesthetic newline.
11044
11045 Thu Jan 28 10:32:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11046
11047         * ch-actions.c: delete maybe_array_ref()
11048         * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
11049           calling convert().
11050         * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
11051           supervision actions & builtins
11052         * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
11053           smaller actions directly (maybe_array_ref() used to call them).
11054         * ch-tree.h: add build_chill_function_call, build_chill_slice
11055         * ch-typeck.c: add build_chill_slice()
11056
11057 Thu Jan 28 08:44:28 1993  Bill Cox  (bill@rtl.cygnus.com)
11058
11059         * ch-tree.h: bring up to date with ch-actions.c changes.
11060
11061 Wed Jan 27 23:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11062
11063         * ch-expr.c (chill_expand_assignment): handle an RHS varying array
11064           reference.
11065
11066 Wed Jan 27 22:28:36 1993  Per Bothner  (bothner@rtl.cygnus.com)
11067
11068         * ch-grant.c (decode_constant):  Add REAL_TYPE support.
11069         * ch-actions.c (build_chill_exception_decl):  New function.
11070         * ch-actions (build_chill_cause_exception, cond_exceptions):
11071         Convert to take a (char*) parameter (the exception name).
11072         * ch-actions.c, ch-expr.c, ch-typeck.c:  Convert calls to
11073         cond_exception.
11074         * ch-parse.y (check_end_label):  New function, to check if
11075         and end label matches start label.
11076         * ch-parse.y:  Fix syntax to properly recognize and
11077         test optional end labels (using check_end_label).
11078         * ch-decl.c (finish_chill_function):  Simplify, since
11079         we assume check_end_label has already been called.
11080         * ch-parse.y:  Put in infrastructure for exception handling.
11081
11082 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11083
11084         * ch-actions.c: delete convert_chill_parameter, replace call with
11085           call to convert().    
11086         * ch-convert.c (convert): combine chill_give_type_to_expr in here.
11087         * ch-decl.c: call convert rather than chill_give_type_to_expr.
11088         * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
11089         * ch-expr.c (chill_expand_assignment): just call convert.
11090         * ch-loop.c (end_chill_loop): expand the end of the loop for a
11091           do while.
11092         * ch-parse.y: call convert rather than chill_give_type_to_expr.
11093         * ch-process.c: checkpoint.
11094         * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
11095
11096 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11097
11098         * ch-grant.c (grant_array_type): new function to allow handling of
11099           VARYING array types.
11100
11101 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11102
11103         * ch-typeck.c (chill_give_type_to_expr): fix typo.  Reorder to
11104           avoid checking types on CONSTRUCTORs.  Correct typo.
11105         * ch-expr.c (expand_assignment_to_varying_array): use proper
11106           expansion function expand_expr_stmt.
11107         * ch-expr.c (expand_chill_assignment): only convert VARYING
11108           array refs or RHS.
11109
11110 Wed Jan 27 15:32:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11111
11112         * ch-actions.c (build_chill_length, build_chill_lower,
11113                         build_chill_upper): accept parameters, too.
11114         * ch-expr.c (chill_expand_assignment):  decipher ARRAY_REF on RHS.
11115         * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
11116           assign proper type to ARRAY_REF expression.
11117
11118 Wed Jan 27 09:51:46 1993  Bill Cox  (bill@rtl.cygnus.com)
11119
11120         * ch-actions.c (build_chill_binary_op): delete unused variable,
11121           get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
11122         * ch-actions.c (build_chill_repetition_op): handle differently-built
11123           declaration trees.
11124         * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
11125         * ch-typeck.c (chill_give_type_to_expr): give type to constructor
11126
11127 Tue Jan 26 11:32:38 1993  Bill Cox  (bill@rtl.cygnus.com)
11128
11129         * ch-parse.y (ifaction): re-add lost call to expand_end_code().
11130         * ch-parse.y (siezelist, grantlist): use 'name' rather than
11131           'checked_name'.  It makes no sense to check sieze/grant names
11132           for WITH expansion.
11133         * ch-expr.c (chill_expand_expr): delete unnecessary (and
11134           seg-fault-causing) code.
11135         * ch-expr.c (chill_expand_assignment): make test for varying array
11136           on the LHS more specific.
11137         * ch-actions.c (invalid_left_operand, invalid_right_operand): error
11138           for use of MOD, REM operators.
11139         * ch-actions.c (build_chill_repetition_op): error for bit-field
11140           initializers (which will get handled in the lexer).
11141
11142 Mon Jan 25 17:26:47 1993  Bill Cox  (bill@rtl.cygnus.com)
11143
11144         * ch-typeck.c (build_chill_array_ref),
11145         * ch-expr.c (chill_expand_expr, chill_expand_assignment):
11146           translate varying array ref into ARRAY_REF, defer processing
11147           until chill_expand_expr.  Update array's length field in
11148           new function expand_assignment_to_varying_array.
11149
11150 Mon Jan 25 14:57:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11151
11152         * ch-parse.y (mode2): eliminate old method to mark varying arrays.
11153         * ch-expr.c (expand_varying_length_assignment): repair scaling of 
11154           RHS expression.
11155
11156 Mon Jan 25 11:44:21 1993  Per Bothner  (bothner@cygnus.com)
11157
11158         * ch-parse.y:  Allow character and bitstring literals
11159         in string repetition operator.
11160
11161 Sat Jan 23 14:18:11 1993  Per Bothner  (bothner@cygnus.com)
11162
11163         * ch-parse.y (primval):  Re-recognize '(' expr ')'.
11164         * ch-parse.y (name):  Remove call to check_identifier -
11165         this is not appropriate in certain contexts.
11166         * ch-parse.y (checked_name):  Same as <name>, but *with* the
11167         call to check_identifier.  Use where appropriate.
11168         * ch-parse.y (operand5):  Only allow string repetition of
11169         string literals, because otherwise you get a conflict.
11170
11171 Thu Jan 21 16:32:39 1993  Bill Cox  (bill@rtl.cygnus.com)
11172
11173         * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
11174           continue start_process development.
11175
11176 Thu Jan 21 13:51:06 1993  Bill Cox  (bill@rtl.cygnus.com)
11177
11178         * ch-decl.c (do_decl): fix handling of multi-char initializer.
11179
11180 Thu Jan 21 13:14:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11181
11182         * .cvsignore: add CHILL files to be ignored
11183
11184 Thu Jan 21 07:38:57 1993  Bill Cox  (bill@cygnus.com)
11185
11186         * ch-parse.y: rough draft of start_process handling.
11187
11188 Wed Jan 20 17:11:05 1993  Bill Cox  (bill@rtl.cygnus.com)
11189
11190         * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
11191
11192 Wed Jan 20 16:48:13 1993  Bill Cox  (bill@rtl.cygnus.com)
11193
11194         * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in: 
11195           create new modules for I/O and process-related stuff.
11196         * ch-actions.c: move routines to new modules.  
11197           call xmalloc, not malloc.
11198         * ch-lang.c (build_chill_struct_type): add parameter checking.
11199         * ch-lex.l (init_lex): remove redundant cast.
11200
11201 Tue Jan 19 16:33:56 1993  Bill Cox  (bill@rtl.cygnus.com)
11202
11203         * ch-parse.y (operand5): delete unnecessary argument to
11204           build_chill_unary_op.  Add rule for string repetition.
11205         * ch-parse.y (primval): delete string repetition attempt.
11206         * ch-parse.y (start_process): rough draft of action.
11207         * ch-actions.c (build_repetition_op): add it
11208         * ch-actions.c (build_chill_binary_op): handle constant arguments
11209           of CONCAT_EXPR, combine into a single string if possible.
11210         * ch-actions.c (invalid_left_operand, invalid_right_operand):
11211           allow single character arguments to CONCAT_EXPR.
11212         * ch-tree.h: add prototype for build_repetition_op
11213
11214 Tue Jan 19 15:03:29 1993  Fred Fish  (fnf@cygnus.com)
11215
11216         * dwarfout.c (output_type):  Add hack that matches the one in the
11217         chill front end to distinquish between true string types and 
11218         arrays of char, since it uses ARRAY_TYPE for both, rather than
11219         trying to use the existing support for STRING_TYPE.
11220
11221 Tue Jan 19 13:54:27 1993  Bill Cox  (bill@rtl.cygnus.com)
11222
11223         * ch-tree.h: added prototypes for all non-static CHILL functions.
11224         * ch-actions.c (lang_init): declare builtin type for start_process
11225         * ch-actions.c (build_chill_binary_op): combine string literals when
11226           concatenated.  
11227         * ch-actions.c (formpars2struct): added for later start_process
11228           implementation.
11229         * ch-actions.h: remove un-needed function declarations.
11230         * ch-decl.c: extern cleanup.
11231         * ch-expr.c (chill_expand_array_assignment): add missing first
11232           parameter to cond_exception call.
11233         * ch-lex.l: make build_chill_string non-static.
11234
11235 Mon Jan 18 19:15:08 1993  Bill Cox  (bill@rtl.cygnus.com)
11236
11237         * ch-decl.c (do_decls): get varying array length initialized.
11238
11239 Mon Jan 18 09:51:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11240
11241         * ch-expr.c (chill_expand_array_assignment): fix the copy length
11242         in the memcpy call (it was just 4 bytes always).   Simplify some
11243         code, also.
11244
11245 Mon Jan 18 08:24:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11246
11247         * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
11248
11249 Mon Jan 18 08:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
11250
11251         * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and 
11252         CHARS synonymous with CHAR, in the lexer.  Delete unnecessary
11253         'bools' non-terminal.
11254         * ch-parse.y (assignaction): add lhs version of length() function
11255         * ch-actions.c: add builtin_concat function, lots of support for 
11256         CONCAT_EXPR.
11257         * ch-actions.c, ch-tree.h: make a function out of former
11258         macro CH_VARYING_TYPE_P
11259         * ch-expr.c: add expand_varying_length_assignment ().
11260         * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11261         * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11262         rather than build_rts_call, to eliminate a recursion problem.
11263         * ch-lang.c: eliminate 'sorry' about varying arrays.
11264         * ch-typeck.c (validate_varying_array_ref): re-enable constant
11265         index validation.
11266
11267 Sun Jan 17 18:20:04 1993  Per Bothner  (bothner@cygnus.com)
11268
11269         * ch-grant.c, ch-lex.l:  Major simplification of how
11270         seizes are done and how seizefiles are read.
11271         * ch-actions.h:  Remove declaration of check_seize().
11272         * ch-decl.c (do_decls):  Handle READONLY types.
11273         * ch-parse.y (mode2):  Allow REF to be followed by any mode.
11274         * ch-parse.y (mode2):  Allow literal expressions in string length.
11275         * ch-parse.y (tupleelement):  Allow elemenst to be untyped_expr.
11276         * ch-parse.y (seizestatement, etc):  Call chill_seize each
11277         time something is seized, rather than building a list first.
11278
11279 Sat Jan 16 12:24:44 1993  Bill Cox  (bill@rtl.cygnus.com)
11280
11281         * chill.gperf, ch-hash.h: add Wilfried's tokens
11282         * ch-lex.l: fold in Wilfried's changes.  Some tokens
11283         weren't getting recognized, and INSTANCE wasn't correctly
11284         reported to ch-parse.y as a PREDEF_MODEDCL.
11285
11286 Thu Jan 14 15:02:39 1993  Per Bothner  (bothner@cygnus.com)
11287
11288         * ch-tree.h (CH_CHARS_TYPE_P):  New macro.  Add comment
11289         explaining difference between char strings and char arrays.
11290         * ch-tree.h (CH_STRING_TYPE_P):  Add FIXME re bitstrings.
11291         * ch-tree.c (build_string_type):  Add comment.
11292
11293 Wed Jan 13 15:19:15 1993  Per Bothner  (bothner@cygnus.com)
11294
11295         * calls.c, expr.c, function.c, stmt.c, varasm.c:  Set
11296         MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11297         * expmed.c (store_bit_field, extract_field_field):  Undo
11298         yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11299
11300         * ch-decl.c (do_decls):  Put back support for initializing.
11301         (Was accidentally removed in Jan 8 change.)
11302
11303 Wed Jan 13 14:13:11 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
11304
11305         * ch-lex.l (convert_bitstring): Correct typo in cast.
11306
11307 Tue Jan 12 20:29:08 1993  Per Bothner  (bothner@cygnus.com)
11308
11309         * ch-lex.l (convert_bitstring):  Change to pack bits
11310         within words, not bytes, and to use machine bit-order
11311         (not always little-endian).
11312         * ch-parse.y:  Allow BOOLS(n) as well as BITS(n).
11313         Use build_bitstring_type, not build_string_type.
11314         * expmed.c (store_bit_field, extract_field_field):  Remove
11315         "sanity test" that prevents use with SET_TYPE.
11316         * tree.c (build_bitstring_type, build_powerset_type,
11317         build_string_type):  Move (so far) Chill-specific functions to ...
11318         * ch-tree.c:  ... new file.
11319         * ch-tree.c (build_powerset_type, build_bitstring_type):  Re-write.
11320         * ch-typeck.c (build_chill_array_ref):  Handle bit strings better.
11321         * ch-typeck.c (chill_expand_tuple):  Kludge to handle SET_TYPE.
11322         * Makefile.in (CHILL_OBJS):  Add ch-tree.o.
11323         * ch-decl.c (do_decls):  Call expand_decl.
11324         * stor-layout.c (layout_type):  Handle SET_TYPE.
11325         * expr.c (expand_expr):  Add FIXMEs about IN_EXPR.
11326         * ch-actions.c (lang_init):  Add type and decl for new
11327         function __builtin_setbitinstring.
11328         * ch-expr.c (chill_expand_assignmment):  Special-case handling
11329         for BIT_FIELD_REF with non-constant bit position (which is
11330         not yet handled by expand_expr).
11331         * ch-convert.c (convert):  Handle SET_TYPE.
11332
11333 Tue Jan 12 12:49:13 1993  Fred Fish  (fnf@cygnus.com)
11334
11335         * chill:  If -B arg is given, use to find gcc.
11336
11337 Fri Jan  8 20:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11338
11339         * ch-decl.c: revert to avoid seg fault
11340
11341 Fri Jan  8 14:20:42 1993  Bill Cox  (bill@rtl.cygnus.com)
11342
11343         * ch-decl.c: fix storage into correct offset in varying array.
11344         * ch-actions.c: define sizetype for everyone, use it to build
11345         varying structure.
11346         * ch-parse.y: tiny cleanup.
11347
11348 Wed Jan  6 13:25:33 1993  Bill Cox  (bill@cygnus.com)
11349
11350         * modules: use gdb rather than naked-gdb, to get opcodes
11351         in chill definition.
11352
11353 Wed Jan  6 09:48:35 1993  Bill Cox  (bill@cygnus.com)
11354
11355         * ch-typeck.c: add code to handle references to elements of VARYING
11356         arrays.  Simplify chill_give_type_to_expr.  Add rough draft of run-
11357         time index checking for VARYING arrays (under #if 0).
11358         * ch-actions.c: new function cond_type_range_exception & calls.
11359         New function cond_range_exception, for more general range-checking.
11360         New function build_varying_struct, to do just that.  Use the macros
11361         for the special varying field names.
11362         * ch-tree.h: define macros for varying field names.
11363         * ch-expr.c: use macros for varying struct names.  Simplify 
11364         chill_expand_array_assignment.
11365         * ch-parse.y: assure that build_varying_struct is called everywhere
11366         that it applies.  Add a line-number note before the body of a DO 
11367         loop.
11368         * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11369
11370 Tue Jan  5 17:26:14 1993  Bill Cox  (bill@cygnus.com)
11371
11372         * c-decl.c: correct order of declaration of start_decl params,
11373         for readability.
11374
11375 Tue Jan  5 15:59:36 1993  Per Bothner  (bothner@cygnus.com)
11376
11377         * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11378         Move shared code into ...
11379         * ch-decl.c (start_chill_function): ... here.
11380         * ch-decl.c (start_chill_function):  Add missing call to
11381         expand_start_bindings.
11382         * ch-decl.c (finish_chill_function): Add missing call to
11383         expand_end_bindings.
11384
11385 Tue Jan  5 01:00:47 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
11386
11387         * Makefile.in: took out the rest of the runtime support
11388
11389 Mon Jan  4 18:02:06 1993  Bill Cox  (bill@cygnus.com)
11390
11391         * ch-expr.c: make chill_expand_array_assignment not static.
11392
11393 Mon Jan  4 17:57:48 1993  Per Bothner  (bothner@cygnus.com)
11394
11395         * ch-grant.c, ch-parse.y:  Remove all code for explicitly
11396         calling initializer functions.  This is not needed, since we
11397         use the same mechanism used for C++ static constructors.
11398         * ch-grant.c (chill_start_module_code):  Make sure the
11399         init_name starts with the magic string also used for C++
11400         initializers.  Also, don't embed the file name in the name,
11401         just use the module name.
11402         * ch-grant.c (chill_finish_module_code):  Now that the
11403         initializer name follows the standard 'collect' convention,
11404         don't need to call assembler_constructor_alias, but can
11405         use the standard assemble_constructor instead.
11406         * varasm.c (assemble_constructor_alias):  Remove no-longer-
11407         needed function.
11408         * ch-parse.y:  Move code that is common to the beginning of
11409         all functions to a new macro INIT_ACTION.
11410         Make sure INIT_ACTION is also done for callaction, fixing a bug.
11411         * ch-parse.y (INIT_ACTION):  Do chill_start_module_code()
11412         before emit_line_note(), not after.
11413
11414 Mon Jan  4 11:43:12 1993  Bill Cox  (bill@cygnus.com)
11415
11416         * ch-parse.y: restore requirement for :upper-bound in array decl.
11417         * ch-actions.c: enhance upper, lower, length functions for VARYING.
11418
11419 Mon Jan  4 09:28:44 1993  Bill Cox  (bill@cygnus.com)
11420
11421         * ch-actions.c: fix NOT of boolean expr.
11422
11423 Mon Jan  4 08:42:57 1993  Bill Cox  (bill@cygnus.com)
11424
11425         * ch-actions.c: provide range-checking function
11426         * ch-lex.l: better compiler-directive error messages,
11427         allow underscores in exponents
11428         * ch-loop.c: prevent passing NULL ptr to printf
11429
11430 Sun Jan  3 11:57:13 1993  Bill Cox  (bill@cygnus.com)
11431
11432         * ch-typeck.c: correct & enable array index range-checking
11433
11434 Sun Jan  3 11:36:39 1993  Bill Cox  (bill@cygnus.com)
11435
11436         * ch-parse.y: define IGNORED_DIRECTIVE
11437         * ch-typeck.c: subtract array's lower domain value, even if
11438         index expression is constant.
11439
11440 Sat Jan  2 23:05:14 1993  Fred Fish  (fnf@cygnus.com)
11441
11442         * ch-lex.l (convert_float):  Fix misspelling in error message.
11443
11444 Sat Jan  2 16:02:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
11445
11446         * Makefile.in:  Took out chill-runtime support.
11447         Chill run times are now in ../chillrt, not ./chillrt.p
11448
11449 Sat Jan  2 15:04:13 1993  Bill Cox  (bill@cygnus.com)
11450
11451         * ch-hash.h, chill.gperf: cleanup.  fewer keywords seen by ch-parse.y.
11452
11453 Sat Jan  2 13:27:49 1993  Per Bothner  (bothner@rtl.cygnus.com)
11454
11455         * ch-lex.l (check_newline):  Use the orginal versions (derived
11456         from the C code, not the simplified, special-case version).
11457         Also, fix that version of check_newline to not call yylex()
11458         recursively.
11459         * ch-lex.l (yy_input):  Call check_newline to handle
11460         newlines and check for # directives.
11461         * ch-lex.l (syntax):  Don't recognize #-directives; these
11462         are now handled by check_newline.
11463         * ch-actions.c (lang_init):  Call the modified version of
11464         check_newline().  Do this at the *after* we've initialized
11465         standard types, so this can be done while lineno is still 0.
11466
11467 Sat Jan  2 10:57:20 1993  Bill Cox  (bill@cygnus.com)
11468
11469         * ch-hash.h, chill.gperf: add remaining reserved words.
11470
11471 Sat Jan  2 09:59:55 1993  Bill Cox  (bill@cygnus.com)
11472
11473         * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11474         names for exceptions
11475
11476 Fri Jan  1 12:30:31 1993  Fred Fish  (fnf@cygnus.com)
11477
11478         * ch-tree.h (JOINER):  Define joiner character the same way
11479         C++ defines it.
11480         * ch-grant.c (chill_start_module_code):  Use JOINER character
11481         to implement name mangling for the initializer function name.
11482         Algorithm is designed to be simple, distinct from C++ mangled
11483         symbols, and easy to convert to demangled form.
11484
11485 Thu Dec 31 10:30:51 1992  Bill Cox  (bill@rtl.cygnus.com)
11486
11487         * ch-expr.c: make array assignments work with indirect refs.
11488         * ch-actions.c: prepare for array parameter handling.
11489         * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11490
11491 Thu Dec 31 15:29:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
11492
11493         * ch-lex.l (yy_input):  Re-write to return more than one
11494         character at a time (execpt when reading seize-files).
11495         Don't increment lineno until we start reading the next line.
11496         This fixes some off-by-one errors in lineno.
11497
11498 Wed Dec 30 16:15:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
11499
11500         * ch-convert.c:  Assume use of new common.c.
11501         * ch-convert.c (convert_to_reference, convert_from_reference):
11502         New routines, to handle loc-identity declared variables and
11503         LOC parameters (both of which are implemented as references).
11504         * ch-lang.c (convert_to_boolean, convert_to_char):  Move to
11505         ch-convert.c, where they would seem to belong.
11506         * ch-convert.c (convert):  New function, since we no longer
11507         link in c-convert.c.
11508         * ch-expr.c (chill_expand_assignment):  Handle by calling
11509         convert() instead of chill_comptypes().
11510         Also handle the LHS being a reference.
11511         * ch-parse.y:  Add a procedure call as an action.
11512         * ch-parse.y (locdec, optlocinit):  Move handling of
11513         loc-identity declarations from optlocinit to locdec
11514         - and add working semantics for it.
11515         * ch-parse.y (seizestatement, visibilty_stmt):  Simplify.
11516         * ch-parse.y (grantstatement etc):  Don't bother making list.
11517         * ch-lex.l:  #include <sys/types.h> before <sys/stat.h>.
11518
11519 Wed Dec 30 16:06:55 1992  Bill Cox  (bill@rtl.cygnus.com)
11520
11521         * ch-parse.y, ch-expr.c: add support for declaring & assigning
11522         VARYING arrays.
11523         * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11524
11525 Tue Dec 29 15:28:48 1992  Bill Cox  (bill@cygnus.com)
11526
11527         * ch-actions.c: implement expressions of arrays of char,
11528         ( concatenation, relationals ), correct type of code parameters
11529         * ch-expr.c: correct type of code parameters
11530
11531 Tue Dec 29 11:16:19 1992  Bill Cox  (bill@cygnus.com)
11532
11533         * ch-decl.c: cleanup.
11534         * ch-parse.y: put emit_line_note() calls in lotsa places,
11535         per Fred's request; be sure that statements get counted also.
11536         * ch-lex.l: standardize function headers.
11537
11538 Tue Dec 29 10:41:56 1992  Fred Fish  (fnf@cygnus.com)
11539
11540         * ch-decl.c (start_chill_function):  Always return 1, rather
11541         than a random value.
11542         * ch-lex.l (check_newline):  Add a version for chill that
11543         just snarfs the right value for main_input_filename out of
11544         the first line of the input file, without disturbing the
11545         lexer state or requiring it's assistance.
11546         * ch-actions.c (lang_init):  Call check_newline, like the
11547         other language frontends, to get main_input_filename set
11548         from first line of input file.
11549
11550 Mon Dec 28 18:49:01 1992  Bill Cox  (bill@cygnus.com)
11551
11552         * ch-parse.y: clean up conflicts.  The remaining one is
11553         harmless.
11554
11555 Mon Dec 28 17:28:40 1992  Bill Cox  (bill@cygnus.com)
11556
11557         * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11558         clean up some parser conflicts.
11559
11560 Mon Dec 28 15:00:20 1992  Bill Cox  (bill@cygnus.com)
11561
11562         * ch-parse.y, ch-lex.l:  add keywords and parsing for most of
11563         CHILL I/O
11564
11565 Sat Dec 26 20:48:23 1992  Fred Fish  (fnf@cygnus.com)
11566
11567         * chillrt/chillrt0.c:  Oops, SVR4 doesn't need leading '_'
11568         on build_exceptions.
11569
11570 Sat Dec 26 11:00:36 1992  Fred Fish  (fnf@cygnus.com)
11571
11572         * ch-grant.c (chill_finish_module_code):  Call
11573         assemble_constructor_alias rather than assemble_constructor.
11574         * varasm.c (assemble_constructor_alias):  New function,
11575         like assemble_constructor, but also handles the case where
11576         ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11577         being used.  Emits a symbol table alias name with the correct
11578         prefix for collect to find and add to the __CTOR_LIST__.
11579         * chillrt/chillrt0.c:  Build on previous hack that gets
11580         _build_exceptions into the __CTOR_LIST__, to make it work
11581         for both the non GNU-ld case and for the SVR4 case.
11582
11583 Tue Dec 22 18:24:55 1992  Bill Cox  (bill@cygnus.com)
11584
11585         * ch-loop.c: clean up location enumeration - one more
11586         pass to do.
11587
11588 Tue Dec 22 16:31:48 1992  Bill Cox  (bill@cygnus.com)
11589
11590         * ch-loop.c: Working version of location enumeration loop
11591
11592 Tue Dec 22 14:42:14 1992  Bill Cox  (bill@cygnus.com)
11593
11594         * ch-lex.l: readability cleanup
11595
11596 Mon Dec 21 14:58:39 1992  Bill Cox  (bill@cygnus.com)
11597
11598         * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11599         ch-loop.c: rough draft of location enumeration
11600         ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11601         ch-actions.c: finish making pred() and succ() work.
11602
11603 Mon Dec 21 10:04:35 1992  Bill Cox  (bill@cygnus.com)
11604
11605         * ch-actions.c: allow pred(char) and succ(char).
11606
11607 Sun Dec 20 16:04:28 1992  Bill Cox  (bill@cygnus.com)
11608
11609         * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11610         c-expr.c: make DO WITH work.
11611
11612 Sun Dec 20 12:22:53 1992  Bill Cox  (bill@cygnus.com)
11613
11614         * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11615         now work
11616
11617 Sat Dec 19 14:20:23 1992  Per Bothner  (bothner@cygnus.com)
11618
11619         * c-typeck.c (process_init_constructor):  Add warning if
11620         there is a duplicate default initializer element.
11621         * ch-typeck.c (chill_give_type_to_expr):  New function,
11622         to handle coercion of an expression to context-given type,
11623         Takes care of untyped tuples, and case expressions.
11624         * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11625         chill_expand_result), ch-parse.y <assignaction>:
11626         Use chill_give_type_to_expr().
11627         * ch-typeck.c (chill_handle_case_label):  New parameter list,
11628         to handle the (new) conventions for <case_label>, including
11629         default elements and ranges.
11630         * ch-parse.y <expanded_case_label>, ch-typeck.c
11631         (expand_case_expr):  Use new version of chill_handle_case_label.
11632         * ch-decl.c (push_syndecls):  Change parameters:  Instead of
11633         TREE_LIST representing a compete <synonym definition statement>,
11634         just pass the parts of a single <synonym definition> as 3
11635         different parameters.  Also, use chill_give_type_to_expr(),
11636         to handle untyped tuples in the RHS.
11637         * ch-parse.y <syndeclist, syndef>:  Don't bother trying to construct
11638         a tree - just call push_syndecls() on each <synonum_definition>
11639         as we see it.
11640         * ch-parse.y (exprlist_get_single):  Remove; no longer needed.
11641         * ch-parse.y:  Handle <tuple> without mode name diferently from
11642         <tuple> with mode name.  The latter is a <primval> that can be
11643         in most contexts, but if the <mode name> is missing, the <tuple>
11644         is only allowed in certain contexts.  Use the new non-terminal
11645         <untyped_expr> to indicate those contexts where untyped tuples
11646         (and case expressions) are valid because the expression gets a
11647         type from its context (such as the RHS of an assignment).
11648         Use chill_give_type_to_expr in those contexts.
11649
11650 Sat Dec 19 14:01:26 1992  Bill Cox  (bill@cygnus.com)
11651
11652         * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11653
11654 Sat Dec 19 10:16:20 1992  Bill Cox  (bill@cygnus.com)
11655
11656         * ch-parse.y: clean up warning messages from byacc.  bison
11657         still complains thrice.
11658
11659 Fri Dec 18 12:33:29 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11660
11661         * ch-actions.c (maybe_chill_comptypes): Delete unused
11662         function.
11663         (chill_comptypes): Add new parameter ERRSTR.  All callers
11664         changed.
11665         (build_chill_binary_op): Fix indentation to match GNU coding
11666         style.
11667
11668 Fri Dec 18 08:18:13 1992  Bill Cox  (bill@rtl.cygnus.com)
11669
11670         * ch-parse.y, ch-expr.c, ch-actions.c, expr.c:  major
11671         cleanup of expression and assignment handling.
11672
11673 Thu Dec 17 10:16:32 1992  Bill Cox  (bill@cygnus.com)
11674
11675         * ch-parse.y: standardize indentation after c-parse.y
11676
11677 Wed Dec 16 15:22:12 1992  Per Bothner  (bothner@cygnus.com)
11678
11679         * c-typeck.c (process_init_constructor):  Add support for
11680         a default initializer element.
11681         * ch-parse.y: Implement default elements for tuples
11682         (as in '(else):' and '(*):' ).
11683
11684         * ch-parse.y:  Previous change to dis-ambiguate case-labels
11685         seems to have allowed getting rid of all of the expr_or_list hair.
11686         * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11687         initialization of multiple variables by a tuple" - the
11688         idea is bogus.
11689
11690 Wed Dec 16 11:17:53 1992  Bill Cox  (bill@cygnus.com)
11691
11692         * ch-parse.y: complete re-write of DO statement handling.
11693         now operational, except WITH is stubbed out.  Improved
11694         syntax error message.
11695         * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11696         * ch-expr.c: fixes to IN_EXPR handling.
11697
11698 Tue Dec 15 17:15:13 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
11699
11700         * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11701         * ch-lex.c: Likewise.
11702
11703         * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11704         by flex to avoid compiler error.
11705
11706 Tue Dec 15 08:41:08 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11707
11708         * ch-decl.c (do_decls): Handle initialization of multiple
11709         variables by a tuple.
11710
11711         * ch-decl.c (do_decls,start_chill_function): Make DECL public
11712         if we're doing a GRANT ALL at top level.
11713
11714         * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11715         range expression.
11716
11717         * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11718         BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11719
11720 Mon Dec 14 14:58:32 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11721
11722         * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11723         (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11724
11725 Mon Dec 14 13:36:44 1992  Bill Cox  (bill@cygnus.com)
11726
11727         * expr.c: install and test newer Pascal IN_EXPR code,
11728         but don't activate it - it's very verbose.
11729
11730 Mon Dec 14 00:22:49 1992  Fred Fish  (fnf@cygnus.com)
11731
11732         * Makefile.in (LANGUAGES):  Add chill.
11733         * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11734         New macros for chill native and cross installation names.
11735         * Makefile.in (COMPILERS):  Add cc1chill.
11736         * Makefile.in (CHILL_OBJS):  New macro, chill objects.
11737         * Makefile.in (CHILL_TREE_H):  New macro, chill headers.
11738         * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11739         sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11740         install-librmt):  New targets.
11741         * Makefile.in (install-native):  Add install-libchill, 
11742         install-librmt.
11743
11744 Sun Dec 13 15:21:06 1992  Bill Cox  (bill@cygnus.com)
11745
11746         * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
11747
11748 Sun Dec 13 14:07:32 1992  Bill Cox  (bill@cygnus.com)
11749
11750         * ch-actions.c: fix unary operations, modulus ops,
11751         (discovered after extending regression tests).
11752
11753 Sun Dec 13 12:16:32 1992  Bill Cox  (bill@cygnus.com)
11754
11755         * resync with Michael and Wilfried
11756
11757 Sun Dec 13 09:11:25 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11758
11759         * ch-parse.y (output_constant): Fixed some whitespace
11760         problems.
11761         * ch-tree.h: Add declarations for new chill functions that
11762         have been implemented but not (yet) declared.
11763
11764 Sat Dec 12 00:17:23 1992  Per Bothner  (bothner@cygnus.com)
11765
11766         * c-typeck.c (process_init_constructor):  Warn about duplicate
11767         labels for labelled initializer elements.
11768         * ch-lex.l (various operator tokens, such as "+"):  Don't
11769         set yylval.code to a TREE_CODE; this is better done in parser.
11770         * ch-parse.y:  Some work with case labels and tuples.
11771         Get literal range as tuple (and case) labels working.
11772         Fix some problems introduced by recent grammar overhaul.
11773
11774 Fri Dec 11 13:28:48 1992  Bill Cox  (bill@cygnus.com)
11775
11776         * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
11777         got long, real expressions working.  We can also call a func-
11778         tion and use its return value.
11779
11780 Thu Dec 10 14:45:17 1992  Per Bothner  (bothner@cygnus.com)
11781
11782         * ch-parse.y:  Major change to remove or at least identify
11783         parser ambiguities.  One result:  We now allow actions that
11784         start with '(', as required by teh Blue Book.  This does break
11785         some things; look for FIXME for things that need work.
11786         * ch-typeck.c (chill_expand_case_expr):  We need an extra
11787         level of looping to (in the future) support <case label
11788         specification>s with more than one <case label list>.
11789
11790 Thu Dec 10 09:21:41 1992  Bill Cox  (bill@cygnus.com)
11791
11792         * ch-actions.c, ch-expr.c: Implement string assignments
11793         and relationals.
11794
11795 Thu Dec 10 07:17:35 1992  Bill Cox  (bill@cygnus.com)
11796
11797         * ch-decl.c, ch-typeck.c: rest of previous commit.
11798
11799 Wed Dec  9 18:26:29 1992  Bill Cox  (bill@cygnus.com)
11800
11801         * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
11802         regression test and fix bit arrays and set ops.
11803
11804 Mon Dec  7 14:57:46 1992  Bill Cox  (bill@cygnus.com)
11805
11806         * ch-actions.c: implement crude relationals between
11807         non-exotic operands, such as integers.
11808
11809 Mon Dec  7 10:42:35 1992  Bill Cox  (bill@cygnus.com)
11810
11811         * ch-actions.c: implement relational, logic operations
11812         on arrays of BOOLs.
11813
11814 Mon Dec  7 08:55:20 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11815
11816         * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
11817         indicate we are done with initialization.
11818
11819         * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
11820         `grant all'.
11821         (start_chill_function): Ditto.
11822
11823         * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
11824         (compiler_directive): Don't confuse compiler directives with
11825         equality comparison operators.
11826
11827         * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
11828
11829 Sun Dec  6 13:12:32 1992  Bill Cox  (bill@cygnus.com)
11830
11831         * ch-actions.c: repair set inequality code.
11832
11833 Sun Dec  6 11:15:59 1992  Bill Cox  (bill@cygnus.com)
11834
11835         * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
11836         relational expressions, including (<, <=, =, /=, >, >=, IN).
11837
11838 Fri Dec  4 13:54:58 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
11839
11840         * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
11841         Pascal-required ones, since C++ no longer needs them.  When
11842         Chill's public, a comment can be added to the effect that
11843         SET_LE_EXPR is also used by Chill.
11844
11845 Fri Dec  4 12:05:01 1992  Bill Cox  (bill@cygnus.com)
11846
11847         * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
11848
11849 Fri Dec  4 10:23:10 1992  Bill Cox  (bill@cygnus.com)
11850         * Get *.def and *.c in sync.
11851
11852 Fri Dec  4 06:48:41 1992  Fred Fish  (fnf@cygnus.com)
11853
11854         * ch-actions.c (lang_init):  Change types "long" and
11855         "ulong" from 16 bits to 32.
11856         * dwarfout.c (fundamental_type_code):  Use FT_signed_char
11857         for type "byte" and FT_unsigned_char for type "ubyte".
11858
11859 Thu Dec  3 15:13:24 1992  Bill Cox  (bill@cygnus.com)
11860         * ch-actions.c, ch-tree.def, ch-parse.y:  preparation
11861         for powerset expressions.
11862
11863 Tue Dec  2 17:02:30 1992  Bill Cox  (bill@cygnus.com)
11864         * ch-actions.c: sketch code for exceptions generated
11865         by builtin routines.
11866
11867 Tue Dec  2 12:49:50 1992  Bill Cox  (bill@cygnus.com)
11868         * ch-actions.c, ch-parse.y: add support for lower()
11869         upper() builtin functions.
11870
11871 Wed Dec  2 12:03:30 1992  Fred Fish  (fnf@cygnus.com)
11872
11873         * Makefile.in (chillrt0.o, install-chillrt0):  Remove.
11874         * chill (library):  Remove chillrt0.o.
11875         * chillrt/Makefile:  Remove maintenance of chillrt0.o as a
11876         separate file.  Now gets put in libchill.a.
11877
11878 Tue Dec  2 10:100:20 1992  Bill Cox  (bill@cygnus.com)
11879
11880         * ch-parse.y, ch-actions.c: add support for num()
11881         builtin function.
11882
11883 Wed Dec  2 09:52:06 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11884
11885         * ch-decl.c (fixup_unknown_type): New function.
11886         (push_newmode,push_synmode): Call `fixup_unknown_type' when we
11887         see a declaration that uses `unknown_type_node'.  FIXME.
11888
11889         * ch-grant.c (decode_constant): New function.
11890         (decode_decl): Call `decode_constant' for CONST_DECLs.
11891
11892         * ch-lex.l (char action): Use ridpointers instead of
11893         lookup_name to get "char"'s declaration.
11894
11895         * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
11896         when we need to build a TYPE_DECL.
11897
11898 Tue Dec  2 09:44:05 1992  Bill Cox  (bill@cygnus.com)
11899
11900         * ch-typeck.c: clean up a gcc warning with a forward
11901         declaration of build_string_type.
11902
11903 Tue Dec  1 16:51:05 1992  Bill Cox  (bill@cygnus.com)
11904
11905         * ch-actions.c: completely remove those builtin calls
11906         that are duplicated in c-decl.c
11907
11908 Tue Dec  1 16:38:51 1992  Fred Fish  (fnf@cygnus.com)
11909
11910         * ch-actions.c (lang_init):  Ifdef out initializations for
11911         __builtin_abs and __builtin_fabs, since they are duplicates of
11912         initializations in c-decl.c, and trigger spurious warnings.
11913
11914 Tue Dec  1 16:35:18 1992  Bill Cox  (bill@cygnus.com)
11915
11916         * ch-parse.y: make size() work with a typename argument.
11917
11918 Tue Dec  1 16:15:56 1992  Bill Cox  (bill@cygnus.com)
11919
11920         * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
11921         functions min, max, card.
11922
11923 Tue Dec  1 12:35:56 1992  Bill Cox  (bill@cygnus.com)
11924
11925         * ch-lex.l: fix char-type
11926
11927 Tue Dec  1 11:10:56 1992  Bill Cox  (bill@cygnus.com)
11928
11929         * ch-parse.y, ch-actions: added parsing and processing 
11930         for upper, lower, and length built-ins.
11931
11932 Tue Dec  1 09:40:49 1992  Fred Fish  (fnf@cygnus.com)
11933
11934         * dwarf.h (LANG_CHILL):  Add as GNU extension.
11935         * dwarfout.c (output_compile_unit_die):  Test language_string and
11936         set LANG_CHILL if appropriate.
11937         * ch-parse.y (language_string):  New for chill.
11938         * chillrt:  Renamed directory chill to chillrt.
11939         * chill:  Renamed chillsh to chill.
11940         * Makefile.in:  Adjust for renamings.
11941         * chillrt/Makefile:  Adjust for directory renaming.
11942
11943 Mon Nov 30 17:35:33 1992  Fred Fish  (fnf@cygnus.com)
11944
11945         * chillsh:  New script frontend (ala g++), installed as "chill".
11946         Can't be called "chill.sh" because make tries to cat it into the
11947         "chill" directory.  Can't be called just "chill" cause that's
11948         already there as a directory.
11949         * Makefile.in:  Add rules to install chillsh as "chill".
11950         * chill/libchill.c:  Temporarily ifdef out stuff that wants
11951         to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
11952         which itself causes linkage to fail.
11953
11954 Mon Nov 30 16:28:19 1992  Bill Cox  (bill@cygnus.com)
11955
11956         * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
11957         conversion routines.
11958         * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
11959         Added production for SIZE(expr).
11960         * ch-actions.c: Add semantic routine chill_sizeof ().
11961
11962 Mon Nov 30 16:20:40 1992  Per Bothner  (bothner@cygnus.com)
11963
11964         * ch-lex.l, ch-parse.y:  Translate token PFEIL into English ARROW.
11965         * ch-parse.y (op6):  Remove handling of string repetition operator,
11966         until we can figure out a way to parse it correctly.
11967         * ch-parse.y (optmodename):  New non-terminal.
11968         * ch-parse.y (tuple):  Merge the two variants using optmodename.
11969         * ch-parse.y (location):  Add semantic actions for
11970         dereferencing operator ->.
11971
11972 Mon Nov 30 08:01:29 1992  Bill Cox  (bill@cygnus.com)
11973
11974         * ch-actions.c: removed compile warning, better code for abs.
11975
11976         * ch-parse.y: add productions for builtin functions succ, pred,
11977         abs, and size.  Add %tokens also.  Sort %tokens alphabetically.
11978
11979         * ch-lex.l: add parsing for builtin function names, such as abs,
11980         pred, succ, etc.  Put flex -a option into Makefile.in, so we can
11981         clean up the lexer soon.
11982
11983 Tue Nov 24 14:18:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
11984
11985         * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
11986         New functions, for code common to CASE actions and expressions.
11987         * chill.y:  Replace some code by calls to chill_handle_case_label
11988         and chill_handle_case_default.
11989         * ch-typeck.c (chill_expand_case_expr):  Add semantics.
11990
11991         * tree.c:  Change doing_chill_thang from extern to common.
11992
11993 Mon Nov 23 18:34:22 1992  Per Bothner  (bothner@rtl.cygnus.com)
11994
11995         * ch-tree.def:  New CASE_EXPR type, for case expressions.
11996         * ch-expr.c (chill_expand_expr):  Hook for CASE_EXPR.
11997         * ch-typeck.c (chill_expand_case_expr):  New function.
11998         Placeholder to implement case expressions.
11999         * ch-typeck.c (chill_expand_result, chill_expand_return):
12000         Handle mode-unspecified tuples and case expressions in
12001         the context of RETURN and RESULT actions.
12002         * chill.y (assignaction):  Handle case expressions in the
12003         context of the RHS of an assignment action.
12004         * chill.y (caseaction): Remove spurious duplicate OF in grammar.
12005         * chill.y:  Handle labeled structure tuples.
12006         * chill.y:  New rules to parse CASE expressions.
12007         * tree.c (build_function_types):  Allow Chill functions
12008         to return arrays and functions.
12009
12010 Wed Nov 18 13:50:28 1992  Per Bothner  (bothner@rtl.cygnus.com)
12011
12012         * ch-typeck.c (chill_expand_tuple):  New function. Expand a
12013         tuple (constructor) given an expected (context) type.
12014         * chill.y:  Implement 'LHS := TUPLE' using expand_chill_tuple,
12015         using the mode of the LHS and the expected type of the TUPLE.
12016         * chill.y:  Implement initialization.
12017         * chill.y:  Fix some syntax bugs (forbidlist must be surrounded
12018         by parentheses), and remove or note ambiguities.
12019         * chill.y:  Started converting layout style to be like c-parse.in.
12020         * chill.y:  Implement IF expressions.
12021         * chill.y:  Added syntax rules for tuples.  Labelled and unlabelled
12022         array tuples should now work (in some contexts).
12023         * ch-actions.c:  Initialize doing_chill_thang to 1.
12024         * ch-decl.c (do_decls):  Set DECL_INITIAL if there is an
12025         initializer, to make pushdecl and finish_decl work.
12026         * c-decl.c (convert_for_assignment):  If Chill, don't convert
12027         function and arrays into pointers.  (Maybe functions should
12028         still be converted?)
12029         * c-typeck.c (grokdeclarator):  Allow functions in Chill
12030         to return arrays and functions.
12031
12032 Mon Nov 16 15:40:47 1992  Per Bothner  (bothner@rtl.cygnus.com)
12033
12034         * chill.y (exprlist_get_single):  New function, used when
12035         parsing tuples.
12036         * chill.y:  Re-did parsing of tuples to remove ambiguities.
12037         This was a bitch.
12038
12039 Tue Nov 10 16:30:55 1992  Per Bothner  (bothner@rtl.cygnus.com)
12040
12041         * ch-typeck.c (chill_expand_result);  Set TREE_SIDE_EFEFCTS
12042         flags on assignment to result.
12043         * ch-typeck.c (build_chill_array_ref):  Subtract lower
12044         bound of domain if non-zero.  Preliminary hook for range checking.
12045         * ch-tree.h, chill.l:  Combine variables range_check and
12046         range_check_disabled into global variable range_checking.
12047         * ch-tree.h:  Better definitions of CH_CLASS_IS_VALUE
12048         CH_CLASS_IS_DERIVED.
12049