OSDN Git Service

* c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
[pf3gnuchains/gcc-fork.git] / gcc / ch / ChangeLog
1 Fri Feb 23 15:28:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2
3         * decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
4
5 2001-02-15  Jim Meyering  <meyering@lucent.com>
6
7         * Make-lang.in (CHILL.install-common): Depend on `installdirs'.
8         (CHILL.install-info): Likewise.
9
10 Sun Feb  4 15:52:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11
12         * convert.c (convert): Call abort instead of fatal.
13         * except.c (pop_handler, chill_check_no_handlers): Likewise.
14         * expr.c (chill_expand_expr): Likewise.
15         * parse.c (peek_token_, pushback_token, require): Likewise.
16         * grant.c (write_grant_file): Call fatal_io_error instead of
17         pfatal_with_name.
18         * lex.c (init_parse, same_file, yywrap): Likewise.
19         * lang.c (GNU_xref_begin, GNU_xref_end): Deleted.
20         * lex.c (convert_bitstring): Delete check for alloca failure.
21
22 2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23
24         * ch-tree.h (integer_minus_one_node): Moved to top level gcc
25         directory.
26
27         * decl.c (integer_minus_one_node): Likewise.
28         (init_decl_processing): Don't set integer_minus_one_node.
29
30 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31
32         * Makefile.in: Remove all dependencies on defaults.h.
33         * decl.c: Don't include defaults.h.
34         * timing.c: Likewise.
35
36 2000-12-08  Joseph S. Myers  <jsm28@cam.ac.uk>
37
38         * Make-lang.in (CHILL.info): Depend on info files in source
39         directory.
40         (ch/chill.info): Build info files in source directory.
41         (CHILL.install-info): Install info files from source directory.
42
43 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
44
45         * lex.c: Don't bother checking whether ISUPPER(c) before
46         calling TOLOWER(c).  Don't bother checking whether isascii(c)
47         before testing ISSPACE(c); ISSPACE(c) includes '\n'.
48
49 2000-12-06  Rodney Brown  <RodneyBrown@mynd.com>
50
51         * actions.h: Standarize copyright statement.
52         * except.c inout.c lang.c lex.c lex.h loop.c nloop.c: Likewise.
53         * parse.c tasking.c tasking.h timing.c xtypeck.c: Likewise.
54
55 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
56
57         * actions.c (check_missing_cases), typeck.c (build_chill_slice,
58         build_chill_cast): Use memset () instead of bzero ().
59
60 2000-11-05  Joseph S. Myers  <jsm28@cam.ac.uk>
61
62         * Make-lang.in (CHILL.distdir): Remove.
63
64 2000-11-02  Geoffrey Keating  <geoffk@cygnus.com>
65
66         * Make-lang.in: Remove 'CYGNUS LOCAL' markers.
67         * Makefile.in: Likewise.
68         * configure: Likewise.
69
70 2000-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
71
72         * Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for
73         updated gperf.
74
75 2000-10-05  Richard Henderson  <rth@cygnus.com>
76
77         * decl.c (finish_chill_function): Don't init can_reach_end.
78
79 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
80
81         * decl.c, timing.c: Include defaults.h if not already included.
82         Don't define the *_TYPE_SIZE macros.
83         * Makefile.in: Update dependencies.
84
85 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
86
87         * inout.c (add_enum_to_list): Use DECL_NAME directly, don't get
88         its IDENTIFIER_POINTER and immediately call get_identifier on it.
89         * lex.c (yywrap): Constify a char *.
90
91 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
92
93         * Make-lang.in (cc1chill): Don't depend on c-iterate.o.
94
95 2000-08-21  Nix  <nix@esperi.demon.co.uk>
96
97         * lang-specs.h: Do not process -o or run the assembler if
98         -fsyntax-only.
99
100 2000-08-07  Kazu Hirata  <kazu@hxi.com>
101
102         * decl.c: Fix a comment typo.
103
104 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
105
106         * Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
107         * Makefile.in (cc1chill): Link with $(BACKEND).  Define BACKEND,
108         eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
109
110 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
111
112         * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
113
114 Mon Jul 31 07:58:31 2000  Casper Dik <Casper.Dik@holland.sun.com>
115
116         * Makefile.in: Remove naked "^L".
117
118 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
119
120         * lang-specs.h: Use the new named specs.  Remove unnecessary braces.
121
122 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
123
124         * decl.c (init_decl_processing): Set TYPE_USER_ALIGN.
125         (layout_enum): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
126         * typeck.c (layout_chill_range_type): Set TYPE_USER_ALIGN.
127         (apply_chill_field_layout): Set DECL_USER_ALIGN.
128         (layout_chill_struct_type): Set TYPE_USER_ALIGN.
129
130 Tue Jun 13 15:30:46 2000  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
131
132         * Make-lang.in (CHILL.install-common): Use $(INSTALL_SCRIPT), not
133         $(INSTALL_PROGRAM) for chill.install.
134
135 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
136
137         * Makefile.in (EXPR_H): New dependency variable.
138         (actions.o, expr.o): Use EXPR_H.
139         (lang.o): Depend on RTL_H and EXPR_H.
140
141         * lang.c: Include rtl.h and expr.h.
142         (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.
143
144 2000-06-04  Philipp Thomas  <pthomas@suse.de>
145
146         * Makefile.in(INTLLIBS): New macro.
147         (LIBS): Add INTLLIBS.
148         (DEPLIBS): Likewise.
149         * config-lang(outputs): Specify ch/Makefile.
150
151 Sat Jun  3 15:31:07 2000  Jeffrey A Law  (law@cygnus.com)
152
153         * chill.texi (INFO-DIR-ENTRY): Fix chill entry.
154
155 2000-06-02  Richard Henderson  <rth@cygnus.com>
156
157         * lang.c (lang_get_alias_set): New.
158
159 Sat May 27 11:24:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
160
161         * lang.c (deep_const_expr): Use first_rtl_op.
162         * satisfy.c (satisfy): Use TREE_CODE_LENGTH.
163
164 2000-05-18  Chris Demetriou  <cgd@netbsd.org>
165
166         * Makefile.in (hash.h): Delete a redundant use of gawk and sed.
167
168 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
169
170         * decl.c (c_decode_option): Update -Wall unused flags by
171         calling set_Wunused.
172         (poplevel): Replace warn_unused with warn_unused_label.
173
174 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
175
176         * ch-tree.h: Update prototypes.  Remove prototypes for
177         functions declared elsewhere.
178         * decl.c (define_label): Constify filename parameter.
179         * grant.c (globalize_decl, set_default_grant_file): Constify
180         local char * variables.  Don't declare
181         first_global_object_name or asm_out_file.
182         * lang.c (chill_real_input_filename): Constify.
183         * lex.c (init_parse): Constify parameter and return value.
184         * parse.c: Don't declare input_filename.
185         (ch_expand_asm_operands): Constify filename parameter.
186         (parse_multi_dimension_case_action): Constify local char *.
187         * satisfy.c (safe_satisfy_decl): Constify local char *.
188
189 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
190
191         * ch-tree.h (init_function_start): Constify.
192
193 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
194
195         * ch/lex.c: Remove references to cccp.c.
196
197 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
198
199         * lang-specs.h: Pass -fno-show-column to the preprocessor.
200
201 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
202
203         * expr.c (chill_expand_expr): Pass bit alignment to emit_block_move.
204
205 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
206
207         * actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT.
208         * typeck.c (expand_constant_to_buffer): Use int_byte_position.
209         (extract_constant_from_buffer): Likewise.
210
211 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
212
213         * typeck.c (min_precision): New function.
214         (build_chill_slice): Use host_integerp and tree_low_cst.
215         (expand_constant_to_buffer): Likewise and also int_bit_position.
216         LO is unsigned HOST_WIDE_INT
217         (build_chill_array_ref_1): Make `i' be HOST_WIDE_INT; use tree_low_cst.
218         (extract_constant_from_buffer): Sizes are now HOST_WIDE_INT.
219         Use host_integerp and tree_low_cst.
220         (build_chill_bin_type): Use host_integerp and tree_low_cst.
221         (layout_chill_range_type): Use tree_int_cst_sgn, compare_tree_int,
222         tree_low_cst, and min_precision.
223         (apply_chill_array_layout): Cleanups for types of variables
224         and use tree_int_cst_sgn, compare_tree_int, and tree_low_cst.
225         (apply_chill_field_layout): Likewise.
226
227 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
228
229         * grant.c (globalize_decl): Constify a char*.
230
231 Mon Mar  6 17:52:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
232
233         * actions.c (chill_convert_for_assignment): INDEX is unsigned
234         HOST_WIDE_INT.
235         * ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH since unsigned.
236         * except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
237         Use compare_tree_int.
238         (expand_goto_except_cleanup): Likewise.
239
240 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
241
242         * decl.c (current_function_decl): Move to toplev.c.
243
244 Mon Feb 28 08:12:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
245
246         * ch-tree.h (DECL_ACTION_NESTING_LEVEL): Use new tree union name.
247         * decl.c (finish_struct): Don't clear DECL_FIELD_SIZE.
248         * typeck.c (make_chill_struct_type): Likewise.
249         (apply_decl_field_layout): General cleanup.
250         Set DECL_SIZE instead of DECL_FIELD_SIZE.
251
252 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
253
254         * actions.c (chill_convert_for_assignment): Don't use size_binop
255         for things that aren't sizes.
256         (expand_varying_length_assignment): Likewise.
257         * convert.c (digest_array_tuple, convert): Likewise.
258         * typeck.c (build_chill_slice, smash_dummy_type): Likewise.
259         (build_chill_slice_with_range): Likewise.
260         (build_chill_slice_with_length): Likewise.
261         (build_array_from_set): Adjust types for size_binop.
262         * expr.c (build_concat_expr, build_chill_repetition_op): Likewise.
263         (build_chill_sizeof): Use TYPE_SIZE_UNIT.
264         * tree.c (build_string_type): Pass proper type to size_binop.
265
266 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
267
268         * decl.c (layout_enum): Set DECL_SIZE_UNIT.
269         * satisfy.c (safe_satisfy_decl): Likewise.
270
271 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
272
273         * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
274
275 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
276
277         * grant.c: Don't declare `version_string'.
278
279 2000-02-11  Nathan Sidwell  <nathan@acm.org>
280
281         * decl.c (init_decl_processing): Remove duplicate decl of
282         set_alignment.
283
284 2000-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
285
286         * expr.c (compare_records): Delete maximum_field_alignment declaration.
287         * inout.c (inout_init): Likewise.
288         (build_chill_gettextaccess): Likewise.
289         (build_enum_tables): Likewise.
290         * lang.c: Likewise.
291         * satisfy.c (satisfy): Likewise.
292         * tasking.c (build_tasking_struct): Likewise.
293         (build_tasking_message_type): Likewise.
294         * typeck.c (build_init_struct): Likewise.
295
296         * except.c (emit_setup_handler): Make save_maximum_field_alignment
297         unsigned int to match maximum_field_alignment.
298         * inout.c (inout_init): Likewise.
299         (build_chill_gettextaccess): Likewise.
300         (build_enum_tables): Likewise.
301         * tasking.c (build_tasking_struct): Likewise.
302         (build_tasking_message_type): Likewise.
303         * typeck.c (build_init_struct): Likewise.
304
305 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
306
307         * except.c (maximum_field_alignment): Remove duplicate declaration.
308
309 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
310
311         * All files: PROTO -> PARAMS.
312
313 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
314
315         * lex.c: Include tm_p.h.
316
317 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
318
319         * actions.c (update_else_range_for_int_const): Initialize
320         variables `lowval' and `highval'.
321         (update_else_range_for_range): Likewise for `low_range_val' and
322         `high_range_val'.
323
324 1999-12-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
325
326         * typeck.c (apply_chill_array_layout, apply_chill_field_layout):
327         Avoid the use of ANSI string concatenation.
328
329         * expr.c (chill_expand_case_expr): Likewise.
330
331 1999-11-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
332
333         * expr.c (build_chill_function_call): Don't call a variadic
334         function with a non-literal format string.
335
336         * grant.c (write_spec_module): Likewise.
337
338         * parse.c (require, expect): Likewise.
339
340         * tasking.c (get_struct_type_name, get_struct_debug_type_name,
341         get_tasking_code_name, get_struct_variable_name,
342         get_process_wrapper_name, build_start_process): Likewise.
343
344         * typeck.c (valid_array_index_p): Likewise.
345
346 Sun Oct 31 22:33:33 1999  Jeffrey A Law  (law@cygnus.com)
347
348         * Makefile.in (convert.o, typeck.o): Depend on output.h
349         * convert.c: Include output.h.
350         * typeck.c: Include output.h.
351         (initializer_constant_valid_p): Delete fucntion.
352         * ch-tree.h (initializer_constant_valid_p): Delete prototype.
353
354 1999-10-26  Mark Mitchell  <mark@codesourcery.com>
355
356         * ch-tree.h (remember_end_note): Remove prototype.
357         * decl.c (poplevel): Don't call remember_end_note.
358
359 Fri Sep 24 10:48:10 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
360
361         * ch-tree.h (builtin_function): Don't declare.
362         * decl.c (builtin_function): New arg CLASS.  Arg FUNCTION_CODE now of
363         type int.  All callers changed.
364         Set the builtin's DECL_BUILT_IN_CLASS.
365
366 1999-09-20  Nick Clifton  <nickc@cygnus.com>
367
368         * lang.c (lang_decode_option): Extend comment.
369
370 1999-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
371
372         * lex.c (maybe_downcase, getlc, handle_generic_pragma,
373         check_newline): Use uppercase ctype macro from system.h.
374
375 1999-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
376
377         * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
378
379 Fri Sep 10 10:32:32 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
380
381         * ch-tree.h: Delete declarations for all tree nodes now moved to
382         global_trees.
383         * expr.c: Likewise.
384         * typeck.c: Likewise.
385         * decl.c: Delete their definitions.
386         (init_decl_processing): Call build_common_tree_nodes and
387         build_common_tree_nodes_2 instead of building their nodes here.
388         Use set_sizetype instead of assigning sizetype.
389
390 1999-09-08  Bruce Korb  autogen@linuxbox.com
391
392         * Makefile.in: Give the gperf user a hint about why "gperf -F" fails.
393
394 Tue Sep  7 15:59:56 1999  Dave Brolley  <brolley@cygnus.com>
395
396         * parse.h: Undefine DELAY if it's defined.
397         (PACK,NOPACK,POS): Remove erroneous comments regarding these tokens.
398         Also, move them to their proper place alphabetically.
399
400 1999-09-04  Mark Mitchell  <mark@codesourcery.com>
401
402         * Make-lang.in (cc1chill): Depend on ggc-callbacks.o.
403         * Makefile.in (CHILL_OBJS): Add ggc-callbacks.o.
404
405 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
406
407         * parse.c (language_string): Constify.
408
409 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
410
411         * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
412         Remove hacks for stuff which now comes from libiberty.
413
414 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
415
416         * lang.c (chill_print_error_function): Constify a char*.
417
418 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
419
420         * Makefile.in (ch-version.c): Constify a char*.
421
422         * actions.c (id_cmp, warn_unhandled, adjust_return_value,
423         update_else_range_for_int_const, update_else_range_for_range,
424         update_else_range_for_range_expr, update_else_range_for_type,
425         compute_else_range, check_case_value,
426         chill_handle_case_label_range,
427         chill_handle_multi_case_label_range,
428         chill_handle_multi_case_else_label, chill_handle_multi_case_label,
429         chill_handle_multi_case_label_list print_missing_cases): Add
430         static prototypes.
431         (build_exception_variant): Cast the function argument of qsort.
432         (build_rts_call, warn_unhandled, chill_convert_for_assignment,
433         adjust_return_value, chill_expand_result,
434         build_multi_case_selector_expression, print_missing_cases):
435         Constify a char*.
436         (print_missing_cases): Introduce an intermediary non-const ptr.
437         Add brackets and indent.
438
439         * ch-tree.h (maybe_building_objc_message_expr,
440         maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
441         (push_handler, pop_handler): Add prototypes.
442         (builtin_function, valid_array_index_p,
443         build_chill_exception_decl, build_rts_call,
444         chill_convert_for_assignment, display_int_cst,
445         build_chill_addr_expr, check_have_mode, get_identifier3,
446         build_chill_string, register_seize_path, get_unique_identifier,
447         add_taskstuff_to_list, gnuchill_version): Constify a char*.
448         (finish_chill_function): Add void prototype argument.
449
450         * convert.c (convert_to_reference, convert_to_boolean,
451         convert_to_char, base_type_size_in_bytes, remove_tree_element,
452         check_ps_range, digest_powerset_tuple, digest_structure_tuple,
453         digest_array_tuple, convert1): Add static prototypes.
454         (base_type_size_in_bytes): Hide unused function.
455         (display_int_cst, digest_array_tuple): Constify a char*.
456
457         * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
458         proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
459         build_implied_names, bind_sub_modules, layout_array_type,
460         do_based_decl, handle_one_level, label_value_cmp,
461         find_implied_types): Add static prototypes.
462         (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
463         Constify a char*.
464         (layout_chill_variants): Cast the function argument of qsort.
465         (start_chill_function, fix_identifier, init_decl_processing):
466         Constify a char*.
467         (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
468         Use xcalloc instead of xmalloc/bzero.
469         (builtin_function, build_chill_exception_decl,
470         finish_outer_function): Constify a char*.
471
472         * except.c (start_handler_array, finish_handler_array): Add static
473         prototypes.
474
475         * expr.c (chill_expand_expr, chill_expand_case_expr,
476         check_arglist_length, internal_build_compound_expr,
477         is_really_instance, invalid_operand, invalid_right_operand,
478         build_chill_abstime, build_allocate_memory_call,
479         build_allocate_global_memory_call, build_return_memory,
480         build_chill_duration, build_chill_floatcall,
481         build_allocate_getstack, build_chill_allocate,
482         build_chill_getstack, build_chill_terminate, build_chill_inttime,
483         build_chill_lower_or_upper, build_max_min,
484         build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
485         build_compare_set_expr, scalar_to_string, build_concat_expr,
486         build_compare_string_expr, compare_records, string_char_rep,
487         build_boring_bitstring): Add static prototypes.
488         (check_have_mode, chill_expand_expr, build_chill_floatcall,
489         build_allocate_getstack, build_max_min, build_chill_function_call,
490         expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
491         string_char_rep): Constify a char*.
492
493         * gperf (hash, in_word_set): Add prototypes.
494
495         * grant.c (newstring, strfree, append, prepend,
496         grant_use_seizefile, decode_layout, grant_array_type,
497         grant_array_type_selective, get_tag_value,
498         get_tag_value_selective, print_enumeral, print_enumeral_selective,
499         print_integer_type, find_enum_parent, print_integer_selective,
500         print_struct, print_struct_selective, print_proc_exceptions,
501         print_proc_tail, print_proc_tail_selective, find_in_decls,
502         in_ridpointers, grant_seized_identifier, globalize_decl,
503         grant_one_decl_selective, compare_memory_file, search_in_list,
504         really_grant_this): Add static prototypes.
505         (newstring, append, prepend, grant_use_seizefile,
506         print_integer_type, decode_constant, grant_one_decl_selective,
507         header_template): Constify a char *.
508
509         * inout.c (add_enum_to_list, build_chill_io_list_type,
510         build_io_types, declare_predefined_file, build_access_part,
511         textlocation_mode, check_assoc, assoc_call, check_transfer,
512         connect_process_optionals, connect_text, connect_access,
513         check_access, check_text, get_final_type_and_range,
514         process_io_list, check_format_string, get_max_size,
515         check_exprlist): Add static prototypes.
516         (declare_predefined_file, check_assoc, assoc_call, check_transfer,
517         check_access, check_text, process_io_list): Constify a char*.
518
519         * lang.c (deep_const_expr, chill_print_error_function): Add static
520         prototypes.
521
522         * lex.c (close_input_file, maybe_number, string_or_char): Constify
523         a char*.
524         (ch_lex_init, skip_directive, same_file, getlc, yywrap,
525         yy_refill): Add static prototypes.
526         (build_chill_string, same_file, register_seize_path): Constify a
527         char*.
528
529         * lex.h (finish_chill_seizes): Remove unused prototypes.
530
531         * loop.c (build_temporary_variable, maybe_make_for_temp,
532         get_unique_identifier): Constify a char*.
533
534         * parse.c (ch_parse_init, check_end_label, end_function,
535         build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
536         forward_token_, require, check_token, expect, define__PROCNAME__):
537         Add static prototypes.
538         (build_prefix_clause, expect): Constify a char*.
539         (parse_expression, parse_primval, parse_untyped_expr,
540         parse_opt_untyped_expr, parse_opt_actions): Add void prototype
541         argument.
542         (parse_opt_name_string, parse_simple_name_string,
543         parse_name_string, parse_defining_occurrence, parse_name,
544         parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
545         parse_spec_module, parse_semi_colon,
546         parse_defining_occurrence_list, parse_mode_definition,
547         parse_mode_definition_statement, parse_synonym_definition,
548         parse_synonym_definition_statement, parse_on_exception_list,
549         parse_on_alternatives, parse_loc_declaration,
550         parse_declaration_statement, parse_optforbid, parse_postfix,
551         parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
552         parse_grant_statement, parse_seize_statement,
553         parse_param_name_list, parse_param_attr, parse_formpar,
554         parse_formparlist, parse_opt_result_spec, parse_opt_except,
555         parse_opt_recursive, parse_procedureattr, parse_proc_body,
556         parse_procedure_definition, parse_processpar,
557         parse_processparlist, parse_process_definition,
558         parse_signal_definition, parse_signal_definition_statement,
559         parse_then_clause, parse_opt_else_clause, parse_expr_list,
560         parse_range_list_clause, pushback_paren_expr, parse_case_label,
561         parse_case_label_list, parse_case_label_specification,
562         parse_single_dimension_case_action,
563         parse_multi_dimension_case_action, parse_case_action,
564         parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
565         parse_asm_action, parse_begin_end_block, parse_if_action,
566         parse_iteration, parse_delay_case_event_list,
567         parse_delay_case_action, parse_do_action, parse_receive_spec,
568         parse_receive_case_action, parse_send_action, parse_start_action,
569         parse_call, parse_tuple_fieldname_list, parse_tuple_element,
570         parse_opt_element_list, parse_tuple, parse_operand6,
571         parse_operand5, parse_operand4, parse_operand3, parse_operand2,
572         parse_operand1, parse_operand0, parse_case_expression,
573         parse_then_alternative, parse_else_alternative,
574         parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
575         parse_step, parse_opt_layout, parse_field_name_list,
576         parse_fixed_field, parse_variant_field_list,
577         parse_variant_alternative, parse_field, parse_structure_mode,
578         parse_opt_queue_size, parse_procedure_mode, parse_program,
579         parse_pass_1_2): Add static prototypes.
580         (parse_process_definition): Remove extra argument in function call.
581         (parse_range_list_clause): Likewise.
582
583         * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
584         satisfy_list, satisfy_list_values): Add static prototype.
585         (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
586
587         * tasking.c (make_process_struct): Remove unused prototype.
588         (validate_process_parameters, get_struct_variable_name,
589         decl_tasking_code_variable, get_struct_debug_type_name,
590         get_process_wrapper_name, build_tasking_enum,
591         build_tasking_message_type, build_receive_signal_case_label,
592         build_receive_buffer_case_label, build_receive_buffer_case_end,
593         build_receive_signal_case_end): Add static prototypes.
594         (struct_name, struct_debug_name, data_name, wrapper_name,
595         get_struct_type_name, get_struct_debug_type_name,
596         get_tasking_code_name, get_struct_variable_name,
597         get_process_wrapper_name): Constify a char*.
598         (validate_process_parameters, get_struct_variable_name,
599         decl_tasking_code_variable): Hide unused functions.
600         (build_start_process, add_taskstuff_to_list, build_queue_length):
601         Constify a char*.
602
603         * tree.c (make_powerset_type): Add static prototype.
604         (get_identifier3, build_alias_decl, decl_check_rename): Constify a
605         char*.
606
607         * typeck.c (extract_constant_from_buffer,
608         expand_constant_to_buffer, build_empty_string,
609         make_chill_pointer_type, make_chill_range_type,
610         apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
611         apply_chill_field_layout): Add static prototype.
612         (valid_array_index_p, extract_constant_from_buffer,
613         chill_expand_tuple): Constify a char*.
614         (layout_chill_struct_type): Cast the function argument of qsort.
615
616 1999-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
617
618         * actions.c (lang_identify): Constify a char*.
619
620         * lang.c (chill_print_error_function): Likewise.
621         (lang_init): Remove redundant prototype for `print_error_function'.
622
623 1999-07-25  Richard Henderson  <rth@cygnus.com>
624
625         * decl.c (va_list_type_node): New.
626
627 1999-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
628
629         * Make-lang.in (CHILL.stage1): Depend on stage1-start.
630         (CHILL.stage2): Likewise for stage2-start.
631         (CHILL.stage3): Likewise for stage3-start.
632         (CHILL.stage4): Likewise for stage4-start.
633
634 Tue May 18 00:21:34 1999  Zack Weinberg  <zack@rabi.phys.columbia.edu>
635
636         * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
637         was not given.
638
639 1999-05-10 18:21 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
640
641         * lang-specs.h: Pass -$ to the preprocessor.
642
643 Tue May  4 14:52:53 1999  Dave Brolley  <brolley@cygnus.com>
644
645         * actions.c (chill_expand_assignment): Use powersetlen to calculate the
646         length of an array of packed bits.
647
648 Tue Apr 20 23:37:01 1999   Nathan Sidwell  <nathan@acm.org>
649
650         * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
651         order.
652
653 Wed Apr 14 21:07:30 1999  Mumit Khan  <khan@xraylith.wisc.edu>
654
655         * config-lang.in (compilers): Add exeext.
656         (stagestuff): Likewise.
657
658 Fri Apr  2 15:49:44 1999  Jeffrey A Law  (law@cygnus.com)
659
660         * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
661
662 Wed Mar 31 10:44:47 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
663
664         * Makefile.in (hash.h): Generate using gperf language 'C', not
665         'KR-C', so gperf uses the `const' keyword on strings.
666
667         * gperf (resword): Const-ify a char*.
668
669 Sun Mar 28 00:30:36 1999  Jeffrey A Law  (law@cygnus.com)
670
671         * Make-lang.in (CHILL.dvi): New target.
672         (CHILL.mostlyclean): Remove remnants of old runtime library structure.
673
674 1999-02-20  Craig Burley  <craig@jcb-sc.com>
675
676         * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
677         target instead of the chill.texi file.
678         (ch/chill.info): New target, depends on the chill.texi source file.
679         Its command writes ch/chill.info instead of chill.info.
680         (CHILL.install-info): Install from ch/chill.info instead of
681         chill.info.
682         If any ch/chill.info* files exist, delete *all* chill.info* files
683         in $infodir first, not just the ones corresponding to the
684         files to be installed (just in case the docs get smaller).
685
686 Sun Jan 31 20:34:29 1999  Zack Weinberg  <zack@rabi.columbia.edu>
687
688         * decl2.c: Don't define flag_no_ident here.  Don't process
689         -f(no-)ident here.
690         * ch-tree.h: Don't declare flag_no_ident here.
691         * lang-specs.h: Map -Qn to -fno-ident.
692
693 Tue Jan 19 23:24:36 1999  Jeffrey A Law  (law@cygnus.com)
694
695         * Makefile.in (typeck.o): Depend on insn-codes.h.
696         * actions.c (chill_handle_multi_case_label): Initialize "expr".
697         * decl.c (poplevel): Initialize "block_previously_created".
698         * expr.c (chill_expand_expr): Initialize "size0" and "size1".
699         (fold_set_expr): Initialize "buffer1".
700         * inout.c (process_io_list): Initialize "to_assign".
701         (check_exprlist): Initialize "result".
702         * parse.c (expand_expr): Declare.
703         (parse_multi_dimension_case_action): Initialize "end_case_label".
704         * tasking.c (build_start_process): Initialize "struct_type_node".
705         * typeck.c (apply_chill_field_layout): Initialize "word".
706         (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
707         signed/unsigned comparison warning.
708
709 Mon Jan 18 11:55:06 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
710
711         * ch-tree.h: Remove conflicting prototypes for pedwarn,
712         warning_with_decl, and make_dcl_rtl.
713
714 Sun Jan 17 21:53:23 1999  Jeffrey A Law  (law@cygnus.com)
715
716         * Makefile.in: Do not put ^Ls at the start of a line.
717
718 Wed Jan  6 02:53:38 1999  Jeffrey A Law  (law@cygnus.com)
719
720         * Makefile.in: Add some missing $(exeext).  Remove some obsolete
721         runtime stuff.
722         * Make-lang.in: Similarly.
723
724 Tue Nov 24 09:57:34 1998  Jeffrey A Law  (law@cygnus.com)
725
726         * Makefile.in (lex.c): Do not depend on hash.h.
727         (lex.o): Depend on hash.h.
728
729 Mon Oct 19 12:13:47 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
730
731         * Makefile.in (lex.o): Depend on dwarfout.h.
732
733         * lang-specs.h: Add missing braces in initializer.
734
735         * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
736
737 Thu Oct 15 09:25:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
738
739         * expr.c (build_chill_card): Use &&, not &, when comparing truth
740         values.
741
742         * parse.c (parse_spec_module): Remove unused variable
743         `module_name', but preserve function call from initialization.
744         (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
745
746         * inout.c (init_text_location): Remove unused variable `textlength'.
747
748 Wed Oct 14 22:19:48 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
749
750         * typeck.c (build_chill_cast): Fix typo in assignment statement.
751
752         * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
753         when printing a `tree'.
754
755 Fri Oct  9 13:01:23 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
756
757         * ch-tree.h (build_delay_case_end): Remove unused parameter.
758         (build_receive_case_end): Likewise.
759         (check_queue_size): Likewise.
760
761         * parse.c: Callers changed.
762
763         * satisfy.c: Likewise.
764
765         * tasking.c (build_receive_buffer_case_end): Remove unused
766         parameter `label_cnt'.
767         (build_receive_signal_case_end): Likewise.
768         (build_receive_case_end): Likewise.
769         (build_delay_case_end): Likewise.
770         (check_queue_size): Likewise for parameter `type'.
771         All callers changed.
772
773 Thu Oct  8 05:57:41 1998  Jeffrey A Law  (law@cygnus.com)
774
775         * typeck (type_for_mode): Only return TItype nodes when
776         HOST_BITS_PER_WIDE_INT is >= 64 bits.
777         (type_for_size): Similarly.
778         * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
779         when HOST_BITS_PER_WIDE_INT is >= 64 bits.
780         (init_decl_processing): Only create TItype nodes when
781         HOST_BITS_PER_WIDE_INT is >= 64 bits.
782
783 Wed Oct  7 12:19:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
784
785         * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
786         (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
787
788 Thu Oct  1 10:43:45 1998  Nick Clifton  <nickc@cygnus.com>
789
790         * lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
791         HANDLE_GENERIC_PRAGMAS.
792         (handle_generic_pragma): New function: Parse generic pragmas.
793
794 Wed Sep 30 20:22:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
795
796         * parse.c (emit_label): Fix return-type of prototype.
797
798 Wed Sep 30 19:41:36 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
799
800         * actions.c (chill_handle_multi_case_label): Always return a value
801         in function returning non-void.
802
803         * except.c: Include OS headers before any local ones.
804
805         * typeck.c (layout_chill_range_type): Change type of variable
806         `negprecision' to int.
807         (apply_chill_array_layout): Initialize variables `stepsize' and
808         `start_bit'.
809         (layout_chill_struct_type): Change type of variable `min_align' to
810         unsigned int.
811         (smash_dummy_type): Change name of variable `main' to `main_tree'.
812
813 Wed Sep 30 19:24:41 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
814
815         * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
816         ensure enough bits for calculation.
817
818         * ch-tree.h (check_text_length): Remove unused parameter.
819
820         * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
821         function sprintf into the appropriate type for printing.
822
823         * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
824         format specifier.
825         (print_mode): Likewise.
826         (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
827
828         * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
829         the format specifier.
830
831         * inout.c (check_text_length): Remove unused parameter `type'.
832         (build_chill_associate): Initialize variables `arg1', `arg2',
833         `arg3', `arg4' and `arg5'.
834         (build_chill_modify): Likewise.
835         (scanformcont): Change type of variable `curr' to `unsigned char'.
836
837         * lex.c (maybe_downcase): Cast the argument of `tolower' to
838         `unsigned char'.
839
840         * satisfy.c (satisfy): Remove unused parameter in call to
841         `check_text_length'.
842
843         * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
844         as a `long' in call to function `error'.
845         (decl_tasking_code_variable): Likewise.
846
847 Wed Sep 30 19:03:02 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
848
849         * grant.c (decode_decl_selective): Cast switch's enum argument to
850         an int.
851         (really_grant_this): Add default case in switch.
852
853         * typeck.c (chill_resulting_class): Add default cases in switch.
854         Also add `break' statements after each case.
855
856 Tue Sep 29 21:37:33 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
857
858         * ch-tree.h (build_compare_expr): Change first argument's type
859         from `enum chill_tree_code' to `enum tree_code'.
860         (build_compare_discrete_expr): Likewise.
861
862         * expr.c (build_compare_set_expr): Likewise.
863         (build_compare_string_expr): Likewise.
864         (build_compare_expr): Likewise.
865         (build_compare_discrete_expr): Likewise.  Also add default case in
866         switch statement.
867         (compare_int_csts): Add default case in switch statement.
868
869 Sun Sep 20 11:02:55 1998  Robert Lipe  <robertl@dgii.com>
870
871         * except.c: Include system.h.
872
873         * Makefile.in (except.o): Depend on system.h.
874
875 Sun Sep 20 09:25:13 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
876
877         * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
878         lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
879         typeck.o): Depend on system.h and toplev.h.
880         (except.o): Depend on toplev.h.
881         (grant.o): Depend on system.h, toplev.h and output.h.
882
883         * actions.c: Include system.h and toplev.h.  Remove redundant
884         prototypes.
885         (build_cause_exception): Add default case in switch.
886         (update_else_range_for_range): Add parentheses around && within ||.
887         (chill_handle_multi_case_label_list): Remove unused variable
888         `selector_value'.
889         (print_missing_cases): Reconcile format specifiers vs arguments in
890         calls to sprintf.
891
892         * ch-tree.h: Don't include stdio.h.  Wrap prototypes using FILE*
893         with macro BUFSIZ.  Add missing prototypes.
894
895         * convert.c: Include system.h and toplev.h.  Remove redundant
896         prototypes.
897         (convert): Remove unused variable `errstr'.
898
899         * decl.c: Include system.h and toplev.h.  Remove redundant
900         prototypes.
901         (builtin_scope): Add missing initializers.
902         (clear_scope): Likewise.
903         (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
904         (copy_lang_decl): Likewise for parameter `node'.
905         (c_decode_option): Likewise for parameter `argc'.
906         (push_extern_function): Likewise for parameter `granting'.
907         (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
908         (pushdecl): Remove unused variable `t'.
909         (lookup_name_current_level): Make static and hide.
910         (lookup_name_for_seizing): Make static.
911         (finish_decl): Remove unused variable `type'.
912         (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
913         (complete_array_type): Mark parameters `type', `initial_value' and
914         `do_default' with ATTRIBUTE_UNUSED.
915         (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
916         (start_enum): Likewise.
917         (shadow_record_fields): Remove unused variables `type' and `parent'.
918
919         * except.c: Include toplev.h.  Remove redundant prototypes.
920
921         * expr.c: Include system.h and toplev.h.  Don't define NULL.
922         Remove redundant prototypes.
923         (internal_build_compound_expr): Mark parameter `first_p' with
924         ATTRIBUTE_UNUSED.
925         (build_allocate_getstack): Remove unused variable `init'.
926         (build_chill_pred_or_succ): Likewise for variable `limit'.
927         (varying_to_slice): Likewise for variable `doamin' [sic].
928         (finish_chill_binary_op): Likewise for variables `code0' and
929         `code1'.  Remove unused label `finish'.  Add explicit braces to
930         avoid ambiguous `else'.
931         (build_chill_addr_expr): Remove extra parameter in call to `error'.
932         (build_chill_unary_op): Remove unused variables `class' and `type0'.
933         (powersetlen): Remove unused variables `domain' and `temp'.
934
935         * grant.c: Include system.h, toplev.h and output.h.  Don't handle
936         strchr/strrchr.  Remove redundant prototypes.
937         (decode_constant_selective): Remove unused variables `op' and `wrk'.
938         (push_granted): Mark parameters `name' and `decl' with
939         ATTRIBUTE_UNUSED.
940
941         * inout.c: Include system.h and toplev.h.  Remove redundant
942         prototypes.
943         (textlocation_mode): Use &&, not &, when comparing two truth
944         values.
945         (scanformcont): Remove unused label `do_the_action'.
946
947         * lang.c: Include system.h and toplev.h.  Remove redundant
948         prototypes.
949         (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
950         (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
951         (lang_print_xnode): Likewise for parameters `file', `node' and
952         `indent'.
953         (lang_decode_option): Explicitly declare `explicit_ignore_case'.
954         (incomplete_type_error): Mark parameters `value' and `type' with
955         ATTRIBUTE_UNUSED.
956
957         * lex.c: Include system.h and toplev.h.  Remove redundant
958         prototypes.  Don't handle strchr/strrchr.  Use CAPITALIZED
959         versions of ctype macros from system.h.  Cast ctype arguments to
960         unsigned char when necessary.
961         (last_token, RETURN_TOKEN): Hide definition.
962         (push_back): Remove unused function.
963         (readstring): Change variable `i' to unsigned.
964         (yywrap): Remove unused variable `node'.
965
966         * loop.c: Include system.h and toplev.h.  Remove redundant
967         prototypes.
968         (chill_unsigned_type): Hide prototype and definition.
969         (begin_loop_scope): Remove unused variable `firstp'.
970         (nonvalue_begin_loop_scope): Likewise.
971
972         * parse.c: Include system.h and toplev.h.  Remove redundant
973         prototypes.
974         (quasi_signal): Hide.
975         (PEEK_TOKEN): Change return type to `enum terminal'.
976         (parse_mode_definition_statement): Remove unused variable `names'.
977         (parse_formpar): Remove unused parameter `in_spec_module'.  All
978         callers changed.
979         (parse_formparlist): Likewise.
980         (parse_processpar): Remove unused variable `parms'.
981         (parse_definition): Add explicit braces to avoid ambiguous `else'.
982         (parse_multi_dimension_case_action): Initialize variable
983         `begin_test_label'.  Remove unused variable `new_test'.
984         (parse_case_action): Remove unused variable `caseaction_flag'.
985         (parse_asm_clobbers): Remove unused variable `expr'.
986         (parse_delay_case_action): Initialize variable `label_cnt'.
987         (parse_action): Make function static.
988         (parse_tuple_element): Remove unused variable `list'.
989         (parse_primval): Add default case in switch.
990         (parse_variant_alternative): Remove unused variables `x' and
991         `variant_fields'.
992
993         * satisfy.c: Include system.h and toplev.h.  Remove redundant
994         prototypes.
995
996         * tasking.c Include system.h and toplev.h.  Remove redundant
997         prototypes.
998         (data_name): Hide.
999         (get_struct_variable_name): Likewise.
1000         (validate_process_parameters): Mark parameter `parms' with
1001         ATTRIBUTE_UNUSED.
1002         (build_start_process): Initialize variable `tuple'.
1003         (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
1004
1005         * timing.c: Include system.h and toplev.h.
1006         (build_after_timeout_start): Remove unused variable `goto_where'.
1007
1008         * tree.c: Include system.h and toplev.h.  Remove redundant
1009         prototypes.
1010
1011         * typeck.c: Include system.h and toplev.h.  Remove redundant
1012         prototypes.
1013         (extract_constant_from_buffer): Make function static.  Add
1014         explicit braces to avoid ambiguous `else'.
1015         (expand_constant_to_buffer): Likewise.
1016         (build_chill_slice): remove unused variable `is_static'.
1017         (chill_compatible): Add explicit braces to avoid ambiguous `else'.
1018         (apply_chill_array_layout): Remove unused variable `offset'.
1019         (smash_dummy_type): Remove unused variable `save_lang_specific'.
1020         (initializer_constant_valid_p): Add default case in switch.
1021
1022 Mon Sep 14 16:46:36 1998  Dave Brolley  <brolley@cygnus.com>
1023
1024         * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
1025         domain type of the array.
1026
1027         * expr.c (build_chill_function_call): Remove redundant call to
1028         chill_convert_to_assignment
1029
1030 Thu Sep 10 17:52:36 1998  Dave Brolley  <brolley@cygnus.com>
1031
1032         * actions.c (chill_convert_for_assignment): Make a copy of the result
1033         node before modifying it.
1034
1035 Sat Sep  5 16:55:37 1998  John Carr  <jfc@mit.edu>
1036
1037         * Make-lang.in: Comment ^L characters.  Sun make doesn't like them.
1038
1039 Sat Sep  5 23:49:50 1998  Jeffrey A Law  (law@cygnus.com)
1040
1041         * Makefile.in (INCLUDES): Update after recent reorganization at the
1042         toplevel gcc directory.
1043
1044 Sat Sep  5 22:25:51 1998  Richard Henderson  <rth@cygnus.com>
1045
1046         * Makefile.in: Update dependancies for top-level gcc files that moved.
1047
1048 Sat Sep  5 02:21:08 1998  Jeffrey A Law  (law@cygnus.com)
1049
1050         * Makefile.in: Tweak to avoid building runtime.  It's built
1051         elsewhere now.
1052
1053 Thu Sep  3 15:32:03 1998  Dave Brolley  <brolley@cygnus.com>
1054
1055         * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
1056
1057 Wed Sep 02 09:25:29 1998  Nick Clifton  <nickc@cygnus.com>
1058
1059         * lex.c (check_newline):  Change how HANDLE_PRAGMA is called.
1060         Generate warning messages if unknown pragmas are encountered.
1061         (pragma_getc): New function: retrieves characters from the
1062         input stream.  Defined when HANDLE_PRAGMA is defined.
1063         (pragma_ungetc): New function: replaces characters back into the
1064         input stream.  Defined when HANDLE_PRAGMA is defined.
1065
1066 Mon Aug 31 15:35:16 1998  Dave Brolley  <brolley@cygnus.com>
1067
1068         * decl.c (layout_chill_variants): Calculate nlables properly.
1069
1070 Mon Jul 27 17:21:01 1998  Dave Brolley  <brolley@cygnus.com>
1071
1072         * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
1073         element type.
1074
1075 Mon Jul 13 14:20:12 1998  Nick Clifton  <nickc@cygnus.com>
1076
1077         * lang-options.h: Format changed to match changes in gcc/toplev.c
1078         to implement a --help option.
1079
1080 Wed Jul  8 02:58:35 1998  Jeffrey A Law  (law@cygnus.com)
1081
1082         * lang.c (lang_init_options): New function.
1083
1084 Wed Jun 10 12:08:09 1998  Dave Brolley  <brolley@cygnus.com>
1085
1086         * lang-options.h: Remove -I.
1087         * ch-tree.h (c_decode_option): New argc/argv interface.
1088         * decl.c (c_decode_option): New argc/argv interface.
1089         * lang.c (lang_decode_option):  New argc/argv interface.
1090
1091 Wed May 27 10:33:41 1998  Dave Brolley  <brolley@cygnus.com>
1092
1093         * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
1094         chill_handle_multi_case_label_range were reversed.
1095
1096         * Make-lang.in (chill): Use the correct gcc in the driver script.
1097
1098 Thu May 21 14:40:44 1998  Dave Brolley  <brolley@cygnus.com>
1099
1100         * convert.c (digest_array_tuple): Move conversion to
1101         chill_convert_for_assignment.
1102
1103         * actions.c (chill_convert_for_assignment): Allow conversion of array
1104         constructor to bitstring constructor for assignment to array of packed bits.
1105
1106 Thu May 14 13:57:51 1998  Dave Brolley  <brolley@cygnus.com>
1107
1108         * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
1109
1110 Wed May 13 14:07:51 1998  Dave Brolley  <brolley@cygnus.com>
1111
1112         * typeck.c (build_chill_slice): Adjust slice index to account for the
1113         lower bound of the array.
1114
1115         * actions.c (chill_expand_assignment): Convert function arguments to the
1116         correct types.
1117         (chill_expand_assignment): Ditto.
1118
1119 Mon May 11 16:20:57 1998  Dave Brolley  <brolley@cygnus.com>
1120
1121         * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
1122         of the array_type to the slice_type.
1123         (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
1124         of bits.
1125
1126         * loop.c (build_loop_iterator): Disallow location enumeration for
1127         bit-packed arrays.
1128
1129         * convert.c (digest_array_tuple): Allow conversion of an array tuple
1130         to a bitstring for assignment to a packed array of bits.
1131
1132 Mon May  4 16:28:58 1998  Dave Brolley  <brolley@cygnus.com>
1133
1134         * ch-tree.def (PACKED_ARRAY_REF): New tree code.
1135         * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
1136         (chill_location): Handle PACKED_ARRAY_REF.
1137         (apply_chill_array_layout): Allow PACK for arrays of single bits.
1138         * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
1139         (invalid_operand): Check PACKED_ARRAY_REF operands.
1140         * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
1141
1142 Thu Apr 23 15:33:20 1998  Dave Brolley  <brolley@cygnus.com>
1143
1144         * typeck.c (apply_chill_field_layout): Only integral fields can be packed
1145         to the bit level.
1146
1147 Tue Apr 21 14:30:10 1998  Jeffrey A Law  (law@cygnus.com)
1148
1149         * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
1150         (init_decl_processing): Handle TI types.
1151         * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
1152         (type_for_size): Handle TI types.
1153         (type_for_mode): Handle TI types.
1154
1155 Mon Apr 20 13:12:26 1998  Dave Brolley  <brolley@cygnus.com>
1156
1157         * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
1158         int.
1159
1160         * actions.c (chill_convert_for_assignment): Check that the rhs is not
1161         a type declaration.
1162
1163 Tue Apr 14 13:17:44 1998  Dave Brolley  <brolley@cygnus.com>
1164
1165         * lex.c (init_parse): Now returns char* containing the filename.
1166
1167         * typeck.c (get_type_precision): Declare.
1168         (apply_chill_field_layout): Use the minimum number of bits necessary to
1169         represent discrete types as the natural length of the field.
1170
1171 Thu Apr  9 12:46:55 1998  Dave Brolley  <brolley@cygnus.com>
1172
1173         * lex.c (finput): Move definition here from toplev.c
1174         (init_parse): New function replaces init_lex.
1175         (init_parse): Add code to open source file.
1176         (finish_parse): New function.
1177         (close_input_file): File was being closed more than once.
1178
1179         * lang.c (finput): Declare.
1180         * ch-tree.h (init_lex): Remove.
1181
1182
1183 Wed Apr  8 14:47:33 1998  Dave Brolley  <brolley@cygnus.com>
1184
1185         * actions.c (compute_else_range): Fix loop index error.
1186         (chill_handle_multi_case_label_range): Move error checking to
1187         chill_handle_multi_case_label.
1188         (chill_handle_multi_case_else_label): Convert ELSE range values to
1189         the type of the corrersponding CASE selector.
1190
1191 Wed Apr  8 13:02:50 1998  Jeffrey A Law  (law@cygnus.com)
1192
1193         * actions.c (sizetype_tab): Do not declare.
1194         * lang.c (lang_print_xnode): New function.
1195
1196 Mon Mar 23 14:43:06 1998  Dave Brolley  <brolley@cygnus.com>
1197
1198         * grant.c (decode_layout): New function.
1199         (grant_array_type): Call decode_layout to export layout information to
1200         the grant file.
1201         (decode_decl): Ditto
1202
1203 Fri Mar 20 16:06:41 1998  Dave Brolley  <brolley@cygnus.com>
1204
1205         * parse.c (parse_tuple_element): Call had arguments in wrong order.
1206
1207 Thu Mar 19 13:42:33 1998  Dave Brolley  <brolley@cygnus.com>
1208
1209         * typeck.c (apply_chill_array_layout): Use
1210         TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
1211         the word size.
1212
1213 Wed Mar 18 16:25:48 1998  Dave Brolley  <brolley@cygnus.com>
1214
1215         * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
1216         fields.
1217
1218         * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
1219         proper places.
1220
1221 Tue Mar 17 14:16:08 1998  Dave Brolley  <brolley@cygnus.com>
1222
1223         * parse.c (gen_label_rtx): Declare before use.
1224         (emit_jump): Declare before use.
1225         (emit_label): Declare before use.
1226         (parse_case_label_list): Pass in CASE selector so we can mark it as having
1227         an (ELSE) label if necessary.
1228         (parse_case_label_specification): Pass in the CASE selector list so that
1229         the CASE selectors can be passed to parse_case_label_list.
1230         (parse_multi_dimension_case_action): Modify to generate branching code in
1231         one pass.
1232         (parse_case_expression): Compute (ELSE) range before generating CASE expression.
1233         (parse_variant_alternative): Remove error for (ELSE) specified.
1234
1235         * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
1236
1237         * decl.c (layout_chill_variants): Add code to check compatibility of ranges
1238         and discrete mode names.
1239
1240         * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
1241
1242         * actions.h (build_multi_case_selector_expression): Make it extern.
1243         (chill_handle_multi_dimension_case_label): Remove.
1244         (compute_else_ranges): New function.
1245
1246         * actions.c (update_else_range_for_int_const): New function.
1247         (update_else_range_for_range): New function.
1248         (update_else_range_for_range_expr): New function.
1249         (update_else_range_for_type): New function.
1250         (compute_else_range): New function.
1251         (compute_else_ranges): New function.
1252         (chill_handle_multi_case_else_label): New function
1253         (chill_handle_multi_case_label_range): Don't generate tests for conditions
1254         which are always true or false.
1255         (chill_handle_multi_case_label): Ditto.
1256         (chill_handle_multi_case_label): Implement (ELSE) label support.
1257         (chill_handle_multi_case_label): First argument is now the selector tree not
1258         its VALUE.
1259         (chill_handle_multi_dimension_case_label): Removed.
1260         (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
1261         reversed on entry, so reverse it here.
1262
1263 Tue Mar 10 15:02:26 1998  Dave Brolley  <brolley@cygnus.com>
1264
1265         * actions.c (chill_handle_multi_case_label_range): Add more error checking.
1266         (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
1267         (chill_handle_multi_case_label): Improve Error handling.
1268
1269 Mon Mar  9 12:39:00 1998  Dave Brolley  <brolley@cygnus.com>
1270
1271         * actions.c (chill_handle_multi_case_label_range): Added.
1272         (chill_handle_multi_case_label): Add support for discrete ranges and
1273         discrete modes.
1274
1275         * typeck.c (apply_chill_array_layout): Added more error checking.
1276         (apply_chill_field_layout): Added more error checking.
1277
1278 Wed Mar  4 16:08:26 1998  Dave Brolley  <brolley@cygnus.com>
1279
1280         * convert.c (convert): Call build_simple_array_type with new argument.
1281
1282         * ch-tree.h(build_simple_array_type): Add argument for array layout.
1283
1284         * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
1285         (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
1286         (apply_chill_array_layout): New function to implement array layout.
1287         (layout_chill_array_type): Call apply_chill_array_layout and reset
1288         TYPE_ATTRIBUTES to NULL_TREE.
1289         (build_chill_array_type): Extend to handle one array layout per index mode.
1290         (smash_dummy_type): Call build_simple_array_type with new argument.
1291
1292         * satisfy.c (satisfy): Call SATISFY on array layout tree.
1293
1294 Wed Feb 25 14:36:41 1998  Dave Brolley  <brolley@cygnus.com>
1295
1296         * typeck.c (next_struct_offset): Added.
1297         (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
1298         or POS layout to a structure field.
1299         (layout_chill_struct_type): Add call to apply_chill_field_layout.
1300
1301         * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
1302         in the field layout tree.
1303
1304         * parse.c (pack_warn_printed): Remove.
1305         (nopack_warn_printed): Remove.
1306         (step_warn_printed): Remove.
1307         (pos_warn_printed): Remove.
1308         (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
1309
1310         * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
1311         field declarations.
1312
1313 Thu Feb 19 17:33:06 1998  Dave Brolley  <brolley@cygnus.com>
1314
1315         * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
1316         (parse_opt_mode): Removed incorrect comment about association of array
1317         layouts with nested array elements.
1318         (parse_opt_mode): Allow for one layout per index mode specified.
1319
1320 Wed Feb 18 23:48:57 1998  Richard Henderson  <rth@cygnus.com>
1321
1322         * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependancy.
1323
1324 Wed Feb 18 17:35:05 1998  Dave Brolley  <brolley@cygnus.com>
1325
1326         * parse.c (parse_field): Get rid of warning for multiple case selectors.
1327
1328         * decl.c (layout_chill_variants): Fix loop indexing error.
1329
1330 Mon Feb 16 15:54:47 1998  Dave Brolley  <brolley@cygnus.com>
1331
1332         * parse.c (parse_case_expression): Remove code which checked for
1333         unimplemented (ELSE) label.
1334         (parse_case_expression): Add code to handle multi dimensional case
1335         expression.
1336
1337         * expr.c (check_case_selector_list): Fixed to return a list of the
1338         selectors which were checked.
1339         (chill_expand_case_expr): Remove "sorry" message for multi dimension
1340         case.
1341         (chill_expand_case_expr): Reverse order of case alternatives.
1342         (chill_expand_case_expr): Add "error" message for multiple case
1343         selectors.
1344
1345         * actions.h (build_chill_multi_dimension_case_expr): Added.
1346
1347         * actions.c (build_multi_case_selector_expression): Renamed from
1348         build_multi_case_expression.
1349         (chill_handle_multi_dimension_case_label): Call above function by its
1350         new name.
1351         (build_chill_case_expr): Don't reverse the list elements here. It may
1352         not be necessary.
1353         (build_chill_multi_dimension_case_expr): New function implements multi
1354         dimensional case expression.
1355
1356 Thu Feb 12 15:44:50 1998  Dave Brolley  <brolley@cygnus.com>
1357
1358         * parse.c (parse_case_action): Implement multi-dimension CASE action.
1359         (parse_multi_dimension_case_action): Added.
1360         (parse_single_dimension_case_action): Added based on code moved from
1361         parse_case_action.
1362
1363         * expr.c (check_case_selector_list): Added.
1364
1365         * ch-tree.h (check_case_selector_list): Added.
1366
1367         * actions.h (chill_handle_single_dimension_case_label): Added.
1368         (chill_handle_multi_dimension_case_label): Added.
1369
1370         * actions.c (chill_handle_single_dimension_case_label): Added.
1371         (chill_handle_multi_case_label): Added.
1372         (chill_handle_multi_case_label_list): Added.
1373         (build_multi_case_expression): Added.
1374         (chill_handle_multi_dimension_case_label): Added
1375
1376 Fri Feb  6 16:43:41 1998  Dave Brolley  <brolley@cygnus.com>
1377
1378         * actions.c (sizetype_tab): Fix declaration to match gcc changes.
1379
1380 Thu Feb  5 14:03:00 1998  Dave Brolley  <brolley@cygnus.com>
1381
1382         * decl.c (chill_tree_code_type):  Change this to be an array of char like
1383         the tree_code_type in the rest of gcc.
1384
1385         * ch-tree.def (chill_tree_code_type): See decl.c.
1386
1387 Thu Jan 29 15:34:18 1998  Dave Brolley  <brolley@cygnus.com>
1388
1389         * tasking.c (error_with_decl): Correct prototype.
1390         (build_gen_ptype): Reverse arguments.
1391
1392         * lang.c (chill_real_input_filename): Add definition.
1393         (chill_print_error_function): Correct second argument.
1394         (lang_init): Set chill_real_input_filename.
1395
1396         * expr.c (NULL): Protect definition with #ifndef.
1397
1398         * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
1399         (init_decl_processing): Change last argument to 'sizeof(char)'.
1400
1401
1402 Tue Nov 25 10:44:19 1997  Nick Clifton  <nickc@cygnus.com>
1403
1404         * Make-lang.in (mostlyclean): Use && to separate commands, so that
1405         if the directory change fails, the rule will not loop.
1406
1407 Mon Mar  3 12:08:19 1997  Fred Fish  <fnf@cygnus.com>
1408
1409         * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1410         spaces and use single tab character on some lines.
1411         (cc1chill): Ditto.
1412
1413 Tue Nov 26 05:12:40 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1414
1415         * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1416         that the buffer location gets evaluated only once, in
1417         build_receive_buffer_case_end.
1418
1419         * typeck.c (build_chill_bin_type): Rework.
1420         (layout_chill_range_type): Process BIN mode.
1421         (build_chill_array_type): Remove checking of layout. This is done
1422         at the parse.
1423
1424         * parse.c (parse_on_exception_list): Don't allow ON name:.
1425         (parse_opt_layout): Parse POS and STEP and return a tree instead
1426         of int.
1427
1428         * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1429
1430         * grant.c (print_integer_type): Take care of BIN.
1431
1432         * expr.c (build_chill_descr): Make descr static if requested
1433         location is static.
1434         (build_chill_length): Process text mode name and text location as
1435         described in Z.200/1992.
1436         (build_compare_expr): Don't allow < <= > >= for composite modes.
1437
1438         * decl.c (grok_chill_fixedfields): Remove checking of
1439         layout. This is done at the parser.
1440
1441         * convert.c (digest_structure_tuple): Take care of wrong (probably
1442         array) tuple. Printing error may cause sigsegv.
1443
1444         * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1445         build_chill_array_type (layout is passed now as a tree instead of
1446         int).
1447
1448 Fri Nov 15 15:17:44 1996  Per Bothner  <bothner@deneb.cygnus.com>
1449
1450         * convert.c (display_int_cst):  Check that val is INTEGER_CST.
1451         (digest_array_tuple):  Some extra error checks (i.e. that indexes
1452         are constant).  If dynamic mode, result is not constant.
1453
1454 Mon Oct 28 12:48:06 1996  Jeffrey A Law  (law@cygnus.com)
1455
1456         * typeck.c (signed_or_unsigned_type): If the given type already
1457         as the correct signedness, then just return it.
1458
1459         * typeck.c ({un,}signed_type): If can't do anything, call
1460         signed_or_unsigned_type.
1461
1462 Fri Sep  6 02:50:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1463
1464         * typeck.c (build_chill_cast): In case of rangecheck, take care of
1465         constant expression (when defining a SYN).
1466
1467 Thu Sep  5 04:30:32 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1468
1469         * parse.c (define__PROCNAME__): New function to define a SYNONYM
1470         __PROCNAME__ (__procname__) which is a character string containing
1471         the name of the current procedure. This is quit the same as
1472         __FUNCTION__ in C.
1473         (parse_proc_body): Add call to define__PROCNAME__.
1474
1475         * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1476         modes on one side and procedures on the other side..
1477
1478 Wed Jul 24 01:13:51 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1479
1480         * typeck.c: Replace all local variables and arguments named `index'
1481         with `idx', `index' gets replaced by `strchr' which makes debugging
1482         somehow difficult.
1483         (valid_array_index_p): New argument to indicate that we are processing
1484         LENGTH (varying string) on the lefthand side of an assignment. The
1485         index check is different in this case.
1486         (build_chill_cast): In case of expression conversion do an OVERFLOW
1487         check with the limits of the target mode.
1488
1489         * ch-tree.h: New prototype for valid_array_index_p.
1490
1491         * actions.c (expand_varying_length_assignment): Add new argument to
1492         call to valid_array_index_p to indicate we are processing
1493         LENGTH on the lefthand side of an assignment.
1494
1495         * loop.c: Rename loop_stack to loopstack to avoid clashes with
1496         global variable ../stmt.c:loop_stack.
1497
1498 Tue Jun 18 23:04:06 1996  Per Bothner  <bothner@deneb.cygnus.com>
1499
1500         * expr.c (resolve_component_ref):  Set TREE_SIDE_EFFECTS properly.
1501
1502 Mon Jun 10 15:01:51 1996  Per Bothner  <bothner@deneb.cygnus.com>
1503
1504         * typeck.c (build_chill_reference_type):  Copy novelty for reference.
1505         * satisfy.c (satisfy):  If REFERENCE_TYPE, copy novelty.
1506
1507 Thu May 30 04:55:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1508
1509         * typeck.c (valid_array_index_p): For varying character strings
1510         we must check if the index is less then the actual length instead
1511         of less equal.
1512
1513 Wed May 15 06:07:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1514
1515         * ch-tree.h: Add prototype for test_range.
1516
1517         * inout.c (process_io_list): Fix duplicate function call if
1518         writetext argument is a function returning a varying string.
1519
1520 Tue May 14 21:08:47 1996  Per Bothner  <bothner@deneb.cygnus.com>
1521
1522         Re-do string comparisons.  Old way could re-use temporary
1523         (SAVE_EXPR created for an argumnet is variable) prematurely.
1524         * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR):  New codes.
1525         * decl.c (init_decl_processing):  Remove __eqstring, __gestring,
1526         __gtstring, __lestring, __ltstring, __nestring declarations.
1527         * expr.c (build_char_array_expr):  Rename to build_compare_string_expr.
1528         Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1529         (chill_expand_expr):    Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1530         (build_compare_expr):  Use new build_char_array_expr name.
1531
1532 Mon Apr  8 14:08:30 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1533
1534         Cleanup of April 5 fix:
1535         * actions.c (test_range):  New function.
1536         (check_range):  Simplify to use test_range.
1537         * convert.c (digest_powerset_tuple):  Move error message from here ...
1538         (check_ps_range):  ... to here.  Also, simplify to use test_range.
1539
1540 Fri Apr  5 03:41:05 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1541
1542         * convert.c (check_ps_range): New function to perform range check
1543         of powerset tuple elements. This is quite the same as check_range,
1544         however, the actions on rangefail are different.
1545         (digest_powerset_tuple): Call check_ps_range.
1546
1547         * loop.c (build_loop_iterator): Chaeck if location enumeration
1548         is requested for BOOLS(n) and print an error message.
1549
1550 Wed Mar  6 17:46:48 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1551
1552         * parse.c (parse_primval):  Emit error if !ignore (before: pass==2).
1553
1554         Implement parameterised array and string modes (using LANG_TYPE).
1555         * parse.c (parse_opt_mode):  Handle parameterized arrays and strings.
1556         * grant.c (decode_mode):  Support extended use of LANG_TYPE.
1557         * satisfy.c (cycle_error_print):  Ignore non-decls in chain.
1558         (safe_satisfy_decl):  No error if non-decl (pointer type) in cycle.
1559         (satisfy):  Return immediately if laid out non-pointer type.
1560         (satisfy case LANG_TYPE):  Handle paramertised mode.
1561         (satisfy case POINTER_TYPE/REFERENCE_TYPE):  Push type on chain;
1562         return immediately if already in chain.
1563         * typeck.c (smash_dummy_type):  Handle parameterized modes and CHAR(N).
1564         Change return type (can now return error_mark_node).
1565         (build_readonly_type):  Return return value from smash_dummy_type.
1566         * ch-tree.h:  Change smash_dummy_type return type.
1567
1568 Tue Mar  5 22:31:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1569
1570         * typeck.c (build_chill_slice):  Re-do index_type calculation.
1571         * typeck.c (layout_chill_range_type):  Use compare_int_csts rather
1572         than tree_int_cst_lt to avoid signed/unsigned problems.
1573
1574         * typeck.c (copy_novelty):  Use copy_node rather than build_type_node.
1575         * typeck.c (smash_dummy_type):  Use copy_novelty for NEWMODE of range.
1576
1577         * decl.c (init_decl_processing): More portable sizetype initialization.
1578
1579         * tree.c (build_string_type):  Generalize to also create bitstrings.
1580         Return error_mark_node if an argument is an ERROR_MARK.
1581         (build_bitstring_type):  Simplify - just call build_string_type.
1582
1583 Tue Mar  5 03:48:32 1996  Wilfried Moser  <moser@blues.cygnus.com>
1584
1585         * actions.c (warn_unhandled): Add missing assignment.
1586
1587         * loop.c (build_loop_iterator): In case of IN, check if
1588         expression has a mode, otherwise make an error.
1589
1590 Mon Mar  4 23:12:03 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1591
1592         *  convert.c (digest_powerset_tuple):  Check tuple elements
1593         for compatibility;  if compatible, call convert.
1594
1595 Thu Feb 29 23:39:54 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1596
1597         Simplify NOVELTY representation.
1598         * ch-tree.h (CH_NOVELTY):  Re-implement as plain TYPE_CONTEXT.
1599         (CH_NOVELTY_FLAG):  Removed.  (Just use CH_NOVELTY.)
1600         * decl.c (push_modedef):  Make copy even for SYNMODE.
1601         but not for internal typedefs (indicated by make_newmode==-1).
1602         * tasking.c:  Call push_modedef with make_newmode==-1.
1603         * typeck.c (chill_novelty):  Remove.
1604         (smash_dummy_type):  Removed unused event/buffer stuff.  Update.
1605         * grant.c (decode_decl), inout.c (build_io_types),
1606         expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1607         tasking.c (build_instance_type):  Simplify using new CH_NOVELTY.
1608
1609         Solidify READ mode handling.
1610         * decl.c (do_decl, push_syndecl, start_chill_function):
1611         Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1612         * typeck.c (build_chill_slice):  Set TREE_READONLY appropriately.
1613         (build_chill_array_ref_1, build_chill_bitref):  Likewise.
1614         (build_chill_cast):  Set TREE_READONLY depending on result type (only).
1615         * convert (convert_from_reference, convert):  Likewise.
1616         * expr.c (resolve_component_ref):  Set TREE_READONLY appropriately.
1617         (build_chill_function_call):  Error if OUT/INOUT arg is TREE_READONLY.
1618         * actions.c (chill_expand_assignment):  Also error if TREE_READONLY.
1619         Use convert_from_reference.
1620
1621 Thu Feb 29 11:14:09 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1622
1623         * parse.c (parse_do_action):  DO WITH expressions are evaluated in
1624         outer scope.  Also call save_if_needed.
1625         * decl.c (shadow_record_fields);  Fix and simplify.
1626
1627 Tue Feb 27 22:19:40 1996  Per Bothner  <bothner@cygnus.com>
1628
1629         * convert.c (display_int_cst):  Gereralize to wider range of ints.
1630
1631 Thu Feb 22 06:12:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1632
1633         * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1634
1635         * decl.c (do_decl): In case of chill_varying_type_p, check if
1636         type of fixed part is error mark and do nothing in this case.
1637
1638         * lex.c (convert_bitstring): Don't complain when length of
1639         bitstring is 0 (BOOLS(0) is a valid mode).
1640
1641         * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1642         (domain) is error mark.
1643
1644         * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1645         error_mark_node, just return.
1646
1647 Tue Feb 20 00:01:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1648
1649         * parse.c (parse_variant_alternative): When checking for ELSE take
1650         care of tagless variants.
1651
1652 Mon Feb 19 05:54:45 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1653
1654         * parse.c (parse_case_action): Check if ELSE was specified
1655         in a case label list (this is only valid for array tuples).
1656         (parse_case_expression): Deto.
1657         (parse_variant_alternative): Deto.
1658
1659 Tue Feb 13 17:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1660
1661         * typeck.c (chill_location):  Cleanup.  Neither SLICE_EXPR nor
1662         BIT_FIELD_REF are referable, even if their base strings are.
1663
1664 Fri Feb  9 02:25:33 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1665
1666         * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1667         checking the expression.
1668
1669         * convert.c (convert): Set TREE_CONSTANT when taking the
1670         address of a function.
1671
1672         * decl.c (start_chill_function): Check if the mode is really
1673         a mode to avoid subsequent segfaults.
1674
1675         * typeck.c (string_assignment_condition): Add checking of
1676         bitstring length.
1677
1678 Thu Feb  8 01:37:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1679
1680         * actions.c (build_cause_exception): Print warning of unhandled
1681         exception only once for each exception.
1682
1683 Mon Feb  5 22:17:13 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1684
1685         * tree.c (discrete_count), ch-tree.h:  New function.
1686         * expr.c (build_concate_expr, build_chill_repetition_op,
1687         chill_expand_expr):  Use discrete_count;  make sure arguments
1688         to size_binop are sizetype.
1689         (powersetlen):  Trvialize using discrete_count.
1690
1691         * inout.c (process_io_list):  Use new assign_temp function.
1692         * inout.c (build_enum_tables):  Avoid taking address of array_ref,
1693         which sometimes gets optimized to a constant.
1694
1695         * expr.c (finish_chill_unary_op):  Call convert_to_class on argument.
1696         Remove some obsolete TREE_UNSIGNED stuff.
1697         * lex.c (convert_integer):  Removed more TREE_UNSIGNED stuff.
1698
1699 Thu Feb  1 15:11:20 1996  Doug Evans  <dje@charmed.cygnus.com>
1700
1701         * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1702
1703 Wed Jan 31 17:13:25 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1704
1705         * decl.c (char_array_type_node, wchar_array_type_node):  Removed.
1706         (init_decl_processing):  Remove array_domain_type;  don't set
1707         char_array_type_node or wchar_array_type_node.
1708         * decl.c (init_decl_processing):  Use fixup_unsigned_type to
1709         simplify code to create boolean_type_node and char_type_node.
1710
1711 Mon Jan 29 14:20:10 1996  Doug Evans  <dje@charmed.cygnus.com>
1712
1713         * lex.c (check_newline): Pass character after `#pragma' to
1714         HANDLE_PRAGMA.  Don't call get_directive_line if at end of line.
1715
1716 Fri Jan 26 05:56:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1717
1718         * expr.c (build_chill_function_call): Add check and error for
1719         actual argument is a TYPE_DECL.
1720
1721         * parse.c (parse_set_mode): Print a warning if the set mode contains
1722         numbered and unnumbered set elements.
1723
1724 Wed Jan 24 05:10:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1725
1726         * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1727
1728         * decl.c (layout_enum): Add check for negative values if
1729         enum is numbered and duplicate values in an enum.
1730
1731 Mon Jan 15 06:21:52 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1732
1733         * actions.c (chill_expand_assignment): Add check for lefthand side
1734         of an assignment is a location.
1735
1736         * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1737         not "concat_expr".
1738
1739         * expr.c (is_really_instance): New function to check if a datum
1740         is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1741         for this case.
1742         (build_chill_component_ref): call is_really_instance.
1743
1744 Wed Jan 10 13:47:14 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1745
1746         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  Removed;  now in ../tree.h.
1747
1748 Mon Jan  8 15:29:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1749
1750         * expr.c (build_char_array_expr):  Add save_if_needed's if varying.
1751         Also, remove unused len0 and len1.
1752
1753 Mon Dec 11 17:36:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1754
1755         * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1756         build_chill_getassociation, build_chill_getusage,
1757         build_chill_gettextrecord,  build_chill_gettextaccess:  Simplify
1758         - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1759
1760         * parse.c (parse_action):  Minor simplification.
1761
1762 Thu Dec  7 00:02:47 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1763
1764         * parse.c (parse_action): In case of CALL, do a check if there
1765         is really a function call.
1766
1767 Tue Dec  5 05:06:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1768
1769         * convert.c (display_int_cst): Fix printing of control sequence.
1770
1771 Thu Nov 30 21:07:57 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1772
1773         * grant.c (decode_constant, decode_constant_selective):  Make work
1774         for REAL_IS_NOT_DOUBLE case.
1775
1776         * decl.c (CHILL_INT_IS_SHORT):  New macro.
1777         (init_decl_processing):  Use CHILL_INT_IS_SHORT.
1778         Change name of integer_type_node from _cint to long.
1779
1780 Mon Nov 27 17:07:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1781
1782         * loop.c (top_loop_end_check):  Check while condition *after*
1783         getting next powerset element.
1784
1785 Mon Nov 27 05:29:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1786
1787         * parse.c (parse_receive_case_action): Fix typo in error message.
1788
1789         * convert.c (display_int_cst): Format characters like strings in
1790         grant.c(decode_constant).
1791
1792         * grant.c: Remove the old forbid stuff.
1793
1794         * lex.c (readstring): Fix reading of '^^'.
1795
1796         * parse.c (parse_procedure_mode): nreverse param_types.
1797
1798 Thu Nov 23 05:39:57 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1799
1800         * actions.c (chill_expand_assignment): Check for assigning to
1801         location with non-value mode.
1802
1803         * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1804         Add new and change some prototypes.
1805
1806         * decl.c (init_nonvalue_struct): New function to generate
1807         initialisation code for non-value structs.
1808         (init_nonvalue_array): New function to generate initialisation
1809         code for non-value array's.
1810         (do_decl): Call one of the above mentioned functions in case
1811         we have a mode with the non-value property.
1812         (start_chill_function): Print error message if a non-value mode
1813         gets returned without LOC and check for arguments of non-value
1814         modes only gets passed by LOC.
1815
1816         * grant.c (print_proc_tail): Fix for procedure returning LOC.
1817
1818         * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1819         association_type_node.
1820         (invalidate_access_recordmode): New function to set the
1821         record mode of an ACCESS to error_mark_node in case of
1822         record mode has the non-value property.
1823         (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1824         (build_access_mode, build_chill_gettextaccess): Deto.
1825         (check_exprlist): Correct processing of repetition factor.
1826
1827         * lex.c (readstring): Correct processing of control
1828         sequences of the form '^([H | D | O | B]'xx)'.
1829
1830         * loop.c: Cleanup iterator handling (done by Per).
1831         (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1832         functions for starting and ending a loop scope in case
1833         of initialising an array with non-value property.
1834
1835         * parse.c (check_end_label): Remove '\n' from error message.
1836         (parse_loc_declaration): Print error in case of loc-identity
1837         declaration without initialisation or with keyword INIT.
1838         (parse_do_action): Clean up iterator handling (done by Per).
1839
1840         * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1841         message in case of TYPE_DECL is a signal and the mode has the
1842         non-value property.
1843         (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1844         the array type if the array element mode has the non-value
1845         property.
1846         (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1847         type if one of the fields have the non-value property. If the
1848         record is a buffer mode and the element mode of the buffer has
1849         the non-value-p., invalidate it (see
1850         tasking.c (invalidate_buffer_element_mode). Same for access modes.
1851
1852         * tasking.c (build_signal_descriptor): If the signal type have
1853         the non-value property, do nothing.
1854         (build_receive_signal_case_label): Don't do an assignment if the
1855         signal type have the non-value property.
1856         (build_receive_buffer_case_label): Add check for buffer element
1857         mode is ERROR_MARK.
1858         (expand_send_buffer): Deto.
1859         (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1860         (invalidate_buffer_element_mode): New function to set type of
1861         buffer element mode to error_mark_node.
1862         (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1863
1864 Wed Nov 15 13:26:20 1995  Jeffrey A Law  (law@cygnus.com)
1865
1866         * inout.c (intsize_of_charsexpr): Move declaration to top
1867         of file to avoid error from solaris2.5 cc.
1868
1869 Thu Nov  9 02:50:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1870
1871         * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1872         mode, temporarily reset maximum_field_alignment to 0 before
1873         layouting it to be compatible with the runtime library.
1874
1875         * inout.c (build_chill_gettextaccess): Deto.
1876
1877 Mon Nov  6 04:12:06 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1878
1879         * decl.c (do_decl): If type is READonly, add check if an
1880         ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1881         and print an error if this is true. Variables of this modes
1882         may not be declared READonly.
1883         Add check for mode is one of the above and an init value was
1884         given. This is also not allowed.
1885         Add initialisation of variables of the above modes during
1886         runtime. This influence the mechanism for detecting to
1887         build a constructor.
1888         (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1889         BUFFER, and EVENT mode must not be READonly.
1890         (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1891         TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1892         (declare_predefined_file): Move to inout.c.
1893         (init_decl_processing): Add definitions for new built-in's.
1894         (finish_outer_function): Build a constructor only if
1895         build_constructor is set.
1896
1897         * except.c: On Linux native, setjmp is __setjmp.
1898
1899         * expr.c (build_chill_component_ref): New function. It gets called
1900         from parse.c instead of build_component_ref. Functions checks if the
1901         user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
1902         EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
1903         (build_chill_floatcall): New function to resolve CHILL's floating
1904         point builtin calls (SIN, COS, TAN, etc.).
1905         (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
1906         build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
1907         GETSTACK, and TERMINATE built-in's.
1908         (build_generalized_call): Process new built-in's.
1909
1910         * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
1911         (decode_mode_selective): deto.
1912
1913         * inout.c: Completely rewritten for implementing Chapter 7 of
1914         Z.200 (input and output).
1915
1916         * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
1917         parsing numbers.
1918
1919         * lex.h (enum rid): Add RID_ASSOCIATION.
1920
1921         * parse.c: New flag build_constructor to indicate if a constructor
1922         should be generated at the end of compilation or not. See
1923         decl.c(do_decl).
1924         (parse_begin_end_block): Don't emit a line note.
1925         (parse_primval): Call build_chill_component_ref instead of
1926         build_component_ref.
1927         (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
1928         modes, USAGE modes, WHERE modes.
1929
1930         * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
1931         ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
1932         (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
1933
1934         * typeck.c (extract_constant_from_buffer): Fix thinko in case
1935         of ! BYTES_BIG_ENDIAN.
1936         (build_chill_cast): Implement representation conversion between
1937         INT's and REAL's.
1938         (chill_similar): Add check of ACCESSes.
1939         (layout_chill_range_type): Check for real ranges and print
1940         sorry message.
1941
1942         * Make-lang.in: Change compiler version.
1943         chill also depends on Makefile.
1944
1945         * chill.in: Process command line option -Xlinker like -Tdata.
1946
1947         * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
1948         CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
1949         Add some prototypes.
1950         (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
1951         BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
1952         Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
1953
1954         * gperf, hash.h: Remove definition of WHERE.
1955
1956 Thu Oct  5 06:22:19 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1957
1958         * grant.c (decode_constant_selective): Add some newlines
1959         to generated SPEC MODULE.
1960
1961 Wed Oct  4 18:16:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1962
1963         * decl.c (pop_chill_function_context):  Remove some bogosity.
1964
1965 Wed Oct  4 05:14:00 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1966
1967         * grant.c (print_integer_selective): In case of a RANGE of
1968         a SET mode, try to find and grant the parent mode.
1969         (grant_seized_identifier): Dont write it out, if the identifier
1970         doesn't have a seize file (it may come from a SPEC MODULE
1971         defined in the compilation unit).
1972
1973 Fri Sep 22 14:04:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1974
1975         * actions.c (check_non_null):  Wrap expr in SAVE_EXPR if needed.
1976
1977 Wed Sep 20 13:51:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1978
1979         * expr.c (force_addr_of):  Optimize an INDIRECT_REF using
1980         convert_to_pointer rather than convert (which in case of
1981         a REFERENCE_TYPE would losingly call convert_from_reference).
1982
1983 Wed Sep 20 04:03:58 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1984
1985         * inout.c (build_chill_writetext): In case of character string:
1986         Add processing of a concatenation including varying character
1987         strings.
1988         (intsize_of_charsexpr, get_max_size): New functions to determine
1989         the maximum size of varying character strings.
1990
1991         * grant.c (decode_constant, decode_constant_selective): Add
1992         processing of COMPONENT_REF.
1993
1994         * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
1995         for SYNONYM's with STRUCT mode.
1996
1997 Mon Sep 18 17:25:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1998
1999         * expr.c (force_addr_of):  Optimize of value is INDIRECT_REF.
2000         * typeck.c (build_chill_slice):  Call mark_addressable.
2001
2002 Mon Sep 18 14:38:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2003
2004         * expr.c (chill_expand_expr):  Make a copy before calling __psslice
2005         if the array is neither referable nor BLKmode.
2006         (build_set_expr):  Renamed to ...
2007         (build_compare_set_expr):  Allow one opperand to be boolean.
2008         (build_compare_expr):  Check both operands for SET_EXPR,
2009         before checking for discrete types (for -fold-strings).
2010
2011 Fri Sep 15 11:35:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2012
2013         * satisfy.c (safe_satisfy_decl):  For a CONST_DECL, set TREE_TYPE
2014         to error_mark_node or error.
2015
2016 Fri Sep 15 00:26:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2017
2018         * grant.c (decode_constant_selective): Add processing of
2019         TREE_OPERAND (val, 0).
2020
2021 Wed Sep 13 14:24:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2022
2023         * ch-tree.h (CH_IS_INSTANCE_MODE):  Redefine to use CH_SIMILAR.
2024         * convert.c (convert):  Use CH_IS_INSTANCE_MODE.
2025         * inout.c (build_chill_writetext):  Likewise.
2026         * tasking.c (build_receive_case_start, build_delay_case_start):  Ditto.
2027         * parse.c (parse_start_action):  Remove redundant tests.
2028         * tasking.c (build_start_process):  Also test that optset is instance.
2029         (build_copy_number, build_proc_type, expand_send_signal):  Use
2030         CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
2031         * actions.c, convert.c (instance_type_node):  Remove redundant
2032         extern declaration.
2033
2034 Wed Sep 13 14:19:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2035
2036         * regression.awk2:  Use \ line-continuation-markers
2037         to remove gratuitous gawk dependency.
2038
2039 Mon Sep 11 17:26:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2040
2041         * typeck.c (build_chill_modify_expr):  Use force_addr_of.
2042         (mark_addressable):  Handle INDIRECT_REF of ADDR_EXPR.
2043
2044         * typeck.c (check_case_value), ch-tree.h:  Moved to ...
2045         * actions.c (check_case_value):  ... here.  Also check for
2046         compatibility with selector (which is passed as extra argument).
2047         (chill_handle_case_label_range):  Take selector argument,
2048         and use it to call check_case_value.
2049         (chill_handle_case_label):  Take extra selector argument.
2050         * ch-tree.h (chill_handle_case_labe):  Add prototype.
2051         * except.c expr.c, parse.c:  Remove chill_handle_case_label prototypes.
2052         * actions.c, except.c, expr.c, parse.c: Pass extra selector
2053         argument to function calls as needed.
2054
2055 Mon Aug 28 02:47:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2056
2057         * grant.c (decode_constant_selective): Fix a bug in writing items
2058         to grant file.
2059
2060 Thu Aug 24 04:52:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2061
2062         * parse.c (parse_case_expression): Print warning only in
2063         pass 1.
2064
2065         * actions.c (print_missing_cases): Correct printing of
2066         character ranges.
2067
2068 Wed Aug 23 15:26:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2069
2070         * parse.c (parse_case_label_list):  Take extra parameter to
2071         indicate if we're parsing a tuple or a case-label-spec.
2072         If former, don't allow '(' EXPR ')' ',' but backup instead.
2073         (parse_case_label_specification, parse_tuple_element):
2074         Pass appropriate new argument to parse_case_label_list.
2075
2076 Wed Aug 23 06:08:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2077
2078         * inout.c (build_chill_readtext): Add processing of BOOL's and
2079         CHARS(n).
2080
2081         * grant.c (decode_constant): Process nonprintable characters
2082         in a STRING_CST.
2083
2084 Fri Aug 11 15:26:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2085
2086         * except.c (initialize_exceptions):  Name setjmp "setjmp" and not
2087         "__builtin_setjmp" (which is not recognized by expand_call).
2088
2089 Wed Aug  9 23:35:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2090
2091         * loop.c (end_loop_scope):  Need to call kept_level_p,
2092         in argument to poplevel.
2093
2094 Wed Aug  9 05:48:30 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2095
2096         * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
2097         file might be empty). Install chill.install instead.
2098
2099 Tue Aug  8 21:46:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2100
2101         * loop.c (end_loop_scope):  Do poplevel *after* expand_end_bindings.
2102
2103 Tue Aug  8 00:51:09 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2104
2105         * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
2106         of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
2107
2108         * decl.c (start_chill_function): Likewise ...
2109
2110 Mon Aug  7 18:35:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2111
2112         * tasking.c (build_process_wrapper):  Also set DECL_ASSEMBLER_NAME
2113         of PARM_DECL, since otherwise dbxout_symbol_name may barf.
2114
2115 Mon Jul 31 14:32:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2116
2117         * loop.c:  Re-written implementation of powerset iteration.
2118         (declare_temps):  iter_var is now integer index into bitstring,
2119         and powerset_temp just uses save_expr (normally needs no temp).
2120         (top_loop_end_check):  Pass index to start searching (from iter_var)
2121         to library function, instead of dependning on latter to clear old bits.
2122         (increment_temps):  UNless DOWN, increment iter_var.
2123         * decl.c (init_decl_processing):  Declare new types for
2124         __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
2125
2126 Mon Jul 31 12:47:28 1995  Per Bothner  <bothner@cygnus.com>
2127
2128         * convert.c (digest_array_tuple):  Set TREE_STATIC if possible.
2129
2130 Fri Jul 28 05:11:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2131
2132         * lex.c (readstring): Process integer literals starting with
2133         H', D', or B' within a control sequence.
2134
2135 Thu Jul 27 23:08:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2136
2137         * parse.c (parse_do_action):  Don't call push_action, but defer
2138         push_handler until begin_loop_scope.
2139         Call parse_opt_handler here, to move handler scope inside loop block.
2140         (parse_action):  After do_action, nothing to do now.
2141         * loop.c (begin_loop_scope):  Also call push_handler here.
2142         (declare_temps):  Copy derived flag to user_var.
2143         (declare_temps):  For POWERSET, always copy to temporary (even if
2144         constant), since the runtime clears bits from it.
2145
2146         * expr.c (build_chill_sizeof):  Use convert_to_class.
2147         * satisfy.c (safe_satisfy_decl):  Cleanup handling of CONST_DECL -
2148         set proper value of CH_DECL_FLAG on both the decl and its value.
2149
2150         * convert.c (digest_array_tuple); Slightly better errors.
2151
2152 Wed Jul 26 22:13:39 1995  Per Bothner  <bothner@cygnus.com>
2153
2154         * expr.c (expand_packed_set):  Also allocate the CONSTRUCTOR itself.
2155         (fold_set_expr):  Simplify accordingly.
2156         (build_concat_expr):  Constant fold bitstring CONCAT_EXPRs.
2157
2158 Thu Jul 13 12:21:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2159
2160         * typeck.c (build_chill_slice):  Use build1 instead of build.
2161         * typeck.c (xtract_constant_from_buffer):  Pass correct precision
2162         to lshift_double.
2163
2164         * typeck.c (expand_constant_to_buffer):  Handle RANGE_EXPR index.
2165         * convert.c (digest_array_tuple):  Generate RANGE_EXPR as index
2166         for tuples with ranges.
2167
2168 Thu Jun 29 23:41:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2169
2170         * typeck.c (build_chill_slice):  Re-implement to use casts
2171         instead of build_chill_array_ref_1 (which doesn't always work).
2172         * convert.c (convert):  Remove old bugs code.
2173
2174 Tue Jun 27 05:00:04 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2175
2176         * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
2177         expression so that a possible handler at the if action will
2178         be found.
2179         (parse_proc_body): New argument to indicate if the function
2180         raises exceptions or not. In case the function will raise
2181         exception: start a handler, parse the function and generate
2182         code for reraising the exceptions (call chill_reraise_exceptions).
2183
2184         * except.c (chill_reraise_exceptions): New function to generate
2185         code for reraising exceptions are specified at the function
2186         definition.
2187
2188         * ch-tree.h: Add prototype for chill_reraise_exceptions.
2189
2190         * decl.c (build_chill_function_type): When the function (type)
2191         raise an exception, generate two new arguments (additional to the
2192         formal parameters), the filename and linenumber of the caller.
2193         (start_chill_function): likewise...
2194
2195         * expr.c (build_chill_function_call): If the called function raises
2196         exceptions, give current filename and linnumber as aditional
2197         arguments.
2198
2199         * actions.c (build_cause_exception): Handle case when function
2200         propagates the exception.
2201
2202         * grant.c (print_proc_tail, print_proc_tail_selective): If the
2203         function(type) raises exceptions, don't process the last to
2204         parmeters of the formal argument list, they are compiler
2205         generated.
2206
2207         * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
2208         the exception lists are equal.
2209
2210 Thu Jun 22 19:27:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2211
2212         * loop.c (flag_local_loop_counter):  Change default to 1.
2213         (end_loop_scope):  Set 'keep' parameter in poplevel call.
2214         (declare)_temps):  Don't set IDENTIFIER_LOCAL_VALUE, since that
2215         is handled (correctly!) by pushdecl.
2216         (begin_loop_scope):  Call pushlevel here,
2217         * parse.c (parse_do_action):  Move pushlevel so only called for WITH.
2218         * decl.c (struct scope):  Remove n_incomplete field and its uses.
2219         (pushdecl):  Re-write to use proclaim_decl.  Remove old C-isms.
2220         (init_decl_processing):  Re-name integer_type_node as "_cint" to
2221         remove complaint from pushdecl about chill_integer_type_node as "int".
2222
2223 Tue Jun 20 18:15:58 1995  Doug Evans  <dje@canuck.cygnus.com>
2224
2225         * Make-lang.in (chill-runtime): Restore patch to disable building of
2226         runtime libraries for cross compilers.  This patch should remain
2227         until a build of a freshly checked out devo "just works".
2228
2229 Mon Jun 19 06:01:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2230
2231         * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
2232
2233         * decl.c (init_decl_processing): Remove builtin function
2234         __cause_exception. New builtin functions __cause_ex1 and
2235         __unhandled_ex.
2236
2237         * except.c (is_handled): Return 0 when no handler found,
2238         1, if the handler is in local scope and 2, if function
2239         may propagate the exception.
2240
2241         * actions.c (build_cause_exception): New argument to
2242         indicate if a warning should be printed when
2243         causing an unhandled exception. Call is_handled here.
2244
2245         * ch-tree.h: Change prototype for build_cause_exception.
2246         New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
2247         identifier already has been written to grant file.
2248
2249         * grant.c (write_spec_module): If not GRANT ALL specified,
2250         write only this identifiers to grant file which are
2251         neccessary to form a prober grant file. This will shorten
2252         grant files and speed up compilation.
2253         (decode_constant_selective, decode_mode_selective,
2254         get_type_selective, decode_decl_selective,
2255         grant_array_type_selective, get_tag_value_selective,
2256         print_enumeral_selective, print_integer_selective,
2257         print_struct_selective, print_proc_tail_selective,
2258         grant_one_decl_selective): New functions.
2259
2260         * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
2261         directives to grant file.
2262
2263         * parse.c (parse_on_exception_list): Fis constructing of
2264         exceptions list.
2265
2266 Wed Jun 14 15:21:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2267
2268         * typeck.c (valid_array_index_p):  Check for syntax error, where
2269         index is a mode, rather than a value.
2270
2271         * expr.c (build_chill_binary_op_1):  Remove unused function.
2272
2273 Sat Jun 10 11:36:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2274
2275         * except.c (is_handled):  New function.
2276         Various fixes here and there to make it work.
2277
2278         * parse.c (parse_param_name_list):  Set DECL_ASSEMBLER_NAME.
2279         (Otherwise dbxout may crash.)
2280
2281         * satisfy.c (satisfy case FUNCTION_TYPE):  Check for non-type result.
2282         * decl.c (start_chill_function):  If result type was error_mark,
2283         kludge type chill_os result_decl to avoid extra errors.
2284         * actions.c (chill_expand_result, chill_expand_return):  If type of
2285         chill_result_decl is error_mark, do nothing.
2286
2287         * typeck.c (chill_similar): Fix thinko in recent change.
2288
2289         * config-lang.in (diff_exclude):  Remove ch/lex.c - now it's a
2290         true source file, and is never longer generated with [f]lex.
2291
2292         * regression.sh:  Pass -s to make clean (to make it silent).
2293         Explicitly call gawk, instead of depending of '#!' to work.
2294         Add --objdir flags.  Never send mail to bill.
2295
2296 Thu Jun  8 15:08:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2297
2298         * typeck.c (chill_similar):  Add extra parameter.  Use to to prevent
2299         infinite recursion.
2300         (chill_equivalent, chill_l_equivalent):  Also add new parameter.
2301         * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT):  Modify to match.
2302
2303 Tue Jun  6 17:14:49 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2304
2305         * loop.c (declare_temps):  If -flocal-loop-counter, make sure to
2306         pushdecl the new variable (created with decl_temp1).
2307         And fix the type of the local variable for powerset iteration.
2308
2309 Tue Jun  6 15:07:19 1995  Per Bothner  <bothner@cygnus.com>
2310
2311         * typeck.c (mark_addressable):  Handle ADDR_EXPR inside
2312         NOP_EXPR inside INDIRECT_EXPR.  For TRUTH_ANDIF_EXPR,
2313         TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
2314         (which is used for range-checks and suchlike).
2315
2316 Thu Jun  1 02:45:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2317
2318         * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
2319         GE_EXPR (don't do invert_truthvalue, just switch operands).
2320
2321 Wed May 31 14:00:38 1995  Doug Evans  <dje@canuck.cygnus.com>
2322
2323         * lang-options.h: New file.
2324         * lang-specs.h: New file.
2325
2326 Wed May 24 01:45:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2327
2328         * actions.c (assign_stack_temp):  Remove unneeded declaration.
2329
2330 Tue May 23 00:17:38 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2331
2332         * parse.c (parse_on_exception_list):  Return list of exception
2333         names in pass 1, not in pass 2.  (Return non-NULL dummy if pass 2.)
2334         (parse_on_alternatives):  Call chill_handle_on_labels even if ignoring.
2335         (parse_opt_handler):  Likewise for chill_start_default_handler.
2336         * except.c (push_handler):  Clear on_alt_list only if pass 1.
2337         (chill_handle_on_labels):  Build on_alt_list in pass 1,
2338         retrieve it in pass 2.
2339
2340         Fix so that decl_temp1 does not expand_decl_init, which calls
2341         free_temp_slots, which loses in the middle on an expression.
2342         * decl.c (finish_decl):  Don't call expand_decl_init.
2343         (do-decl):  Do initialization assignment even if stack variable.
2344         * parse.c (parse_loc_declaration):  Call free_temp_slots.
2345
2346         * decl.c (finish_decl), ch-tree.h:  Remove last two always-NULL
2347         parameters.  Cleanup never-used code.
2348         * decl.c, except.c:  Update calls to finish_decl.
2349
2350         * decl.c (case_else_node):  Define new variable.
2351         (init_decl_processing):  Initialize it.
2352         (make_chill_variants): If variant label is case_else_node (i.e. it
2353         is (ELSE):), treat that as an ELSE variant.
2354         * ch-tree.h (case_else_node):  Declare case_else_node.
2355         * parse.c (parse_case_label):  Use case_else_node.
2356
2357 Mon May 22 10:18:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2358
2359         * grant.c (print_proc_tail):  Also call print_proc_exceptions.
2360         (decode_decl):  Don't explicitly call print_proc_exceptions for
2361         FUNCTION_DECL.
2362         (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
2363
2364         * actions.c (chill_convert_for_assignment):  Use save_if_needed,
2365         instead of save_expr, in case value is a reference.
2366
2367         * typeck.c (build_chill_slice):  Fix old thinko (missing call to
2368         build_pointer_type).
2369
2370         * actions.c (size_int):  Remove unused and conflicting prototype.
2371
2372 Wed May 17 16:23:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2373
2374         * actions.c (chill_convert_for_assignment):  Call save_expr if
2375         range_checking (twice).
2376
2377 Tue May 16 11:33:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2378
2379         * typeck.c (layout_chill_range_type):  Re-organize error checking.
2380         Add extra parameter to indicate if non-constant bounds are allowed.
2381         If bounds are bad, set them to the min_value of the parent.
2382         * ch-tree.h (layout_chill_range_type):  Update declaration.
2383         * satisfy.c (satisfy):    Update call of layout_chill_range_type.
2384         * typeck.c (build_chill_range_type):  Likewise.
2385         * tree.c (build_string_type):  Likewise.
2386
2387 Tue May 16 00:37:51 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2388
2389         * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
2390
2391 Mon May 15 12:54:32 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2392
2393         * satisfy.c (satisfy):  Supress error message for REF <error_mark>.
2394         * decl.c (push_modedef):  Check for TREE_CODE != ERROR_MARK, instead
2395         of against error_mark_node.  (smash_dummy_type can copy error marks.)
2396         (finish_decl):  Simplify C-derived check for incomplete type,
2397         and suppress if it is an ERROR_MARK.
2398         Don't call rest_of_decl_compilation if type is an ERROR_MARK.
2399
2400 Sun May 14 22:52:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2401
2402         * convert.c (convert):  Handle array types with different modes.
2403
2404 Thu May 11 15:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2405
2406         * loop.c (build_loop_iterator):  Handle the case of a non-local
2407         loop counter having reference type.
2408
2409 Thu May 11 07:04:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2410
2411         * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2412         build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2413         to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2414
2415 Mon May  8 15:27:16 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2416
2417         * expr.c (build_chill_card):  Do constant folding, if possible.
2418         (build_max_min):  Do constant folding for MIN/MAX of powersets.
2419
2420 Mon May  8 06:57:21 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2421
2422         * expr.c (build_chill_sizeof): Add corect processing of a
2423         SIGNAL definition without data.
2424
2425 Sat May  6 16:27:10 1995  Doug Evans  <dje@canuck.cygnus.com>
2426
2427         * Make-lang.in (maintainer-clean): Renamed from realclean.
2428
2429 Tue May  2 06:16:23 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2430
2431         * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2432         otherwise "handler stack" will get out of sync.
2433
2434 Mon Apr 24 09:51:07 1995  Per Bothner  <bothner@rtl.cygnus.com>
2435
2436         Fixes to support module-level non-static temporary variables.
2437         * parse.c (parse_loc_declaration):  If all_static_flag and not
2438         resursive, tell do_decls to make new decl static.
2439         * decl.c (do_decl):  Don't use maybe_static function to force static.
2440         (do_decl):  Don't let initialization count as "using" the variable.
2441         (maybe_static):  Removed.
2442         (finish_decl):  Call expand_decl and expand_decl_init if needed
2443         (as it will be for non-static temporaries).
2444
2445 Fri Apr 21 21:02:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2446
2447         * convert.c, expr,c typeck.c (expand_decl):  Remove usused declaration.
2448
2449 Fri Apr 21 02:27:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2450
2451         * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2452         LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2453         GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2454
2455 Thu Apr 20 15:29:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2456
2457         * parse.c (yytext, finput):  Remove unused declarations.
2458
2459         * parse.c (proc_action_level):  New variable.
2460         (parse_proc_body):  New function.  Common code from
2461         parse_procedure_definition and parse_process_definition moved here.
2462         Save, set, and restore proc_action_level from action_nesting_level.
2463         (parse_action case RETURN):  Pass proc_action_level to
2464         expand_goto_except_cleanup.
2465
2466 Thu Apr 20 06:02:20 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2467
2468         * grant.c (really_grant_this): Add processing of LABEL_DECL's
2469         (don't grant them).
2470
2471 Tue Apr 18 18:16:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2472
2473         * lex.c ( convert_bitstring):  Use BYTES_BIG_ENDIAN rather
2474         than BITS_BIG_ENDIAN to layout bits within bitstring.
2475         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2476         Likewise.
2477
2478 Sun Apr 16 19:55:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2479
2480         * decl.c (finish_chill_function):  If currently global_function_decl,
2481         don't set outer_function to global_function_decl.
2482
2483 Wed Apr 12 22:45:06 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2484
2485         * decl.c (start_chill_function):  Normal functions are nested.
2486         (finish_chill_function):  No longer takes a 'nested' parameter.
2487         Normal functions are nested.
2488         Never call permanent_allocation, since it does little good (all normal
2489         functions are nested), and trashes some things we need.
2490         (finish_outer_function):  Update call to finish_chill_function.
2491         * grant.c (chill_finish_compile):  Likewise.
2492         * tasking.c (build_process_wrapper):  Likewise.
2493         * parse.c (end_function):  Likewise.
2494         * ch-tree.h (finish_chill_function):  Update declaration.
2495
2496         * parse.c (parse_asm_clobbers):  Re-enable.
2497         (expand_asm_operands):  function.
2498         (parse_asm_action):  Re-enable.  Don't do anything in pass 1.
2499
2500         * typeck.c (build_chill_slice):  Do constant folding.
2501         Also, work around problem where expand_expr constant folds ARRAY_REF.
2502         (sort_constructor):  Remove unused function.
2503
2504         * expr.c (chill_expand_expr case CONCAT_EXPR):  Make sure we
2505         emit_block_move if needed with correct size.
2506
2507         * inout.c (build_chill_io_list_type):  Simplify.
2508
2509         * lex.c (check_newline):  Uncomment some dwarf stuff,
2510         which needs get_directive_line, which we no longer have.
2511
2512 Wed Apr  5 16:05:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2513
2514         * Makefile.in (C_OBJS, xcc1chill):  Removed.  We no longer
2515         link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2516
2517         * expr.c (build_chill_component_ref):  Renamed to build_component_ref.
2518         (chill_truthvalue_conversion):  Renamed to truthvalue_conversion.
2519         * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2520         typeck.c:  Update accordingly.
2521         * typeck.c (valid_array_index_p):  We only need to save_expr (index)
2522         if we're range-checking.
2523         * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2524         mark_addressable, initializer_constant_valid_p, check_case_value,
2525         type_for_size, type_for_mode):  New functions, copied from
2526         ../c-common.c and ../c-typeck.c.
2527
2528         * lang.c (incomplete_type_error):  New.  (Was in c-common.o.)
2529         * decl.c (constant_expression_warning):  New.  (Was in c-common.o.)
2530
2531         * lang.c (string_index_type_dummy):  Remove definition from here.
2532         * tree.c (string_index_type_dummy):  Define here instead.
2533         * lang.c (lang_init):  Move init of string_index_type_dummy
2534         (which is too late) from here ...
2535         * decl.c (init_decl_processing): ... to here.
2536
2537         * decl.c (signed_boolean_type_node):  New variable.
2538         (init_decl_processing):  Initialize it.
2539
2540         * parse.c:  Comment out ASM action support, for now.
2541
2542         * loop.c (maybe_skip_loop):  Make return void, not int.
2543         Use build_compare_discrete_expr.
2544         (increment_temps):  Use chill_expand_assignment.
2545
2546 Thu Mar 30 23:28:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2547
2548         * decl.c (do_decl):  If default-initializing variable-length
2549         string to "" (or []), make it lifetime_bound.
2550
2551 Thu Mar 30 02:51:59 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2552
2553         * parse.h, hash.h, gperf: New compiler directives
2554         EMPTY_ON and EMPTY_OFF.
2555
2556         * lex.c: New variables empty_checking and runtime_checking_flag.
2557         (ch_lex_init): Initialize empty_checking and range_checking
2558         when switching from pass 1 to 2.
2559         (read_directive): Add processing of EMPTY_OFF/ON.
2560
2561         * expr.c (build_chill_indirect_ref): New argument do_empty_check
2562         to indicate if null pointer checking should be done or not.
2563         It's not always necessary to do a null pointer check.
2564
2565         * decl.c (lookup_name): Add argument to call to
2566         build_chill_indirect_ref.
2567         (shadow_record_fields): ...
2568         * parse.c (parse_primval): ...
2569         * tasking.c (build_process_wrapper): ...
2570         (build_receive_buffer_case_label): ...
2571
2572         * ch-tree.h: Change prototype of build_chill_indirect_ref.
2573         Add declaration of runtime_checking_flag and empty_checking.
2574
2575         * actions.c (check_non_null): Do null pointer checking only
2576         when enabled (empty_checking != 0).
2577
2578 Wed Mar 29 15:18:23 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2579
2580         * actions.c (chill_expand_assignment):  Add 'else' so we don't do
2581         regular assignment in addition to spacial assignment (e.g. for slices).
2582
2583         * ch-tree.h (convert_to_discrete):  Add declaration.
2584         * typeck.c (convert_to_discrete):  New function.
2585         (valid_array_index_p):  Use convert_to_discrete.  Also simplify.
2586         (build_chill_slice):  Say sorry if variable-length bitstring.
2587         (build_chill_slice_with_length):  Re-do bounds check.
2588         * expr.c (check_case_selector):  Re-write to use convert_to_discrete.
2589         (build_chill_num, build_chill_pred_or_succ):  Use convert_to_discrete.
2590
2591         * decl.c (do_decl):  Don't do redundant chill_convert_for_assignment.
2592
2593 Wed Mar 29 00:00:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2594
2595         * expr.c (build_chill_num): need_unsigned have to be set for
2596         characyer strings of length 1 too. Happens when compiling
2597         with -fold-strings and do NUM(a(i)).
2598
2599         * parse.c (parse_loc_declaration): Print error message only
2600         in pass 1.
2601         (parse_mode): Likewise ...
2602
2603         * tasking.c (build_tasking_message_type): Temporarily reset
2604         maximum_field_alignment to get proper aligned temp. variables
2605         gets passed to runtime system.
2606
2607 Tue Mar 28 00:08:06 1995  Per Bothner  <bothner@cygnus.com>
2608
2609         * typeck.c (my_build_array-ref):  Merged into build_chill_array_ref_1.
2610         But don't convert index to integer_type_node.  And we don't need to
2611         check the we're given an array.
2612         * typeck.c (valid_array_index_p):  If flag_old_strings, convert
2613         chars(1) to char and bools(1) to bool before index checking.
2614
2615 Sun Mar 26 22:42:39 1995  Per Bothner  <bothner@cygnus.com>
2616
2617         * ch-tree.h (struct module):  Added next module field.
2618         * decl.c (first_mdoule, next_module):  New global variables.
2619         (switch_to_pass_2):  Re-initialize next_module.
2620         (push_module):  In pass 2, reuse the same module objects from pass 1.
2621
2622         * decl.c (declare_predefined_file):  Set DECL_IN_SYSTEM_HEADER.
2623
2624         * typeck.c (valid_array_index_p):  Do range check on original index,
2625         before we convert to domain type.
2626
2627 Fri Mar 24 11:43:39 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2628
2629         * parse.c (parse_fixed_field):  New function.
2630         (parse_variant_field_list):  New function replaces parse_simple_fields.
2631         (parse_variant_alternative, parse_field):  Update to use new functions.
2632         (parse_field):  Error message if neither CASE nor NAME.
2633
2634         * actions.c (check_non_null):  New function - checks for NULL pointers.
2635         * ch-tree.h (check_non_null):  New declaration.
2636         * tasking.c (expand_send_signal):  Call check_non_null.
2637         * expr.c (build_chill_indirect_ref, build_chill_function_call):  Same.
2638         * lex.h (enum rid):  Add RID_EMPTY.
2639         * lex.c (init_lex):  Initialize ridpointers[RID_EMPTY].
2640
2641         * lex.c (read_directive):  Remove 2 calls of to_global_binding_level
2642
2643 Wed Mar 22 16:36:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2644
2645         * tasking.c (tasking_list):  Change to chain of TREE_VEcs, rather than
2646         chain of (nested) TREE_LIST nodes.
2647         (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2648         TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE):  New macros.
2649         (tasking_setup, tasking_registry, add_taskstuff_to_list):  Use them.
2650
2651         * ch-tree.h (C_TYPE_FIELDS_READONLY):  Rename to TYPE_FIELDS_READONLY.
2652         (TYPE_READONLY_PROPERTY):  New macro, to match Z.200 concept.
2653         * typeck.c (build_chill_modify_expr):  Don't check for read-only-ness,
2654         since it is redundant for chill_expand_assignment and breaks
2655         reach-bound initialization in do_decl.
2656         (my_build_array_ref):  Simplify by using TYPE_READONLY_PROPERTY.
2657         (layout_chill_array_type):  Set TYPE_FIELDS_READONLY if appropriate.
2658         * actions.c (chill_expand_assignment):  Check TYPE_READONLY_PROPERTY
2659         instead of TREE_READONLY of the target's type.
2660         * expr.c (build_chill_function_call):  Likewise.
2661         * inout.c (build_chill_readtext):  Likewise.
2662         * decl.c (do_decl):  Likewise, to check if init is required.
2663
2664         * typeck.c (build_chill_bitref):  Removed unused RANGE_EXPR hack.
2665
2666 Wed Mar 22 07:52:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2667
2668         * tasking.c (build_start_process): Get a unique identifier for
2669         the start arguments.
2670
2671 Tue Mar 21 07:36:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2672
2673         * expr.c (fold_set_expr): At label build_result: Add setting unused
2674         bits to 0. This is the same as the runtime library does.
2675
2676         * parse.c (expect): Function returns now int, 0, if the expected
2677         token was not got, 1 when it was found.
2678         (parse_synonym_definition): In case of syntax error (missing =),
2679         set expr to NULL_TREE and mode to error_mark to avoid subsequent
2680         segfaults.
2681
2682         * chill.texi: Add chapter about differences to Z.200/1988.
2683
2684 Mon Mar 20 18:01:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2685
2686         * lang.c (chill_print_error_function):  New function, to report
2687         module name if not inside a function.
2688         (lang_init):  Set print_error_function to chill_print_error_function.
2689
2690         * tasking.c (max_queue_size, buffer_element_mode):  Cleanup
2691         to remove unreachable code.
2692
2693         * grant.c (chill_finish_compile):  Avoid doing a lookup_name
2694         to find init function (which got broken by recent nesting re-org).
2695
2696         * decl.c (poplevel):  Push and pop function context around
2697         call to output_inline_function (as done for C and C++).
2698
2699 Thu Mar 16 17:56:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2700
2701         * parse.c (parse_pass_1_2):  If unknown top-level token, skip pass 2.
2702
2703 Wed Mar  8 13:54:33 1995  Doug Evans  <dje@canuck.cygnus.com>
2704
2705         * Make-lang.in (chill-runtime): Temporarily disable building of
2706         runtime libraries for cross compilers.
2707
2708 Mon Mar  6 23:36:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2709
2710         * parse.c, decl.c:  Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2711
2712         * configure:  Merge in tolerance for new flags (e.g. --x-libraries).
2713
2714 Sat Mar  4 15:47:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2715
2716         * expr.c (build_chill_arrow_expr):  Error if pass == 1.
2717
2718 Thu Mar  2 19:28:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2719
2720         * decl.c (do_decl):  Setting seen_action must be done in pass 1.
2721         (save_decl):  Don't set DECL_CONTEXT to global_function_decl.
2722         (start_chill_function):  Simplify due to above change.
2723
2724         * parse.c (parse_case_label):  Hack to distinguish (ELSE) from (*).
2725         * grant.c (decode_constant):  Emit ELSE in case label.
2726
2727         * parse.c (serious_errors):  New global variable.
2728         * parse.c (to_global_binding_level):  Set serious_errors.
2729         (parse_pass_1_2):  Exit after pass 1 if serious_errors > 0.
2730         * lex.c (readstring):  Recover from unterminstaed control sequence.
2731
2732 Tue Feb 28 17:08:08 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2733
2734         Re-write of module-level actions.  No longer generate a module
2735         function for module-level actions.  Instead, put them inside
2736         a new global dummy function.  Nest everything logically inside it.
2737
2738         * lex.h, grant.c (chill_module_name):  Removed declaration.
2739         * grant.c (write_spec_module):  Instead use current_module->name.
2740         * grant.c (chill_start_module_code, chill_finish_module_code):
2741         Removed.
2742         * grant.c (chill_finish_compile):  Make rtl for global function.
2743
2744         * actions,c (push_action):  Don't call chill_start_module_code.
2745         * expr.c (build_chill_function_call, build_generalized_call):
2746         Likewise.
2747         * parse.c (INIT_ACTION):  Likewise.
2748
2749         * parse.c (seen_action):  New variable.
2750         * parse.c (end_function):  Always call pop_chill_function_context.
2751         (parse_procedure_definition):  Always call push_chill_function_context.
2752         (parse_modulion):  Parse optional handler.
2753         (parse_modulion, parse_spec_module):  Do find_granted_decls.
2754         (parse_action):  Set seen_action if global and a real action.
2755         ([arse_program):  Call start_outer_function and finish_outer_function.
2756
2757         * ch-tree.h:  Appropriate updates.
2758
2759         * tasking.c (generate_tasking_code_variable):  Make it lifetime-bound.
2760         (build_process_header):  Always push_chill_function_context;
2761         we are now always nested.
2762         (build_process_wrapper):  Always pop_chill_function_context.
2763
2764         * tasking.c (build_start_process):  Only expand_start_bindings and
2765         expand_end_bindings if pass 2.
2766
2767         * decl.c (global_function_decl):  New variable.
2768         (do_decl):  Implement reach-bound initialization of static variables.
2769         (start_chill_function):  Set DECL_CONTEXT to NULL if
2770         it would be global_function_decl (so as to not confuse gcc backend).
2771         (start_chill_function, finish_chill_function):  If compiling
2772         global_function_decl in pass 2 and !seen_action, suppress it.
2773         (set_module_name):  New function.
2774         (global_bindings_p):  Re-defined to check against global_function_decl.
2775         (start_outer_function, finish_outer_function):  New functions.
2776
2777 Tue Feb 28 16:00:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2778
2779         * typeck.c (build_chill_modify_expr):  Inline logic from
2780         chill_expand_array_assignment,
2781         * actions.c (chill_expand_array_assignment):  Removed.
2782         (chill_expand_assignment):  Remove call to removed function.
2783
2784         * lex.c (reinit_parse_for_function):  Removed empty unused function.
2785         * decl.c (start_chill_function):  Don't call removed function.
2786
2787 Tue Feb 28 00:29:51 1995  Per Bothner  <bothner@cygnus.com>
2788
2789         * configure:  Merge in code for calculating host, build, and
2790         target and canon_{host,build,target} from ../configure.
2791         Fix calculation of mainsrcdir.  Host canon_* variables
2792         to merge in build-make (as in ../configure).
2793
2794 Sun Feb 26 18:59:02 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2795
2796         * typeck.c (expand_constant_to_buffer):  Use new function
2797         get_set_constructor_bytes.
2798
2799 Tue Feb 21 01:41:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2800
2801         * inout.c (build_chill_writetext): Add processing of
2802         conditional expressions in argument list.
2803
2804         * parse.c (parse_opt_name_string): Print error message only
2805         in pass 1.
2806
2807         * chill.texi: Add chapter about compiler directives.
2808
2809 Tue Feb 14 16:45:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2810
2811         * decl.c (start_chill_function):  Set FUNCTION_NEEDS_STATIC_CHAIN
2812         unless nested.
2813
2814         * decl.c (decl_temp1):  Make lifetime_bound iff static.
2815
2816 Fri Feb  3 04:30:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2817
2818         * grant.c (really_grant_this, search_in_list): New static
2819         functions to determine if a decl should be written to
2820         grant file.
2821         (write_spec_module): Add call to really_grant_this.
2822
2823 Fri Jan 27 00:06:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2824
2825         * actions.c (check_expression): Apply Per's patch.
2826         (chill_expand_result): New argument to indicate if we come
2827         from a RETURN or RESULT action. Change various error messages.
2828
2829         * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2830         New argument for chill_expand_result.
2831
2832         * chill.in: In case of -fgrant-only, clear library, libpath and
2833         startfile to avoid warnings from gcc.
2834
2835         * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2836
2837         * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2838
2839         * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2840         and subsequent SEIZEs to grant file, if the seize file is
2841         used restricted.
2842
2843         * lex.c (read_directive): Process new compiler directive
2844         USE_SEIZE_FILE_RESTRICTED.
2845         (handle_use_seizefile_directive): Same as above.
2846         (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2847         if this seize file is used restricted.
2848
2849         * parse.c (parse_action, case RETURN): Change RETURN expr action
2850         to RESULT expr; RETURN. This enables range checking and
2851         exception delivery in case of rangefail.
2852
2853 Tue Jan 17 07:38:27 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2854
2855         * decl.c (init_decl_processing): Add definition of
2856         library function __inbitstring (see expr.c).
2857
2858         * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2859         __inpowerset fir POWERSET's and function __inbitstring for
2860         BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2861         in case of BITSTRING's we have to do one.
2862         (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2863         statement with no effect).
2864
2865 Fri Jan 13 13:35:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2866
2867         * actions.c (check_expression):  Simplify result.
2868
2869         * ch-tree.h (SET_CH_NOVELTY_NONNIL):  New macro.
2870         * expr.c, timing.c, typeck.c:  Use SET_CH_NOVELTY_NONNIL.
2871
2872         * typeck.c (valid_array_index_p), ch-tree.h:  Change interface
2873         to return modified index expression.  Call error if out-of-range.
2874         * actions.c, typeck.c:  Modify
2875         for new valid_array_index_p interface.
2876
2877         * actions.c (build_chill_slice):  Copy novelty of index type.
2878
2879 Fri Jan 13 13:04:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2880
2881         * convert.c (digest_array_tuple):  Allow mode name in array
2882         tuple label.  Print error message instead of aborting.
2883
2884         * parse.c (parse_body):  Error message only if pass 1.
2885
2886         * decl.c (check_identifier), ch-tree.h:  Remove.  Unused.
2887
2888 Wed Jan 11 14:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2889
2890         * parse.c (parse_modulion):  Undo yesterday's change (to allow
2891         an ON-handler to follow) until we re-implement module.
2892
2893 Tue Jan 10 17:23:55 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2894
2895         * loop.c (declare_temps):  Remove bogus prohibition against
2896         iterating over BOOL arrays.
2897
2898         * parse.c (parse_semi_colon):  Make it a pedwarn (instead of an
2899         error) if a semi-colon is missing before an END.
2900         (parse_action):  Likewise.
2901         * parse.c (parse_modulion):  Allow an ON-handler to follow.
2902
2903         * parse.c (parse_set_mode):  Use parse_expression to get
2904         values for number set elements.
2905
2906         * expr.c (build_compare_expr):  Make sure result has
2907         CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
2908         (finish_chill_binary_op):  Likewise for IN_EXPR.
2909
2910 Tue Jan 10 04:46:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2911
2912         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
2913         checking the argument.
2914         (chill_expand_assignment): Take care of a newmoded dst_offset
2915         when calling __pscpy and a newmoded from_pos when calling
2916         __setpowersetbits.
2917
2918         * expr.c (chill_expand_expr): When calling __psslice take care
2919         of a newmoded min_value.
2920
2921         * parse.c (parse_name_string): Print error message only in
2922         pass 1.
2923
2924 Tue Jan  3 19:56:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2925
2926         * typeck.c (build_chill_array_ref_1):  Use varying_to_slice
2927         instead of building a VRAY_ARRAY_REF node.
2928         * ch-tree.def (VARY_ARRAY_REF):  Removed.
2929         * actions.c (chill_expand_assignment):  Will never call
2930         expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
2931         (expand_assignment_to_varying_array):  Removed.
2932         * convert.c (convert):  Remove unneeded VARY_ARRAY_REF support.
2933         * expr.c (chill_expand_expr):  Likewise.
2934
2935 Tue Jan  3 19:50:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2936
2937         * parse.c (parse_iteration):  Set step_value to NULL if missing.
2938         * loop.c (ITER_TYPE):  Remove DO_RANGE.
2939         (build_loop_iterator):  Implement old DO_RANGE in terms of DO_STEP.
2940         (begin_loop_scope):  Don't return on error.
2941         (build_loop_iterator):   Calculate loop variable type using
2942         resulting classes (as in Z200), rather than precision.
2943
2944         * loop.c (initialzie_iter_var, bottom_loop_end_check):  For DO_STEP,
2945         make iter_var one less to avoid overflow.
2946         * loop.c (build_loop_iterator):  If !flag_local_loop_counter,
2947         declare a new variable if needed, as allowed by Z200 (1984).
2948
2949         * ch-tree.h (ch_class):  Add typedef.
2950
2951         * typeck.c (chill_resulting_class):  New function.
2952         (chill_root_resulting_class):  Remove.
2953         * ch-tree.h (CH_RESULTING_CLASS):  New macro.
2954         (CH_ROOT_RESULTING_CLASS):  Re-implement using CH_RESULTING_CLASS.
2955
2956 Tue Jan  3 19:36:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2957
2958         * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
2959         Change interface to take IDENTIFIER tree node, rather char char*.
2960         (check_expression): Change (simplify) callers appropriately.
2961         * parse.c (parse_action), typeck.c (valid_array_index_p):  Likewise.
2962         * lex.h (enum rid):  Add RID_ASSERTFAIL.
2963         * lex.c (init_lex):  Enter RID_ASSERTFAIL.
2964         * parse.c (parse_action case ASSERT):  Fix thinko TRUTH_ANDIF_EXPR
2965         to TRUTH_ORIF_EXPR.  Use RID_ASSERTFAIL.
2966
2967         * typeck.c (discrete_type_p):  Re-implement using INTEGRAL_TYPE_P.
2968
2969 Tue Jan  3 19:20:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2970
2971         Move checking for modeless tuples in invalid contexts from parser
2972         to semantic function check_have_mode (for better error recovery):
2973         * expr.c (check_have_mode), ch-tree.h:  New function.
2974         * satisfy.c (safe_satisfy_decl):  Use check_have_mode.
2975         * expr.c (build_compare_expr, finish_chill_binary_op,
2976         finish_chill_unary_op):  Likewise.
2977         * parse.c (parse_primval):  Don't complain about mode-less tuple here.
2978
2979 Tue Jan  3 17:36:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2980
2981         * expr.c (varying_to_slice):  Support varying arrays whose
2982         lower bound is non-zero.
2983
2984         * parse.c (parse_body):  Allow (with warning) definition to
2985         follow action.
2986
2987         * expr.c (check_case_selector), ch-tree.h:  New function.
2988         (chill_expand_case_expr):  Use it.
2989         * parse.c (parse_case_action):  Likewise.
2990
2991 Fri Dec 23 00:47:54 1994  Wilfried Moser  <moser@rtl.cygnus.com>
2992
2993         * actions.c (chill_expand_return): Change error message.
2994
2995         * ch-tree.h: Change prototypes of do_decl and do_decls.
2996
2997         * convert.c (convert): Add missing initialisation of
2998         variable orig_e_constant.
2999
3000         * decl.c: Change all calls to do_decl.
3001         (maybe_static): New function to process the ALL_STATIC_ON/OFF
3002         compiler directives.
3003         (do_decls): New argument.
3004         (do_decl): New argument and process reachbound and lifetime
3005         bound initialisation.
3006
3007         * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
3008         ALL_STATIC_OFF.
3009
3010         * grant.c: Change all calls to do_decl.
3011
3012         * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
3013         directive.
3014
3015         * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
3016         do_decls.
3017
3018         * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
3019
3020         * tasking.c: Change all calls to do_decl.
3021
3022 Mon Dec 19 23:13:58 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3023
3024         * parse.c (parse_procedure_definition): Save chill_at_module_level
3025         flag, set ot to 0 and restore it at the end of function.
3026         A sequence BEGIN x: PROC () RETURN; END x; END; at module level
3027         have produced an error.
3028
3029         * expr.c (build_chill_repetition_op): Fix typo in error message.
3030
3031 Tue Dec 13 12:26:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3032
3033         * actions.c (expand_assignment_to_varying_array):  Fix thinko:
3034         build_chill_array_ref -> build_chill_array_ref_1.
3035
3036 Sun Dec 11 23:04:27 1994  Per Bothner  <bothner@rtl.cygnus.com>
3037
3038         * actions.c (chill_expand_assignment):  Simplify the lhs if it is
3039         a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
3040
3041 Thu Dec  8 13:45:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3042
3043         * loop.c, ch-tree.h (build_loop_iterator):  Fix to return void.
3044         If start_exp is ERROR_MARK, return.
3045         * expr.c (build_generalized_call):  More robust on syntax errors.
3046
3047 Tue Dec  6 02:33:23 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3048
3049         * inout.c (build_chill_readtext): In case of reading a SET mode
3050         pass ignore_case flag to runtime library.
3051
3052 Tue Nov 29 14:41:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3053
3054         * parse.c (parse_receive_case_action):  Print error only if pass==1.
3055         * decl.c (push_scope_decls):  Use error_with_file_and_line
3056         to get correct line number of SEIZE.
3057
3058 Mon Nov 28 16:59:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3059
3060         * expr.c (resolve_component_ref):  Call fold on result.
3061
3062         * expr.c (resolve_component_ref):  Use check_expression.
3063         * actions.c (chill_convert_for_assignment):  Likewise.
3064         * actions.c (cond_exception), ch-tree.h:  Removed.
3065         * actions.c (check_expression):  First part of COMPOUND_EXPR
3066         should be boolean_type_node;  void_type_node loses in SAVE_EXPRs.
3067
3068         * actions.c (chill_convert_for_assignment):
3069         Check string_assignment_condition for varying strings too.
3070
3071         * typeck.c (build_chill_cast):  If the types have different sizes,
3072         don't allow nondiscrete->discrete conversion, and only allow
3073         discrete->nondiscrete if input expression is constant.
3074
3075         * typeck.c (chill_similar):  Don't use losing array_type_nelts.
3076
3077         * ch-tree.h (ELSE_VARIANT_NAME):  New.
3078         * convert.c, decl.c, grant.c:  Use ELSE_VARIANT_NAME.
3079         * decl.c (handle_one_level):  Recurse on ELSE_VARIANT_NAME too.
3080
3081         Reduce dependencies on ../c-typeck.c:
3082         * expr.c:  Fix c_expand_start_case -> expand_start_case.
3083         Fix c_expand_expr_stmt -> expand_expr_stmt.
3084         (build_chill_indirect_ref):  Call convert instead of build_c_cast.
3085         * loop.c (bottom_loop_end_check):  Don't use build_modify_statement.
3086         * expr.c, except.c, typeck.c:  Don't call default_conversion.
3087         * typeck.c (string_assignment_condition):  Fix build_component_ref ->
3088         build_chill_component_ref.
3089         * decl.c:  Fix build_indirect_ref -> build_chill_indirect_ref (twice).
3090         * decl.c:  Don't set unused constructor_no_implicit (from c-typeck.c).
3091         * decl.c:  Don't call declare_function_name.
3092
3093         * parse.c: Don't always keep a valid token in terminal_buffer[0].
3094         The extra look-ahead may have made the parser faster, but caused
3095         some problems synchronizing with the lexer.  Specifically:
3096         (PEEK_TOKEN):  Now calls an optimized variant of peek_token_(0).
3097         (next_token_):  Don't call peek_token_.  Renamed to forward_token_.
3098         (NEXT_TOKEN):  Renamed to FORWARD_TOKEN.
3099         (parse_program):  Don't call yylex yet.
3100
3101         * parse.c (parse_action):  Re-do case ASSERT.
3102         Fix c_expand_expr_stmt -> expand_expr_stmt.
3103
3104         * lex.l:  Re-written to not use [f]lex, and renamed to ...
3105         * lex.c:  ... new lexer.
3106         * Makefile.in, Make-lang.in:  Remove [f]lex crud.
3107
3108         * lex.h (enum rid), lex.c (init_lex):  Added RID_ELSE.
3109
3110 Tue Nov 22 15:19:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3111
3112         * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
3113
3114 Fri Nov 18 14:27:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3115
3116         * parse.c (parse_structure_node):  Simpler, and more robust.
3117
3118 Wed Nov 16 14:40:52 1994  Ian Lance Taylor  (ian@cygnus.com)
3119
3120         * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
3121         not at compile time.
3122         * typeck.c (expand_constant_to_buffer): Likewise.
3123         extract_constant_from_buffer): Likewise.
3124
3125 Tue Nov 15 14:41:53 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3126
3127         * convert.c (convert):  Call build_chill_range_type rather than
3128         build_index_2_type (which has obstack and canonicalization problems).
3129         * expr.c (build_chill_pred_or_succ):  Convert expr to root class
3130         before arithmetic.
3131         * loop.c (declare_temps):  If location iterated over is not
3132         a location, make a temporary variable for it.
3133
3134 Mon Nov 14 16:33:47 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3135
3136         * typeck.c, ch-tree.h (chill_equivalent):  Change to return
3137         a tree (a Boolean expression).  Also, add some missing tests.
3138         * ch-tree.h (CH_EQUIVALENT):  Modify accordingly.
3139
3140         * expr.c (chill_expand_expr case CONCAT_EXPR):  When the 2nd operand
3141         is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
3142         Also, replace MEM (which is not a mode) by Pmode.
3143
3144         * ch-tree.h, typeck.c (chill_comptypes):  Removed.
3145         * convert.c (convert):  Remove calls to chill_comptypes.
3146
3147 Fri Nov 11 13:06:29 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3148
3149         * grant.c (write_grant_file): Call pfatal_with_name instead
3150         of abort when something goes wrong when opening or writing
3151         the grant file.
3152         unlink grant file if something goes wrong during writing
3153         (i.e. device full).
3154
3155         * Make-lang.in (CHILL_SRCS): Add timing.c
3156
3157         * ch-tree.h: Add prototype for chill_tasking_type_node.
3158         * lex.l (equal_number): Use chill_tasking_type_node instead of
3159         integer_type_node for converting the result.
3160         Print error messages in pass 2, in pass 1 no error will be
3161         detected.
3162         * tasking.c: New variable chill_tasking_type_node for all
3163         generated tasking related variables.
3164         Use chill_tasking_type_node instead of chill_unsigned_type_node.
3165
3166         * expr.c (chill_expand_expr): Apply Per's change.
3167
3168         * expr.c (build_chill_sizeof): In case of error just
3169         return error_makr_node.
3170         Set CH_DERIVED_FLAG at the result.
3171
3172         * timing.c (build_after_timeout_start): Clear the the timeout
3173         level to know if we are in the action part of AFTER statement
3174         or in the TIMEOUT part.
3175
3176         * typeck.c (build_chill_slice_with_length): Convert the class
3177         of the result to class of first value in expression.
3178
3179         * inout.c (build_chill_writetext, build_chill_readtext): Use stack
3180         temporary variables for the iolist so that they can get reused in
3181         subsequent calls. Emit code immediately instead of building a
3182         compound expr.
3183
3184 Fri Nov  4 12:00:54 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3185
3186         * expr.c (build_chill_function_call):  Don't set TREE_TYPE
3187         of assignment to void_type_node - it confuses save_expr.
3188         * decl.c (init_decl_processing):  Removed unused code.
3189         * parse.c:  Changes to avoid warnings.
3190
3191         * grant.c (chill_finish_module_code):  Minor simplification.
3192         * lex.l (readstring):  Set *len to 1 on error.
3193
3194 Thu Nov  3 01:05:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3195
3196         * grant.c (decode_decl): Add granting of BASED declarations.
3197
3198 Wed Nov  2 12:14:31 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3199
3200         * expr.c (build_chill_lower_or_upper):  Take more care to
3201         ensure result has the right class.
3202         (build_chill_pred_or_succ):  Be more careful to get the right
3203         resulting class, and check bounds using *root* mode.
3204
3205         * typeck.c (build_chill_slice_with_range):  Check that array
3206         really is an array or string.
3207         (build_chill_slice_with_length):  Likewise.
3208
3209         * typeck.c (extract_constant_from_buffer):  Fix calculation of
3210         SET_TYPE size.  (Cannot depend on 1-byte TYPE_PRECISION field.)
3211
3212 Wed Nov  2 05:33:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3213
3214         * Make-lang.in: Change version of compiler.
3215
3216         * ch-tree.h: Add new prototypes.
3217
3218         * decl.c (init_decl_processing): Remove timing related
3219         initialisations. Add call to timing_init.
3220
3221         * parse.c (parse_action): Process AFTER action.
3222
3223         * tasking.c (build_receive_case_start,
3224         build_receive_signal_case_label, build_receive_buffer_case_label,
3225         build_delay_case_start, build_delay_action, expand_send_buffer):
3226         Add processing of timesupervision.
3227         (tasking_init): Change definitions of runtime   functions.
3228
3229         * timing.c (timing_init): New function for initialisation of
3230         timing related stuff.
3231         (build_cycle_start, build_cycle_end): Changed due to
3232         implementation of timesupervision.
3233         (build_after_start, build_after_timeout_start, build_after_end):
3234         Implement the AFTER action.
3235         (build_timeout_preface, build_timesupervised_call): New functions
3236         to handle timesupervision in case of blocking system calls (i.e.
3237         SEND buffer action, RECEIVE CASE action etc.).
3238
3239 Thu Oct 27 12:50:24 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3240
3241         * expr.c (build_chill_repetition_op):  Fix repeating all-zero
3242         bitstring with orig_len!=1.  Also, call build_boring_bitstring
3243         if original string was all ones, using one range.  Also:
3244         Cannot use one-bit TYPE_PRECISION to get bitstring length.
3245
3246 Tue Oct 25 14:11:07 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3247
3248         * convert.c (convert):  When converting BOOL constant to
3249         bit-string, bit_one_node and bit_zero_node were switched.
3250         * actions.c (chill_expand_assignment):  Use force_addr_of,
3251         not build_chill_addr_expr - latter yields bogus error.
3252
3253 Fri Oct 21 14:26:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3254
3255         * expr.c (build_chill_indirect_ref):  Check for POINTER_TYPE (only)
3256         after converting from REFERENCE_TYPE.
3257         * expr.c (build_compare_expr):  Convert to common mode *after*
3258         we've checked compatibility.
3259
3260 Fri Oct 21 02:29:15 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3261
3262         * lex.l (check_newline): Use getc instead of getlc to read
3263         the filename in a # line name directive to avoid possibly
3264         downcaseing of a filename.
3265
3266 Thu Oct 20 05:37:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3267
3268         * expr.c (build_chill_indirect_ref): Add check for really
3269         dereferencing a pointer.
3270
3271         * convert.c (convert): Take care of TREE_CONSTANT of a
3272         SYNONYM having mode ARRAY () VARYING something.
3273
3274 Mon Oct 17 02:30:38 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3275
3276         * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
3277         boolean_true_node and boolean_false_node. TRUE and FALSE have
3278         the BOOL derived class.
3279
3280         * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
3281         of NUM. NUM delivers the INT derived class.
3282
3283         * grant.c (write_spec_module): Add writing of
3284           <> USE_SEIZE_FILE "x.grt" <>
3285           SEIZE ALL;
3286         to generated grant file.
3287
3288 Thu Oct 13 14:45:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3289
3290         * convert.c (convert_from_reference):  Make non-static.
3291         * ch-tree.h (convert_from_reference):  Add prototype.
3292         * parse.c (parse_name):  If the decl is a REFERENCE_TYPE, just
3293         call convert_from_reference - and not a full-scale convert.
3294
3295         * convert.c (convert):  Only call digest_array_tuple if ARRAY_TYPE.
3296         * typeck.c (chill_expand_tuple):  Print error if type is
3297         neither array, struct, or powerset.
3298
3299         * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
3300         UNDEFINED_EXPR):  Call preserve_temp_slots for temp targets.
3301         If target is not MEM, make temp (even if not REG) to simplify
3302         - and don't copy original target to temp target first.  (Not needed.)
3303
3304         * lang.c (maybe_objc_comptypes):  Just return -1.
3305
3306 Wed Oct 12 12:24:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3307
3308         * tasking.c (tasking_setup):  Fix breakage from previous check-in.
3309
3310 Tue Oct 11 16:00:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3311
3312         * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
3313         timing.c, typeck.c:  Change build1 (ADDR_EXPR, ptr_type_node, XX)
3314         to force_addr_of (XX).  Add call to mark_addressable where needed
3315         for other calls to build 1 (ADDR_EXPR, TYPE, XX).
3316
3317 Thu Oct  6 06:36:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3318
3319         * inout.c (build_chill_writetext): Remove processing
3320         of POWERSET's.
3321
3322 Tue Oct  4 14:08:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3323
3324         * convert.c (convert):  If flag_old_strings, support converting
3325         CHARS(1) and BOOLS(1) to INT.
3326
3327 Fri Sep 30 01:44:51 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3328
3329         * inout.c (build_chill_readtext): Add check for item is
3330         referable and not READonly. Add processing of BITSTRINGs.
3331
3332 Mon Sep 26 16:19:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3333
3334         * expr.c (build_chill_descr):  Add missing call to mark_addressable.
3335         * loop.c (toop_loop_end_check):  Replace build1 (ADDR_EXPR ...)
3336         with call to force_addr_of (which calls mark_addressable).
3337         * expr.c (build_chill_descr, build_chill_inttime):  Likewise.
3338         * inout.c (build_chill_writetext):  Likewise.
3339
3340 Mon Sep 26 05:19:21 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3341
3342         * grant.c (print_struct): Move printing of VARYING from
3343         here ...
3344         * grant.c (grant_array_type): ... to here.
3345
3346 Mon Sep 26 00:09:08 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3347
3348         * ch-tree.h (force_addr_of):  New prototype.
3349         * expr.c (force_addr_of):  Call mark_addressable.  Make non-static.
3350         * inout.c (build_chill_writetext):  Use force_addr_of.
3351
3352 Sun Sep 25 23:41:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3353
3354         * except.c (push_handler), actions.h:  Removed unused parameter.
3355         * actions.c (push_action):  Remove unused paramater.
3356         * parse.c, actions.c:  Remove no-longer-used parameter to
3357         calls to push_handler and push_action.
3358
3359         * decl.c (push_extern_process):  Only build types in pass 1.
3360         * tasking.c (build_process_header):  Only build types in pass 1.
3361         * tasking.c (build_start_process):  Do pushdecl/popdecl etc
3362         even after an error (to maintain consistency between passes).
3363
3364         * convert.c (convert_to_boolean):  Allow any integral input type.
3365
3366 Sat Sep 24 22:47:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3367
3368         * typeck.c (extract_constant_from_buffer):  Add (somewhat kludgey)
3369         support for UNION_TYPE.  (Patch from Wilfried.)
3370         Also, reverse RECORD_TYPE constructor list.
3371
3372 Fri Sep 23 19:06:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3373
3374         * expr.c (build_concat_expr):  Fix calculation of result_size.
3375
3376 Wed Sep 21 00:54:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3377
3378         Give up on trying to use the cleanup mechanism in stmt.c to
3379         make sure the exception handler get unlinked on goto/exit/return.
3380         Instead, do it ourselves.  (Much simpler.)
3381         * except.c, ch-tree.h (action_nesting_level):  New global.
3382         * ch-tree.h (DECL_ACTION_NESTING_LEVEL):  New macro.
3383         * decl.c (define_label):  Set DECL_ACTION_NESTING_LEVEL.
3384         * except.c (expand_goto_except_cleanup):  New function.
3385         (cleanup_chain):  New variable.
3386         (push_handler, pop_handler):  Adjust action_nesting_level.
3387         (emit_setup_handler):  Push cleanup.
3388         (chill_finish_on):  Pop cleanup.
3389         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
3390         Call expand_goto_except_cleanup.
3391         * parse.c (parse_action):  Before RETURN, call
3392         expand_goto_except_cleanup.
3393
3394 Mon Sep 19 00:59:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3395
3396         * lex.l (equal_number):  Make sure converted synonym
3397         is on permanent obstack.
3398         * typeck.c (extract_constant_from_buffer):  Fix INTEGER_TYPE
3399         loop to traverse in big-endian order.
3400
3401 Sat Sep 17 20:48:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3402
3403         * typeck.c (build_chill_cast):  Call mark_addressable.
3404         * expr.c (build_chill_function_call):  Call mark_addressable.
3405
3406 Thu Sep 15 23:47:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3407
3408         * typeck.c (expand_constant_to_buffer):  Fix an endian-ness
3409         problem for INTEGER_CST.
3410         (extract_constant_from_buffer):  Likewise.
3411
3412 Thu Sep 15 22:59:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3413
3414         * decl.c (pushlevel):  Do different things depending on
3415         actual parameter.
3416         * decl.c, parse.c, tasking.c:  Change argument to to pushlevel to 1.
3417         * actions.c (push_action):  Take new parameter.
3418         * except.c (push_handler):  Likewise.
3419         * parse.c:  Change calls to push_action and push_handler.
3420         * loop.c (begin_loop_scope):  Always call expand_start_bindings.
3421         * loop.c (end_loop_scope):  Always call expand_end_bindings.
3422         * except.c (emit_setup_handler):  Add a cleanup to
3423         unlink from exception stack if we return/exit/goto from here.
3424         * loop.c (begin_loop_scope):  Move pushlevel from here ...
3425         * parse.c (parse_do_action): ... to here.
3426
3427         Clean up do-decl interface (for decl_temp1).
3428         * parse.c (parse_loc_declaration):  If global_bindings_p (),
3429         treat as static.
3430         * decl.c (do_decl):  Don't test global_bindings_p ().
3431
3432         * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3433         Not used.  Removed.
3434         (struct scope::keep, scope::keep_if_subblocks):  Likewise.
3435         (keep_next_level):  Likewise.
3436         (kept_level_p, pushlevel, poplevel):  Simplify.
3437
3438         * decl.c (init_decl_processing):  Don't call init_iterators.
3439         * Makefile.in (C_OBJS):  Don't get ../c-iterator.o - not needed.
3440
3441 Thu Sep 15 05:54:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3442
3443         * lex.l (readstring): Add processing of control sequence
3444         in character string literals. The granting mechanism writes
3445         this to grant files.
3446
3447 Tue Sep 13 06:19:42 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3448
3449         * expr.c (compare_records): In case of -fpack do always
3450         a memcmp instead of comparing each field of the
3451         structure. If the structure is a variant structure,
3452         issue a warning.
3453
3454 Mon Sep 12 13:15:09 1994  Per Bothner  (bothner@cygnus.com)
3455
3456         * grant.c (write_spec_module):  Add cast, to avoid PCC warning.
3457         * grant.c (header_template):  Don't use ANSI-specific string
3458         literal concatenation.
3459
3460 Fri Sep  9 01:53:30 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3461
3462         * tasking.c (get_process_wrapper_name): New function.
3463         (add_taskstuff_to_list): Add a new argument, which is
3464         the entrypoint of a process.
3465         (build_process_header): Change PROCESS arguments to be
3466         like arguments of a function. There will be a wrapper
3467         which is the real entry point for a PROCESS. This wrapper
3468         is automatically build after a PROCESS definition and gets
3469         as argument a pointer to a structure looking like the
3470         arguments of the PROCESS. This wrapper will call the
3471         PROCESS (see build_process_wrapper).
3472         (build_process_wrapper): New function (see above).
3473         (build_start_process): Change processing of arguments.
3474         (tasking_setup): Add processing of a different entry point
3475         in case of PROCESSes.
3476
3477         * parse.c (parse_process_definition): Add call to
3478         build_process_wrapper.
3479         * parse.c (end_function): Remove the poplevel() call.
3480         build_process_header no longer makes the corresponding
3481         pushlevel().
3482
3483         * grant.c (print_proc_tail): Remove special processing
3484         of PROCESSes, they look now like normal functions.
3485
3486         * decl.c (init_decl_processing): Add declaration of memcmp
3487         function.
3488
3489         * ch-tree.h: Add new prototype for build_process_wrapper,
3490         change prototypes for add_taskstuff_to_list and
3491         build_process_header.
3492
3493         * grant.c (write_spec_module): Write GNUCHILL and gcc
3494         version into grant file.
3495
3496         * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
3497         GNUCHILL_VERSION to ch/Makefile.
3498         * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3499
3500         * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3501         will get generated every time a new Makefile will get
3502         generated.
3503         * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3504         Make-lang.in.
3505
3506         * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3507         to the compiler to avoid generation of an object file.
3508
3509 Thu Sep  8 12:07:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3510
3511         * convert.c (display_int_cst), ch-tree.h:  New function.
3512         * convert.c (digest_array_tuple):  Use digest_int_cst to
3513         provide better error messages.  Return error_mark_node on error.
3514         * grant.c (decode_const):  Simplify by using digest_int_cst.
3515         * grant.c (format_character, find_assoc):  Removed.
3516
3517         * decl.c (do_decl):  Add missing TREE_CHAIN.
3518
3519         * decl.c (finish_incomplete_decl):  Removed.
3520         (init_decl_processing):  Don't set incomplete_decl_finalize_hook.
3521         (finish_decl):  Remove old C-specific code to deduce size of
3522         array from initialization.
3523         (complete_array_type):  Just make it abort.
3524
3525         * except.c (finish_handler_array):  Avoid calling C-specific kludge
3526         complete_array_type.
3527
3528         * convert.c (digest_constructor):  Rename, and re-write to:
3529         (digest_array_tuple, convert):  No longer use the code in
3530         ../c-typeck.c;  use a Chill-only implementation (sigh).
3531
3532         * typeck.c (chill_expand_tuple):  Remove unneeded call to
3533         complete_array_type.
3534
3535         * expr.c (fold_set_expr), grant.c (decode_constant),
3536         typeck.c (expand_constant_to_buffer):  Update name of called
3537         function unpack_set_constructor to get_set_constructor_bits.
3538         * expr.c (powersetlen ):  Remove redundant call to convert.
3539
3540         * ch-tree.h (unpack_set_constructor):  Removed obsolete declaration.
3541
3542         * inout.c (build_chill_writetext):  Handle 64-bit integer literals
3543         by trying to convert them to a smaller type.
3544
3545         * lex.l (convert_number):  Always use long long type (possibly
3546         unsigned) to avoid problems with constant folding truncation.
3547
3548 Mon Sep  5 08:08:22 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3549
3550         * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3551         Add new prototype (see tasking.c).
3552
3553         * expr.c (build_generalized_call): Add processing of
3554         BUILT_IN_QUEUE_LENGTH.
3555
3556         * tasking.c (build_queue_length): New function.
3557
3558         * tasking.c (tasking_init): Add new external function definition.
3559
3560 Thu Sep  1 15:38:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3561
3562         * lex.l (default_lex):  New function.  Progress towards
3563         getting rid of [f]lex.
3564
3565         * lex.l (convert_number):  Use mul_double and add_double.
3566         Set result type to a reasonable type in which the literal
3567         will fit.  Give error message if literal is too big.
3568
3569         * lex.l (equal_number):  Switch (temporarily) to permanent obstack.
3570
3571         * typeck.c (build_chill_slice_with_range):  Check for empty
3572         slice *after* we have checked for upper/lower limit in range.
3573
3574         * grant.c (decode_mode):  Remove unused code.  (BOOL and
3575         CHAR ranges are represented as INTEGER_TYPEs.)
3576
3577         * tasking.c (build_process_header):  Add missing call to
3578         expand_start_bindings.
3579         * parse.c (end_function):  Add missing expand_end_bindings.
3580
3581 Wed Aug 31 17:25:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3582
3583         * decl.c (init_decl_processing):  Set set_alignment.
3584
3585 Tue Aug 30 16:40:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3586
3587         * actions.c (print_missing_cases, check_missing_cases,
3588         BITARRAY_TEST, BITARRAY_SET):  New functions and macros,
3589         to check for completeness of case actions and expressions.
3590         * decl.c (c_decode_option, init_decl_processing):
3591         Don't set warn_switch.
3592         * expr.c (chill_expand_case_expr):  Call check_missing_cases
3593         instead of check_for_full_enumeration_handling.
3594         * parse.c (parse_case_actions):  Call check_missing_cases.
3595
3596         * expr.c (build_chill_binary_op):  Remove some dead code.
3597         * expr.c (chill_truthvalue_conversion):  Call build_chill_binary_op
3598         instead of build_binary_op.
3599         * ch-tree.h (binary_op_error, build_binary_op):  Unused.  Removed.
3600
3601         * parse.c (end_function):  Use kept_level_p in parameter to
3602         poplevel.  This reverts a June 13 change.
3603
3604 Fri Aug 26 11:50:19 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3605
3606         * configure: Ignore --without, as ../configure does.
3607
3608 Wed Aug 24 01:17:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3609
3610         * lex.l: Change rule for decimal numbers to allow identifiers
3611         to start with an underscore (_).
3612
3613 Fri Aug 19 16:38:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3614
3615         * tasking.c (build_receive_signal_case_label):  Remove backwards
3616         chill_convert_for_assignment (which converted whatever garbage
3617         was in the *target* to the type of the signal argument!).
3618
3619 Fri Aug 19 07:10:43 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3620
3621         * inout.c (build_chill_io_list_type, build_enum_tables),
3622         tasking.c (build_tasking_struct): Temporarily reset
3623         maximum_field_alignment to 0, so that the compiler-built
3624         data structures needed by the RTS can be independent of -fpack.
3625
3626 Thu Aug 18 13:39:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3627
3628         * typeck.c (build_init_struct):  Temporarily reset
3629         maximum_field_alignment to 0, so that the compiler-built
3630         data structures needed by the RTS can be independent of -fpack.
3631
3632 Wed Aug 17 23:48:33 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3633
3634         * parse.c (parse_primval, expect, parse_on_exception_list):
3635         Print error message only in pass 2.
3636
3637 Wed Aug 17 13:47:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3638
3639         * decl.c (switch_to_pass_2):  Revert June 13 change,
3640         (Don't exit after pass 1 if an error was found.)
3641
3642         * ch-tree.def (SLICE_EXPR):  New tree-code.
3643         * typeck.c (build_chill_slice):  For building a slice of a
3644         bit-string, just generate a SLICE_EXPR.
3645         * decl.c (init_decl_processing):  Declare __pscpy.
3646         * actions.c (chill_expand_assignment):  Handle a SLICE_EXPR
3647         on the LHS of assignment, by calling __pscpy.
3648         * expr.c (chill_expand_expr):  Handle SLICE_EXPR (as a RHS
3649         value) by using __psslice to copy slice to a temp.
3650
3651 Wed Aug 17 05:52:44 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3652
3653         * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3654         * expr.c (build_chill_length): Enable LENGTH built-in to process
3655         Buffers and Events too (Z.200/1992).
3656         * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3657         a linux system the previous version was not able to run.
3658         * tasking.c: Correct processing of infinite buffer- and event-length
3659         to avoid RANGEFAIL warning.
3660
3661 Thu Aug 11 11:46:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3662
3663         * parse.c (parse_if_expression_body):  Don't call the C-specific
3664         build_conditional_expr.  Just do build_nt (COND_EXPR, ...).
3665         * convert.c (convert):  Convert a COND_EXPR by converting
3666         each branch.
3667
3668         * convert.c (convert):  Don't call convert before
3669         convert_to_reference.  It's apt to do weird and unneedful things.
3670         * convert.c (convert):  If the expression is varying, just call
3671         varying_to_slice, which simplifies quite a bit.
3672
3673         * ch-tree.h (varying_to_slice):  Add prototype.
3674         * typeck.c (varying_to_slice):  Remove prototype.
3675
3676         * satisfy.c (satisfy):  Move case PAREN_EXPR from type 'e'
3677         to type '1'.
3678
3679         * except.c (emit_setup_handler):  Temporarily reset the
3680         maximum_field_alignment to zero so the compiler's exception
3681         data structures can be compatible with the run-time system,
3682         even when we're compiling with -fpack.
3683
3684         * expr.c (compare_records):  Call saved_if_needed on operands.
3685
3686         * expr.c (build_set_expr case NE_EXPR):  Don't use __nepowerset
3687         which has been reimplemented to just call __eqpowerset and
3688         invert the result.  Inline this new implementation by
3689         handling as EQ_EXPR, and inverting the result.
3690         * decl.c (init_decl_processing):  Don't define unused __eqpowerset.
3691
3692         * typeck.c (valid_array_index_p):  The TRUTH_ANDIF_EXPR has
3693         type boolean_type_node, not void_type_node.  (Fixing this
3694         avoids a crash in the back-end.)
3695
3696         * grant.c (decode_constant):  In a CALL_EXPR, if the argument
3697         list is not a TREE_LIST (as in string repetiation), don't
3698         emit parentheses.
3699
3700 Wed Aug 10 13:13:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3701
3702         * decl.c (proclaim_decl):  Use CH_DECL_ENUM to check that a
3703         CONST_DECL is from a SET definition.  (This is safer than
3704         checking that the type is ENUMERAL_TYPE, because synonym
3705         definitions may have a NULL TREE_TYPE.)
3706         Also, if we have duplicate enums whose types are identical,
3707         this is an error.
3708         * decl.c (proclaim_decl, pushdecllist, push_scope_decls):  Add
3709         an extra 'quiet' parameter, which is true if we're called from
3710         bind_sub_modules.  (In that case an error message about duplicated
3711         decls would be repeated later, so suppress it.)
3712
3713         * parse.c (stmt_count):  Removed, not used.
3714         (INIT_ACTION):  Call emit_line_note only if !ignoring.
3715         (parse_begin_end_block):  Do INIT_ACTION even if ignoring.
3716
3717 Fri Aug  5 12:39:11 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3718
3719         * parse.c (parse_untyped_expr):  Add missing semi-colon.
3720
3721 Thu Aug  4 17:40:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3722
3723         * parse.c (parse_untyped_expr):  Fix various problem for the
3724         case that we see a '(':  Add missing 'case' keyword.
3725         Only recurse if '(' is followed by 'if', 'case' or '[',
3726         and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3727
3728         * parse.c (parse_send_action):  Remove extra nreverse.
3729
3730 Thu Jul 28 04:00:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3731
3732         * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3733         Add new checks.
3734
3735 Tue Jul 26 22:48:15 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
3736
3737         * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3738         Added a missing call to `require' as well.
3739
3740 Tue Jul 19 10:30:12 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3741
3742         * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3743         the extern declaration in the flex skeleton.
3744
3745 Mon Jul 18 23:06:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3746
3747         * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3748         Check the type of the instance expr using CH_COMPATIBLE,
3749         and not just == instance_type_node.  (This allows
3750         the expression to have mode READ INSTANCE).
3751         * tasking.c (build_instance_type):  Give instance_type_node
3752         a non-null novelty (i.e. different from a struct).
3753         * tasking.c (build_receive_case_start, build_delay_case_start):
3754         Check that for a location using CH_LOCATION_P.
3755
3756 Mon Jul 18 13:22:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3757
3758         * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3759         to modify a tree code.
3760
3761 Mon Jul 18 11:24:57 1994  Bill Cox  (bill@rtl.cygnus.com)
3762
3763         * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3764           comparison.
3765
3766 Mon Jul 18 05:40:15 1994  Doug Evans  (dje@canuck.cygnus.com)
3767
3768         * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3769
3770 Thu Jul 14 18:37:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3771
3772         * parse.c (parse_send_action):  Do tree_cons *before* checking
3773         for end of loop.
3774
3775 Mon Jul 11 15:33:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3776
3777         * convert.c (digest_structure_tuple):  Don't use convert to
3778         coerce initial value,  use chill_convert_for_assignment instead.
3779         (Thus we also get range_checking.)
3780
3781         * expr.c (build_chill_card):  Use force_addr_of instead of
3782         build_chill_addr_expr.
3783
3784         * loop.c (build_temporary_variable):  Stylistic tweak.
3785         * loop.c (maybe_make_for_temp):  Initialize temp using
3786         explicitly, not using assignment.  Avoids a problem if
3787         the expression is read-only.
3788         * typeck.c (smash_dummy_type):  Always used the saved TYPE_NAME
3789         and CH_NOVELTY_FLAG.
3790
3791 Wed Jul  6 20:12:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3792
3793         * expr.c, ch-tree.h (finish_chill_unary_op):  New function,
3794         based on code ripped out of build_chill_unary_op.
3795         (build_chill_unary_op):  Call finish_chill_unary_op unless pass==1.
3796         * satisfy.c (satisfy):   Call finish_chill_unary_op when needed.
3797
3798 Mon Jun 27 11:29:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3799
3800         * tree.c (save_if_needed), ch-tree.h:  New function.
3801         * typeck.c (build_chill_slice_with_range,
3802         build_chill_slice_with_length):  Call save_if_neeed on array arg.
3803         * expr.c (varying_to_slice):  Re-write to use save_if_needed.
3804
3805         * typeck.c (extract_constant_from_buffer):  Handle BOOLEAN_TYPE.
3806
3807 Mon Jun 27 01:11:10 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3808
3809         * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3810         that it is always the same, regardless if compiled with -fpack
3811         or not.
3812
3813 Tue Jun 14 16:44:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3814
3815         * lex.l (yywrap):  Kludge to work around mis-synchronization
3816         between lexer (which read ahead) and parser:  Don't emit
3817         (left-over) uze_seizefile directives at the end of file.
3818
3819         * typeck.c (build_chill_array_ref):  Allow the derived
3820         array indexing syntax for arrays of bit strings.
3821         Add a comment explaining why.
3822
3823         * typeck.c, ch-tree.h (string_assignment_condition):  Change
3824         the interface.  Return a boolean expression (which can be
3825         used in a conditional at run-time);  never expand anything.
3826
3827         * actions.c (chill_convert_for_assignment):  Check
3828         string_assignment_condition here, rather than in callers.
3829         * actions.c (chill_expand_assignment):  Don't need to check
3830         string_assignment_condition here.
3831         * expr.c (build_chill_function_call):  Likewise.
3832         * satisfy.c (safe_satisfy_decl):  Update accordingly.
3833         * decl.c (do_decl):  Simplify testing and conversion by
3834         deferring everything to chill_convert_for_assignment.
3835
3836         * parse.c:  Combine the two variables 'ignore_exprs' and
3837         'ignore_actions' into one variable called 'ignoring'.
3838         * ch-tree.h:  Add 'extern int ignoring'.
3839         * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3840         Rename ignore_actions and ignore_exprs to ignoring.
3841         Remove unneeded extern declarations.
3842         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3843         build_chill_arrow_expr, build_generalized_call, build_delay_action,
3844         build_buffer_type, build_event_type):  I changed my mind.  It is
3845         cleaner to check for 'ignoring' in the parser, rather than here.
3846         * parse.c (parse_action, parse_primval, parse_opt_mode):
3847         Therefore we must check for ignoring here.
3848         * parse.c (parse_loc_declaration):  Set ignoring in pass 2
3849         when parsing the mode.
3850
3851         * tasking.c (generate_tasking_code_variable):  Do arithmetic
3852         on signal_code etc using unsigned rather than signed shorts.
3853
3854         * grant.c (static char* current_grant_modename):  Removed.
3855         * grant.c (decode_decl case CONST_DECL):  Remove error message.
3856
3857         * Make-lang.in (CHILL_SRCS):  Add $(srcdir)/ch/parse.c.
3858         * Makefile.in:  Fix dependencies for parse.o.
3859         Remove some duplicate dependencies for $(TREE_H).
3860
3861 Mon Jun 13 14:25:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3862
3863         * typeck.c (build_chill_cast):  Allow a value cast between
3864         non-discrete object of the same size, but with a pedwarn.
3865         * typeck.c (bit_string_assignment_condition,
3866         char_string_assignment_condition):  Merge near-duplicate functions
3867         and place the code in string_assignment_condition.
3868
3869         * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3870         Removed.  Not used.
3871         * decl.c (start_chill_function, finish_chill_function):  Make
3872         parameter level have same nesting level as body, as required by Z200.
3873         * decl.c (switch_to_pass_2):  Always exit if an error has been found.
3874         * decl.c (pop_module):  Copy DECL_SEIZEFILE to a new ALIAS_DECL
3875         generated from GRANT ALL.
3876         * decl.c (lookup_name_for_seizing):  Don't seize from
3877         the nesting level of builtins (predefined objects).
3878         * decl.c (lookup_name_for_seizing):  Make more robust on error.
3879
3880         * decl.c (start_chill_function):  MAKE DECL_NAME (chill_result_decl)
3881         be 'RESULT' (or 'result').  This makes it more accessible from gdb.
3882         Also, use do_decl to declare it, so that debugging symbols are
3883         generated.  And, re-arrange so that actions that need to
3884         be done both passes (such as push_levels) use the same code.
3885
3886         * parse.c (get_type_of):  If ignore_exprs, don't lookup name.
3887         * parse.c (end_function):  Fix poplevel params.
3888         * parse.c (expect):  Don't read forwards on an error.
3889         * parse.c (parse_field):  Don't define two tag_list locals!
3890         * parse.c (parse_pass_1_2):  Better error message.
3891
3892         * parse.c (parse_mode, parse_opt_mode):  Have parse_mode call
3893         parse_opt_mode, rather than vice versa.  If parse_opt_mode
3894         returns NULL_EXPR, then parse_mode gives an error.
3895         Change parse_opt_mode (and any functions it calls) to only
3896         return NULL_TREE if there is no mode (even on ignore_exprs).
3897         (parse_set_mode, parse_structure_mode, parse_procedure_mode):
3898         Never return NULL_EXPR.
3899         * tasking.c (build_buffer_type, build_event_type):  Return
3900         void_type_node instead of NULL_EXPR if ignore_exprs is true.
3901
3902         * parse.c (parse_synonym_definition):  Call parse_untyped_expr
3903         only if we have a mode.
3904         * parse.c (parse_send_action):  Parse list of untyped_expr's,
3905         rather than a list of (typed) expressions.
3906         * parse.c (parse_primval):  Emit error if '[' seen without
3907         preceding mode name.  (If this is to be allowed, call
3908         parse_untyped_expr instead.)
3909
3910         * parse.c (parse_array_index):  Renamed to ...
3911         (parse_index_mode):  ... to match Z200 terminology.
3912         Re-write to resolve some of the nastier ambiguities,
3913         and allow things like ' CHAR(10) : CHAR(20) '.
3914
3915         * parse.c (parse_tuple_element):  Change interface to return
3916         reversed list, so don't call nreverse.
3917         * parse.c (parse_tuple):  No longer nreverse element list here.
3918         * parse.c (parse_opt_element_list):  Do nreverse here instead.
3919         * parse.c (parse_case_label_list):  Call nreverse at end.
3920
3921 Fri Jun 10 15:36:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3922
3923         * typeck.c (chill_similar):  Remove bogus "else".
3924
3925 Wed Jun  8 00:01:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3926
3927         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  New macro (and comment)
3928         to make it clearer that we are using TYPE_MAX_VALUE in a special way.
3929         * typeck.c (build_chill_slice):  Use TYPE_ARRAY_MAX_SIZE.
3930         * expr.c (chill_expand_expr case CONCAT_EXPR):  Likewise.
3931         * convert.c (convert):  When converting a fixed string/array
3932         to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
3933         of (the type of) the padding.
3934         * convert.c (convert): If the concatenation is non-constant, use
3935         the low-level 'build' to set the type of the result (which is usually
3936         a fixed-size array) rather than depend on build_chill_binary_op
3937         to figure it out (it's unable to simplify the size to a constant).
3938
3939 Mon Jun  6 18:16:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3940
3941         * lang.c (lang_decode_option):  Let -fspecial_UC imply
3942         -fno-ignore-case without requiring it explicitly.
3943         * lang.c (lang_decode_option):  Support (experimentally)
3944         the -fpack and -fno-pack flags.
3945
3946 Thu Jun  2 20:49:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
3947
3948         * configure: Add support for --program-prefix and --program-suffix.
3949
3950 Tue May 31 18:12:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3951
3952         * convert.c (digest_constructor):  Check that initial value
3953         is compatible with element mode before calling convert.
3954         * typeck.c (chill_compatible):  A string mode is not compatible
3955         with an untyped constructor.
3956         * decl.c (do_decl):  Clean up error messages.  Use error_with_decl.
3957
3958         * ch-tree.h:  Fix inconsistencies: bool_true_node ->
3959         boolean_true_node, and bool_false_node -> boolean_false_node.
3960         * typeck.c (valid_array_index_):  Minor simplification.
3961
3962 Tue May 31 04:33:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3963
3964         * inout.c (build_chill_writetext): Add correct processing
3965         of POWERSET RANGE (setmode).
3966
3967         * lex.l (same_file): Add searching for file(s) in
3968         seize_path_list.
3969
3970 Fri May 27 14:22:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3971
3972         * Make-lang.c (CHILL.mostlyclean, CHILL.distdir):  Don't list
3973         yacc/bison output files, since the grammer is no longer in yacc.
3974         * config-lang.in (diff_excludes):  Likewise.
3975
3976 Thu May 26 16:38:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3977
3978         * gperf, hash.h, lex.l, parse.h:  Rename PROCESS_TYPE token
3979         (in some files spelled PROCESS_TYPE_ to avoid clashes
3980         with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
3981
3982 Thu May 26 02:18:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3983
3984         * timing.c (build_cycle_start): Change call to __define_timeout.
3985         * decl.c (init_decl_processing): Change definitions of
3986         __define_timeout and __wait_timeout.
3987
3988 Wed May 25 11:53:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3989
3990         Replace yacc-based parser with a recursive-decent parser.
3991         (This may seem backwards, but Chill [like C++] is not a
3992         language that is remotely LALR(1).  Using a R-D parser
3993         allows us to use look-ahead and to back-up to resolve the
3994         difficult ambiguities.)
3995         * parse.y:  Removed.
3996         * parse.c, parse.h:  New files, containing new r-d parser.
3997         * Makefile.in:  Update accordingly.
3998         * actions.c (chill_convert_for_assignment):  Don't return
3999         NULL_EXPR if ignore_exprs is true.  It simplifies the parser
4000         if we consistently reserve NULL_EXPR for a missing expression.
4001         * expr.c (build_chill_function_call):  Likewise.
4002
4003         * lex.l:  Tweaks for new parser.
4004         * lex.l (prepare_paren_colon, paren_paren_colon_level,
4005         paren_level):  Ugly hack no longer needed.
4006
4007         * expr.c (build_chill_function_call):  Cleanup.
4008         Call chill_convert_for_assignment to convert IN/INOUT
4009         paramaters on both input and output.  For LOC parameters,
4010         give error if actual is a non-referable location.
4011         * actions.c (convert_for_assignment):  Add new parameter (a
4012         "place" string used in error messages).
4013         * actions.c (adjust_parm_or_field):  Removed.
4014         * actions.c (chill_expand_assignment):  Take just a single LHS,
4015         and move support for multiple assignments to ...
4016         (expand_assignment_action): ... here.  Some cleaning up.
4017         * timing.c (build_cycle_start):  Adjust accordingly.
4018         * actions.c (expand_assignment_to_varying_array):  Likewise.
4019         * tasking.c (many places): Ditto.
4020         * ch-tree.h:  Fix declarations appropriately.
4021
4022         * parse.c (parse_defining_occurrence_list):  Return a single
4023         IDENTIFIER_NODE (instead of a singleton list) in the common
4024         case.  Minor complication to save a minor amount of space.
4025         * decl.c (do_based_decls):  Move guts of code into ...
4026         (do_based_decl):  ... this new function.
4027         * decl.c (do_decls):  Handle either IDENTIFIER_NODE or a TREE_LIST.
4028         * decl.c (push_syndecl):  Replace by ...
4029         (push_syndecl):  ... (which only supports a single name).
4030         (push_modedef):  Only handle a single name.
4031         * tasking.c (build_process_header, build_signal_struct_type):
4032         Adjust accordingly.
4033
4034         * expr.c (build_generalized_call):  Handle string repetition.
4035         * expr.c (build_chill_repetition_op):  Change interface.
4036         * grant.c (decode_constant):  Allow parameter list to be
4037         a non-TREE_LIST.  (Used for string repetition.)
4038
4039 Wed May 25 11:28:48 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4040
4041         * lex.l (make_identifier):  Replaced by ...
4042         (read_identifier, handle_name): ... new functions.
4043         * lex.l: Parse an identifiers using read_identifier using
4044         read_identifier and handle_name, rather than having [f]lex
4045         do it.  (One reason is that lex uses a fixed-size buffer.)
4046
4047         * lex.l (read_directive, skip_directive):  New functions.
4048         Use them to parse compiler-directives, instead of rather
4049         ugly and useless use of lexer start conditions.
4050
4051 Tue May 24 22:36:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4052
4053         * decl.c (unnamed_module_number):  Renamed to ...
4054         (module_number):  .. and make non-static.
4055         (push_module):  Always increment module_number.
4056         * lex.l (yywrap):  Print warning if no modules seen.
4057
4058         * decl.c (pop_module):  Don't set DECL_SEIZEFILE of granted
4059         decl to current_seizefile_name (which is unreliable).
4060         * grant.c (chill_grant):  Set it here instead.
4061
4062         * expr.c (fold_set_expr):  Use int_size_in_bytes instead of
4063         TYPE_PRECISION (which is not defined for a SET_TYPE).
4064
4065 Fri May 20 15:21:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4066
4067         Cleanup to remove need for variables in common storage.
4068         * decl.c:  Remove unused use of current_obstack.
4069         * actions.c (maybe_chill_check_decl):  Remove unused function.
4070         * actions.h, lang.c:  Remove uses of doing_chill_thang.
4071         * ch-tree.h (void_list_node):  Make extern (rather than common).
4072         * decl.c (void_list_node):  Add definition.
4073
4074 Thu May 19 06:54:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4075
4076         * configure (build): Build canon_host and canon_target
4077         to pass it to all subsequently generated Makefiles (needed
4078         for testsuite/execute in case of cross build).
4079
4080 Wed May 18 13:27:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4081
4082         * grant.c (decode_mode):  Remove.  It checks the TYPE_NAME of
4083         the input type, which loses with the no-longer-new 2-pass
4084         implementation, since the input "type" could be an IDENTIFIER_NODE.
4085         * grant.c (raw_decode_mode):  Rename to decode_mode.
4086
4087 Tue May 17 13:19:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4088
4089         * typeck.c (chill_location):  Neither a STRING_CST nor a
4090         CONSTRUCTOR is a location.
4091         * typeck.c (chill_root_mode):  Convert a function to a
4092         pointer-to-function.
4093         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
4094         build_chill_arrow_expr):  If ignore_exprs, return operand
4095         rather than NULL_EXPR.  This makes it easier for the parser to
4096         distinguish missing expressions.
4097         * expr.c (build_max_min):  Convert the lower bound of a
4098         set to a long before calling run-time routine.
4099         * expr.c (build_chill_pred_or_succ):  Use discrete_type_p
4100         to check the argument type.
4101         * expr.c (build_chill_arrow_expr):  If argument is not a location,
4102         do a predwarn if it is a STRING_CST or has function type.
4103
4104 Tue May 17 06:05:13 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4105
4106         * configure (build): Remove building of canon_host and canon_target.
4107         It doesn't work in any case.
4108
4109 Mon May 16 02:10:35 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4110
4111         * configure (build): Build canon_host and canon_target
4112         to pass it to all subsequently generated Makefiles (needed
4113         for testsuite/execute in case of cross build).
4114         * Make-lang.in (chill-runtime): Change chill to CHILL in the case
4115         statement to build chill-runtime automatically.
4116
4117 Mon May  9 15:30:08 1994  Doug Evans  (dje@canuck.cygnus.com)
4118
4119         * Makefile.in (FLAGS_TO_PASS): Define.
4120         (OBJDEPS): Define.
4121         (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
4122         * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
4123         (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
4124
4125 Sun May  8 13:05:00 1994  Per Bothner  (bothner@cygnus.com)
4126
4127         * Make-lang.in (cc1chill):  Should not depend on libgcc.a.
4128
4129 Thu May  5 18:58:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4130
4131         * decl.c (copy_lang_decl):  New (dummy) function.
4132
4133 Mon May  2 14:33:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4134
4135         * parse.y (sendaction):   Fix thinko (in sense of condition).
4136         * tasking.c (build_receive_case_label):  Another thinko.
4137
4138         * parse.y (optsigdest):  Force ignore_exprs to 0 while parsing
4139         the (signal-)name.
4140
4141         * decl.c (build_chill_function_type):  Don't call layout_type
4142         (since that may prevent parameter or result types being
4143         properly satisfied).
4144         * satisfy.c (satisfy):  Layout FUNCTION_TYPEs.
4145         * parse.y (procmode):  Call build_chill_pointer_type, rather
4146         than build_pointer_type (which incorrectly sets TYPE_SIZE).
4147
4148         * parse.y (get_type_of):  Handle TYPE_DECL (again).
4149         * parse.y (optresultspec):  Call build_chill_reference_type, rather
4150         than build_reference_type (which incorrectly sets TYPE_SIZE).
4151         * parse.y (range_or_mode):  Rename to plain range, since it
4152         no longer matches modename.
4153         * actions.c (chill_handle_case_label_range):  New function, with
4154         functionality moved out of chill_handle_case_label.
4155         * actions.c (chill_handle_case_label):  Handle here the case that
4156         the label_value is a TYPE_DECL (modename).   Also clean up some.
4157         * typeck.c (build_chill_slice_with_length):  Convert max_index
4158         to the type of min_value.  (Old code broke on varying strings.)
4159
4160 Sun May  1 13:53:36 1994  Doug Evans  (dje@canuck.cygnus.com)
4161
4162         * Makefile.in (BC_OBJS): Delete all references
4163         (OBJS): Cat ../stamp-objlist to get language independent files.
4164         (../cc1chill): Delete dependency on $(OBJS).
4165         * Make-lang.in (cc1chill): Depend on stamp-objlist.
4166
4167 Sat Apr 30 14:50:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4168
4169         * lex.h, lex.c:  Remove lastiddecl.
4170         * lex.l (name_type_signal):  Simplify.  We no longer check for
4171         TYPENAME or SIGNALNAME (which was unreliable with two passes).
4172         Also rename to make_identifier.
4173         * parse.y:  Cleaned up grammar to not need SIGNALNAME or TYPENAME.
4174         * Makefile.in (stamp-parse);  One conflict fewer!
4175         * parse.y (rccase_label_flag):  Moved to tasking.c.
4176         * parse.y (rccase_label):  Move most of the logic to
4177         build_receive_case_label in tasking.c.
4178         * parse.y (sendaction):  Re-write to not depend on SIGNALNAME.
4179
4180         * parse.y (name):  Do name lookup here (and not in location).
4181         * parse.y:  Replace most uses of NAME by higher-level non-terminals:
4182         simple_name_string, name_string, defining_occurrence, or name.
4183
4184         * tasking.c (build_receive_signal_case_label,
4185         build_receive_buffer_case_label):  New functions, split out from
4186         build_receive_case_label.
4187         * tasking.c (build_receive_case_label):  Change parameters
4188         and return type.  Moved stuff here (from the parser).
4189         * tasking.c (struct rc_state_type):  Removed had_errors.
4190         Return error_mark_node instead.
4191         * tasking.c (build_rccase_set_error), ch-tree.h:  Removed.
4192
4193         * expr.c (build_generalized_call):  If func is a signal type,
4194         call build_signal_descriptor.
4195
4196         * parse.y (arrayindex):  Renamed to index_mode, to match Z.200.
4197         * parse.y (ioindexmode):  Removed;  use index_mode instead.
4198         * expr.c (build_generalized_call):  If args is a RANGE_EXPR,
4199         we have either a slice or a range mode, depending on func.
4200         * parse.y (index_mode):  If we got an 'expr', only allow a name,
4201         or a range mode.
4202         * parse.y (call):  A slice with both end points can be a range
4203         mode, so defer handling to build_generalized_call (or index_mode).
4204
4205         * typeck.c (build_chill_slice_with_length):  Fix type-checking.
4206         * typeck.c (chill_novelty):  Undo (part of) change of April 28:
4207         The novelty of a range mode is the novlety of the parent.
4208         * typeck.c (chill_root_mode):  Don't return integer_type_node
4209         if argument has non-nil novelty.
4210
4211         * decl.c (global_bindings_p):  Return -1 as true, for the sake
4212         of variable_size (in ../stor-layout.c).
4213
4214 Fri Apr 29 13:42:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4215
4216         * parse.y:  Remove TYPENAME and modename.  These are now plain
4217         NAMEs.  Modify parsing actions appropriately.
4218         * expr.c (build_generalized_call):  Handle the case that
4219         TREE_CODE (func) == TYPE_DECL (as in a cast).
4220         * lex.l (name_type_signal):  Never return TYPENAME.
4221         * parse.y (get_type_of):  If pass 1, just return the argument.
4222
4223         * decl.c (do_decl):  If an initializer has the wrong type,
4224         replace it by NULL_TREE, to avoid subsequent errors.
4225
4226 Thu Apr 28 15:21:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4227
4228         * Makefile.in: Add new file timing.c to rules.
4229         * timing.c: New file. Implements the timing actions AT,
4230           CYCLE and AFTER.
4231         * decl.c (init_decl_processing): Add new builtin function
4232           descriptions.
4233         * expr.c (build_chill_indirect_ref): Change error message and
4234           add check agains an IDENTIFIER_NODE.
4235         * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
4236           They are no longer needed.
4237         * grant.c (print_integer_type): Add processing of builtin types
4238           DURATION and TIME.
4239         * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
4240         * parse.y (timingactions): split up to afteraction, ataction
4241           and cycleaction.
4242         * parse.y (afteraction): New rule.
4243         * parse.y (ataction): New rule and put actions in.
4244         * parse.y (cycleaction): New rule and put actions in.
4245         * parse.y (sendaction): Add code for SEND buffer.
4246         * parse.y (rccase_label): Change error processing.
4247         * tasking.c (build_gen_inst): More checks.
4248         * tasking.c (build_gen_code): Add checking for argument is a
4249           PROCESS or a SIGNAL.
4250         * tasking.c (struct rc_state_type): Add new fields for easier
4251           error processing.
4252         * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
4253         * tasking.c (build_rccase_set_error), ch-tree.h: New function.
4254         * tasking.c (build_receive_case_label): Add processing of BUFFER's.
4255         * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
4256           New functions to process the end of a RECEIVE CASE action in case
4257           of BUFFER's and SIGNAL's.
4258         * tasking.c (build_receive_case_end): Do only general processing and
4259           call one of the above mentioned functions.
4260         * tasking.c (build_delay_case_start, build_delay_case_label,
4261           build_delay_case_end): Rewritten due to new implementation of events.
4262         * tasking.c (build_delay_action): Rewritten due to new implementation
4263           of EVENT's.
4264         * tasking.c (expand_send_buffer), ch-tree.h: New function.
4265         * timing.c (build_at_action, build_cycle_start, build_cycle_end),
4266           ch-tree: New functions.
4267
4268 Thu Apr 28 14:11:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4269
4270         * typeck.c (smash_dummy_type):  Handle the special case of a
4271         NEWMODE of a range mode, as required by Z200, by creating a
4272         new parent mode with the new novelty (and casting the min
4273         and max of the range to teh new parent mode).
4274         * typeck.c (chill_novelty, chill_root_mode):  Remove special
4275         kludges for of NEWMODE ranges.
4276         * expr.c (build_chill_lower_or_upper):  New function, combining
4277         the "guts" of build_chill_lower and build_chill_upper.
4278         * expr.c (build_chill_lower_or_upper):  Simplify;  no longer
4279         need to kludge the novelties.
4280
4281         * typeck.c (valid_array_index_p):  A string index expression
4282         need not be Compatible with the index type;  only similar.
4283
4284         * decl.c (layout_chill_variants):  If error seen, skip stuff
4285         (rather than aborting or crashing).
4286         * decl (push_modedef):  If newdecl's type is an error mark,
4287         continue rather than aborting.
4288
4289 Thu Apr 28 02:07:42 1994  Doug Evans  (dje@cygnus.com)
4290
4291         * Make-lang.in: Update of directory reorg from fsf.
4292         * config-lang.in: Ditto.
4293
4294 Mon Apr 25 13:09:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4295
4296         * typeck.c (chill_similar):  Check RECORD_TYPEs properly,
4297         * convert.c (convert):  If all else fails, just call convert1.
4298         Thus we can now convert RECORD_TYPEs (assuming they are similar).
4299
4300         * parse.y, lex.l:  Remove BUFFERNAME (use location/expr instead).
4301         * parse.y:  Re-do BUFFER handling (similar to previous EVENT change).
4302         * grant.c (raw_decode_mode):  Re-do BUFFER mode handling.
4303         * ch-tree (lang_type_record):  Removed max_queue_size field.
4304         * tasking.c (build_buffer_type):  Re-write.
4305         * tasking.c (max_queue_size):  Fix to support buffer modes.
4306         * tasking.c (buffer_element_mode), ch-tree.h:  New function.
4307         * tasking.c ch-tree.h (expand_send_buffer):  Now has 3 parameters.
4308         * parse.y (modename):  No longer match SIGNALNAME.  Instead, add it
4309         to name and simple_name_string.  This removes a reduce/reduce conflict.
4310         * Makefile.in (stamp-parse):  Expect fewer conlicts.
4311
4312         * lex.l (yywrap):  Move check for circularly seizeing current
4313         grant-file from here ...
4314         * lex.l (handle_use_seizefile_directive):  ... to here.
4315         This is to avoid calling stat on a not-yet written grantfile,
4316         now that we're using same_file (which calls stat).
4317         * grant.c (set_use_this_gf):  Removed.
4318         * grant.c (set_default_grant_file):  Set grant_file_name here,
4319         because we need it earlier (due to above lexer change).
4320
4321         * typeck.c (layout_chill_struct_type):  Remove useless code to
4322         remove zero-width bitfield (which messes up CONST_DECLs).
4323
4324 Sat Apr 23 13:16:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4325
4326         * Makefile.in (check): Assure that 'ld' is available before checking.
4327
4328 Thu Apr 21 13:23:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4329
4330         * grant.c (print_an_int):  Removed.
4331         (raw_decode_mode):  Generalized to use decode_constant
4332         instead of print_an_int.
4333         (decode_constant):  Print directly, instead of calling print_an_int.
4334         * parse.y (event_list):  Fix syntax.
4335         * parse.y (optqueuesize):  Default is NULL_TREE, not zero.
4336         * tasking.c (check_queue_size):  New function, for error checking.
4337         * ch-tree.h:  Add declaration for check_queue_size.
4338         * satisfy.c (satisfy case RECORD_TYPE):  Satisfy constant fields
4339         (used for queue size of EVENT and BUFFER), and call check_queue_size.
4340
4341 Tue Apr 19 13:42:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4342
4343         Re-implement EVENT modes to support general EVENT objects
4344         (and not just EVENT names), according to Z200.  (Not finished!)
4345         * tasking.c, ch-tree.h (max_queue_size):  New function.
4346         * parse.y (dcalternative, event_list, event_list_head):  New
4347         implementation of DELAY CASE, avoiding parsing ambiguities.
4348         (call, locdec, delayaction):  Remove old EVENTNAME kludges.
4349         * lex.l (name_type_signal):  Remove EVENTNAME recognition.
4350         * tasking.c (build_event_type):  Re-written.
4351         * typeck.c (chill_similar), decl.c (print_lang_type):
4352         Use new max_queue_size function.
4353         * typeck.c (layout_chill_struct_size):  Ignore CONST_DECL.
4354         * tasking.c (build_delay_action):  Preliminary changes - just to
4355         make it compile.  FIXME!
4356         * grant.c (raw_decode_mode):  Use new max_queue_size function.
4357         Move EVENT support from LANG_TYPE to RECORD_TYPE.
4358         * ch-tree.h (process_event_decls):  Removed.
4359
4360 Tue Apr 19 11:44:01 1994  Bill Cox  (bill@rtl.cygnus.com)
4361
4362         * regression.sh: Complete previous change - eliminate all
4363           references to objdir as a user parameter.
4364
4365 Mon Apr 18 10:17:55 1994  Bill Cox  (bill@cygnus.com)
4366
4367         * Makefile.in (check): Simplified regression.sh call.
4368         * regression.sh: Change command-line parsing.  Default
4369           srcdir to the script's path.  Calculate objdir
4370           internally - don't pass it in.
4371
4372 Thu Apr 14 13:30:19 1994  Wilfried Moser  (moser@phishhead.cygnus.com)
4373
4374         * expr.c (build_chill_duration): Add range checking.
4375
4376         * lex.l (init_lex): Add predefined names DURATION and TIME.
4377         * lex.h (enum rid): Add RID_DURATION and RID_TIME.
4378         * ch-tree.h: Add prototypes and externals.
4379         * decl.c (init_decl_processing): Add builtin function
4380         descriptions.
4381         * expr.c (build_generalized_call): Add processing of some
4382         builtin's.
4383         * expr.c (build_chill_abstime): New function to process builtin
4384         ABSTIME.
4385         * expr.c (build_chill_inttime_type): New function to built type
4386         for the INTTIME builtin.
4387         * expr.c (build_chill_inttime): New function to process builtin
4388         INTTIME.
4389         * expr.c (build_chill_duration): New function to process builtin's
4390         MILLISECS, SECS, MINUTES, HOURS and DAYS.
4391
4392 Tue Apr 12 11:55:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4393
4394         * lex.l (chill_same_grant_file):  Rename to same_file.  Change to
4395         take two files names rather than two DECLs.  Also check that the
4396         filesystems (st_dev) are equal.  Finally, make static.
4397         * lex.l (handle_use_seizefile_directive):  Check for duplicate
4398         USE_SEIZE_FILE directives using same_file.
4399         * decl.c (pop_module):  Remove dubious call to chill_same_grant_file.
4400
4401 Sun Apr 10 17:19:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4402
4403         * decl.c, ch-tree.h (chill_result_decl):  New variable.  Used to
4404         store RESULT value.  (Cannot use DECL_RESULT;  see comment in decl.c.)
4405         * actions.c (chill_expand_result, chill_expand_return):
4406         Use chill_result_decl appropriately.
4407         * ch-tree.h, decl.c, actions.c (saved_result_rtx):  Removed.
4408         Subsumed by chill_result_decl.
4409
4410         * expr.c (chill_expand-expr case CONCAT_EXPR):  Generate temporary
4411         using the mode of the result type, and don't assume it is BLKmode.
4412
4413 Fri Apr  8 17:46:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4414
4415         * actions.c (chill_expand_assignment):  Check for compatibility
4416         _after_ "expanding out" a binary operation.  This fixes
4417         the case "STRING //:= CHAR".
4418
4419         * lex.l (equal_number):  Convert symbol to integer_type_node, to
4420         force the value to be INT-derived (and avoid novelty conflicts).
4421
4422 Mon Apr  4 22:06:31 1994  Per Bothner  (bothner@cygnus.com)
4423
4424         * ch-tree.h (CH_FUNCTION_SETS_RESULT):  New flag.
4425         * ch-actions.c (chill_expand_return), ch-tree.h:  Extra
4426         parameter, indicates if implicit return at end of function.
4427         * ch-parse.y:  Modify accordingly.
4428         * ch-actions.c (chill_expand_return):  Various improvements.
4429
4430         * decl.c, ch-tree.h (result_never_set):  New variable.
4431         * actions.c (chill_expand_result, chill_expand_return):  Clear it.
4432         * ch-parse.y (end_function):  Warn if no RETURN or RESULT action.
4433
4434         * decl.c, ch-tree.h (saved_result_rtx):  New variable.
4435         * decl.c (start_chill_function):  Use saved_result_rtx as return
4436         value if there is a RESULT in a REG that might get clobbered.
4437         * actions.c (chill_expand_result):  Save result in saved_result_rtx
4438         or assign to DECL_RESULT as appropriate.
4439         * decl.c, ch-tree.h (current_function_returns_value,
4440         current_function_returns_null, current_extern_inline):
4441         Don't use.  Only define first two to allow linking with ch-typeck.c.
4442
4443         * typeck.c (chill_l_equivalent):  Add forward declaration.
4444
4445 Fri Apr  1 11:02:27 1994  Wilfried Moser  (fs_moser at rcsw47)
4446
4447         * lex.l (readstring): Handle control sequence in all cases (Z.200
4448         5.2.4.4 page 54).
4449
4450 Fri Apr  1 13:11:27 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4451
4452         * configure:  Simplify and fix the logic for looping through
4453         sub-directories.
4454
4455 Thu Mar 31 18:59:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4456
4457         * ch-tree.h (CH_L_EQUIVALENT):  Moved from typeck.c.
4458         * typeck.c (chill_similar):  Add support for checking
4459         FUNCTION_TYPEs for similarity.  Also, treat
4460         pointer-to-function-type the same as function-type.
4461
4462 Thu Mar 31 11:22:56 1994  Wilfried Moser  (fs_moser at rcsw47)
4463
4464         * ch-tree.h: Change prototype of function expand_send_signal.
4465         * parse.y: Change calls to expand_send_signal.
4466         * tasking.c (expand_send_signal): Change handling of optsetto
4467         argument. New argument signame to get a possible destination
4468         process for the signal.
4469
4470 Wed Mar 30 14:54:48 1994  Wilfried Moser  (fs_moser at rcsw1j)
4471
4472         * tasking.c (make_process_struct): Change error message in case of
4473         a process argument has other attribute then IN or LOC.
4474         * tasking.c (build_start_process): Add check that the optset is
4475         referable in case it is specified (this makes
4476         noncompile/start_.ch working).
4477
4478 Tue Mar 29 13:24:27 1994  Wilfried Moser  (fs_moser at rcsw1h)
4479
4480         * Makefile.in: Change version string to 1.2.1
4481         * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4482           entries.
4483         * ch-tree.h: Change prototype for build_chill_readtext.
4484         * decl.c (init_decl_processing): Add builtin_function _readstring,
4485           _readunixstd and READTEXT.
4486         * expr.c (build_generalized_call): Add processing of READTEXT.
4487           Delete handling of no longer valid builtin_functions.
4488         * gperf: Remove keyword READTEXT.
4489         * parse.y: Remove token READTEXT.
4490         * inout.c (build_chill_io_list_type): Add building type for
4491           READTEXT.
4492         * inout.c (build_chill_readtext): Implement the function
4493           (partial).
4494         * inout.c (build_chill_writetext): Do some cleanups.
4495
4496 Tue Mar 29 12:30:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4497
4498         * typeck.c (build_chill_cast):  Re-arrange, to support casts
4499         of const integer to type of different size, if there is
4500         an integral type of the desired size:  Go through the
4501         const conversion code.
4502
4503         * actions.c (adjust_parm_or_field):  Move support for LOC to ...
4504         * expr.c (build_chill_function_call): ... here.
4505         Fix a number of bugs in OUT/INOUT handling.
4506
4507         * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4508         parse.y (location), typeck.c (chill_comptypes):  Remove unused
4509         support for ENCAPSULATED_ARRAY_P.
4510         * typeck.c (build_chill_array_parm_type), ch-tree.h:  Remove; unused.
4511
4512         * ch-tree.h, decl.c (shadow_record_fields), decl.c
4513         (shadow_record_fields), expr.c (chill_expand_case_expr,
4514         build_chill_function_call), grant.c (chill_finish_compile),
4515         typeck.c (build_empty_string, build_init_struct):  Rename magic
4516         identifiers of the form "<...>" to "__..." for better portability.
4517
4518         * actions.c (adjust_parm_or_field):  Remove extraneous
4519         call to build_chill_repetition_op.
4520         * expr.c (build_chill_function_call):  Some simplifictions
4521         (since neither valtail nor typetail can be NULL).
4522         Clean up error message for OUT//INOUT not location to use only 1 line.
4523         Add error message for OUT/INOUT if type is READonly.
4524         * typeck.c (build_chill_modify_expr):  Simplify.
4525
4526 Sun Mar 27 19:30:25 1994  Bill Cox  (bill@rtl.cygnus.com)
4527
4528         * Makefile.in: Clean up generally.  Assure that
4529           runtime is built before running regressions.
4530           Build correct parameters to regression.sh.
4531           Remove a lot of 'clean' cruft.
4532         * Make-lang.in, config-lang.in: New files for
4533           subdirectory architecture.
4534
4535 Sat Mar 26 10:39:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4536
4537         * Makefile.in (check): Build correct parameters for regression.sh.
4538
4539 Fri Mar 25 10:13:06 1994  Bill Cox  (bill@rtl.cygnus.com)
4540
4541         * configure: Also mark regression.awk3 as executable.
4542         * regression.sh: Add comments about command-line options.
4543           Calculate srcdir correctly, defaulting to the script's path.
4544           Add OPT flag to pass to the Makefiles, to specify the
4545           compiler's optimization level, and -O  and -O2 options.
4546           Delete GLOBAL flag and tests.  Use a different make.log
4547           file for optimized and unoptimized test results.  Add the
4548           compiler's host and target triples to the report header.
4549
4550 Wed Mar 23 21:41:26 1994  Bill Cox  (bill@rtl.cygnus.com)
4551
4552         * expr.c (build_chill_function_call): Handle INOUT and OUT
4553           parameters better (for the rangefail test, at least).
4554
4555 Wed Mar 23 14:13:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4556
4557         * regression.sh (srcdir, objdir):  Fixed hard-wired paths.
4558         (grep args):  Changed [XYZ-] to [-XYZ] for SCO.
4559
4560 Wed Mar 23 13:34:18 1994  Bill Cox  (bill@rtl.cygnus.com)
4561
4562         * expr.c (build_generalized_call): Revert previous change.
4563           To do this correctly, we need a new parsing mechanism, and
4564           C++ initializer technology.
4565
4566 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4567
4568         * expr.c (build_generalized_call): Be sure we're inside the
4569           module-level function before calling build_gen_inst, for
4570           example.
4571
4572 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4573
4574         * regression.sh (dodirectory): Count the gcov and abort tests
4575           among the .dat files.
4576
4577 Tue Mar 22 15:39:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4578
4579         * satisfy.c (safe_satisfy_decl):  When checking that a SYN
4580         value fits in a specified discrete type, don't convert first,
4581         and use compare_int_csts instead of tree_int_cst_lt.
4582
4583 Tue Mar 22 15:25:38 1994  Bill Cox  (bill@rtl.cygnus.com)
4584
4585         * configure: Generate better .gdbinit files.
4586
4587 Tue Mar 22 11:59:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4588
4589         * actions.c (check_range):  Don't emit dynamic checks
4590         if not current_function_decl.
4591
4592         * parse.y (arrayindex):  Allow expr (error is emitted
4593         at semantic level if not the NAME of a type).
4594         * typeck.c (build_chill_cast):  Re-enable some casts.
4595         * satisfy.c (safe_satisfy_decl):  Remove redundant CONST check.
4596
4597 Tue Mar 22 11:46:28 1994  Bill Cox  (bill@rtl.cygnus.com)
4598
4599         * configure: Access the utils directory correctly.
4600         * expr.c (build_compare_expr): Reenable compatibility test.
4601
4602 Tue Mar 22 11:24:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4603
4604         * typeck.c (valid_array_index_p):  Call
4605         build_compare_discrete_expr instead of build_compare_expr.
4606         * typeck.c (build_chill_cast):  Improve logic.
4607         * satisfy.c (safe_satisfy_decl):  Simplify test.
4608
4609 Tue Mar 22 10:17:58 1994  Bill Cox  (bill@rtl.cygnus.com)
4610
4611         * actions.c (chill_expand_assignment): Correct detection of
4612           string assignment case.
4613         * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4614           the actual parameters need to be converted to the unsigned long
4615           type explicitly.  Do that.
4616         * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4617
4618 Mon Mar 21 16:25:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4619
4620         * Makefile.in: Correct prediction of grammar conflicts.
4621         * actions.c(check_range): Fix reference to NULL_TREE pointer.
4622           And allow compile-time errors even if range_checking is off.
4623         * parse.y: Clean up some comments.
4624         * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4625
4626 Mon Mar 21 13:29:23 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4627
4628         * typeck.c (layout_chill_range_type):  Instead of tree_int_cst_lt
4629         use compare_int_csts (which is more robust when signedness differs).
4630         Also, convert the bounds *after* doing range checking.
4631
4632         * ch-tree.def (SET_IN_EXPR):  New.
4633         * expr.c (chill_expand_expr):  Code to expand SET_IN_EXPR,
4634         moved from expand_expr in ../expr.c.  Also add some extra
4635         conversions (because we're now using build_chill_function-call).
4636         * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4637         Use SET_IN_EXPR in place of IN_EXPR.
4638
4639         * expr.c (build_compare_discrete_expr), ch-tree.h:  New function,
4640         with code moved from build_compare_expr.
4641         * expr.c (build_compare_expr):  Re-enable compatibility test.
4642
4643 Mon Mar 21 11:02:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4644
4645         * Makefile.in: Rewrite byacc related rules.
4646         * actions.c (chill_convert_for_assignment): Use the
4647           referenced type only for generating range checks.
4648         * configure: Add 'utils' directory to SUBDIRS variable.
4649
4650 Sun Mar 20 21:49:59 1994  Bill Cox  (bill@rtl.cygnus.com)
4651
4652         * actions.c (check_range): Call build_compare_expr rather than
4653           build_binary_op.
4654           (adjust_parm_or_field): Call convert_for_assignment rathern than
4655           convert, to get the range-checking.
4656         * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4657           Generate a compile-time message if possible.
4658           (build_compare_expr): Comment out compatibility test - should
4659           not be needed in here.  Fix a couple of typos.  Add some types
4660           to some build calls.
4661
4662 Sun Mar 20 11:48:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4663
4664         * decl.c (init_decl_processing):  Clean up parameter type
4665         list for __setbitpowerset,
4666
4667         * typeck.c (chill_compatible_classes):  Allow the M-reference
4668         to be compatible with the N-value class, with suitable M and N.
4669         * typeck.c (build_chill_slice):  Don't smash a void TREE_TYPE.
4670         (We don't need to, and it causes confusion.)
4671
4672         * expr.c (build_compare_expr):  Fix thinko.  Add save_exprs.
4673
4674         * expr.c (build_compare_expr):   Fix a transcription bug
4675         (for converting NULL INSTANCEs).  Also #include convert.h.
4676
4677         * expr.c (compare_int_csts):  New.  Compare INTEGER_CSTs.
4678         Works even if their types have different TREE_UNSIGNED.
4679         * expr.c (finish_chill_binary_op):  Moved code dealing with
4680         the comparison operators from here ...
4681         * expr.c (build_compare_expr):  ... to new function here.
4682         Also, for discrete types, tries to Do The Right Thing, even for
4683         differing values of TYPE_PRECISION and TREE_UNSIGNED.
4684         the code from lay
4685         * ch-tree.h:  Declare new functions.
4686         * typeck.c (valid_array_index_p):  Various cleanups,
4687         including using new build_parse_expr.
4688         * parse.y:  Use new build_compare_expr.
4689
4690         * inout.c (build_chill_writetext):  Handle REFERENCE_TYPE args.
4691
4692 Sun Mar 20 08:54:27 1994  Bill Cox  (bill@rtl.cygnus.com)
4693
4694         * actions.c (expand_assignment_to_varying_array):
4695           Call build_chill_array_ref to get index checking.
4696           (chill_convert_for_assignment): Delete unused errstr
4697           variable.
4698           (chill_expand_assignment): Call build_chill_array_ref
4699           to get runtime index checking.
4700           (expand_varying_length_assignment): Use new interface
4701           to varying_array_index_p.
4702         * ch-tree.h (varying_array_index_p): New proto.
4703         * convert.c (convert): Call build_chill_array_ref
4704           to get runtime index checking.
4705         * expr.c (build_chill_pred_or_succ): Fix cond tree
4706           to have consistent operand types.
4707         * typeck.c (valid_array_index_p): Change interface to pass
4708           validity conditions back on caller's TREE_LIST.  We
4709           cannot link the conditions to anything which a
4710           layout_type routine will expand, since that will occur
4711            before the exception handler is set up.
4712           Change calls to valid_array_index_p also.
4713
4714 Fri Mar 18 14:40:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4715
4716         * actions.c, except.c, loop.c, tasking.c:  Call
4717         build_chill_function_call instead of the C-specific
4718         build_function_call.
4719         * except.c (initialize_exceptions):  Fix parmtype of __builtin_setjmp.
4720         * loop.c (top_loop_end_check):  Coerce library function arg.
4721         * convert.c, expr.c:  Re-write to avoid calls to C-specific
4722         function build_unary_op (e.g. by calling build1 directly).
4723
4724         * typeck.c (chill_equivalent):  Change to force failure
4725         for non-matching integral types (even if not ranges).
4726
4727         * typeck.c, ch-tree.h (build_chill_slice):  Make non-static.
4728         * expr.c (varying_to_slice):  Call build_chill_slice (and not
4729         build_chill_slice_with_length, which does bunches of range
4730         checking and does not allow the length to be zero).
4731         * convert.c (convert):  Fix off-by-one error.
4732         * actions.c (chill_expand_array_assignment):  Minor cleaning up.
4733
4734 Fri Mar 18 00:12:48 1994  Per Bothner  (bothner@deneb.cygnus.com)
4735
4736         * decl.c (init_decl_processing):  __lepowerset and __ltpowerset
4737         take *two* pointer parameters, not one.
4738         * satisfy.c (satisfy):  Only call the appropriate layout routine
4739         if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4740         * typeck.c (build_chill_slice_with_length):  Fix Bill's previous fix.
4741
4742 Thu Mar 17 17:29:43 1994  Bill Cox  (bill@rtl.cygnus.com)
4743
4744         * expr.c (build_chill_function_call): Give function call the correct
4745           type tree.
4746         * typeck.c (build_chill_slice_with_length): Restore dynamic range
4747           checking, so it doesn't obscure the CONSTANTness of the length.
4748
4749 Wed Mar 16 17:23:31 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4750
4751         * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4752         [case CONCAT_EXPR]):  Remove kludge setting slice size upper bound
4753         in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4754         * typeck.c (build_chill_slice):  Use TYPE_MAX_VALUE of
4755         array_type if needed for size upper bound of slice_type.
4756         * expr.c (build_concat_expr):  Improve calculation of size upper bound.
4757
4758         * typeck.c (valid_array_index_p):  Check compatibility using
4759         correct types.
4760         * typeck.c (build_chill_slice_with_length);  For now revert
4761         calling valid_array_index_p on length.  (It makes it harder
4762         to realize when the slice is constant length.)
4763         * expr.c (build_chill_indirect_expr):  Minor tweak.  (This
4764         seems to work around a weird C compiler bug. ??)
4765
4766         * expr.c (build_chill_function_call):  Cleanup so it doesn't
4767         call build_function_call (in c-typeck.c).
4768         * typeck.c, expr.c:  Use build_chill_function_call instead of
4769         build_function_call (in c-typeck.c).
4770
4771         * parse.y (discrete_mode):  Move some of the rules from
4772         non_array_mode into new non-terminal.
4773         (arrayindex):  Use discrete_mode (with NAME and TYPENAME) to
4774         avoid some misparses.
4775         * ch-tree.h (SLICE_PTR, SLICE_LENGTH):  Removed;  unused.
4776         * convert.c (digest_structure_tuple):  Add missing parameter.
4777         * decl.c (comptypes):  Remove unused prototype.
4778         * decl.c (build_chill_function_type):  Handle NULL return_type
4779         correctly (convert to void_type_node).
4780         * decl.c (init_decl_processing):  layout boolean_type_node *after*
4781         we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4782
4783 Wed Mar 16 16:08:22 1994  Bill Cox  (bill@rtl.cygnus.com)
4784
4785         * ch-tree.h: Add prototype.
4786         * convert.c (convert): Correct calculation of padding length.
4787         * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4788           parse.y where it belongs.  This permits the removal of a kludge
4789           in make_process_struct.
4790         * lex.l, parse.y: Call to_global_level for several errors.  Add
4791           code to output error in only one pass.
4792         * tasking.c (make_process_struct): Delete kludge inserted on
4793           March 8.
4794           (build_receive_case_end): Add Wilfried's check for errors.
4795
4796 Tue Mar 15 08:42:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4797
4798         * actions.c: Fix comment.
4799           (build_rts_call): Ifdef it out - never used.
4800           (expand_varying_length_assignment): call valid_array_index_p.
4801           rather than validate_varying_array_ref.
4802         * ch-tree.h: Fix prototype for valid_array_index_p.
4803         * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4804           index validation.
4805           (build_hill_lower, build_chill_upper): Return value now inherits
4806           the novelty of the input parameter.
4807           (varying_to_slice): Use CH_NOVELTY macro rather than calling
4808           chill_novelty directly.
4809         * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4810           to unsigned.
4811           (print_integer_type): Pass string value as APPEND's second parameter.
4812           (decode_decl): Pass a boolean expression as print_proc_tail's
4813           first parameter.
4814           (chill_finish_module_code): Make xmalloc's parameter unsigned.
4815         * lex.l: Pass sizes to xmalloc as unsigned ints.  Pass second
4816           parameter to in_word_set as unsigned.
4817         * loop.c (build_loop_start): Check top_loop_end_check return value.
4818         * parse.y: Add casts to int for third do_decls parameter, fifth
4819           build_loop_iterator parameter, etc.
4820         * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4821         * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4822           valid_array_index): Delete them.  They're now unused.
4823           (valid_array_index_p): Add function, call it everywhere that an
4824           array index is checked.
4825           (build_chill_slice): Restore old functionality where varying_to_slice
4826           is called to handle slices of varying arrays, rather than handling
4827           handling them here.
4828           (build_chill_slice_with_range, build_chill_slice_with_length):
4829           Check range limits for TREE_CONST before calling tree_int_cst_lt.
4830           Delete now-obsolete checks of constant indices.
4831
4832 Mon Mar 14 17:26:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4833
4834         * parse.y (modeless_expr):  New rule to allow ([...]) and (if...)
4835         to count as untyped_exprs.  (This is not really permitted by the
4836         Blue Book, but has been requested by customers.)
4837
4838 Thu Mar 10 10:11:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4839
4840         * chill.texi: Document new command-line options.
4841         * expr.c (build_chill_num): Set unsigned parameter for
4842           type_for_size call correctly (unsigned for enums).
4843         * lang.c (lang_decode_option): Add command-line options to
4844           enable/disable runtime range-checking.
4845         * lex.l: Eat more whitespace.
4846
4847 Thu Mar 10 09:41:37 1994  Bill Cox  (bill@rtl.cygnus.com)
4848
4849         * Makefile.in: Have rules to make parse.h, y.tab.c and other
4850           derived files.  This allows the gcc/configure list of CHILL
4851           files machinery to work.
4852         * ch-tree.h (permanent_allocation): Add a parameter flag.
4853         * decl.c (finish_chill_function, finish_decl): Provide the
4854           new permanent_allocation flag.
4855           (poplevel): Return early, avoid a seg fault.
4856         * lex.l (NORMAL): Replace this whole state with the predefined
4857           INITIAL state.  Force compilation state to global level after
4858           compiler directive error - prevents endless loop on error.
4859           (handle_use_seizefile_directive): Rewrite for readability.
4860           (chill_same_grant_file): Reindent.
4861           Generally handle whitespace differently.
4862         * regression.prpt: Print ten PR numbers per line.  The report's
4863           getting too long.
4864
4865 Wed Mar  9 09:58:51 1994  Bill Cox  (bill@rtl.cygnus.com)
4866
4867         * decl.c (do_decl): Suppress the string-assignment-condition
4868           error - it was too often seen.
4869         * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4870           runtime-changing length (as in a slice), get the parent array's
4871           allocation size from its type tree.
4872         * typeck.c (build_chill_slice): Support VARYING arrays.  Pass
4873           parent array's static allocation size along in the slice type.
4874
4875 Wed Mar  9 08:54:24 1994  Bill Cox  (bill@rtl.cygnus.com)
4876
4877         * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4878
4879 Tue Mar  8 11:51:10 1994  Bill Cox  (bill@rtl.cygnus.com)
4880
4881         * expr.c (build_chill_sizeof): Fix typo in error msg, add
4882           some whitespace.
4883         * lex.l (name_type_signal): Add debug output.
4884         * parse.y (call):  Allow EVENTNAME and BUFFERNAME parameters
4885           to a call, so that SIZE () works on them.
4886         * tasking.c (make_process_struct): Force ignore_exprs non-zero
4887           when processing a SEIZEd PROCESS declaration.  This prevents
4888           grox-fixed_fields from returning a NULL, and indirectly protects
4889           the chill_integer_type_node tree from corruption.
4890
4891 Mon Mar  7 19:14:05 1994  Bill Cox  (bill@rtl.cygnus.com)
4892
4893         * Makefile.in: Use the 'all' target to build the runtime
4894           library and chillrt0.o.
4895         * README: Explain rules for files in this directory.
4896         * addtest, addtest.man, build-release,
4897           chill.regress.cron: Move to utils subdirectory.
4898         * expr.c (build_chill_function_call): Mark the INOUT
4899           temporary so it doesn't get optimized into a
4900           register.  Fixes the execute/inout.ch bug.
4901         * typeck.c (layout_chill_range_type): Restrict it
4902           from complaining about an empty string type's
4903           bounds (0:-1).
4904
4905 Mon Mar  7 09:06:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4906
4907         * Makefile.in (compiler): Restore this target.
4908           (OBJS, BC_OBJS): Delete unused variables.
4909           Add $(FLAGS_TO_PASS) to sub-make invocations.
4910         * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
4911           tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
4912
4913 Sat Mar  5 18:37:50 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
4914
4915         * except.c (finish_handler_array): When computing address of
4916         the array ex_decl, don't call build_array_ref.
4917
4918 Sat Mar  5 17:43:36 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
4919
4920         * loop.c (declare_temps): Force powerset temp to memory.
4921
4922 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
4923
4924         * typeck.c (layout_chill_range_type): Convert highval and
4925           lowval to a common type before range-checking them.
4926
4927 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
4928
4929         * ch-tree.h: Add loop-related prototypes.
4930         * decl.c, grant.c: Fix -Wall violations.
4931         * parse.y: Fix format of %type directives.
4932
4933 Fri Mar  4 10:04:18 1994  Wilfried Moser  (fs_moser at rcsw1h)
4934
4935         * Makefile.in: Update version number.
4936         * expr.c: Fix a comment.
4937         * inout.c (build_chill_writetext): Add handling of a REAL.
4938         * lex.l (INITIAL): Remove all code to discard 'header lines'.
4939           no longer needed.
4940         * parse.y (optheader): Remove - it's obsolete, as is the
4941           HEADEREL token definition.
4942
4943 Fri Mar  4 09:41:18 1994  Bill Cox  (bill@rtl.cygnus.com)
4944
4945         * addtest: Fix suffix removal when suffix is .c186.
4946         * regression.sh: Allow for underscores on PR filenames.
4947         * typeck.c: Check in the rewrite mentioned earlier.
4948
4949 Thu Mar  3 09:42:10 1994  Wilfried Moser  (fs_moser at rcsw1h)
4950
4951         * tasking.c (build_process_header): Build a debug structure
4952           for easier access to PROCESS parameters.
4953
4954 Thu Mar  3 09:42:10 1994  Bill Cox  (bill@rtl.cygnus.com)
4955
4956         * typeck.c (*string_assignment_condition): Complete rewrite
4957           of a verbose first draft.
4958
4959 Wed Mar  2 16:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
4960
4961         * actions.c (adjust_return_value): Simplify.
4962           Delete references to CH_RETURNS_LOC, extra parameters to
4963           push_extern_function and start_chill_functions.
4964           (convert_for_assignment): Check whether to generate runtime
4965           range-checking code.  Handle reference_type in convert call.
4966           (chill_expand_assignment): Produce an INDIRECT_REF for a
4967           reference_type on the LHS.  Delete conversions subsumed by
4968           convert_for_assignment.
4969         * ch-tree.h: Delete parameters from prototypes.
4970         * decl.c (print_lang_decl): Print out signal flag.
4971           (push_extern_function, start_chill_function): Delete
4972           extra parameters, references to CH_RETURNS_LOC.
4973         * grant.c (chill_finish_compile): Delete extra parameter.
4974         * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
4975           push_extern_function and start_chill_functions.
4976         * regression.sh (checkprms): Skip PRMS discrepancies if we
4977           can't access PRMS for some reason.
4978         * satisfy.c: Correct indentation.
4979         * tasking.c (build_process_header): Delete extra parameters
4980           passed to push_extern_function and start_chill_functions.
4981
4982 Wed Mar  2 10:33:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4983
4984         * addtest: Require a fill filename.  Be more careful about
4985           adding the same test twice.
4986         * expr.c: Add FIXME to comment.
4987         * regression.sh: Add configure script call.
4988
4989 Tue Mar  1 16:24:20 1994  Wilfried Moser  (fs_moser at rcsw1h)
4990
4991         * Makefile.in: Change version of chill to 1.1.2
4992         * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
4993
4994 Tue Mar  1 07:34:56 1994  Bill Cox  (bill@rtl.cygnus.com)
4995
4996         RETURN of LOC value is only half-baked.  Stay tuned...
4997         * actions.c (adjust_parm_or_field): Add to comment.
4998           (adjust_return_value): New function for issuing errors about
4999           RETURN and RESULT expressions.  Also converts them.
5000           (chill_expand_result, chill_expand_return): Call new
5001           adjust_return_value function.
5002         * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
5003           New parameter for push_extern_function and start_chill_function.
5004         * decl.c (push_extern_function, start_chill_function): New parameter
5005           to say whether return value is a LOC.
5006         * expr.c (build_chill_indirect_ref): Further qualify the issuing
5007           of the error message.
5008         * grant.c (raw_decode_mode): Move test for instance mode under
5009           STRUCT handling.
5010           (start_chill_module_code, chill_finish_compile): Add new
5011           parameter to start_chill_function calls.
5012         * parse.y (get_type_of): Do lookup_name more often.
5013           (quasi_pdef, procedure, procmode, optresultspec): Set
5014           CH_RETURNS_LOC flag.
5015           (optresultattr): Code keywords as a bitmask.
5016         * tasking.c (build_process_header): Add new parameter to
5017           start_chill_function call.
5018
5019 Sat Feb 26 12:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5020
5021         * Makefile.in: Replace undefined $(RM) with rm -f.
5022         * configure: Make sure scripts are executable.
5023         * regression.sh: Make variables to invoke make
5024           and awk.  Don't process a directory if it
5025           doesn't exist.
5026
5027 Fri Feb 25 14:48:48 1994  Bill Cox  (bill@rtl.cygnus.com)
5028
5029         * Makefile.in (check): Force the building of ../gcov and
5030           ../xgcc before testing.  Move the printf dependency here
5031           since we don't need it until we're testing.
5032         * addtest: Strip suffix from each input filename.
5033         * decl.c (do_decl): Correct error checking.  Call
5034           string_assignment_condition for some of it.
5035         * tasking.c (build_gen_inst): Add ability to pass an integer
5036           for either the process ID or the copy number.  If a number
5037           is passed, range-check it against the CHILL unsigned type
5038           limits.
5039           (build_buffer_descriptor): Add draft code to check the buffer
5040           name for correctness.
5041
5042 Wed Feb 23 15:07:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5043
5044         New cleaner solution to the following problem:
5045         Chill allows an action to be followed by an ON-handler.
5046         But we don't know if an action has a handler until we've parsed
5047         its end, yet we want to generate extra code to set up an
5048         exception handling contour only if needed.  The old solution
5049         would generate code for the action into an rtl sequence, and then
5050         splice in the exception-setup code if we later found we needed it.
5051         This has a few problems (for example it confuses the management
5052         of stack temporaries), and is ugly.  Now that the compiler is 2-pass
5053         we have a cleaner solution:  In pass 1, we remember which actions
5054         were followed by ON-handlers.  In pass 2, we use this information
5055         to generate appropriate code before an action.
5056         * except.c (push_handler, pop_handler):  In pass 1, set up data
5057         structures (global_handler_list) to remember if an action has an
5058         ON-handler.  In  pass 2, digest this information, and setup
5059         handler if needed.
5060         * except.c, actions.h (pop_handler):  Take an extra int arg.
5061         * except.c (emit_setup_handler):  New function, with code (moved
5062         from chill_start_on) to emit code before an action that has a handler.
5063         * except.c (except_init_pass_2):  New function.
5064         * parse.y (pass1_2):  Call except_init_pass_2 before pass 2.
5065         * parse.y (POP_UNUSED_ON_CONTEXT):  Don't call pop_sequence.
5066         * parse.y:  Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
5067         in pass 1 as well as pass 2.
5068         * parse.y (BEGIN ... END):  Re-arrange logic to avoid block_stack
5069         (local to ../stmt.c) getting out of sync.
5070         * actions.c (push_action):  Don't need to emit a NOP,
5071         now that we're no longer moving sequences around.
5072         * actions.c (push_action):  Call push_handler even in pass one.
5073
5074 Wed Feb 23 11:06:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5075
5076         * decl.c (do_decl): Check for possible overflow in initializing
5077           a declared variable.
5078         * expr.c (build-chill_indirect_ref): Add error message for
5079           a syntax error that C programmers converting to CHILL are
5080           quite likely to make.
5081         * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
5082           seg-faulting.
5083
5084 Tue Feb 22 17:54:43 1994  Bill Cox  (bill@rtl.cygnus.com)
5085
5086         * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
5087           defined.  Build chill script differently, and build an install script.
5088           Add an action to run the regression test.
5089         * actions.c (chill_expand_assignment): Change
5090           string_assignment_condition call.
5091         * ch-tree.h: Add prototype.
5092         * expr.c (build_chill_function_call): Change
5093           string_assignment_condition call.
5094         * satisfy.c (safe_satisfy_decl): Add check that string INIT value
5095           will fit in the declared mode.
5096         * typeck.c (string_assignment_condition): Add flag to disable
5097           runtime code generation.  Add code to generate runtime test.
5098
5099 Mon Feb 21 14:04:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5100
5101         * Makefile.in (check): Add target to trigger a regression test.
5102
5103 Mon Feb 21 13:54:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5104
5105         * decl.c (do _based_decls): Add error check for
5106           decls BASED on a PROC or PROCESS name.
5107
5108 Mon Feb 21 13:24:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5109
5110         * grant.c (chill_finish_compile): Bypass handling
5111           module-level code if an earlier error has made
5112           is useless.
5113         * tasking.c (build_start_process): Generate error,
5114           return if process name unknown.
5115
5116 Mon Feb 21 14:29:41 1994  Wilfried Moser  (fs_moser at rcsw47)
5117
5118         * expr.c (build_generalized_call): Use
5119           build_arrow_expr semantics for ADDR () builtin.
5120
5121 Mon Feb 21 12:49:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5122
5123         * tasking.c (build_gen_inst): Output correct
5124           constructor for GEN_INST.
5125
5126 Mon Feb 21 08:14:59 1994  Wilfried Moser  (fs_moser at rcsw47)
5127
5128         * lex.l (yywrap): Fix punctuation error.
5129
5130 Sun Feb 20 19:58:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5131
5132         * regression.sh: Fix cvs update-related commands.
5133           Have cron job always perform the update, so it's
5134           always reporting on the current state of the
5135           sources.
5136         * typeck.c (string_assignment_condition): Allow a
5137           mis-match if the LHS is varying.
5138
5139 Fri Feb 18 18:10:04 1994  Bill Cox  (bill@rtl.cygnus.com)
5140
5141         * actions.c (expand_chill_assignment): Add call to test the
5142           string assignment condition.
5143         * expr.c (build_chill_function_call):  Add call to test the
5144           string assignment condition.
5145         * regression.awk2: Report WITHDRAWN PRs as well.
5146         * regression.sh: Delete extra commentary about FEEDBACK PRs.
5147         * typeck.c (string_assignment_condition): Add function to
5148           perform the check.
5149
5150 Fri Feb 18 16:30:40 1994  Bill Cox  (bill@rtl.cygnus.com)
5151
5152         * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
5153           and exclude them from the regression test report.  Mark them
5154           in the list of PRs as 'W' status.
5155
5156 Thu Feb 17 09:13:42 1994  Wilfried Moser  (fs_moser at rcsw47)
5157
5158         * Makefile.in: Define a version number.  Build chill script
5159           differently.  Makefile depends upon ../configure, not configure.
5160         * chill.in: Define some new flags.
5161
5162 Wed Feb 16 19:44:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5163
5164         * grant.c (decode_constant): Restore a 'return result' statement
5165           that seems to have gotten lost.
5166
5167 Wed Feb 16 12:37:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5168
5169         * ch-tree.h (various STRING-type macros):  Use new TYPE_STRING_FLAG.
5170
5171         * typeck.c (make_chill_array_type):  Remove unused args.
5172         Simplify to build only one-dimensionsal arrays, so change
5173         index list to single index.  Call layout_chill_array_type
5174         if pass!=1.  And rename to:  build_simple_array_type.
5175         * typeck.c (layout_chill_array_type):  Only recurse
5176         if TREE_TYPE has not been laid out.
5177         * typeck.c (build_chill_array_type):  Update accordingly.
5178         * typeck.c (build_chill_slice):  Replace calls to build_array_type
5179         (which does hash-canonicalization, which breaks if we later set
5180         the TYPE_STRING_FLAG) by calls to build_simple_array_type.
5181         * convert.c (convert):  The same.
5182
5183         * grant.c (decode_constant):  Clean up.  Remove remnants of switch
5184         on TREE_TYPE of the value, and fold those cases into first switch.
5185
5186 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5187
5188         * Makefile.in: Add printf as a dependency of ../cc1chill.
5189         * regression.sh: Make srcdir and objdir really work.
5190
5191 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5192
5193         * expr.c (build_char_array_expr): Fix spelling
5194           error in error msg.
5195         * tree.c (build_string_type): Make check for overlarge
5196           string more robust.
5197
5198 Wed Feb 16 02:37:43 1994  Mike Stump  (mrs@cygnus.com)
5199
5200         * grant.c (decode_constant): Remove useless tests
5201         for STRING_TYPE (which isn't used by anyone, including CHILL).
5202
5203 Tue Feb 15 15:35:07 1994  Bill Cox  (bill@cygnus.com)
5204
5205         * build-release:  Add refinements to checkout commands.
5206         * decl.c (init_decl_processing): Move initialization of
5207           chill_unsigned_type_node before 1st call to build_string_type.
5208         * tree.c (build_string_type): Add compile-time test of string
5209           allocated length.
5210         * typeck.c (layout_chill_range_type): Add compile-time range limit
5211           checking.
5212
5213 Tue Feb 15 08:55:37 1994  Bill Cox  (bill@cygnus.com)
5214
5215         * Makefile.in:  Add stamp-chill-objs as a dependency of ../cc1chill.
5216         * regression.sh: Rename test directory names.
5217
5218 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5219
5220         * Makefile.in: Change interface with parent directory's
5221           Makefile, decoupling the lists of each others' files.
5222
5223 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5224
5225         * lex.l: Delete obsolete comment.
5226         * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
5227           instance constructor.
5228
5229 Mon Feb 14 04:04:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5230
5231         * lex.l (maybe_number): Add octal to numbers
5232           handled by Feb 1 change.
5233
5234 Sat Feb 12 16:24:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5235
5236         * actions.c, convert.c, decl.c, expr.c, lex.l,
5237           tasking.c, typeck.c: gcc -Wall cleanups.
5238         * ch-tree.h: Change loop-related prototypes.
5239         * loop.c, parse.y: Rewrite to set up correct loop scope.
5240           Fix error path where loop variable not declared.
5241
5242 Fri Feb 11 11:12:29 1994  Bill Cox  (bill@rtl.cygnus.com)
5243
5244         * Makefile.in: Add rule to build printf.  Make it a dependency
5245           of ../cc1chill.
5246         * printf.c: New tool for regression testing script.
5247         * regression.sh: Look for print in ${objdir}.
5248
5249 Thu Feb 24 17:31:12 1994  Wilfried Moser  (fs_moser at rcsw1j)
5250
5251         * tasking.c (build_gen_inst): Allow integer expression as argument
5252           1 to this function. This was a change request to get rid of
5253           unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
5254           or STRUCT (t UINT, c UINT).
5255
5256 Thu Feb 10 09:49:31 1994  Bill Cox  (bill@rtl.cygnus.com)
5257
5258         * regression.awk3: Recognize upper-case PRMS state names.
5259
5260 Wed Feb  9 15:26:19 1994  Bill Cox  (bill@cygnus.com)
5261
5262         * parse.y (dowithaction): Allow EXIT from DO WITH.
5263
5264 Tue Feb  8 13:13:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5265
5266         * configure: Change to require grant.c for evidence that we've
5267           found the source directory.
5268         * decl.c (init_decl_processing): delete unused builtin_slice
5269           function declaration.
5270         * expr.c (chill_expand_expr): Calculate powerset's length
5271           correctly, calling powersetlen to do it.
5272         * regression.sh: Replace BASE references with objdir references.
5273         * typeck.c (build_chill_slice): Build the compound expression
5274           in the right order.
5275
5276 Mon Feb  7 15:56:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5277
5278         * expr.c (build_chill_lower, build_chill_upper): Handle
5279           LOC parameter types.
5280         * regression.sh: Correct path to executable sub-shell-scripts.
5281
5282 Mon Feb  7 11:33:47 1994  Bill Cox  (bill@rtl.cygnus.com)
5283
5284         * regression.sh: Pervasive changes to allow for separate
5285           source and object directories.
5286
5287 Wed Feb  2 17:5620 1994  Bill Cox  (bill@rtl.cygnus.com)
5288
5289         * decl.c (find_implied_typed): Delete obsolete reference to
5290           PROCESS_TYPE.
5291         * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
5292           obsolete.
5293
5294 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5295
5296         * Makefile.in: Delete bogus runtime/Makefile lines.
5297         * configure: Build testsuite directory.
5298
5299 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5300
5301         * configure: Correct srcdir for chill.examples directory.
5302
5303 Wed Feb  2 11:24:57 1994  Wilfried Moser  (fs_moser at rcsw47)
5304
5305         * ch-parse.y (rule call): Add
5306               BUFFERNAME LPRN untyped_expr RPRN
5307           to enable generating a descriptor same as for SIGNALS.
5308         * ch-tasking.c (generate_tasking_code variable,
5309           decl_tasking_code_variable): Implement overflow check of
5310           taskingcode in case a tasking code is specified with the
5311           compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
5312           PROCESS_TYPE.
5313
5314 Wed Feb  2 09:31:37 1994  Bill Cox  (bill@rtl.cygnus.com)
5315
5316         * configure: Add ${srcdir} to Makefile.in's path.
5317         * loop.c: Delete unused whitespace.
5318
5319 Tue Feb  1 17:09:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5320
5321         * expr.c (string_char_rep): Process STRING_CST correctly.
5322
5323 Tue Feb  1 15:29:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5324
5325         * expr.c (build_boring_bitstring):  New function.
5326         * expr.c (build_chill_repetition_op):  Fix a number of bugs in
5327         implementation of bitstring repetition.
5328         Also, implement repetition of Booleans.
5329
5330 Tue Feb  1 15:28:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5331
5332         * configure: Delete code to check for gas or ld.  Add code to
5333           store a config.status file in each configured subdirectory.
5334         * expr.c (): Spell concatbitstring as concatps, which is the
5335           runtime routine name.
5336         * regression.sh: Force use of GNU make.
5337
5338 Tue Feb  1 15:22:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5339
5340         * tasking.c: Mark compiler-generated temps to prevent
5341           GRANTing them.
5342
5343 Tue Feb  1 17:38:51 1994  Wilfried Moser  (fs_moser at rcsw1j)
5344
5345         * lex.l (equal_number): Improve check for number after = in a
5346           compiler directive.
5347         * tasking.c (build_tasking_struct): Make field TaskValue
5348           pointer to chill_unsigned_type_node.
5349         * tasking.c (generate_tasking_code_variable): Declare tasking
5350           code variable as chill_unsigned_type_node.
5351         * tasking.c (decl_tasking_code_variable): Declare tasking
5352           code variable as chill_unsigned_type_node.
5353
5354 Mon Jan 31 14:01:58 1994  Bill Cox  (bill@rtl.cygnus.com)
5355
5356         * addtest (update_Makefile): No longer build actions - they're
5357           now in pattern rules.
5358         * ch_makedepend: Do the grep first, to avoid processing non
5359           USE_SEIZE_FILE lines.
5360         * configure: Pervasive rewrite to support configuring regression
5361           test directories.
5362
5363 Mon Jan 31 04:35:53 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5364
5365         * typeck.c (build_chill_slice): Compute EXTENT correctly.
5366
5367 Sun Jan 30 14:33:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5368
5369         * tasking.c (build_gen_inst): Return a typed tuple with
5370           INSTANCE type.
5371
5372 Sun Jan 30 12:01:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5373
5374         * actions.c (chill_expand_assignment): Recognize LENGTH builtin
5375           in the left hand side, pass it to
5376           expand_varying_length_assignment.
5377           (expand_varying_length_assignment): Clean up bitrot.
5378         * convert.c (convert): Revert most recent change.
5379         * loop.c (maybe_skip_loop): New function, split out of
5380           begin_chill_loop.  Add conditional to skip processing an empty
5381           VARYING array.
5382         * parse.y (assignaction): Delete code to recognize LENGTH
5383           on left-hand-side.
5384         * typeck.c (validate_varying_array_ref): Correct misleading comment.
5385
5386 Sat Jan 29 10:54:06 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5387
5388         * typeck.c (build_chill_slice): Pass a valid identifier to
5389         `get_unique_identifier'.
5390
5391         * convert.c (convert): Rename LENGTH variable to MAXIDX, and
5392         use correct value for VAR_LENGTH when initializing a varying array.
5393
5394         * decl.c (do_decl): Set DECL_COMMON.
5395
5396         * actions.c (check_range): Temporarily inhibit warnings so the
5397         compiler doesn't warn the user about useless range checks that it
5398         might create.  It's far easier for the compiler to figure out that
5399         a range check need not be done than it is for us to try to figure
5400         it out for ourselves.
5401
5402         * expr.c (build_concat_expr): Generalize to handle bitstrings.
5403         (scalar_to_string): New function.
5404         (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5405         library call (__concatbitstring).
5406
5407 Sat Jan 29 08:43:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5408
5409         * ch_makedepend: Fix the 'sed' command so that seize file
5410           name can be delimited by double quotes as well as apostrophes.
5411
5412 Thu Jan 27 17:26:19 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5413
5414         * typeck.c (my_build_array_ref):  Do constant folding.
5415
5416 Thu Jan 27 16:24:24 1994  Bill Cox  (bill@rtl.cygnus.com)
5417
5418         * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5419           decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5420           lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5421           tree.c, typeck.c: New 'Copyright' line for 1994.
5422
5423 Thu Jan 27 14:12:07 1994  Mike Stump  (mrs@cygnus.com)
5424
5425         * configure: Don't configure this directory with this configure,
5426         just subdirectories and cleanup.
5427         * Makefile.in (Makefile): Run config.status in parent directory,
5428         if we need rebuilding.
5429
5430 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5431
5432         * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5433           Thanks, Zoo!
5434
5435 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5436
5437         * expr.c (build_concat_expr): Fix SunOS portability problem.
5438
5439 Wed Jan 26 14:57:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5440
5441         * convert.c (digest_powerset_tuple):  New function, used to set
5442         TREE_CONSTANT and TREE_STATIC properly.
5443         (digest_structure_tuple, convert (NULL to instance, non-varying
5444         to varying)):  Set TREE_CONSTANT and TREE_STATIC when appropriate.
5445         * expr.c (varying_to_slice):  Preserve novelty of slice type.
5446         * expr.c (build_concat_expr):  Make sure class of result is
5447         correct (including correct novelty).
5448         * satisfy.c (safe_satisfy_decl):  If value of CONST_DECL is
5449         not TREE_CONSTANT, emit an error.
5450         * typeck.c (build_chill_slice):  Preserve novelty of result.
5451         * typeck.c (build_chill_slice):  Simplify for varying argument
5452         (by using varying_to_slice).
5453         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5454         New functions.
5455         * typeck.c (build_chill_cast): Use above new functions to convert
5456         constant expressions.
5457         * typeck.c (copy_novelty), ch-tree.h:  New function.
5458         * chill.texi:  Update for new constant conversion semantics.
5459
5460 Tue Jan 25 14:00:02 1994  Wilfried Moser  (fs_moser at rcsw1j)
5461
5462         * ch-decl.c (init_decl_processing): Add new builtin function
5463           DESCR. Add call to build_chill_descr_type.
5464         * ch-expr.c: Add function build_chill_descr_type, which actually
5465           build the type the DESCR builtin returns.
5466           Add function build_chill_descr, which process the DESCR builtin.
5467         * ch-expr.c (build_chill_length): Add code to enable
5468           LENGTH (bitstring).
5469         * ch-expr.ch (build_generalized_call): Add processing of DESCR
5470           builtin.
5471         * ch-grant.c: Add code to avoid producing of unnecessary grant
5472           files.
5473         * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5474           for build_chill_descr.
5475         * ch-inout.c (build_chill_io_list_type): Change generation of the
5476           type passed to runtime library according to the new definition.
5477         * ch-inout.c (build_chill_writetext): Change processing of format
5478           string that a character constant is allowed as format string if
5479           compiler gets called with -fold-strings option.
5480         * ch-inout.c (build_chill_writetext): Change processing of
5481           integers in case NEWMODE x = INT.
5482         * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5483         * ch-inout.c (build_chill_writetext): Add processing of
5484           bitstrings.
5485
5486 Tue Jan 25 09:07:10 1994  Mike Stump  (mrs@cygnus.com)
5487
5488         * Makefile.in (all, OBSTACK): Build interesting things be default,
5489         and make sure we include OBSTACK.
5490
5491 Sun Jan 23 12:35:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5492
5493         * grant.c (decode_constant):  Handle RANGE_EXPR.
5494         Simplify handling of CONSTRUCTOR.
5495
5496         * typeck.c (build_chill_slice):  Use build_chill_array_ref_1,
5497         not build_chill_array_ref.
5498
5499 Sat Jan 22 16:23:30 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5500
5501         * parse.y:  Generate a RANGE_EXPR (instead of a confusing
5502         TREE_LIST) to indicate a range in case and tuple lables.
5503         * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5504         Update accordingly to handle these RANGE_EXPRs.
5505         * satisfy.c (satisfy):  Don't call finish_chill_binary_op
5506         for a RANGE_EXPR.
5507
5508 Fri Jan 21 15:39:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5509
5510         * expr.c (force_addr_of):  New function, to encapsulate passing
5511         by reference a powerset or string  to a library function.
5512         * expr.c (build_min_max, build_set_expr):  Use force_addr_of.
5513         * expr.c (chill_expand_expr case CONCAT_EXPR):  Fix passing of
5514         rtl modes.  (Old code fails on 64-bit Alpha.)
5515         * expr.c (build_chill_function_call):  Remove bogues check for
5516         READonly variable passed as parameter.
5517         * expr.c (build_set_expr):  Merge common code.
5518         * parse.y (string repetition):  Fix logic for 2-pass scheme.
5519         * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5520         satisfy.c (satisfy):  Handle REPLICATE_EXPR.
5521         * chill.texi:  Fix typo.
5522
5523 Mon Jan 17 13:55:48 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5524
5525         * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5526         tree.c can find ch-tree.h.
5527
5528 Sat Jan 15 15:34:11 1994  Mike Stump  (mrs@rtl.cygnus.com)
5529
5530         * configure: Fix problem so that building in a separate directory
5531         works.
5532
5533 Sat Jan 15 09:51:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5534
5535         * Makefile.in: Recurse down into runtime to
5536           create its Makefile, and to clean up.
5537         * configure: Recurse into runtime to make its Makefile.
5538
5539 Sat Jan 15 09:15:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5540
5541  << This set of CHILL frontend sources is now the
5542     maintainable and master set. Accept no substitutes! >>
5543         * Makefile.in, configure: Completely rewritten
5544           to be invoked by gcc/Makefile.in and
5545           gcc/configure.
5546         * addtest (update_ChangeLog): Fix insertion
5547           of the '*'.
5548         * regression.sh: Add global option to suppress results of
5549           proprietary tests.
5550         * cpy.sh: Add necessary edits to files as they
5551           are copied down.
5552         * actions.c, ch-tree.def, ch-tree.h, convert.c,
5553           decl.c, except.c, expr.c, grant.c, inout.c,
5554           lang.c, lex.h, lex.l, loop.c, parse.y,
5555           satisfy.c, tasking.c, typeck.c: Latest
5556           versions from the repository.
5557
5558 Fri Jan 14 12:28:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5559
5560         * addtest: Fix insertion of line into ChangeLog.
5561         * configure: Add a script.
5562         * Makefile.in: Hack from ../Makefile.in
5563         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5564         * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5565
5566 Mon Jan 10 11:38:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5567
5568         * build-release: Rewrite for easier tailoring.
5569
5570 Wed Jan  5 08:38:21 1994  Bill Cox  (bill@cygnus.com)
5571
5572         * actions.c, convert.c, decl.c, except.c, expr.c,
5573           inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5574           Current versions from devo/gcc.
5575
5576 Wed Dec 29 14:07:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5577
5578         * addtest: Don't add comment headers to source or .dat files
5579           if they're already present.
5580
5581 Wed Dec 29 13:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
5582
5583         * mktg_leads: New file.
5584         * regression.sh, regression.awk2: Updated status report scripts.
5585         * addtest: New script to add a test to a directory.
5586         * ch_makedepend: Add full path to ch_decomment.
5587         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5588           lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5589           Updated copies of actual sources.
5590         * chill.brochure, chill.texi: Update with current status.
5591         * cpy.sh: Script for updating copies of sources.
5592         * chill.patches: New script for creating a patch release.
5593           Pretty rough.
5594
5595 Wed Dec  8 09:35:54 1993  Bill Cox  (bill@rtl.cygnus.com)
5596
5597         * build-release: Delete lots of unused regression-testing cruft.
5598         * chill.brochure: Initial draft of marketing brochure.
5599         * chill.patches: Preliminary script for building patch sets
5600           for CHILL.
5601         * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5602           building a tcov report on the CHILL compiler.
5603
5604 Sun Nov 21 08:34:33 1993  Bill Cox  (bill@rtl.cygnus.com)
5605
5606         * Makefile.in: Adjust gperf rule for names in this directory.
5607         * ch_decomment.l: New file.  Ignores CHILL comments.
5608           Executable is used bu ch_makedepend.
5609         * ch_makedepend: New script.  Makes CHILL dependencies for
5610           Makefiles.
5611         * gperf, hash.h: New files about lexer tokens.
5612         * regression.sh: Delete notes justifying non-summing
5613           report rows.
5614         * regression.awk2: Report PRMS status when there are
5615           missing test results.
5616         * regression.awk3: Add #! line, so this can be used separately.
5617         * Other files: latest versions copied from devo/gcc.
5618
5619 Sat Oct 30 15:02:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5620
5621         * chill.texi:  Add new node about conversions.
5622
5623 Fri Oct 29 14:17:31 1993  Bill Cox  (bill@cygnus.com)
5624
5625         * chill.regress.cron: Change path to executable, enable PR report.
5626         * regression.awk2: Add terminating periods to messages.
5627         * regression.sh: Change path to testsuites.  Add disclaimer at end
5628           of report.  Print explicit lists of resolved/unresolved PRs.
5629
5630 Thu Oct 28 09:22:20 1993  Bill Cox  (bill@rtl.cygnus.com)
5631
5632         * regression.sh: More PR-related status is printed.
5633
5634 Thu Oct 21 19:24:02 1993  Bill Cox  (bill@rtl.cygnus.com)
5635
5636         * regression.sh: Simplify the paths, make the source
5637           and test files accessed separately from the executables.
5638
5639 Wed Oct 20 16:35:30 1993  Bill Cox  (bill@rtl.cygnus.com)
5640
5641         * regression.sh: Finally fix the file-delete problem.
5642           Thanks, Jeffrey!
5643         * build-release: Make more verbose, fix comment.
5644
5645 Mon Oct 18 00:21:24 1993  Bill Cox  (bill@cygnus.com)
5646
5647         * regression.sh: Build linker if -U option.  Put stderr
5648           into make.log files, too.  Also report on Z.200 examples.
5649         * regression.awk3: New script to help build release note.
5650
5651 Fri Oct 15 16:33:54 1993  Bill Cox  (bill@cygnus.com)
5652
5653         * regression.sh, regression.prpt: Output PR status only
5654           conditionally.  Add command-line flag for CVS updates.
5655
5656 Thu Oct 14 07:53:59 1993  Bill Cox  (bill@rtl.cygnus.com)
5657
5658         * regression.sh: Count PRs accurately.
5659         * Makefile.in: New file.
5660
5661 Sat Oct  9 19:46:58 1993  Bill Cox  (bill@rtl.cygnus.com)
5662
5663         * regression.awk?: Add program fragments for
5664           report of PRMS/test exceptions.
5665         * regression.sh: Add options and PRMS reports.
5666
5667 Fri Oct  8 06:44:41 1993  Bill Cox  (bill@rtl.cygnus.com)
5668
5669     Create chill frontend directory, populate it.
5670     Later, the chill-specific frontend files will be moved here.
5671
5672         * chill: Moved here from gcc directory.
5673         * chill.regress.cron: Add crontab file for regression tests.
5674         * regression.sh: Add regression test control script.
5675
5676 #
5677 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5678 #
5679 Sat Jan 15 14:54:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5680
5681         * ch-*.*: All of these files are now moved to the ch subdirectory.
5682         Further update changes should be recorded in the ch/ChangeLog file.
5683
5684 Fri Jan 14 21:09:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5685
5686         * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5687         ch-satisfy.c, ch-typeck.c:  Undo all of initializer-related changes
5688         that Tiemann did earlier this month.
5689         * c-typeck.c (really_start_incremental_init):  Save
5690         constructor_elements and (old value of) constructor_stack
5691         on constructor_stack, to allow for nested initializers.
5692         * ch-convert.c (digest_constructor):  If we need a varying
5693         array, and have a constructor (for the array elements),
5694         make sure to use convert so that the constructor gets
5695         wrapped in an implicit record constructor.
5696         * ch-decl.c (do_decl):  If there is no initializer for a
5697         varying array (or bitstring), create default constructor.
5698
5699         * ch-expr.c (build_chill_lower):  Fix thinko for ARRAY_TYPE.
5700         * ch-satisfy.c (safe_satisfy_decl):  Make sure that we make
5701         original decl to check if we need to make an rtl.
5702
5703         * ch-typeck.c (build_chill_array_ref_1), ch-tree.h:  New function
5704         which does the actual work for build_chill_array_ref (which
5705         now just loops over an argument list).
5706         * ch-actions.c, ch-expr.c, ch-inout.c:  Use build_chill_array_ref_1
5707         instead of build_chill_array_ref where appropriate.
5708         * ch-actions.c, ch-expr.c, ch-typeck.c:  Make operand 1 of a
5709         VARY_ARRAY_REF is a single index, not an index list.
5710
5711         * ch-grant.c (__init_list):  Renamed to _ch_init_list, to
5712         avoid a conflict on the Alpha.
5713
5714 Wed Jan 12 10:19:35 1994  Bill Cox  (bill@rtl.cygnus.com)
5715
5716         * ch-lex.l (WS): Add BS, VT and CR to definition of
5717           whitespace.
5718           (convert_number): Allow for uppercase hex digits.
5719
5720 Tue Jan 11 19:43:55 1994  Bill Cox  (bill@cygnus.com)
5721
5722         * ch-actions.c (lookup_and_handle_exit): Correct
5723           conditional so error messages are output.
5724         * ch-expr.c (build_chill_addr_expr): Add error message.
5725         * ch-grant.c (chill_finish_module_code): Avoid abort by
5726           giving the init_list constructor a type.
5727           (chill_finish_compile): Delete unused code.
5728         * ch-lex.l: Make most build_init_2 calls from the
5729           permanent obstack, so that enumeration values endure.
5730         * ch-loop.c (build_chill_iterator): Add several error
5731           messages.
5732
5733 Tue Jan 11 12:31:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5734
5735         * ch-expr.c, ch-typeck.c:  Rewrite some instances of
5736         'struct ch_class class = chill_expr_class (expr);' to
5737         'struct ch_class class; class = chill_expr_class (expr);'
5738         to work around a bug in /usr/ucb/cc on SunOS4.
5739
5740 Mon Jan 10 18:29:36 1994  Bill Cox  (bill@rtl.cygnus.com)
5741
5742         * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5743         * ch-expr.c (expand_packed_set): Add new parameter to pass
5744           set's minimum ordinal value.  Fix loop invariant problem.
5745           (fold_set_expr): Change to add new parameter to
5746           expand_packed_set call.
5747         * ch-grant.c: Move extern declaration to ch-tree.h.
5748         * ch-lex.l (convert_bitstring): Also output the bitstring
5749           if yydebug is set.
5750         * ch-tree.h: Add prototype.
5751
5752 Mon Jan 10 11:29:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5753
5754         * ch-inout.c: Fix comment.
5755         * ch-tree.h: Add prototype.
5756
5757 Sun Jan  9 18:22:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5758
5759         * ch-tree.h (chill_expr_class):  New prototype.
5760         * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5761         Convert result to correct class.
5762         * ch-expr.c (build_chill_repetition_op):  Preserve CH_DERIVED_FLAG.
5763         Also, fix some bugs for bitstrings (with ranges).
5764
5765         (Patches from Tiemann.)
5766         * ch-convert.c (convert1):  New function to force TREE_TYPE.
5767         (convert):  Use convert1 where appropriate.
5768         * ch-typeck.c:  Formatting change.
5769         * ch-parse.y (build_chill_constructor):  Fix thinko.
5770
5771         * ch-expr.c (varying_to_slice):  If array is not referable,
5772         call save_expr on it, rather than stabilize_reference.
5773         * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5774         Don't force value to value class if mode is not explicitly
5775         specified.  Also, make sure convert etc is only done once.
5776
5777 Sat Jan  8 16:37:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5778
5779         * ch-decl.c (build_chill_function_type):  Don't call
5780         build_function_type, because it does hash canonicalization,
5781         which once in a while looses badly.
5782         * tree.c (build_function_type):  Remove no-longer-needed test
5783         for doing_chill_thang.
5784
5785         * ch-tree.h (CH_DERIVED_FLAG):  New flag.
5786         * ch-tree.h (enum ch_expr_class):  Renamed to ch_class_kind.
5787         (struct ch_class):  New type, used to represent a Chill
5788         'class' as a first-class value.
5789         (CH_ROOT_RESULTING_MODE):  Replaced by CH_ROOT_RESULTING_CLASS.
5790         * ch-typeck.c (chill_expr_class):  Change interface to return
5791         a struct ch_class.
5792         (chill_compatible, chill_compatible_classes):  Update accordingly.
5793         (chill_root_resulting_mode):  Replace by ....
5794         (chill_root_resulting_class):  ... new function.
5795         * ch-convert.c (convert_to_class):  New function.
5796         * ch-decl.c (layout_enum):  Mark enum values with CH_DERIVED_FLAG.
5797         * ch-lex.l (string_or_int):  Rename to string_or_char.
5798         * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5799         convert_float, convert_number):  Set CH_DERIVED_FLAG for literals.
5800         * ch-expr.c (finish_chill_binary_op):  Use convert_to_class.
5801         * ch-satisfy.c (safe_satisfy_decl):  For CONST_DECL, make sure
5802         DECL_INITIAL gets set to result of convert.
5803         Also, clear CH_DERIVED_FLAG for SYN value.
5804         * expr.c (store_constructor):  If a [power]set is exactly one
5805         word long, use single-word move.
5806
5807 Sat Jan  8 08:38:29 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5808
5809         * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5810
5811 Wed Jan  5 05:18:46 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5812
5813         * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5814         ARRAY_TYPE before assuming so.  Also, subtract 1 from LENGTH in
5815         computation of SLICE_END.
5816
5817         * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5818
5819         * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5820
5821         * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5822         for unary set operations).
5823
5824         * ch-expr.c (build_chill_array_expr): Take new argument FORCE.  All
5825         callers changed.  All callers changed.
5826
5827         * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5828         being NULL_TREE until we've started walking the list of values via
5829         the loop over VARIANTs.
5830
5831         * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5832         treat it as an enum value (and hence constant).  Also, only set
5833         TREE_STATIC if the constructor is indeed constant.
5834         * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5835         VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5836         recurse on the DECL_INITIAL.
5837
5838 Wed Jan  5 01:24:50 1994  Bill Cox  (bill@cygnus.com)
5839
5840         * Makefile.in: Add CHILL to LANGUAGES variable.
5841         * ch-actions.c (check_range): Call build_binary_op instead of
5842           fold, build to get the common types chosen.
5843           (cond_range_exception, cond_overflow_exception,
5844            cond_type_range_exception): Delete, obsolete.
5845           (chill_convert_for_assignment): Enable this, get particular
5846           about when to generate rangecheck code.
5847         * ch-expr.c (build_chill_function_call): Sketch in where to
5848           perform chill_convert_for_assignment on actual parameters.
5849           (build_chill_addr_expr): Correct compiler warning.
5850         * ch-loop.c (build_chill_iterator): Add runtime check for
5851           negative loop step expression.
5852         * ch-tree.h: Add prototype.
5853         * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5854           A varying array's length field counts the NUMBER of active array
5855           array entries, not the byte-length of them.
5856
5857 Tue Jan  4 17:57:39 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5858
5859         * ch-decl.c (do_decl): Call `suspend_momenary' if the
5860         converted constructor must live on the permanent_obstack.
5861         * ch-convert.c (convert): When building a new SET_TYPE
5862         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5863         * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5864
5865         * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5866         are locations.
5867         * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5868         on permanent_obstack if necessary.
5869
5870         * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5871         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5872
5873         * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5874         the patch below helped to mess up.
5875
5876         * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5877         (build_chill_addr_expr): Take new argument ERRORMSG.
5878         All callers changed.  Also, call `build_chill_addr_expr' where
5879         we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5880         that now calls `mark_addressable' automagically.
5881
5882         * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5883         This is needed because variables may appear in initialization
5884         statements, and their DECL_INITIALs are their values at
5885         initialization time.
5886         * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5887         to handle VAR_DECLs as initializers.
5888
5889         * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5890         they aren't destroyed for later use.
5891
5892 Tue Jan  4 15:25:30 1994  Bill Cox  (bill@cygnus.com)
5893
5894         * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5895           parameter for varying_array_ref calculations.
5896           (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5897         * ch-typeck.c (build_chill_slice_with_range): Correct issuance
5898           of bogus error in votrics.
5899           (build_chill_slice_with_length): Change for debug tracability.
5900
5901 Tue Jan  4 02:43:37 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5902
5903         * ch-convert.c (digest_structure_tuple): Fix phasing problem in
5904         handling variant record initializers.
5905         (various places): Change `pop_init_level' calls to match
5906         `push_init_level' wrt implicit variable.
5907
5908         * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
5909         `integer_type_node' before using it in comparisons.  FIXME: should
5910         this be done in `chill_max_vary_array_index' by default?
5911
5912 Tue Jan  4 00:24:14 1994  Bill Cox  (bill@cygnus.com)
5913
5914         * ch-actions.c: Fix comments.
5915         * ch-parse.y: Define caseaction_flag.
5916           (caseaction): Create new caseaction_flag node at the start,
5917           then free it at the end.  Check it before the ELSE code.
5918           (expanded_case_label): Check the flag here.  If set in either
5919           place, generate a jump to the end of the case.
5920         * ch-typeck.c (build_chill_slice_with_length,
5921           build_chill_slice_with_range): Add lots of compile-time
5922           parameter range checking.
5923
5924 Mon Jan  3 21:49:04 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5925
5926         * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
5927         implicit==0 everywhere, not 1.
5928         (digest_constructor): Ditto.
5929
5930         * ch-actions.c (check_range): Permit limits to be NULL_TREE.
5931         Also, hack out some dead code.
5932         * ch-typeck.c (build_chill_slice): Check varying and non-varying
5933         slice constructs for range failures.
5934         (build_chill_slice_with_range): Reindented, but not changed.
5935
5936         * ch-typeck.c (chill_max_vary_array_index): New function.
5937         * ch-expr.c (chill_expand_expr): Call it.
5938
5939         * ch-decl.c (var_data_id, var_length_id): New variables.
5940         (init_decl_processing): Initialize them.  All calls to
5941         get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
5942         by references to these variables.  This simplifies the code
5943         w/o obscuring anything.
5944
5945 Mon Jan  3 21:24:44 1994  Bill Cox  (bill@cygnus.com)
5946
5947         * c-typeck.c: Fix comment.
5948         * ch-actions.c (chill_expand_assignment): Error assigning to
5949           READONLY location.  (PR_3903)  Pass filename, linenumber
5950           to setbitpowerset runtime routine.
5951         * ch-decl.c (init_decl_processing): Add filename, linenumber
5952           parameters to setbitpowerset prototype.
5953         * ch-expr.c (build_chill_function_call): Error when passing a
5954           READonly location as a LOC or INOUT parameter.
5955         * ch-parse.y (mode): Correct code marking type as readonly.
5956
5957 Mon Jan  3 19:03:55 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5958
5959         * ch-actions.c (chill_expand_assignment): Disable code that defeats
5960         building varying array references.
5961         * ch-expr.c (chill_expand_expr): Add rangecheck code to
5962         VARY_ARRAY_REF case.
5963         * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
5964         function (in this case, `validate_varying_array_ref') when we're
5965         doing a `build_' operation.
5966
5967         * ch-typeck.c (validate_varying_array_ref): Simplify interface
5968         since INDEX parameter can never meaningfully be an INDEXLIST.
5969         * ch-actions.c (expand_varying_length_assignment): Caller changed.
5970
5971 Mon Jan  3 07:29:45 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5972
5973         * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
5974         * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
5975         if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
5976         (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
5977         call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD).  This
5978         can happen when constructors are output incrementally.
5979         * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
5980         * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
5981         CONSTRUCTORS.
5982
5983 Sun Jan  2 08:17:09 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5984
5985         * ch-convert (digest_structure_tuple): Handle SET_TYPEs.  Also, call
5986         `convert' so we can handle INSTANCE types (and other anomolies)
5987         correctly.
5988
5989         * ch-convert.c (digest_structure_tuple): Fixed variant
5990         structure initialization.  Also fixed a typo (TYPE_NAME
5991         was being used on a FIELD_DECL instead of DECL_NAME).
5992         * c-typeck.c (initializer_constant_valid_p): Pass missing
5993         ENDTYPE argument on recursive call.
5994         (set_init_field): New function, needed by ch-convert.c change above.
5995
5996         * ch-decl.c (layout_chill_variants): Added a FIXME next to an
5997         almost certain typo.
5998
5999         * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
6000         TREE_CONSTANT for static references.
6001         * ch-except.c (chill_start_on): Change calls to
6002         `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
6003         which has CHILL semantics.
6004         * ch-convert.c (convert): Ditto (albeit in some disabled code).
6005
6006 Sat Jan  1 21:26:43 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6007
6008         * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
6009         TREE_CODE of DECL in case it's altered by actions in the switch.
6010
6011         * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan.  CVS log
6012         mentions where to find code that triggers this case.
6013
6014         * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
6015         well.
6016
6017         * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
6018         we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
6019         (digest_constructor): Ditto.
6020
6021 Sat Jan  1 10:29:19 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6022
6023         * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
6024         so that CONSTRUCTORS are properly handled before being used.
6025
6026         * ch-convert.c (chill_start_init): New function.  All callers to
6027         `start_init' changed to call this function instead.
6028         (digest_struct_tuple): Defend against initialization machinery
6029         mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
6030         IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots.  This is
6031         needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
6032         can be refered to throughout the compilation unit.  Also remove an
6033         extraneous call to `process_init_element' erroneously added to the
6034         variant record sub-loop.
6035         (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
6036         CONSTRUCTORS of SET_TYPE.
6037         * ch-parse.y (build_chill_constructor): Refix typo.  Also set
6038         TREE_STATIC if at top level.
6039
6040         * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
6041         TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
6042         should have been called.
6043
6044         * ch-convert.c (digest_struct_tuple): Restore code which tracks
6045         field initializations so that the compiler can deduce what variant
6046         initializations to assume.
6047
6048         * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
6049         when we push into a scope that has a DECL with a CONSTRUCTOR as its
6050         DECL_INIT.
6051
6052         * ch-parse.y (build_chill_constructor): Change the name of the
6053         parameter to something more meaningful.  Fix typo.  Also, handle case
6054         where element is an untyped CONSTRUCTOR.
6055
6056         * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
6057         constant ADDR_EXPRs.
6058         (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
6059         on JBUF_REF (instead of calling `build1' which does not).
6060
6061         * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
6062
6063         * ch-typeck.c (chill_expand_tuple): Deleted.
6064         * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
6065         instead, use initialization machinery for CONSTRUCTORS that
6066         come through here.
6067         * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
6068         that are created here.
6069         * ch-satisfy (satisfy): Abort in case we would have called
6070         chill_expand_tuple.  FIXME: some other code is needed here,
6071         but I don't know what yet.
6072
6073         * ch-parse.y (build_chill_constructor): New function to
6074         propagate TREE_CONSTANT bits to CONSTRUCTORS.
6075         (untyped_expr rule): Use it.
6076         (primval rule): Use it.
6077
6078         * ch-decl.c (do_decl): Call `finish_init'.
6079         * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
6080         this function, make sure the initialization machinery is set up.
6081
6082         * ch-convert.c (digest_structure_tuple, digest_constructor): Add
6083         missing prototypes.
6084
6085 Fri Dec 31 11:31:01 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6086
6087         * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
6088         as being TREE_CONSTANT.  Otherwise it gets bounded by the initializer
6089         code.
6090
6091         * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
6092         * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
6093         rewritten to work with GCC's initialization code.  The basic change
6094         was to keep the initializers in sync with the initialization
6095         machinery that `process_init_element' imposes.  Both of these
6096         functions now return `void'.
6097         * ch-convert.c (convert): Changed calls to `digest_...' functions.
6098
6099         FIXME: the code handling UNION_TYPE (and variant records) has not
6100         been tested yet.
6101
6102 Fri Dec 31 15:32:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6103
6104         * ch-lex.l (convert_number): Output the converted number if
6105           yydebug is enabled.
6106         * ch-parse.y (signaldef): Set ignore_exprs correctly for a
6107           SIGNAL declaration.
6108
6109 Fri Dec 31 13:17:48 1993  Bill Cox  (bill@cygnus.com)
6110
6111         * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
6112           a RETURN without a value (which cannot have an exception
6113           handler) from a RETURN with a value (which can).  Eliminate
6114           some shift/reduce and reduce/reduce conflicts.
6115
6116 Thu Dec 30 17:42:32 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6117
6118         * ch-inout.c (build_chill_writetext): Deal with 2 cases where
6119         types returned from `type_for_size' are not expected.  FIXME.
6120         * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
6121         This is required when range checking is enabled.
6122
6123 Thu Dec 30 14:28:25 1993  Bill Cox  (bill@rtl.cygnus.com)
6124
6125         DELAY CASE works now.
6126         * ch-decl.c (init_decl_processing): Move rest of tasking-related
6127           initialization into tasking_init().
6128         * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
6129           (optsetprio): New non-terminal.
6130         * ch-tasking.c (get_task_name): Delete, obsolete.
6131           (build_instance_type): build pointer to instance type also.
6132           (build_receive_case_start): Cleanup per -Wall messages.
6133           (build_receive_case_label): Move between start and end functions.
6134           (build_delay_case_start): Pass SET name and priority also.
6135           Generally update to correct functioning.
6136           (build_delay_case_label): Move between start and end fucntions,
6137           correct its functioning.
6138           (build_delay_case_end): Correct the code.
6139           (tasking_init): Lots of tasking-related code moved here from
6140           init_decl_processing.
6141         * ch-tree.h: Update, add prototypes.
6142
6143 Wed Dec 29 10:13:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6144
6145         * ch-expr.c (build_chill_indirect_ref): Revert change which
6146           failed full regression testing.
6147         * ch-lex.l (name_type_signal): Add debug output.
6148         * ch-parse.y (structured_variable): Add a debug variable.
6149
6150 Wed Dec 29 02:05:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6151
6152         * ch-decl.c (get_next_decl): Revert change which failed full
6153           regression testing.
6154
6155 Tue Dec 28 18:20:14 1993  Bill Cox  (bill@rtl.cygnus.com)
6156
6157         DELAY actions work now.
6158         * ch-decl.c: Correct spelling in comments.
6159           (get_next_decl): NULL out the decl's TREE_CHAIN before returning
6160           it, to prevent accidental access to the remembered_decls.
6161           (init_decl_processing): Add wait_event to runtime functions.
6162         * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
6163           becoming a seg fault.
6164         * ch-grant.c: Correct a comment.
6165         * ch-loop.c: Delete/correct comments.
6166         * ch-parse.y (delaycaseaction): Add push/poplevel calls.  Turn 'sorry'
6167           into rough draft of actual code.
6168           (delayaction): Don't make a new scope here, use get_unique_identifier
6169           instead.
6170           (locdec): process event decls here, too.
6171           (mode): Add code to forbid READonly EVENT and BUFFER decls.  Delete
6172           code which required EVENTs and BUFFERs to be declared at global scope.
6173           (simple_name_string): Add an EVENTNAME.
6174         * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
6175           becoming a seg fault.
6176         * ch-tasking.c (tasking_setup): Add the event queue's max. length
6177           as the 'entry_point' parameter in the list.
6178           (build_receive_case_start, build_receive_case_label): Defer
6179           calling runtime routine until we know whether we have a signal
6180           or a buffer to wait for.
6181           (build_delay_case_start, build_delay_case_end,
6182            build_delay_case_label, build_delay_action,
6183            process_event_decls): Added functions.
6184         * ch-typeck.c (chill_similar): Allow all integers of differing
6185           precisions to be similar.
6186
6187 Thu Dec 23 18:00:40 1993  Bill Cox  (bill@rtl.cygnus.com)
6188
6189         * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
6190           options.  Delete C-specific defines.  Disable piping from
6191           pre-processor to cc1chill (even if -pipe is specified), since cc1chill
6192           rewinds its input for its second pass.  Piping still works
6193           from cc1chill to as.
6194
6195 Thu Dec 23 12:31:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6196
6197         * ch-tasking.c (decl_tasking_code_variable): Assure that the
6198           tasking_code variable is allocated on the permanent obstack.
6199           (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
6200           queue length (passed as the entry_point parameter).
6201           Other changes to variable names to increase 'self-documentation'
6202           the only kind GNU CHILL will get, for a while..
6203
6204 Wed Dec 22 10:46:31 1993  Bill Cox  (bill@rtl.cygnus.com)
6205
6206         * ch-decl.c (do_seize): Delete - it's unused.  Fix comments.
6207         * ch-loop.c (build_chill_iterator): Convert BY expression
6208           so loop involving a SET works.  Additional errors generated
6209           for numbered SET expression as start or end expression.
6210         * ch-tree.h: Prototypes for future DELAY functions.
6211         * ch-typeck.c: Standard indentation.
6212
6213 Tue Dec 21 15:30:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6214
6215         * ch-actions.c (build_cause_exception):  New function.
6216         (expand_cause_exception):  Re-write to use build_cause_exception.
6217         (check_expression, check_range):  New functions.
6218         (chill_convert_for_assignment):  New function.
6219         * ch-expr.c (build_chill_pred_or_succ):  New function.
6220         (build_chill_succ, build_chill_pred):  Removed.
6221         (build_generalized_call):  Use build_chill_pred_or_succ.
6222         * ch-lex.h, ch-lex.l (init_lex):  Add RID_OVERFLOW and RID_RANGEFAIL.
6223         * ch-lex.l (init_lex):  Use new macro to make more terse.
6224         * ch-typeck.c (chill_equivalent):  New function.
6225         Also check that ranges have the same bounds.
6226         * ch-typeck.c (my_build_array_ref):  Add optional range-checking.
6227         * ch-typeck.c (chill_location):  Handle COMPOUND_EXPR properly.
6228         Return 2 if also a referable.
6229         * ch-typeck.c (chill_referable):  Re-define to use chill_location.
6230         * ch-tree.h (CH_EQUIVALENT):  Re-defined to use chill_equivalent.
6231
6232         * dbxout.c (dbxout_type):  Output the type attribute "@S;" to
6233         distinguish a string from a char array, and to distinguish a
6234         bitstring from regulat (power)set.  (Needed for Chill.)
6235         * dbxout.c (dbxout_type):  Only check for baseclasses in
6236         type.binfo is a vector.  (It is used in Chill for tagged unions.)
6237
6238 Fri Dec 17 09:56:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6239
6240         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6241           ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
6242           ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
6243           Fix -Wall problems.
6244         * ch-actions.c (chill_expand_assignment): Error if assigning
6245           a value to a BUFFER or EVENT variable.
6246         * ch-expr.c (invalid_left_operand): Delete, unused.
6247         * ch-grant.c (tasking_setup): Call build_enum_tables.
6248         * ch-inout.c (get_final_type_and_range, build_enum_tables,):
6249           New functions.
6250           (build_chill_writetext): Lots of changes to support other
6251           basic CHILL data types.
6252         * ch-loop.c (build_chill_iterator): Lots of new code to check
6253           the expressions in a STEP loop.
6254         * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
6255           names in receivecasealternative.  Generate error messages
6256           if they're mixed in the same receive case.
6257           (process_buffer_decl): Renamed from build_buffer_decl.
6258         * ch-tree.h: Fix prototypes.
6259         * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
6260           correctly.  Thanks Per!
6261
6262 Wed Dec 15 15:05:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6263
6264         * ch-decl.c (push_scope_decls):  Re-arrange some more, so
6265         that normal SEIZES (without ALL) are handled before SEIZE ALL.
6266
6267 Wed Dec 15 13:01:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6268
6269         * ch-loop.c (declare_temps): Calculate end-of-array pointer
6270           using correct type (NOT chill_integer_type).
6271           (begin_chill_loop): Build loop-bypass expression in the
6272           type of the start expression, not in the unsigned type.
6273
6274 Tue Dec 14 15:41:32 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6275
6276         * ch-decl.c (push_scope_decls):  Re-arrange so that normal
6277         (non-seize) declarations are proclaim_decl'd *before* we
6278         handle the ALIAS_DECLs for seizes.  The advantage is
6279         that we can now test for (an approximation) to the
6280         'seizeable' concept, thus avoiding duplicate definitions
6281         when a module has both GRANTs and SEIZE ALL.
6282
6283         * ch-expr.c (build_chill_arrow_expr): No longer re-write
6284         addr-of-conversion to pointer-conversion-of-addr.
6285         * ch-expr.c (build_chill_addr_expr): Re-write to just use
6286         build_chill_arrow_expr.
6287
6288 Mon Dec 13 16:44:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6289
6290         * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr):  Don't re-write
6291
6292         * ch-tree.h (chill_root_resulting_mode):  Fix typo (missing '_').
6293
6294         * ch-expr.c (finish_chill_binary_op):  Use CH_ROOT_RESULTING_MODE
6295         macro (which works on expressions), rather than CH_RESULTING_MODE
6296         (which works on modes, and isn't quite correct).
6297         * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE):  New macro.
6298         * ch-typeck.c (chill_read_compatible, chill_compatible):
6299         Use the new macro, which handles NEWMODEs of PTR correctly.
6300         * ch-typeck.c (chill_similar):  Return 1 rather than 0 for
6301         dynamic-length array (and string) types (e.g. slices).
6302         * ch-typeck.c (chill_root_mode):  If the mode has a Novelty,
6303         just return it as is.  (This is still not 100% correct for
6304         NEWMODE of RANGEs, but is close enough.)
6305
6306 Mon Dec 13 16:27:06 1993  Bill Cox  (bill@rtl.cygnus.com)
6307
6308         * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
6309           build_buffer_decl, which then seg faults.
6310         * ch-tasking.c (build_buffer_descriptor): Move declaration
6311           of bufdecl closer to its use.
6312
6313 Mon Dec 13 14:57:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6314
6315         * ch-actions.c (chill_expand_result): Use expand_expr_stmt
6316           to avoid C-specific conversions.
6317         * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
6318         * ch-parse.y (sendaction): Delete unused statement, use the 'name'
6319           variable.
6320         * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
6321           conversions.
6322           (build_buffer_decl): Save the tasking_code_variable's decl
6323           in the buffer decl tree.
6324           (build_buffer_descriptor): Real, working version.
6325
6326 Mon Dec 13 03:13:36 1993  Bill Cox  (bill@rtl.cygnus.com)
6327
6328         * ch-decl.c (print_lang_identifier): Delete code
6329           to print buffer size - it's no longer kept here.
6330         * ch-parse.y (expand_send_buffer): Renamed from
6331           build_send_buffer.
6332           (locdec): Enable building of a buffer decl.
6333           (optresultspec, optresultattr): Add optional
6334           result attributes such as LOC.  Semantics
6335           not enabled yet.
6336         * ch-tasking.c (expand_send_buffer): Renamed.
6337         * ch-tree.h (build_send_buffer): Renamed.
6338         * ch-typeck.c (chill_expr_class): Do more complete,
6339           job of classifying expressions.  Thanks, Per.
6340
6341 Mon Dec 13 00:59:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6342
6343         * ch-typeck.c (chill_expr_class):  Return CH_DERIVED_CLASS
6344         for bitstring constants.
6345         * ch-typeck.c (chill_novelty):  The novelty of an (unnamed)
6346         range mode is that of its parent mode; the novelty of READ M
6347         is that of M.
6348
6349 Sat Dec 11 15:14:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6350
6351         * ch-expr.c (varying_to_slice):  Call stabilize_reference
6352         rather than save_expr.
6353         * ch-typeck.c (build_chill_slice):  Don't emit warning
6354         if array is a SAVE_EXPR (it is effectively referable).
6355         * ch-typeck.c (chill_root_resulting_mode):  Handle
6356         correctly the case that one operand is DERIVED and one is VALUE.
6357
6358 Fri Dec 10 10:00:42 1993  Bill Cox  (bill@rtl.cygnus.com)
6359
6360         * ch-grant.c (decode_decl): Restore code mistakenly deleted.
6361           Move instance-handling code to raw_decode_mode.
6362         * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
6363           Add rough draft of DELAY statement handling.
6364         * ch-tasking.c (build_event_type): New function.
6365         * ch-tree.h (build_event_type): Add prototype.
6366         * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
6367
6368 Wed Dec  8 18:02:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6369
6370         Parse and grant BUFFER modes.
6371         * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
6372           Moved from decode_decl.
6373         * ch-parse.y: Fix several sorry() messages.
6374         * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
6375           info.
6376
6377 Wed Dec  8 12:59:54 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6378
6379         * ch-actions.c (chill_expand_assignment):  In a multiple
6380         assignment, check that all the targets are equivalent.
6381
6382         * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT):  New function
6383         and macro to (partially) implement the relation l-equivalent.
6384         * ch-typeck.c (chill_read_compatible):  Implement at least
6385         initial check of read-only-ness.
6386         * ch-typeck.c (build_readonly_type):  Fix thinkos.
6387
6388 Wed Dec  8 09:11:46 1993  Bill Cox  (bill@rtl.cygnus.com)
6389
6390         * ch-decl.c (pop_module): Only warn about duplicate grant
6391           statements if they inhabit different files, by examining
6392           inode numbers.  Only report compatibility problems in pass 1.
6393         * ch-lex.l (chill_same_grant_file): New function to support the
6394           above test.
6395
6396 Tue Dec  7 17:10:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6397
6398         * ch-decl.c (start_chill_function):  Handle attributes in pass 1,
6399         rather than in pass 2.  (It seems to make more sense that way.)
6400         * ch-parse.y (procedureattr):  Build attribute list if pass != 2.
6401
6402         * ch-parse.y (mode):  Don't call build_readonly_type in pass 2.
6403
6404 Mon Dec  6 14:35:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6405
6406         This implements NOVELTY and READONLY checking.
6407         * ch-tree.def:  Added comment about use of LANG_TYPE.
6408         * ch-typeck.c (build_readonly_type, smash_dummy_type):  New functions.
6409         * ch-tree.h: New prototypes.
6410         * ch-decl.c (push_modedef):  If newmode, lazily "copy" the given mode
6411         immediately (even if it's just a type name), using a LANG_TYPE.
6412         * ch-parse.y (mode):  Call build_readonly_type to handle READ.
6413         * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6414         ch-satisfy.c (satisfy):  Handle a LANG_TYPE.
6415         * ch-decl.c:  Remove chill_modes_equiv and other unused junk.
6416         * ch-satisfy.c (safe_satisfy_decl/CONST_DECL):  Better
6417         mode compatibility checking for SYN declarations.
6418
6419         * ch-typeck.c (chill_similar):  Be more general when checking set
6420         modes for similarity - specifically support calling chill_similar
6421         BEFORE the modes have been satisfied (needed by proclaim_decl).
6422         * ch-decl.c (proclaim_decl):  Allow duplicate definitions
6423         of set elements of similar set modes.
6424
6425         * ch-parse.y (caseaction):  Call language-independent
6426         expand_start_case rather than c_expand_start_case (which
6427         doesn't allow chars or booleans).
6428
6429 Sat Dec  4 22:16:19 1993  Bill Cox  (bill@rtl.cygnus.com)
6430
6431         * ch-actions.c (cond_range_exception,
6432           cond_type_range_exception): Check command-line flag before
6433           generating code.  Fix comments.
6434         * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6435           code, commented out.
6436         * ch-loop.c (build_chill_iterator): Comment out
6437           exception code generation.
6438         * ch-parse.y: Delete quasi_signal flag, use
6439           current_module->is_spec_module instead.
6440         * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6441           Delete quasi_decl flag.  Look at current_module
6442           instead.
6443         * ch-tree.h: Take quasi_decl flag out of buffer
6444           related prototypes.
6445         * ch-typeck.c (valid_array_index, chill_similar):
6446           Comment out runtime range checking for now.
6447         * expr.c (store_constructor): Fix word-size set problem.
6448         * varasm.c (emit_set_data): Fix word-size set problem.
6449
6450 Wed Dec  1 19:08:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6451
6452         * ch-actions.c: Delete unused prototype for build_compound_expr.
6453         * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6454           expression to lp->iter_type before expanding it.  Prevents an abort
6455           deep in expand_expr and friends.
6456
6457 Wed Dec  1 17:00:44 1993  Bill Cox  (bill@rtl.cygnus.com)
6458
6459         * ch-actions.c (chill_expand_assignment): Comment out strange
6460           test and its error message.
6461         * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6462           jump around the loop.
6463         * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6464
6465 Wed Dec  1 14:19:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6466
6467         * ch-actions.c (cond_exception): Clarify that it generates
6468           an exception if the given expression is TRUE.  Make it so, Number One.
6469         * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6470           (print_lang_type): Print max queue size.
6471           Add casts to DECL_TASKING_CODE_DECL references.  Fixes a
6472           portability problem.
6473           (init_decl_processing): Add filename and linenumber arameters
6474           to tasking and memory-allocate runtime prototypes.
6475         * ch-expr.c (finish_chill_binary_op): Check for division
6476           by a constant zero.  Replace build_temporary_variable
6477           calls with decl_temp1 calls, to decouple from ch-loop.c.
6478           (build_chill_succ, build_chill_pred): Sketch code to generate
6479           exceptions.  Add error check for numbered set.
6480           (build_generalized-call): Correct call for return_memory.
6481           Standardize whitespace before left parens.
6482         * ch-grant.c: Use new macro for checking for BUFFER mode.
6483         * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6484           and EVENT names.
6485         * ch-loop.c (build_temporary_variable): Make static, unavailable
6486           to outsiders.
6487           (declare_temps): Make user's variable for him/her, in the
6488           true Z.200 case, where it hasn't previously been declared.
6489           (begin_chill_loop): simplify control flow a bit.
6490         * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6491           (rccase_label): Delete bogus error checks.  Rough draft of
6492           BUFFER-related code.
6493           (assertaction): Remove logical negation - it's now in cond_exception.
6494           (locdec): Sketch of buffer-related code.
6495           (non_array_mode): Add EVENT and BUFFER modes here.  Add setting of
6496           set-numbered flag for pred and succ functions.
6497           (optqueuesize): Default to integer_zero_node.
6498           (simple_name_string): Add BUFFERNAME.
6499         * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6500           (build_chill_start_process, expand_send_signal,
6501            build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6502           to tasking-related runtime calls.  Sketches of BUFFER mode
6503           processing.
6504         * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6505           macro, for portability to non-gcc compilers.  Add prototypes
6506           for buffer-related functions.
6507         * ch-typeck.c: Replace build_temporary_variable calls with
6508           decl_temp1 calls, to decouple from ch-loop.c.
6509           (chill_similar): Add tests for BUFFER and EVENT modes.
6510
6511 Wed Dec  1 14:05:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6512
6513         * ch-actions.c (malloc prototype):  Remove; can cause conflicts.
6514
6515 Wed Dec  1 09:49:58 1993  Bill Cox  (bill@rtl.cygnus.com)
6516
6517         * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6518
6519 Tue Nov 30 14:05:23 1993  Bill Cox  (bill@rtl.cygnus.com)
6520
6521         * ch-decl.c (init_decl_processing): Add filename, line number
6522           parameters to tasking-related runtime routines.
6523         * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6524         * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
6525           lex-only list.
6526           (quasi_locdec): Set/reset quasi_decl flag.
6527         * ch-tasking.c (build_start_process, expand_send_signal,
6528           build_receive_case_start, build_send_buffer): Add filename. linenumber to
6529           (build_buffer_decl, build_buffer-type): New rough-draft functions.
6530           generated runtime routine call.
6531         * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6532           to mark a synchronization mode.  Update the prototypes.
6533         * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6534           similarity.
6535
6536 Tue Nov 30 09:51:47 1993  Doug Evans  (dje@canuck.cygnus.com)
6537
6538         * cccp.c (main): Add missing chill sanitization.
6539
6540 Sun Nov 28 15:50:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6541
6542         * ch-loop.c (initialize_iter_var): Build count expression
6543           more robustly.
6544           (bottom_loop_end_check): Call emit_line_note.
6545           (end_chill_loop): Delete emit_line_note call.
6546         * ch-parse.y (doaction): Move DO keyword
6547           after end_chill_loop call.
6548
6549 Wed Nov 24 08:49:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6550
6551         * c-typeck.c (c_expand_start_case): Back out previous
6552           change.
6553
6554 Tue Nov 23 12:33:50 1993  Bill Cox  (bill@rtl.cygnus.com)
6555
6556         * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6557           type as a CASE label.
6558
6559 Tue Nov 23 11:37:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6560
6561         * ch-decl.c (grok_chill_variantdefs):  Use NULL as the name
6562         of variant fields (not __CASE or anything based on it).
6563         * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6564         Don't check for field name __CASE.
6565
6566 Tue Nov 23 09:37:54 1993  Bill Cox  (bill@rtl.cygnus.com)
6567
6568         * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6569           name for the FIELD_DECL.
6570         * ch-parse.y (optstartset): More error tests.
6571         * ch-tasking.c (make_process_struct): Only report error in pass 1.
6572           (build_start_process): Remove bogus restriction, allowing
6573           an INSTANCE expression as the optset parameter.
6574
6575 Mon Nov 22 17:56:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6576
6577         * ch-tree.h (expand_function_end):  Now is takes parameters, not 2.
6578         * ch-decl.c (finish_chill_function):  Add 3rd parameter to
6579         call of expand_function_end.
6580
6581         * ch-expr.c (chill_expand_expr):  For set and strings ops,
6582         if target is in a register, use a stack temporary (since we must
6583         take its address).  (Similar to Oct 29 change for store_constructor.)
6584         * ch-expr.c (resolve_component_ref):  Fix variant field lookups.
6585
6586 Mon Nov 22 14:23:13 1993  Bill Cox  (bill@rtl.cygnus.com)
6587
6588         * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6589           parameter 1 and its mode are always in sync.
6590           (build_chill_pred, build_chill_succ): Allow pred/succ of a
6591           pointer.
6592         * ch-loop.c (chill_unsigned_type): New function, used instead of
6593           unsigned-type, since it understands the chill_integer_type.
6594           (decl_iteration_var): Delete, use build_temporary_variable
6595           instead.
6596           (declare_temps): Use lp->iter_type for the temp evaluations.
6597           (initialize_iter_var): More careful calculation, to handle
6598           MININT to MAXINT loops w/o overflow/underflow.
6599           (begin_chill_loop): Use the original start/end expressions
6600           for the loop bypass test.
6601
6602 Mon Nov 22 14:02:06 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6603
6604         * ch-typeck.c (build_chill_slice):  If the argument is
6605         is constant, use a read-only static variant, as the
6606         existing algorithm assumes addressability.
6607         * ch-typeck.c (chill_compatible):  De-reference reference types.
6608         * ch-typeck.c (layout_chill_range_type):  Set TREE_UNSIGNED.
6609
6610 Sat Nov 20 20:17:15 1993  Bill Cox  (bill@rtl.cygnus.com)
6611
6612         * ch-decl.c (init_decl_processing): Add filename
6613           and linenumber to allocate, free memory calls.
6614         * ch-expr.c (build_allocate_memory_call,
6615           (build_allocate_global_memory_call): Add
6616           filename, linenumber to call.
6617         * ch-loop.c: Complete rewrite for maintainability.
6618
6619 Sat Nov 20 17:30:05 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6620
6621         * ch-except.c:  Make it so that (by default at least) the
6622         code to push/pop the __exceptionStack is done using library
6623         functions __ch_link_handler and __ch_unlink_handler.  This
6624         provides better flexibility (for e.g. multi-threading).
6625
6626         * ch-decl.c (layout_chill_variants):  Allow (useless) selectors
6627         even for tag-less variants.
6628
6629 Fri Nov 19 14:32:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6630
6631         * ch-decl.c (init_decl_processing): Add memmove builtin
6632           function definition.
6633         * ch-actions.c (chill_expand_array_assignment): Use memmove
6634           call to copy an array or slice across the assignment.
6635
6636 Wed Nov 17 18:23:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6637
6638         * ch-satisfy.c (satisfy):  If a CONTRUCTOR already has a
6639         TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6640         to force expansion (processing of the elements).
6641         * ch-grant.c (decode_constant):  If a tuple (CONTRUCTOR) has
6642         a mode, write it out.
6643         * ch-decl.c (init_decl_processing): Add some missing inits.
6644
6645 Wed Nov 17 17:13:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6646
6647         * ch-loop.c: Fix unterminated strings in design comments.
6648           Add enumeration to the iterator structure for type of loop.
6649           unused for now.
6650
6651 Wed Nov 17 16:40:05 1993  Bill Cox  (bill@rtl.cygnus.com)
6652
6653         * ch-decl.c (init_decl_processing): Add long parameters to lots
6654           of powerset runtime routines.
6655         * ch-expr.c (chill_expand_expr): Change parameters to powerset
6656           runtimes so bitlengths are long unsigned ints.
6657         * ch-inout.c (build_chill_writetext): Add filename and linenumber
6658           as runtime parameters, for better error messages.
6659         * ch-loop.c: general pre-rewrite cleanup.
6660         * expr.c (store_constructor): Rewrite set interface to
6661           setpowersetbits for long bitnumbers, rather than shorts.
6662
6663 Tue Nov 16 13:41:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6664
6665         * ch-expr.c (build_chill_function_call): Stop generating empty
6666           copyback statements, which lead to a seg fault.
6667
6668 Tue Nov 16 12:20:17 1993  Per Bothner  (bothner@cygnus.com)
6669
6670         * ch-satisfy.c (satisfy):  If satisfying a type whose
6671         TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6672         * ch-actions.c (build_exception_variant):  Remove some crud.
6673         * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6674         Remove unused first argument.
6675         * ch-decl.c (start_chill_function):  Call build_exception_variant
6676         in pass 1, not in pass 2.
6677
6678 Tue Nov 16 11:10:03 1993  Bill Cox  (bill@rtl.cygnus.com)
6679
6680         * ch-decl.c (shadow_record_fields): Call new function
6681           build_chill_arrow_expr, which returns a ptr-to-a-type.
6682         * ch-expr.c (build_chill_arrow_expr): New function, works like
6683           build_chill_addr_expr used to do, returning a typed ptr.
6684           (build_chill_addr_expr): Now returns unbound ref - analogous
6685           to C 'void *'.
6686         * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6687           (operand6): Call build_chill_arrow_expr.  Reindent a bit.
6688         * ch-tree.h (build_chill_arrow_expr): New prototype.
6689
6690 Mon Nov 15 16:38:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6691
6692         * stor-layout.c (layout_type): If a SET_TYPE needs more than
6693         INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6694
6695         * ch-decl.c (start_chill_function):  Set DECL_CONTEXT of params.
6696
6697 Mon Nov 15 14:49:17 1993  Bill Cox  (bill@rtl.cygnus.com)
6698
6699         * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6700           build_function_call, etc.) to tasking_init.
6701         * ch-gperf, ch-hash.h: Add ASM keyword.
6702         * ch-parse.y: Add ASM statement rules.
6703           (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6704         * ch-tasking.c: Move tasking stuff here.
6705
6706 Sun Nov 14 15:50:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6707
6708         * ch-parse.y (mode2):  Split into array_mode and non_array_mode
6709         to resolve layout ambiguity.
6710         * ch-parse.y (checked_name):  Remove.  Use name_string instead.
6711         * ch-parse.y (variantdef):  Don't crash if no tag fields.
6712         * ch-typeck.c (build_chill_array_type):  If varying_p,
6713         actually do build_varying_struct here (rather than in ch-parse.y).
6714
6715 Fri Nov 12 15:37:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6716
6717         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6718         static names.  (Let make_decl_rtl generate a unique name.)
6719
6720 Sun Nov 14 13:15:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6721
6722         * ch-expr.c (build_chill_lower, cuild_chill_upper):
6723           Rewrite for modes, values, etc.
6724         * ch-inout.c (build_chill_writetext): Add ability
6725           to write out characters.
6726         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6727           static names.  (Let make_decl_rtl generate a unique name.)
6728         * varasm.c (unpack_set_constructor): Subtract
6729           lower domain value from a bit's index value,
6730           to match the runtime and allow powersets
6731           with negative lower bounds.
6732
6733 Fri Nov 12 14:00:48 1993  Bill Cox  (bill@rtl.cygnus.com)
6734
6735         * ch-inout.c (build_chill_writetext): Save reserved words in
6736           uppercase if -fspecial_UC was specified.
6737
6738 Fri Nov 12 13:27:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
6739
6740         * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6741         string concatenation by treating varying strings as slices.
6742         (varying_to_slice): New function.
6743         * ch-typeck.c (build_chill_slice): Changed to support the above.
6744
6745 Fri Nov 12 12:07:28 1993  Bill Cox  (bill@rtl.cygnus.com)
6746
6747         * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6748         * ch-expr.c (build_generalized_call): Start module before a
6749           writetext action, so its variables are inside the module-level
6750           function.
6751         * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6752           for enumeration loop on a varying array.
6753
6754 Thu Nov 11 07:49:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6755
6756         * cccp.c (main): Disable trigraphs for CHILL.
6757         * ch-decl.c (grok_chill_fixedfields): Add special_UC
6758           to conditional to determine case of reserved words.
6759           Make PACK/UNPACK warning more specific.
6760         * ch-expr.c (build_generalized_call): Enable recognition
6761           of WRITETEXT call here.
6762         * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6763           word.  It's only predefined.
6764         * ch-inout.c: Add special_UC to conditionals
6765           to determine case of reserved words.
6766           (build_chill_writetext): Change for call from
6767           build_generalized_call.  Add code to format
6768           integers.
6769         * ch-lang.c (lang_decode_option): Add special_UC and
6770           special_LC flags and logic to interlock with
6771           ignore_case flag.
6772         * ch-lex.l: Add special_UC to conditionals
6773           to determine case of reserved words.
6774         * ch-parse.y: Delete WRITETEXT as reserved word.
6775         * ch-tasking.c: Add special_UC to conditionals
6776           to determine case of reserved words.
6777           (build_instance_type): Make components of INSTANCE
6778           unsigned 16-bit integers.
6779         * ch-tree.h (build_chill_writetext): Fix prototype.
6780         * ch-typeck.c (build_chill_array_type): Make PACK
6781           /UNPACK warning more specific.
6782         * toplev.c (lang_options): Add -fspecial_LC
6783           and -fspecial_UC flags.
6784
6785 Wed Nov 10 02:29:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6786
6787         * Makefile.in: Move ch-hash.h from ch-lex.o
6788           rule to ch-lex.c rule, so flex is rerun.
6789         * ch-actions.c (chill_expand_assignment): Error if
6790           user tries to assign to a LHS function.
6791         * ch-decl.c (grok_chill_fixedfields): Use of PACK
6792           /UNPACK is only a warning.
6793           (init_decl_processing): Add ADDR as a builtin function.
6794         * ch-expr.c (build_generalized_call): Add ADDR
6795           as a builtin function.
6796           (build_chill_addr_expr): Sanity check parameters.
6797         * ch-gperf: Remove ADDR as a reserved word,
6798           make ASM into one.
6799         * ch-hash.h: gperf'd version of the above.
6800         * ch-inout.c (chill_stdio_p): Recognize upper/lower
6801           case file names.
6802         * ch-lex.l: Make ignore-case work.  Downcase
6803           token before checking for reserved words.
6804         * ch-parse.y: Delete ADDR as a reserved word.
6805           (mode2, optlayout): Allow PACK/UNPACK specifier.
6806           (call): Use build_generalized_call for
6807                   primval LPRN modename RPRN.
6808           (primval): Delete ADDR reference.  It's now only
6809           predefined, not reserved.
6810         * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6811         * ch-typeck.c (build_chill_array_type): Just
6812           a warning for PACK/UNPACK usage.
6813         * toplev.c: Add -fignore-case and -fno-ignore-case.
6814
6815 Tue Nov  9 15:07:02 1993  Bill Cox  (bill@rtl.cygnus.com)
6816
6817         * ch-actions.c: Reindent for readability.
6818         * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6819           a conversion to INSTANCE.
6820         * ch-decl.c: Change special_UC to ignore_case everywhere.
6821           (init_decl_processing): Add builtin_function calls for lots of
6822           predefined functions.
6823         * ch-expr.c: Change builtin function handlers back to accepting
6824           args, not a treelist.
6825           (route_to_predefined_function): Delete it and its call.
6826           (build_generalized_call): Add lots of builtin functions.
6827         * ch-gperf (backwards, duration, inttime, null): Delete them.
6828         * ch-hash.h: New version.
6829         * ch-inout.c: Change special_UC to ignore_case everywhere.
6830         * ch-lang.c: Delete special_UC flag.
6831         * ch-lex.l: Change special_UC to ignore_case everywhere.
6832         * ch-loop.c (high_domain_value, low_domain_value): Change
6833           interfaces to build_chill_upper and built_chill_lower.
6834         * ch-parse.y: Delete lots of stuff which should only be predefined.
6835         * ch-tasking.c: Change special_UC to ignore_case everywhere.
6836           Change builtin function handlers back to accepting args,
6837           not a treelist.
6838         * ch-tree.h: Add lots of builtin functions to the enumerator.
6839
6840 Mon Nov  8 18:08:27 1993  Bill Cox  (bill@rtl.cygnus.com)
6841
6842         * ch-tasking.c (tasking_init): Disable last-minute change for now.
6843
6844 Mon Nov  8 17:30:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6845
6846         * Makefile.in: New commands to build ch-hash.h.  Add ch-lex.h to
6847           dependencies where it's used.
6848         * ch-decl.c (init_decl_processing): Build predefined constants
6849           for TRUE, FALSE and NULL.  Add declaration for abs builtin
6850           function.
6851           (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6852           stuff for builtin constant like TRUE.
6853         * ch-expr.c (route_to_predefined_function): Add a bunch of
6854           predefined functions to the list.
6855         * ch-gperf: Define the list of reserved words, minus the predefined
6856           words, using the special_UC flag.  Remove NULL, TRUE, FALSE -
6857           these are only predefined, not reserved.
6858         * ch-hash.h: Check this into repository, even though it's derived
6859           from ch-gperf, for those users who don't have gperf.
6860         * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6861           to refer to the IO types. Standardize the indentation.
6862         * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6863         * ch-lex.l: Total rewrite of reserved-word recognition, using
6864           the ch-hash.h lookup routines.
6865         * ch-parse.y: Delete a bunch of unused rules for predefined
6866           procedures and their parameters.
6867         * ch-tasking.c (tasking_init): Build predefined functions
6868           for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE.  Not
6869           complete yet.  Change interface to builtin handlers to accept
6870           just an expression list.
6871
6872 Wed Nov  3 18:07:08 1993  Bill Cox  (bill@rtl.cygnus.com)
6873
6874         * Makefile.in: Debug, activate rule to make CHILL hash table.
6875         * ch-actions.c: Compress parameter type lists per standard.
6876         * ch-decl.c: Correct spelling in comment, compress parameter lists.
6877           (init_decl_processing): Check special_UC flag to build builtin
6878           function declarations.
6879         * ch-expr.c (route_to_predefined_function): Check for upper OR
6880           lowercase function names.
6881         * ch-gperf: Update the list of keywords.
6882         * ch-inout.c (build_chill_io_list): Check for special_UC flag
6883           to build I/O list type.  Compress parameter lists.
6884           (chill_stdio_p): Check for special_UC flag in recognizing
6885           file streams.
6886         * ch-lang.c (lang_decode_option): Add command-line options
6887           for upper-case keywords and user labels.
6888         * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6889           if special_UC flag is set.
6890           (downcase, getlc, check_newline): Don't do this if ignore_case
6891           flag is set.
6892         * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6893           multiple selector expressions.
6894
6895 Sat Oct 30 01:06:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6896
6897         * ch-expr.c (compare_record, finish_chill_binary_op): Compare
6898         STRUCTs (and INSTANCEs) for equality.
6899         * ch-expr.c (invalid_operand):  New functions, combines most of
6900         the functionality of invalid_left_operand and invalid_right_operand.
6901         * ch-convert.c (digest_constructor):  Set TREE_CONSTANT if it is.
6902
6903 Sat Oct 30 11:12:47 1993  Bill Cox  (bill@rtl.cygnus.com)
6904
6905         * Makefile.in (chill): Add back in the commands to build chill
6906           (the script) from chill.in.
6907
6908 Fri Oct 29 16:25:38 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6909
6910         * expr.c (store_constructor):  If SET_TYPE target is in a register,
6911         use a stack temporary (since we must take its address).
6912
6913         * ch-expr.c (build_allocate_global_memory_call,
6914         build_allocate_memory_call):  Cast argument pointer to PTR,
6915         if needed (using location cast).  Also, some other cleanups.
6916         * ch-parse.y (bracketed_action):  Re-arrange things so that
6917         a handler following BEGIN END comes before the final poplevel.
6918         * ch-typeck.c (build_chill_cast): Just return if already correct type.
6919
6920         Re-do DO WITH so that build_component_ref for is done lazily
6921         (at each reference) instead of eagerly (at the beginning
6922         of DO WITH).  This is needed for tagged variants,
6923         * ch-tree.def (WITH_DECL):  New declaration tree code.
6924         * ch-decl.c (lookup_name):  Recognize WITH_DECLs.
6925         * ch-decl.c (handle_one_level):  Variant parts are currently
6926         indicacted with '__CASE'.  Recognize that.
6927         Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
6928
6929 Thu Oct 28 22:17:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6930
6931         * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
6932         Remove some old crud.
6933         * ch-typeck.c (build_chill_cast):  Another attempt at a
6934         compromise between robustness and generality for casts.
6935         Location conversions are now less likely to confuse things.
6936         * ch-parse.y (optactions):  Allow further optactions following
6937         an initial semicolon.
6938         * ch-parse.y:  Add error messages on EVENT and BUFFER.
6939
6940         * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
6941         Undo some of the Oct 27 changes.
6942
6943         Convert (some) builtin functions previously using reserved
6944         names to be just predefined.
6945         * tree.h (enum builtin_in_function):  Added END_BUILTINS at end.
6946         * ch-decl.c:  Add predefines for allocate_memory,
6947         allocate_global_memory, return_memory, writetext.
6948         * ch-expr.c (check_arglist_length):  New function.
6949         * ch-expr.c (build_generalized_call):  If "function" is
6950         a builtin, build the appropriate tree.
6951         * ch-parse.y, ch-lex.l:  No longer recognize many pre-defined
6952         functions at the lexer/parser level.
6953         * ch-tree.h (enum chill_built_in_function):  New type.
6954
6955 Thu Oct 28 16:43:36 1993  Bill Cox  (bill@rtl.cygnus.com)
6956
6957         * ch-expr.c (allocate_memory, allocate_global_memory):
6958           Check for invalid parameters, issue errors.
6959         * expr.c (store_constructor): Calculate bitlength, startrtx
6960           and endrtx of powerset correctly.  Define targetx, use it
6961           and XEXP correctly.
6962
6963 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6964
6965         * ch-expr.c (build_max_min): Error for passing empty tuple
6966           as the argument.
6967
6968 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6969
6970         * ch-decl.c (init_decl_processing): Make allocate
6971           builtins have a pointer-to-pointer-to-void
6972           first parameter, rather than a reference parameter.
6973         * ch-expr.c (build_allocate_memory_call,
6974           build_allocate_global_memory_call): Do automatic
6975           ADDR () on the first parameter, for backward
6976           compatibility.
6977         * ch-grant.c (grant_one_decl): Don't grant if
6978           DECL_SOURCE_LINE is zero.
6979           (start_chill_module_code): Set DECL_SOURCE_LINE
6980           to zero so that module-level function isn't granted.
6981         * ch-parse.y (handleraction): Add return_memory action.
6982         * ch-typeck.c (chill_similar): Allow a void_type
6983           to be similar to anything.  This makes allocate_memory
6984           and return_memory pointer parameters slide through.
6985
6986 Tue Oct 26 00:12:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6987
6988         * ch-typeck.c (build_chill_array_ref):  Check for and complain
6989         if there are more index expressions than the array rank.
6990
6991         * ch-actions.c (chill_expand_assignment):  Emit appropriate
6992         error message if RHS of multiple assignment is tuple/case/if.
6993         * ch-tree.def (CONCAT_EXPR):  Change TREE_CODE_CLASS from
6994         'e' to the more specific '2'.  (Fixes a satisfy bug.)
6995
6996 Thu Oct 21 17:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
6997
6998         * ch-parse.y: Revert experimental error-generating change
6999           that was checked in by mistake.
7000
7001 Thu Oct 21 12:15:30 1993  Bill Cox  (bill@rtl.cygnus.com)
7002
7003         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7004           code variables associated with a process or signal.
7005           (Apparently I forgot to actually check these in last time.)
7006         * ch-tasking.c: Replace last calls to get_tasking_code with
7007           working references to DECL_TASKING_CODE_DECL.
7008
7009 Thu Oct 21 10:27:42 1993  Bill Cox  (bill@rtl.cygnus.com)
7010
7011         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7012           code variables associated with a process or signal.
7013         * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
7014           tasking_code_decl pointer, rather than trying to look it up
7015           in the hash table or linked scope list.
7016
7017 Wed Oct 20 09:52:44 1993  Bill Cox  (bill@rtl.cygnus.com)
7018
7019         * ch-actions.c (lookup_and_handle_exit): Only output error message
7020           in pass 1.
7021         * ch-convert.c (convert): Correct conversion of VARYING array to/
7022           from non-VARYING one.
7023         * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
7024           field in the node.
7025           (decl_tasking_code_var): Delete it.  Its calls are replaced woth
7026           generate_tasking_code_variable calls, plus a little glue.
7027           (push_extern_process): generate tasking_code_variable as local
7028           static variable, point the process' function_decl at it for later
7029           reference by build_start_process.
7030           (print_mode): Use CHILL upper-case convention to print modes.
7031         * ch-lex.l: Must initialize tasking-related trees to NULL at start
7032           of each pass, or we lose the fact that the user did or did not
7033           specify a value for each of them.
7034         * ch-parse.y (check_end_label, action, exceptlist): Only output
7035           error message in pass 1.
7036           (sendaction): Add comments.
7037           (sigdef): Comment out special handling for external signals.
7038           Chain tasking_variable_decl onto signal structure decl, for
7039           easier non-symbol-table access later.
7040         * ch-tasking.c (generate_tasking_code_variable): Do work in both
7041           passes, using do_decl so we can pass the pass 2 value of the
7042           process_type or signal_code to it.  Only update the process_type
7043           if the incoming pointer isn't null and pass == 2.  Use a new
7044           parameter to know whether to include an init expression.
7045           (build_process_header): Attach tasking-code_variable to process
7046           function_decl for easy access later, not through the hash table.
7047           (build_start_process): Get tasking_code_variable out of the process'
7048           function decl.
7049           (build_signal_struct_type): Return the type decl, to be accessed by ...
7050           (build_signal_descriptor): .. this function.
7051           (build_receive_case_label): Get data buffer pointer not from hash
7052           table, but from Tiemann's current rc_state structure instead.
7053         * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
7054           macro for tasking_code_variable storage.
7055
7056 Tue Oct 19 17:39:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7057
7058         * ch-lex.l (equal_number):  If the "number" is a CONST_DECL,
7059         return its DECL_INITIAL.
7060         * ch-satisfy.c (safe_satisfy_decl):  Change logic for rtl
7061         generation for decls to not use DECL_ASSEMBLER_NAME.
7062         * ch-decl.c:  Set DECL_ASSEMBLER_NAME to DECL_NAME.
7063         This matches C, and allows dbxout to emit proper user-level names.
7064         (It would be cleaner to fix dbxout to use DECL_NAME ...)
7065         * ch-decl.c (outer_decls):  New global list of the decls granted
7066         into the outer scope.
7067         (pop_module):  Change code that grants into outer scope accordingly.
7068         (lookup_name_for_seizing):  Similarly update.
7069         (push_scope_decls):  Handle SEIZE ALL from the global scope
7070         by searching outer_decls.
7071         * ch-grant.c (grant_array_type):  Fix thinko.
7072         * ch-inout.c (build_chill_writetext):  Remove excessive TREE_TYPE.
7073
7074 Mon Oct 18 15:57:00 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7075
7076         * varasm.c (output_constructor):  Add support for non-zero
7077         lower array bound.
7078         * c-typeck.c (output_init_element):  Revert recent changes.
7079         * varasm.c (emit_set_data):  Fix emitting set constant data.
7080         * ch-lex.l (yywrap):  Reset line number to 0, not 1.
7081         It sets incremented to 1 by check_newline.
7082         * ch-tree.h:  Restore old version.
7083         * ch-expr.c (finish_chill_binary_op):  Convert TRUNC_DIV_EXPR
7084         to RDIV_EXPR if an operand is floating.  (This functionality
7085         got dropped when hacking finish_chill_binary_op).
7086
7087         * ch-actions.c (build_chill_case_expr):  Set type to NULL_TREE.
7088         not error_mark_node.
7089         * ch-actions.c (chill_expand_assignment):  Allow such borderline
7090         constructs as:  LHS OR:= [X].
7091         * ch-convert.c (convert):  Hande CASE_EXPR (and COND_EXPR)
7092         with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
7093         * ch-decl.c (do_decl):  Remove CONSTRUCTOR kludge.
7094         * ch-typeck.c (chill_compatible):  Allow expr to have NULL mode
7095         if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
7096
7097 Mon Oct 18 13:20:53 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
7098
7099         * c-typeck.c (output_init_element): Limit previous changes to
7100         ARRAY_TYPE and SET_TYPE initializers.
7101
7102 Sun Oct 17 23:15:00 1993  Bill Cox  (bill@cygnus.com)
7103
7104         * c-typeck.c (output_init_element): Handle NULL domain case.
7105         * ch-decl.c (do_decl): Revert bogus initializer type change.
7106         * ch-grant.c (chill_finish_module_code): Put module's decl onto
7107           the module_init_list, for chill_finish_compile's possible use.
7108           (chill_finish_compile): Rename variables for clarity, add
7109           commented-out code as example for assignment of module address to its
7110           init_list entry.
7111
7112 Sun Oct 17 15:16:54 1993  Bill Cox  (bill@cygnus.com)
7113
7114         * ch-convert.c: Move semicolon to separate line - easier to see.
7115         * ch-decl.c (do_decl): Handle untyped_expr initializers by
7116           simply using the variable's declared type - no compatibility
7117           check can be made if the expression has no type.
7118         * ch-expr.c (expand_packed_set): Fix endless loop - increment
7119           the loop variable.
7120           (fold_set_expr): Fix two other endless loops by passing
7121           correct parameters to unpack_set_constructor.
7122         * varasm.c: Standardize 'for' loop.
7123
7124 Sun Oct 17 12:16:21 1993  Bill Cox  (bill@cygnus.com)
7125
7126         * c-typeck.c (output_init_element): Handle initializer for
7127           array with non-zero lower index bound.
7128
7129 Sat Oct 16 16:48:48 1993  Per Bothner  (bothner@cygnus.com)
7130
7131         * ch-expr.c (finish_chill_binary_op):  Use TREE_SET_CODE
7132         to change TREE_CODE.
7133
7134 Sat Oct 16 08:07:17 1993  Bill Cox  (bill@rtl.cygnus.com)
7135
7136         * ch-expr.c (finish_chill_binary_op): Disable
7137           rough-draft code, not intended for release.
7138
7139 Fri Oct 15 21:44:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
7140
7141         * expr.c (store_constructor): use PROTO for pack_set_constructor
7142
7143 Fri Oct 15 10:30:09 1993  Bill Cox  (bill@cygnus.com)
7144
7145         * ch-expr.c (finish_chill_binary_op): Activate some
7146           type-setup code.
7147         * expr.c (store_constructor): Subtract arrays minimum element.
7148           Makes orientexpress work.
7149
7150 Fri Oct 15 09:26:24 1993  Bill Cox  (bill@cygnus.com)
7151
7152         * ch-convert.c, ch-expr.c: Add externs so it'll compile.
7153         * ch-tree.def: Add BASED_DECL definition.
7154
7155 Thu Oct 14 13:20:02 1993  Bill Cox  (bill@cygnus.com)
7156
7157         * ch-actions.c (build_chill_cause_exception): Pass the
7158           *address* of the filename string to the runtime routine,
7159           rather than passing the string by value.
7160
7161 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7162
7163         * expr.c (store_constructor):  Use a (usually) more efficient
7164         algorithm for setting SET types.
7165
7166 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7167
7168         Changes to better support 1984 version of Chill, which doesn't
7169         really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
7170         * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings):  New flag.
7171         * ch-typeck.c (chill_similar):  Support flag_old_strings.
7172         * ch-convert.c (convert_to_boolean):  Generalize code to
7173         convert singleton bitstring to Boolean.
7174         * ch-convert.c (convert):  Use string_one_type_node.
7175         * ch-convert.c (convert):  Add code to convert Boolean to BOOLS(1).
7176         * ch-convert.c (convert):  In code that converts fixed string to
7177         varying use new 'e' variable, rather than original 'expr' variable.
7178         Allows cascaded conversions:  CHAR -> CHARS(1) -> varying CHARS.
7179         * ch-decl.c (string_type_node, const_string_type_node,
7180         int_array_type_node), ch-tree.h:  Removed.
7181         * ch-decl.c (string_one_type_node, bitstring_one_type_node,
7182         bit_zero_node, bit_one_node), ch-tree.h:  New globals tree nodes.
7183         * ch-decl.c (init_decl_precessing):  Remove some junk.
7184         * ch-expr.c (build_generalized_call):  If flag_old_strings,
7185         treat string index as string slice.  Also, better error checking.
7186
7187         Added support for (some kinds of) BASED declarations.
7188         * ch-tree.def (BASED_DECL):  New tree code.
7189         * ch-decl.c (lookup_name):  Implement BASED_DECL using
7190         build_chill_indirect_ref.
7191         * ch-decl.c (do_based_decls):  Make a BASED_DECL.
7192         * ch-parse.y:  Call do_based_decls for DCL ... BASED(...).
7193         * ch-satisfy.c (safe_satisfy_decl):  Handle BASED_DECL.
7194
7195         Improve handling of set binary operations.
7196         * ch-expr.c (expand_packed_set):  New function.
7197         (fold_set_expr):  Re-write.  Simpler, more general algorithm.
7198         (build_set_expr):  Only used for comparsions now.
7199         (finish_chill_binary_op):  Handle set ops better (more directly).
7200         (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
7201         fold_set_ne, fold_set_xor):  Removed.  No longer needed.
7202
7203         * ch-decl.c:  Remove calls to allocate_lang_decl.
7204         * ch-tree.c (build_string_type):  If const length, layout immediately.
7205
7206 Mon Oct 11 17:23:02 1993  Bill Cox  (bill@cygnus.com)
7207
7208         * ch-decl.c (init_decl_processing): Define __whoami and
7209           __wait_buffer functions.
7210         * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
7211         * ch-parse.y (sigdef): Add new add_taskstuff_to_list
7212           parameter.
7213         * ch-tasking.c (get_tasking_code): Search tasking_list for
7214           tasking code name match.  Can't use lookup_name.
7215           (get_task_name): New function.
7216           (generate_tasking_code_variable): Return if pass 1.
7217           Always update *tasking_code_ptr.
7218           (build_process_header): Add new add_taskstuff_to_list
7219           parameter.
7220           (tasking_setup): New code to unpack the tasking
7221           list entries no built by ..
7222           (add_taskstuff_to_list): Accept new parameter,
7223           add it to the list.
7224         * ch-tree.h (add_taskstuff_to_list): Add new
7225           parameter.
7226
7227 Mon Oct 11 14:54:50 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7228
7229         * Makefile.in (cc1chill):  Also link in $(BC_OBJS).
7230
7231 Mon Oct 11 06:28:39 1993  Doug Evans  (dje@canuck.cygnus.com)
7232
7233         * ch-decl.c (flag_allow_single_precision): New global,
7234         from ss-931002 merge.
7235
7236 Sun Oct 10 09:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7237
7238         * Makefile.in: Remove references to chill.in and
7239           ch-hash.h.  Remove bogus cc1chil : chill
7240           dependency.
7241
7242 Fri Oct  8 16:00:04 1993  Bill Cox  (bill@cygnus.com)
7243
7244         * ch-actions.c (adjust_parm_or_field): Add parameter to
7245           decl_temp1 call.
7246         *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
7247           decl_temp1 call.
7248           (decl_temp1): Add parameter to signal 'make this external'.
7249           (shadow_record_fields): Add parameter to decl_temp1 call.
7250         * ch-expr.c (chill_expand_case_expr): Add parameter
7251           to decl_temp1 call.
7252         * ch-grant.c (chill_finish_compile): Add code to spoof
7253           get_file_function_name,  so we don't get __tmp_s1_code,
7254           for example, as the module-level code's name.
7255         * ch-loop.c (build_temporary_variable, begin_for_range,
7256           init_loop_counter): Add parameter to decl_temp1 call.
7257         * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
7258           for easier maintenance.
7259           (sendaction): Rewrite to receive SIGNALNAME token correctly
7260           from ch-lex.l (name_type_signal).
7261           (signaldef): Don't clear quasi_signal here.
7262         * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
7263           to make the variable public (visible to linker).
7264           (build_start_process): Add parameter to decl_temp1 call.
7265           (tasking_setup): Comment out band-aid hack which calls
7266           generate_tasking_code_variable.  Shouldn't be necessary.
7267           Use null_pointer_node rather than integer_zero_node in
7268           entry_point.  More rewrites.
7269           (build_signal_descriptor): Name the non-signal in the error msg.
7270           Rewrite the building of the signal envelope - avoid seg fault.
7271           Add parameter to decl_temp1 call.
7272           (expand_send_signal, build_receive_case_start,
7273           build_receive_case_end, build_buffer_descriptor): Add parameter
7274           to decl_temp1 call.
7275         * ch-tree.h: Add parameter to decl_temp1 proto.
7276         * chill: Add new CHILL frontend directory
7277
7278 Tue Oct  5 13:51:27 1993  Bill Cox  (bill@cygnus.com)
7279
7280         * ch-grant.c: Standardize indentation.
7281         * ch-parse.y (end_function): Unconditionally poplevel for processes.
7282         * ch-tasking.c (build_process_header): Unconditionally pushlevel.
7283           (generate_tasking_code_variable): Stop using pass number to
7284           force a one-time action.
7285         * ch-tree.h (build_chill_slice): Delete proto since function went static.
7286
7287 Mon Oct  4 13:52:36 1993  Bill Cox  (bill@cygnus.com)
7288
7289         * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
7290           called here in both passes.  Set DECL_ASSEMBLER_NAME.
7291           (lookup_name_for_seizing): Move NULL test forward to prevent
7292           seg fault.
7293         * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
7294           to prevent a seg fault in telebras/dynsto.ch.  Make indentation
7295           changes.
7296         * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
7297           (build_send_signal): Rename to expand_send_signal.
7298           (generate_tasking_code_variable): Return the var's decl.
7299           (build_signal_struct_type): Move generate_tasking_code_variable
7300           and add_taskstuff_to_list calls to ..
7301         * ch-parse.y (sigdef): .. here.  And make indentation changes.
7302         * ch-tree.h: Rename functions, add return values.
7303
7304 Mon Oct  4 15:43:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7305
7306         * ch-convert.c (digest_constructor):  Convert element to element_type.
7307         * ch-parse.y (end_function):  Use DECL_ARGUMENTS to check
7308         for parameterless process.
7309
7310 Fri Oct  1 13:57:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7311
7312         * ch-typeck.c (chill_location):  New function.
7313         Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
7314         * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c:  Use
7315         chill_location instead of lvalue_p.
7316
7317
7318 Fri Oct  1 11:28:42 1993  Bill Cox  (bill@cygnus.com)
7319
7320         * ch-convert.c (convert): Back out Michael's changes, unintentionally
7321           checked in.
7322         * ch-lex.l (handle_use_seizefile_directive): No longer downcase
7323           seize file names.
7324         * ch-parse.y (sendaction): Fix a couple of seg faults.  Comment out
7325           SEND BUFFER processing for now.
7326         * ch-tree.h: Fix comment.
7327
7328 Thu Sep 30 17:00:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7329
7330         * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P):  New macros,
7331         for recognizing singleton strings.
7332         * ch-tree.h (MARK_AS_STRING_TYPE):  New macro.
7333         * ch-tree.c (build_string_type, build_bitstring_type),
7334         ch-convert.c (convert):  Use it.
7335         * ch-typeck.c (build_chill_slice):  Take length rather than upper
7336         bound.  This makes it easier to recognize that A(X UP LENGTH)
7337         really has fixed length.  Also, if the argument is string,
7338         mark the slice as a string too.  Also, handle varying strings.
7339
7340         * ch-typeck.c (conflate_singleton_strings):  New global.
7341         * ch-typeck.c (chill_similar):  If conflate_singleton_strings is
7342         set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
7343         to CHAR/BOOL, as required by the 1984 version of Z.200.
7344         * ch-convert.c (convert_to_char):  Convert CHARS(1) to CHAR.
7345         * ch-convert.c ( build_array_type_for_scalar):  If input is string,
7346         so is output.
7347         * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h:  Removed.
7348         * ch-convert.c (convert):  Convert CHAR to CHARS(1).
7349
7350         This fixes 'X // := Y' and is also a general simplification.
7351         * ch-actions.c (chill_expand_assignment):  Convert 'LHS OP := RHS'
7352         to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
7353         Also, call save_expr on RHS if a multiple assignment.
7354         * ch-parse.y (assignaction):  Therefore, no longer need to call
7355         stabilize_reference on RHS.
7356         * ch-typeck.c (build_chill_modify_expr), ch-tree.h:  Remove
7357         modifycode parameter.  Make it the caller's responsibility to
7358         handle <assigning operator>.
7359         * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
7360         ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
7361
7362 Wed Sep 29 18:02:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7363
7364         * ch-lang.c (string_index_type_dummy), ch-tree.h:  New variable.
7365         * ch-decl.c (integer_minus_one_node), ch-tree.h:  New variable.
7366
7367         * ch-parse.y (arrayindex: modename):  Remove useless code.
7368         * ch-satisfy.c (satisfy):  Don't gag on string_index_type_dummy,
7369         * ch-tree.c (build_string_type):  Pass string_index_type_dummy as
7370         the parent type of the index range.
7371         * ch-typeck.c (layout_chill_range_type):  Recognize and handle
7372         string_index_type_dummy - specifically allow an empty range.
7373
7374 Wed Sep 29 13:36:23 1993 1993  Bill Cox  (bill@cygnus.com)
7375
7376         * ch-convert.c (convert_to_reference): Check for loc-identity
7377           mismatches correctly (and remove one of those chill_compatible
7378           calls).
7379         * ch-decl.c (decl_tasking_code_var): New function, called from
7380           push_extern_process and push_extern_signal.
7381         * ch-parse.y (end_function): Delete parameter.  Check current_function_decl
7382           whether it's actually a process, and whether it has parameters.
7383           Make Michael's change simplifying the pass 2 test, preventing a seg
7384           fault.
7385           (procedure, process): Change calls to end_function, remove
7386           code saving value from build_process_header.  Delete redundant chill_
7387           phrases from some function calls.
7388         * ch-tasking.c: Remove some redundant _chill phrases from function
7389           names.
7390         * ch-tree.h: Remove some redundant _chill phrases from function
7391           names.  Add the CH_VARYING_ARRAY_TYPE macro, call it from
7392           all relevant places.
7393         * ch-typeck.c: Use the new macro.  Cast TREE_CODEs to chill_tree_code.
7394
7395 Wed Sep 29 13:07:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7396
7397         * ch-convert.c (convert_to_reference):  Remove redundancies.
7398         * ch-convert.c (convert):  Handle convert_to_reference
7399         with a recursive convert call.
7400         * ch-decl.c (do_decl): Add missing compatibility-checking
7401         of initializer (don't depend on convert).
7402
7403 Tue Sep 28 00:02:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7404
7405         * ch-tree.h (CH_LOCATION_P):  New macro.
7406         * ch-typeck.c (layout_chill_range_type):  Fix call to
7407         type_for_size, when figuring out a defaulted parent type.
7408         * ch-expr.c (build_chill_lower, build_chill_sizeof):  Check
7409         for TREE_CODE_CLASS != 't' rather than == 'd'.
7410         * ch-expr.c (build_chill_function_call):  Use CH_LOCATION_P
7411         to check for location, rather than TYPE_CODE_CLASS == 'd'.
7412
7413         * ch-tree.c (build_string_type):  Make 2-pass safe.  Also,
7414         change parameter to be length, not index type.
7415         * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7416         (build_chill_string): Modify callers of build_string_type accordingly.
7417         * ch-lex.l (check_newline):  Don't look for # directive inside a
7418         C-style comment.
7419         * ch-grant.c (grant_array_type):  Make more robust for char-
7420         and bit-strings (allow non-constant sizes).  Change parameters
7421         and return types.  (raw_decode_mode):  Use grant_array_type
7422         for bitstrings.  (otherwise):  Fix grant_array_type callers.
7423
7424 Mon Sep 27 16:57:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7425
7426         Remove changes of Sep 15.
7427         * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7428         * ch-typeck.c (chill_similar):  Don't allow a singleton
7429         powerset to be similar to its domain.
7430         * ch-convert.c (convert_to_boolean):  Don't convert a singleton
7431         SET_TYPE constructor to a Boolean.
7432
7433         * ch-actions.c (chill_expand_assignment):  Handle IN_EXPR on
7434         LHS of assignment, which is what we're current (temporarily?) using.
7435
7436 Mon Sep 27 06:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7437
7438         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7439           ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7440           ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7441           -Wall cleanup.  Add prototypes where missing.
7442           Delete unused variables.  Cast uses of tree_codes
7443           to chill_tree_code, which they are.
7444
7445 Sun Sep 26 13:09:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7446
7447         * ch-decl.c (do_decl): Save initializer in pass zero
7448           case also.
7449         * ch-lex.l: Fix comments, indentation.
7450         * ch-parse.y: Standardize error messages to use
7451           uppercase for CHILL keywords rather than quoting them.
7452           Suggestion from docs department.
7453         * ch-tasking.c: Pervasive changes to get processes to
7454           compile and START.
7455         * ch-tree.h: Delete prototypes for functions whic
7456           I made static inside ch-tasking.c.
7457
7458 Sun Sep 26 02:40:02 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7459
7460         * ch-lex.l (yywrap): Call `check_newline' in case the file
7461         started with a line directive.
7462
7463 Sat Sep 25 13:54:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7464
7465         * ch-decl.c:  Expand pre-amble comment.
7466         * ch-decl.c (struct scope, push_module):  Use new field
7467         tail_chain_module to build child-module list in order.
7468         (Just to make compiler debugging a little less confusing.)
7469
7470         * ch-decl.c (struct scope):  New field weak_decls.
7471         * ch-decl.c (find_implied_types):  New interface.  Now pre-pend
7472         new enum types to a given input list.  This makes it easier to
7473         avoid duplicates, which should at least be more efficient.
7474         Also, handle FUNCTION_DECL.
7475         * ch-decl.c (bind_saved_names):  Removed.  Distribute its
7476         functionality over new functions (push_scope_decls, pop_scope_decls,
7477         build_implied_names, bind_sub_modules).  The goal (which seems to
7478         have been more-or-less attained) was to fix weak name handling.
7479         * ch-decl.c (poplevel):  Use new function pop_scope_decls.
7480
7481         * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7482         Use build_decl directly, rather than grok_chill_fixedfields
7483         (which depends on ignore_exprs and has more overhead).
7484         * ch-tasking.c (build_signal_struct):  Construct the type
7485         only in pass 1.
7486         * ch-typeck.c (build_chill_slice):  Use my_build_array_ref rather
7487         than build_array_ref (which does C-specific "optimizations").
7488         (Hence move my_build_array_ref up earlier in the file.)
7489
7490 Sat Sep 25 03:47:28 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7491
7492         * ch-tasking.c: Declare static variable `void_ftype_void'.
7493         (chill_tasking_init): Initialize `void_ftype_void' here.
7494         (build_tasking_struct): Use, don't declare `void_ftype_void'.
7495         (generate_tasking_code_variable): Call `do_decl', not
7496         `decl_temp1' to declare TASKING_CODE_NAME.
7497         (tasking_setup): Drop into 1-pass mode so that all
7498         tasking-related declarations are installed in the global
7499         scope.  Use correct CHILL types for initializers (since
7500         ptr_type_node doesn't have the right meaning for CHILL).
7501         Also, call `do_decl' instead of `decl_temp1' for
7502         `init_struct'.
7503         (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7504         `chill_finish_compile' in sync between passes.
7505
7506         * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7507         declarations on pass zero.  Keep obstacks in sync, and always
7508         call `finish_decl' for pass zero declarations.
7509         (push_chill_extern_function): Keep obstacks in sync, and always
7510         call `finish_decl' for pass zero declarations.
7511         (build_enumerator): Ditto.
7512         (grok_chill_variantdefs): Change PASS test to exclude only
7513         pass one.
7514         (finish_struct): Ditto.
7515         * ch-expr.c (build_chill_component_ref): Ditto.
7516         (build_chill_binary_op): Ditto.
7517         * ch-tree.c (build_powerset_type): Ditto.
7518         (build_bitstring_type): Ditto.
7519         * ch-typeck.c (build_chill_range_type): Ditto.
7520         (build_chill_struct_type): Ditto.
7521
7522         * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7523         extra pushing and popping of obstacks.
7524
7525         * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7526         on IO_DESCRIPTOR.  This causes IO_DESCRIPTOR to be laid out.
7527
7528         * ch-grant.c (chill_finish_compile): Clear out both
7529         MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7530         from pass one.
7531
7532         * ch-parse.y (rccase_label): Add NAME rules so that pass one
7533         works w/o knowing we're parsing a signal.  Simplify SIGNALNAME
7534         rules since we only get SIGNALNAME tokens in pass two.
7535         (sendaction): Ditto.
7536         * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7537         BUFFERNAME on pass two.  The grammar now handles this.
7538         * ch-decl.c (lookup_remembered_decl): Deleted.
7539
7540 Fri Sep 24 15:27:13 1993  Bill Cox  (bill@cygnus.com)
7541
7542         * ch-decl.c (lookup_remembered_names): Removed.  It was being
7543           misused in ch-lex.l.
7544         * ch-lex.l (name_type_signal): Revert last change.  Basically,
7545           we cannot use the C typedef/variable name trick in CHILL, due
7546           due to the language's 2-pass nature.
7547         * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7548           a seg fault.
7549         * ch-tree.h (lookup_remembered_name): Comment out the prototype.
7550
7551 Fri Sep 24 11:01:31 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7552
7553         * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7554           checks so the pass == 0 case is handled for built-in types.
7555           (push_modedef): Add check for error_mark_node.
7556           (lookup_remembered_decl): New function.
7557           (pushlevel, poplevel) Change pass checks.
7558           (pushdecl): Check type as well for NULL.
7559           (build_enumerator): Handle pass == 0 case.
7560         * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7561           during pass 1.
7562         * ch-parse.y: Set pass to zero to indicate initial decl processing.
7563           Replace NAME references with SIGNALNAME references.
7564           (startaction): Only check copy number if not ignoring actions.
7565           Always call build_chill_start_process.
7566           (optstartset): Don't lookup the instance name.
7567         * ch-tasking.c (generate_tasking_code_variable): Replace
7568           do_decl call with decl_temp1 call.
7569           (build_chill_start_action): Check for ignore_actions here.
7570           (build_tasking_message_type): Layout the type.
7571           (rc_state_type): New structure to keep nested receive-case
7572           info in.
7573           (build_chill_receive_case_start, build_chill_receive_case_end):
7574           Use the new struct.
7575
7576
7577 Fri Sep 24 04:19:15 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7578
7579         * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7580         should be a _DECL, not an IDENTIFIER_NODE.
7581
7582 Thu Sep 23 18:18:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7583
7584         * ch-decl.c (find_implied_types):  Handle VAR_DECLs.
7585
7586         * ch-decl.c (print_lang_identifier):  Print IDENTIFIER_OUTER_VALUE.
7587         * ch-actions.c (chill_expand_result):  Allow value-less RETURN.
7588         * ch-expr.c (resolve_component_ref):  Recognize error_mark.
7589
7590         * ch-convert.c (digest_constructor):  Handle a nested powerset tuple.
7591         * ch-satisfy.c (satisfy):  Use return value of layout_chill_range_type.
7592         * ch-typeck.c (chill_similar):  Repeatedly get parent modes
7593         of ranges, not just once.
7594         * ch-typeck.c (chill_root_resulting_mode), ch-tree.h:  New function.
7595         * ch-typeck.c (layout_chill_rang_type):  Re-do type-checking
7596         to follow Blue Book better (check for Compatibility).
7597
7598         * ch-tree.h (CH_ROOT_RESULTING_MODE):  New macro.
7599         * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7600         New variables.  The latter replaces in_seizefile.
7601
7602         Changes to store in the new DECL_SEIZEFILE field each seize
7603         ALIAS_DECL the name in the most recent use_seize_file directive.
7604         (This requires that use_seize_file directives written to the
7605         grant file be written before the SEIZEs that need it.)
7606         Allow clashing declarations granted into the global scope
7607         (produce a warning), but remember the seizefile case from
7608         (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7609         The a SEIZE will select the granted decl that matches its
7610         DECL_SEIZEFILE (in other words:  grants from the most recent
7611         use_seize_file will be preferred).
7612         * ch-tree.h (DECL_SEIZEFILE), ch-tree.def:  New macro.
7613         * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE):  Renamed
7614         to outer_value, IDENTIFIER_OUTER_VALUE.
7615         Changes to cause the use_seize_file directives to be written
7616         out in order as they're seen in source.
7617         * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7618         Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7619         * ch-lex.l (handle_use_seizefile_directive):  Modify appropriately.
7620         Don't call grant_use_seizefile.
7621         * ch-lex.l (mark_use_seizefile_written):  New function.
7622         * ch-grant.c (decode_decl):  Write out use_seize_file directive,
7623         if needed, before writing a seize declarations.
7624         * ch-decl.c (pop_module):  Handle decls granted into the global
7625         module specially, setting IDENTIFIER_OUTER_VALUE.
7626         * ch-decl.c (lookup_name_for_seizing):  Check IDENTIFIER_OUTER_VALUE.
7627
7628 Thu Sep 23 19:05:37 1993  Bill Cox  (bill@cygnus.com)
7629
7630         * ch-decl.c (push_chill_extern_process): Delete unused variables,
7631           declare the process' tasking_code variable as external.
7632         * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7633           the process header.
7634         * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7635           to (signaldef).
7636         * ch-tree.h: Add prototype.
7637         * expr.c (store_constructor): Emergency first-aid.  Rewrite later.
7638
7639 Thu Sep 23 12:57:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7640
7641         * ch-expr.c (build_chill_function_call):  Move possible call to
7642         chill_start_module_code until we know we're not calling a builtin.
7643         * ch-decl.c (save_expr_under_name):  Use pushdecllist,
7644         not proclaim_decl (which provide for popping the decl).
7645         * ch-parse.y (optname):  Also allow TYPENAME.
7646
7647 Thu Sep 23 09:18:35 1993  Bill Cox  (bill@cygnus.com)
7648
7649         * ch-decl.c (print_lang_decl): Make weak name output more standard.
7650           (print_lang_identifier): Make signal-data flag output more standard.
7651           (push_chill_extern_process): Pass correct arg tree to
7652           push_chill_extern_function.
7653           (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7654           Standardize function header layouts (Makes the tcov script
7655           work better).
7656         * ch-except.c (chill_finish_on): Standardize function header.
7657         * ch-expr.c (fold_set_or): Standardize function header.
7658         * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7659           function headers.
7660           (decode_constant): Make sure that alpha operators are surrounded
7661           with whitespace.
7662         * ch-parse.y: Spell Z.200 correctly in comments.
7663
7664 Wed Sep 22 10:42:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7665
7666         * ch-expr.c (build_chill_addr_expr), ch-tree.h:  New function.
7667         * ch-parse.y, ch-decl.c (shadow_record_fields):  Use it.
7668         * ch-lex.l (handle_use_seizefile_directive):  Don't emit
7669         use_seize_file directive if in_seizefile.
7670
7671         * ch-convert.c (digest_structure_tuple):  Fix code that checks
7672         for excess init values.
7673         * ch-decl.c (layout_chill_variants):  Move increment of nlabels
7674         inside the proper loop.
7675         * ch-grant.c (print_struct):  Add missing loop for tag_list.
7676         (print_struct):  Look for variant fields by checking for a
7677         UNION_TYPE, not a NULL name, since we must use a dummy name.
7678         * ch-parse.y (structured_variable):  Various fixing.
7679         * ch-decl.c (shadow_record_fields):  Rename arg decl -> struct_val.
7680
7681         * ch-satisfy.c (safe_satisfy_decl):  Disable copying of modes
7682         for NEWMODE (and hence novelty checking), until we figure out
7683         a better way.
7684
7685         * ch-except.c (finish_handler_array):  Use null_pointer_node,
7686         not integer_zero_node (which fails to type-check).
7687
7688         * c-typeck.c (get_constructor_element_type):  New function.
7689         * ch-tree.h (CH_NOVELTY_FLAG):  Now also used in TYPE_DECLs.
7690         (CH_NOVELTY):  Redefined to call new function chill_novelty.
7691         (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE):  Removed.
7692         * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7693         Take extra output parameter (for M, as in M-value class).
7694         * ch-typeck.c (chill_novelty):  New function.  (Also de-references.)
7695
7696         * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7697         New functions.  Handle 2-pass and variant records.
7698         * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7699         * ch-satisfy.c (satisfy, case COMPONENT_REF):
7700         New case, call resolve_component_ref.
7701
7702         * ch-expr.c (build_generalized_call):  Extract single arg from
7703         arg list before calling build_chill_cast.
7704
7705         * ch-parse.y (defining_occurrence_list):  New non-terminal.
7706         Use it to replace locnamelist, synnames, and modenames.
7707         * ch-parse.y:  Re-write parsing of variant records.
7708
7709         * ch-decl.c (grok_chill_variantdefs):  Now return a FIELD_DECL
7710         rather than just its type.
7711         * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7712         Change callers appropriately.
7713
7714         * ch-tree.h (TYPE_TAG_VALUES):  Add an extra level of TREE_LIST,
7715         to support multiple tag fields.
7716         * ch-grant.c  (print_struct), ch-decl.c (layout_chill_variants):
7717         Support multiple tag fields.
7718
7719         * ch-convert.c (remove_tree_element, digest_structure_tuple):
7720         New functions, to digest structure tuples, without calling the
7721         code in c-typeck.c.  Handles variant tuples and tags (partially).
7722         * ch-convert.c (digest_constructor, convert):  Call
7723         digest_structure_tuple when appropriate.
7724         * ch-convert.c (digest_constructor): Re-arrange a bit.
7725
7726         * ch-decl.c (push_modedef):  Defer copying of tree until ...
7727         * ch-satisfy (safe_satisfy_decl): ... here.
7728
7729         * ch-decl.c (getdecls):  Add kludge to help dbxout_init.
7730
7731 Tue Sep 21 14:19:11 1993  Bill Cox  (bill@cygnus.com)
7732
7733         Partial tasking update - not done yet.
7734         * ch-actions.c: Comments, indentation.
7735         * ch-decl.c (push_chill_extern_process): No longer need to
7736           reformat the arg list for make_process_struct.
7737           (pop_module): Don't seg fault on null DECL_NAME.
7738           (handle_one_level): Error, not warning if tree not recognized.
7739           (shadow_record_fields): Rename formal param for readability.
7740         * ch-grant.c (decode_decl): Write proper header for a process.
7741         * ch-parse.y (quasi_pdef): process now uses processparlist,
7742           which doesn't change with the passes.
7743           (quasi_locdec): Call build_chill_reference_type to defer
7744           doing the type's layout.
7745           (processpar): Use paramnamelist, but reformat it into a
7746           list of identifiers in pass 2, so a processpar is the same
7747           structure in both passes.
7748           (locdec): Call build_chill_reference_type to defer doing the
7749           type's layout.
7750         * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7751           build the decl.  Only update the variable's tree in pass 2.
7752           (make_process_struct): Call build_chill_reference_type to defer
7753           doing the type's layout.
7754           (build_process_header): New code to call make_process_struct.
7755           New pass-2 code to make a PARM_DECL for start_chill_function.
7756           Pass a void_type_node, not a NULL_TREE for an empty list.
7757           Get input for shadow_record_fields from current_function_decl.
7758           (build_buffer_decl): Call do_decl not decl_temp1.
7759         * ch-typeck.c: Reindent to standards.
7760         * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7761
7762 Mon Sep 20 12:00:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7763
7764         * ch-typeck.c (classify_chill_expr):  An expression with a
7765         REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7766         * ch-actions.c (adjust_parm_or_field):, ch-tree.h:  Change last
7767         parameter, so we can reliably recognize LOC parameters.
7768         * ch-tasking.c, ch-expr.c:  Change callers appropriately.
7769
7770 Sun Sep 19 22:26:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7771
7772         * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE):  New macros.
7773         * ch-typeck.c (chill_referable, chill_read_compatible):  New functions.
7774         * ch-typeck.c (chill_compatible):  Allow un-resolved CONSTRUCTOR
7775         (with NULL TREE_TYPE), when reasonable.  (Simplifies callers.)
7776         Also, handle case of expr being of reference class.
7777         * ch-actions.c (adjust_parm_or_field):  Major re-arrange
7778         to handle conversions and LOC args better.
7779         * ch-actions.c (chill_expand_assignment):  Simplify conversions.
7780         * ch-expr.c (build_chill_function_call):  If needed, call
7781         chill_start_module_code.
7782         * ch-decl.c (declare_predefined_file):  New function, used
7783         to pre-define stdin, stdout, and stderr.
7784         * ch-inout.c (chill_stdio_p):  Change names of predefined
7785         files from chill-stdin etc to plain stdin (and change their types).
7786         * ch-lex.l:  Remove some obsolete stuff.
7787         * ch-convert.c (convert):  Move conversion from reference to
7788         to beginning of convert() so other conversion can work better.
7789         Also, remove bogus direct setting of TREE_TYPE.
7790
7791 Fri Sep 10 12:23:41 1993  Wilfried Moser  (fs_moser@cygnus.com)
7792
7793         * Makefile.in: Change installation of the chill script. gcc will
7794           be called always with the full path. That made problems when
7795           somebody was using chill but didn't have the installation
7796           directory in PATH.
7797         * ch-parse.y: Change parsing of WRITETEXT action.
7798         * ch-tree.h: Add some new prototypes according to the
7799           (partial) implementation of WRITETEXT.
7800         * ch-typeck.c: Add new function chill_varying_string_type_p. This
7801           functions checks a type for being CHAR(n) VARYING.
7802         * ch-decl.c (init_decl_processing): Add new built-in functions
7803           _writestring and _writeunixstd.
7804           Add call to  build_chill_io_list_type in ch-inout.c.
7805         * ch-inout.c (build_chill_writetext): Add some code there.
7806           Add new function build_chill_io_list_type.
7807           Add new static function chill_stdio_p. This function checks
7808           the text argument for being chill_stdin, chill_stdout or
7809           chill_stderr.
7810
7811 Fri Sep 17 22:02:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7812
7813         * ch-decl.c (push_modedef):  Fix TYPE_MAIN_VARIANT thinko.
7814
7815 Thu Sep 16 18:38:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7816
7817         * ch-decl.c (allocate_lang_decl):  Do nothing.
7818         * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7819         No longer used;  remove.
7820
7821         * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7822         (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7823         (make_chill_variants, layout_chill_variants):  Add (initial) part
7824         of support for multiple tags.
7825         * ch-decl.c (lookup_tag_fields):  New function.
7826         * ch-parse.y (stmt_count):  Not used; removed.
7827         * ch-parse.y (mode2):  Clear current_fieldlist before
7828         parsing STRUCT fields;  restore afterwards.
7829
7830         * ch-parse.y (push_action):  Moved to ch-actions.c.
7831
7832 Wed Sep 15 18:19:37 1993  Bill Cox  (bill@rtl.cygnus.com)
7833
7834         * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7835           constructor to a boolean.
7836
7837 Wed Sep 15 17:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7838
7839         * ch-decl.c (push_modedef): Enable novelty-setting code.
7840         * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7841         * ch-typeck.c (chill_similar): Add checking of singleton
7842           powerset against its base type.
7843
7844 Tue Sep 14 17:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7845
7846         * ch-actions.c (adjust_parm_or_field): Create a
7847           temporary for an non-referencable actual parameter
7848           passed to a LOC formal parameter.
7849           (chill_expand_assignment): Correct compatibility checking.
7850
7851         * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7852         * ch-parse.y (opsigdest): Only check for process name
7853           in pass 2, when we know.
7854         * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7855         * ch-typeck.c: Fix comment.
7856
7857 Mon Sep 13 17:33:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7858
7859         * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7860         decl_seen_p, processed_decls, allocated, nr_decls):  Removed
7861         no-longer-useful functions and variables that used to guard
7862         against writing a decl multiple times.  Since we now just
7863         go through the decl list linearly, that is no longer an issue.
7864         * ch-satisfy.c (safe_satisfy_decl):  Handle missing current_module.
7865
7866         * ch-decl.c (start_chill_function):  Clear DECL_ASSEMBLER_NAME.
7867         Don't make TREE_PUBLIC.  Don't generate rtl yet.
7868         * ch-decl.c (pop_module):  If a decl is granted, set TREE_PUBLIC,
7869         and its DECL_ASSEMBLER_NAME.
7870         * ch-decl.c (fix_identifier):  New function.
7871         * ch-grant.c (grant_one_decl):  Don't set TREE_PUBLIC.
7872         * ch-tree.h (struct module):  New field prefix_name.
7873         * ch-satisfy.c (safe_satisfy_decl):  If assembler_name isn't
7874         set, prefix it by the module name(s).
7875         * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7876         Call make_function_rtl if needed and !LOOKUP_ONLY.
7877         * ch-typeck.c (chill_similar):  Flesh out substantially.
7878         * ch-typeck.c (chill_compatible):  Re-structure.
7879
7880         * ch-actions.c (adjust_parm_or_field):  Use CH_COMPATIBLE
7881         instead of chill_comptypes to compare actual and formal.
7882
7883 Sun Sep 12 21:10:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7884
7885         * ch-parse.y (labellist):  Don't do anything if ignore_exprs.
7886
7887         * c-typeck.c (output_pending_init_elements): Handle
7888         !constructor_incremental case of filling in empty positions.
7889         (Patch by Jim Wilson.  CYGNUS LOCAL until we have approval.)
7890         * ch-decl.c (pop_module):  Don't grant a seized name.
7891         * ch-grant.c (decode_constant):  Support CALL_EXPR.
7892         * ch-tree.c (build_bitstring_type):  Don't try to fold non-constant
7893         size if pass==1 (since it may be an unsatisfied name).
7894
7895
7896 Sun Sep 12 18:06:23 1993  Bill Cox  (bill@rtl.cygnus.com)
7897
7898         2-pass fixes for processes.  Partially done.
7899         * ch-actions.c (chill_expand_assignment): Add real
7900           novelty-checking sketch, $ifdef'd out for now.
7901         * ch-decl.c: Generally fix indentation.  Move tasking
7902           init code from init_decl_processing to ch-tasking.c.
7903           Delete ObjC-related cruft.  More accurate parameter name
7904           for shadow_record_fields.  Move debug_scope before
7905           its first call.
7906         * ch-expr.c (build_chill_function_call): Return if not
7907           pass 2.
7908         * ch-grant.c (print_proc_tail): Avoid trying to format
7909           a VOID return type, or using a NULL pointer.
7910           (decode_decl): Minor changes for PROCESS arg access.
7911         * ch-lang.c (lang_decode_option): Use -itu flag to
7912           enable 'pedantic' mode.
7913         * ch-lex.l (init_lex): Initialize compiler-directive
7914           variable trees.
7915           (name_type-signal): Disable the returning of SIGNAL and BUFFER
7916           name tokens.
7917         * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
7918           All uses renamed also.
7919           (end_function): Always poplevel, not just in pass 2.
7920           (quasi_pdef): Check for end-label matching.
7921           (quasi_formparlist): Write more clearly.
7922           (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
7923           guards.
7924           (rccase_label, sendaction): Use NAME, not SIGNALNAME
7925           or BUFFERNAME.
7926           (process): Handle like procedure.
7927           (mode): Add SIGNAL as a generic signal parameter.  This
7928           is a client-specific extension, so pedantic is checked.
7929         * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
7930         * ch-tree.h (CH_NOVELTY): Make it an lvalue.
7931         * ch-typeck.c: Fix comment.
7932
7933 Sun Sep 12 15:03:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7934
7935         * c-typeck.c (digest_init):  Compare types using comptypes
7936         instead of comparing pointers.  (Helps Chill front end.)
7937         * ch-expr.c (finish_chill_binary_op):
7938         * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
7939         ch-expr.c (finish_chill_binary_op):  For now, prefer IN_EXPR
7940         over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
7941         (incomplete support for variable fields, and possible bug in
7942         optimize_bit_field_compare).
7943         * ch-expr.c (finish_chill_binary_op):  Fix type-checking
7944         and appropriately coerce operands for IN_EXPR and comparsions.
7945         * expr.c (expand_expr, case ARRAY_REF):  Coerce lower bound (if
7946         non-zero) to sizetype before subtraction.
7947         * expr.c (expand_expr):  Remove Chills-specific calls to
7948         __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
7949
7950 Fri Sep 10 15:47:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7951
7952         * ch-tree.def (UNDEFINED_EXPR):  New kind of expression.
7953         * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
7954         ch-convert.c (convert):  Handle UNDEFINED_EXPR.
7955
7956         * ch-expr.c (build_char_array_expr):  Move CONCAT_EXPR support to ...
7957         * ch-expr.c (build_concat_expr):  ... here.
7958         Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
7959         Also, make result varying only if one of the operands are.
7960
7961         * ch-expr.c (build_chill_binary_op):  Move stuff from here to ...
7962         * ch-expr.c (finish_chill_binary_op):  ... here, as needed for
7963         proper 2-pass split.  Also, clean up and simplify heavily.
7964
7965         * ch-tree.h (enum ch_expr_class):  The 5 kinds of expression classes.
7966         * ch-typeck.c (classify_chill_expr):  New function:  Determine
7967         class of expression.
7968         * ch-typeck.c (chill_compatible_classes):  Re-structure; fix
7969         asymmetry bugs.
7970         * ch-tree.h (CH_CLASS_IS_XXX):  Re-define to use classify_chill_expr.
7971
7972         * ch-convert.c (maybe_turn_scalar_into_array):  Complain
7973         unless scalar is a char constant (and we want a string).
7974         * ch-convert.c (convert):  New code for converting to variable
7975         string/array.  Avoid type errors by padding (with an UNDFIEND_EXPR).
7976         * ch-typeck.c (chill_expand_tuple):  Don't do conversion to
7977         varying type here;  that is handled by convert now.
7978         * ch-decl.c (digest_constructor):  Moved to ...
7979         * ch-convert.c (digest_constructor):  ... here.
7980         * ch-decl.c (do_decl):  Simplify; just use convert for initializer.
7981         * ch-decl.c (chill_digest_init):  Merged into convert, and removed.
7982         * ch-decl.c (init_decl_processing):  Set constructor_no_implicit flag.
7983         * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
7984         Replace chill_digest_init by convert.
7985         * ch-actions.c (chill_expand_array_assignment):  Simplify; use convert.
7986         * ch-lex.l (build_chill_string):  Make string type be derived
7987         from integer, not sizetype, because upper bound can be -1.
7988
7989 Thu Sep  9 18:21:46 1993  Bill Cox  (bill@rtl.cygnus.com)
7990
7991         * ch-typeck.c (my_build_array_ref): Delete pedantic
7992           C-specific error message.
7993
7994 Thu Sep  9 17:44:20 1993  Jeffrey Wheat  (cassidy@eclipse.cygnus.com)
7995
7996         * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
7997
7998 Thu Sep  9 12:22:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7999
8000         * ch-typeck.c (build_chill_array_ref):  Remove redundant and
8001         broken call to my_build_array_ref.
8002
8003 Wed Sep  8 13:03:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8004
8005         * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
8006         Don't use store_init_value, since it calls digest_init instead
8007         of chill_digest_init.
8008         * ch-except.c (finish_handler_array):  Use build1 (ADDR_EXPR, ...)
8009         instead build_unary_op to avoid C-specific optimizations.
8010         * ch-typeck.c (my_build_array_ref):  Don't use default_conversion
8011         to convert array to pointer.
8012         * c-typeck.c (process_init_default):  New function, to support
8013         default values for array tuples in Chill.
8014         * c-typeck.c (default_conversion):  Don't convert array to pointer
8015         if compiling Chill.
8016         * ch-decl.c (digest_constructor):  New function;  used to be guts
8017         of chill_digest_init.  Now recursive, to handle nested tuples.
8018
8019         * ch-decl.c (chill_digest_init):  Handle struct labels.
8020         * ch-grant.c (get_tag_value):  Use decode_constant in general case.
8021         * ch-grant.c (decode_constant):  Add support for lots of missing
8022         binary and unary operators.
8023
8024 Wed Sep  8 10:11:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8025
8026         * ch-lang.c: Look for '-I' option for seize file path.
8027         * ch-lex.l: Fix comment about above option.
8028
8029 Wed Sep  8 00:37:32 1993  Per Bothner  (bothner@rtl.cygnus.com)
8030
8031         * ch-satisfy.c:  Move code to set (and restore) file-and-line
8032         from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
8033         alias decls that refer to real decls with errors.
8034         * ch-actions.c (lang_init):  Move to ch-lang.c.
8035         * ch-decl.c (init_decl_processing):  Move code to initialize
8036         file-and-line from here ...
8037         * ch-lang.c (lang_init): ... to here, to avoid clobbering.
8038
8039         * ch-decl.c (chill_digest_init):  Add support for SET_TYPE,
8040         and index values.
8041         * ch-typeck.c (chill_expand_typle):  Just call chill_digest_init.
8042         * c-typeck.c:  Fix various things that got broken
8043         in the latest merge.
8044
8045 Tue Sep  7 15:45:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8046
8047         * ch-decl.c (build_enumerator):  Handle a "unnamed set element"
8048         (obsolete feature) by generating a dummy name.
8049         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation with
8050         "correct" value of top-level (to get better debugging output).
8051         * ch-decl.c (bind_saved_names):  Allow a null DECL_NAME.
8052
8053 Tue Sep  7 15:48:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8054
8055         * ch-actions.c (chill_expand_return): Correct breakage
8056           due to recent fsf merge.
8057
8058 Tue Sep  7 11:16:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8059
8060         * .cvsignore: Add multilib.h.
8061         * ch-decl.c (chill_digest_init): New function.  Calls were
8062           changed, since it has fewer parameters than old digest_init.
8063         * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
8064           new init stuff.
8065           (elementlist): Delete unused code.
8066         * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
8067         * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
8068         * ch-tree.h: Delete digest_init prototype.
8069         * ch-typeck.c (digest_init): Much new code.
8070
8071 Tue Sep  7 12:06:28 1993  Bill Cox  (bill@rtl.cygnus.com)
8072
8073         * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
8074           files to their pre-init-change state.
8075
8076 Mon Sep  6 15:28:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8077
8078         Preliminary adaptation to rms' new initializer code.
8079         * ch-decl.c (do_decl): Call chill_digest_init, not
8080           digest_init, which rms made static.
8081         * ch-expr.c (chill_truthvalue_conversion): Delete C-
8082           specific code.
8083         * ch-loop.c (init_loop_counter): Indent for readability.
8084         * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
8085         * ch-tree.h: Prototype changes for new init code.
8086         * ch-typeck.c (chill_expand_tuple): Call new init code.
8087         * chill.texi: Add necessary '-f' prefix on options.
8088
8089 Wed Sep  1 13:21:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8090
8091         * ch-convert.c (build_array_type_for_scalar),
8092         ch-tasking.c (build_chill_receive_case_end):  Index type
8093         specification is now chain of types (not chain of TREE_LIST).
8094         * ch-satisfy.c (satisfy):  Don't try to satisfy the
8095         abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
8096         * ch-expr.c (build_chill_binary_op):  If pass 1, do NOT
8097         call finish_chill_binary_op.
8098         * ch-parse.y (arrayindex):  Simplify.
8099
8100 Tue Aug 31 14:57:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8101
8102         * ch-decl.c (print_lang_decl): Print weak-name status.
8103           (print_lang_identifier): Print signal_data as T or F.
8104         * ch-lex.l (convert_bitstring, convert_charliteral,
8105           convert_float, convert_number): Pass string directly to convert
8106           as a parameter.  Return token code consistently, return 0
8107           for error.
8108           (equal_number): Parse differently, allowing hex, binary
8109           and octal constants.
8110         * ch-parse.y (dowithaction, structured_variable): Only
8111           push/pop scopes once per DO WITH.
8112           (structured_variable_list): Check ignore_actions flag here.
8113         * gcc.c: Delete 'traditional' from string, add 'itu'
8114           as the standard flag's name.
8115
8116 Mon Aug 30 15:12:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8117
8118         * ch-typeck.c, ch-tree.h (build_chill_range_type):  Take 3
8119         parameters instead of 2 (explicit low and high bounds).
8120         * ch-parse.y (arrayindex):  Build range type from low:high.
8121         (rangesize, optrangesize):  Removed.
8122         (where appropriate):  Use new build_chill_range_type interface.
8123         * ch-grant.c:  Clean up writing of range and array types.
8124         * ch-satisfy.c (satisfy):  Don't ignore the return value of
8125         layout_chill_array_type. (It may be an error mark.)
8126         * ch-typeck.c (build_chill_array_type):  Simplify.
8127         * ch-typeck.c (layout_chill_array_type):  Clean up checks.
8128
8129 Fri Aug 27 12:55:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8130
8131         * ch-decl.c (decl_temp1):  Set DECL_ASSEMBLER_NAME.
8132         (push_chill_extern_function)  Don't set current_function_decl.
8133         * ch-parse.y (tupleelement):  Don't wrap index is a TREE_LIST
8134         (i.e. a range), don't wrap a PAREN_EXPR around it.
8135         * ch-grant.c (decode_constant):  For tuple CONSTRUCTORs,
8136         add support for ranges in purpose.
8137
8138 Wed Aug 25 16:58:13 1993  Bill Cox  (bill@rtl.cygnus.com)
8139
8140         * .cvsignore: Add g++.sum
8141         * ch-actions.c (chill_expand_result): Stop building a temp.
8142           Assign the expression directly into function's DECL_RESULT.
8143         * ch-decl.c: Add formfeeds.
8144           (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
8145           (push_chill_function_context): Delete C pedwarn message.
8146         * ch-expr.c: Move builtin functions together.
8147         * ch-parse.y (end_function): Delete unused code.
8148           Reformat %union for readability.  Delete _MAX and _MIN
8149           tokens.
8150
8151 Wed Aug 25 13:24:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8152
8153         * ch-actions.c (get_result_tmp_name): Delete unused function.
8154           (chill_expand_result, chill_expand_return): Rewrite for
8155           2-pass.
8156         * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
8157           chain field, so we can make a temp, evaluate a RESULT action's
8158           expression into it, and hang it on here.
8159         * ch-parse.y (end_function): Look for RESULT temps to emit.
8160           (assertaction): Indentation.
8161
8162 Wed Aug 25 08:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8163
8164         * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
8165           It wasn't used anyway.
8166
8167 Tue Aug 24 17:51:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8168
8169         * ch-actions.c (chill_expand_result, chill_expand_return):
8170           No need to make a temp for the value, just use DECL_RESULT.
8171
8172 Tue Aug 24 16:38:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8173
8174         * ch-tree.c (layout_powerset_type):  Remove redundant code.
8175         Generalize (in error message) to also handle bitstrings.
8176         * ch-tree.c (build_bitstring_type):  Remove all layout-like
8177         stuff, and defer that to layout_powerset_type.
8178         * ch-expr.c (chill_expand_expr):  For various SET_xxx_EXPRs,
8179         allocate stack temp for target using correct mode.
8180
8181 Tue Aug 24 10:27:19 1993  Bill Cox  (bill@rtl.cygnus.com)
8182
8183         * ch-actions.c, ch-decl.c, ch-except.c,
8184           ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
8185           ch-typeck.c: Change build_modify_expr calls to
8186           build_CHILL_modify_expr calls.
8187         * ch-expr.c (build_chill_modify_expr): Adapted from
8188           build_modify_expr in c-typeck.c.
8189
8190 Mon Aug 23 16:48:39 1993  Bill Cox  (bill@rtl.cygnus.com)
8191
8192         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
8193           ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
8194           ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
8195           Major re-allocation of functions to files.
8196
8197 Mon Aug 23 12:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
8198
8199         Thanks for the tip, Jim.
8200         * Makefile.in: Add dependency lines for ch-except.o and
8201           ch-satisfy.o.  Correct dependency lines for ch-convert.o,
8202           ch-expr.o, ch-inout.o, and ch-loop.o.
8203           (chill, install-common): Add clean-up commands.
8204
8205 Sat Aug 21 17:11:26 1993  Bill Cox  (bill@rtl.cygnus.com)
8206
8207         * ch-decl.c (get_type_precision): New function.
8208           (layout_enum): Call it.
8209         * ch-tree.c (layout_powerset_type, build_bitstring_type):
8210           Call it.
8211
8212 Sat Aug 21 13:59:40 1993  Bill Cox  (bill@rtl.cygnus.com)
8213
8214         * ch-decl.c (init_decl_processing): Define setbitpowerset
8215           runtime function.
8216         * ch-expr.c (chill_expand_assignment): Call setbitpowerset
8217           to set a bit.
8218         * ch-parse.y: Indentation.
8219
8220 Fri Aug 20 17:29:56 1993  Bill Cox  (bill@rtl.cygnus.com)
8221
8222         * ch-parse.y: Delete unused %type declaration.
8223         * ch-tasking.c (build_signal_struct): Delete return, since
8224           function returns void.
8225         * ch-typeck.c: Indent to standard.
8226         * stor-layout.c: Fix comment.
8227         * toplev.c: Change -L option ti -I.
8228         * varasm.c (emit_set_data): Align set constant to word
8229           boundary.
8230
8231 Fri Aug 20 08:20:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8232
8233         * ch-actions.c: Fix indentation, comments.
8234         * ch-decl.c (push_chill_extern_signal): Use same interface
8235           as build_signal_struct.
8236         * ch-parse.y (quasi_signaldef): Move build_signal_decl
8237           here to sigdef.  Add quasi_signal to distinguish contexts
8238           where sigdef gets used.
8239         * ch-tasking.c: Replace make_signal_struct and build_signal_decl
8240           with build_signal_decl, which doesn't loop through a
8241           TREE_LIST.
8242         * ch-tree.h: Fix protos.
8243
8244 Wed Aug 18 17:36:53 1993  Bill Cox  (bill@cygnus.com)
8245
8246         * ch-actions.c: Fix comments.
8247         * ch-decl.c (push_modedefs): Return the new decl.
8248           (shadow_record_fields): Move pushlevel (0) calls into
8249           the grammar, so they'll get done in both passes.
8250         * ch-parse.y (dowithaction): Always compute & save # of
8251           'with' variables seen (both passes), and always pop that
8252           number of levels.
8253           (structured_variable_list): Always chain variables into a list.
8254           (structured_variable): Put pushlevel here (from shadow_record_fields).
8255         * ch-tasking.c: Indentation fixes.
8256         * ch-tree.h: Change proto.
8257         * chill.texi: Add Blue Book section numbers to unimplemented
8258           features list.
8259
8260 Wed Aug 18 15:48:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8261
8262         * ch-actions.c (build_generalized_call):  New function.
8263         Classifies semantically (if pass 2) this that look like calls.
8264         * ch-parse.y (call):  Invoke build_generalized_call.
8265         * ch-parse.y (sigdef):  Use defining_occurrence instead of NAME.
8266         * ch-parse.y (opt_untyped_exprlist):  New non-terminal.
8267         * ch-satisfy.c (satisfy):  Handle CALL_EXPR.
8268
8269 Tue Aug 17 16:36:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8270
8271         * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
8272
8273 Mon Aug 16 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8274
8275         * ch-tree.h (TUPLE_NAMED_FIELD):  New macro.
8276         * ch-parse.y (labelled structure tupleelement):
8277         Set TUPLE_NAMED_FIELD flag.
8278         * ch-grant.c (decode_constant):  Check for TUPLE_NAMED_FLAG.
8279         * ch-satisfy.c (satisfy):  Check for TUPLE_NAMED_FLAG.
8280         Do satisfy the elements of a CONSTRUCTOR even if call
8281         chill_expand_tuple isn't correct.
8282         * ch-satisfy.c (satisfy):  Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
8283         * ch-parse.y (label_spec):  Defer any semantic checking until ...
8284         * ch-decl.c (layout_chill_variants):  ... here.
8285         Also make sure to call layout_type on the union type.
8286         * ch-decl.c (bind_saved_names):  For weak names, allocate an
8287         ALIAS_DECL, rather than a CONST_DECL.
8288
8289         Add support for implied (weakly visible) names.
8290         * ch-tree.h (DECL_WEAK_NAME):  New macro.
8291         * ch-satisfy.c (satisfy of IDENTIFIER_NODE):  Don't complain
8292         if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
8293         * ch-decl.c (proclaim_name):  Handle DECL_WEAK_NAME appropriately.
8294         * ch-decl.c (concat_lists, find_implied_types):  New functions.
8295         * ch-decl.c (bind_saved_names):  Search for implied names.
8296         * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
8297         * ch-lang.c (layout_chill_struct_type):  Don't use
8298         C_DECL_VARIABLE_SIZE.
8299
8300 Mon Aug 16 16:10:43 1993  Bill Cox  (bill@rtl.cygnus.com)
8301
8302         * ch-actions.c: Delete extra space in error message.
8303         * ch-parse.y: Fix comment.
8304         * expr.c (store_constructor): Avoid passing NULL to convert,
8305           and getting back an error_mark_node and trying to process
8306           *that* node.
8307
8308 Mon Aug 16 14:41:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8309
8310         * ch-decl.c:  Add more overview comments.
8311         * ch-decl.c (proclaim_decl):  New function.
8312         * ch-decl.c (temp_pushdecl, struct shadowing):  Removed.
8313         * ch-decl.c (bind_saved_names):  Remove blevel parameter;
8314         use current_scope global instead.  Do some other cleanups.
8315         * ch-decl.c (save_expr_under_name):  Create an ALIAS_DECL.
8316         * ch-decl.c (pushdecllist, save_expr_under_name):  Use proclaim_decl.
8317         * ch-satisfy.c (satisfy, safe_satisfy_decl):  Be more careful
8318         to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
8319
8320         * chill.texi:  Start collecting Chill documentation here.
8321         * ch-parse.y (mode):  Ignore READ specifier, for now.
8322
8323 Mon Aug 16 11:13:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8324
8325         * ch-actions.c (chill_comptypes): Correct handling reference
8326           of type 1.
8327           (build_chill_length, build_chill_num,
8328            build_chill_sizeof): Convert result to CHILL integer.
8329           (build_chill_function_call): Clean up INOUT and OUT
8330           parameter handling.
8331         * ch-decl.c (build_chill_function_type): Handle INOUT and
8332           OUT parameters.
8333         * ch-loop.c: Fix up comments.
8334         * ch-parse.y: Fix up comments.
8335
8336 Sun Aug 15 15:06:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8337
8338         * ch-actions.c (build_chill_lower, build_chill_upper):
8339           Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
8340         * ch-decl.c (save_expr_under_name): New function to save
8341           addressing expressions for DO WITH and DO FOR handling.
8342           (handle_one_level): Call new function.
8343         * ch-loop.c (init_loop_counter): Call it here, too.
8344           Check lp->user_var before passing it to lookup_name.
8345           (high_domain_value, low_domain_value): Correct call
8346           to build_chill_upper and build_chill_lower.
8347           (begin_chill_loop, end_chill_loop): Move pushlevel,
8348           poplevel up into the grammar, so they're done in both
8349           passes.
8350         * ch-parse.y (doaction): Unconditionally make a scope
8351           for a loop, pop it later.
8352           (controlpart, iteration): Save return from
8353           build_chill_iterator.
8354         * expr.c: Readability changes.
8355
8356 Sat Aug 14 19:42:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8357
8358         * ch-expr.c (chill_expand_case_expr): Complete rewrite
8359           for 2-pass.  About 1/2 the size, too.
8360         * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
8361           This assures that a label preceding a module's first action
8362           is enclosed in the module-level function that's generated.
8363
8364 Sat Aug 14 14:56:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8365
8366         Re-implement how EXIT is done.
8367         'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
8368         'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
8369         Hence we no longer need any support for EXIT in stmt.c.
8370         * stmt.c (stamp_nesting_label, expand_exit_labelled):  Removed.
8371         * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
8372         * ch-tree.c, ch-tree.h (munge_exit_label): New function.
8373         * ch-parse.y:  Re-write bracked actions to support EXIT new way.
8374         * ch-decl.c, ch-loop.c:  Remove calls to stamp_nesting_level.
8375         * ch-parse.y:  Replace SC by new token semi_colon, which
8376         resets the 'label' global.  Also make sure that label gets
8377         reset whenever we might start a new action statement.
8378         * ch-parse.y (possibly_define_exit_label):  New function.
8379
8380         * ch-except.c (chill_start_on):  Wrap an ADDR_EXPR round the jmpbuf.
8381         * ch-grant.c (chill_finish_compile):  Make sure
8382         get_file_function_name is only called once.
8383         * ch-expr.c (chill_expand_array_assignment):  Use store_expr,
8384         instead of incorrectly calling emit_block_move.
8385
8386         * ch-parse.y (procedure):  Call push_chill_function_context
8387         in *both* passes (if nested).
8388         * ch-parse.y (primval):  Call get_type_of before chill_expand_type.
8389         * ch-parse.y (tupleelement):  Only build PAREN_EXPR during pass 1.
8390
8391 Fri Aug 13 16:36:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8392
8393         Re-implement GRANT and SEIZE, to support prefixes and prefix
8394         rename.  All of the Blue Book semantics for these should
8395         now work (except FORBID).
8396         * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
8397         DECL_POSTFIX, DECL_POSTFIX_ALL):  New ALIAS_DECL layout and macros.
8398         * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
8399         decl_check_rename):  New functions.
8400         * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
8401         * ch-satisfy.c (satisfy_decl):  Handle SYN initialized with tuple.
8402         * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
8403         * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8404         * ch-grant.c (decode_prefix_rename):  New function.
8405         Use to print out GRANT and SEIZE statements.
8406         * ch-decl.c (ALL_POSTFIX):  New global variable.
8407         * ch-decl.c (bind_saved_names, pop_module):  Change to use new
8408         ALIAS_DECL layout, and support general prefix rename and ALL.
8409         * ch-decl.c (various places):  Don't barf if DECL_ANME is NULL.
8410         * ch-parse.y (build_prefix_clause):  New function (handle PREFIXED).
8411         * ch-parse.y (optprogendname, optname):  Rename to opt_end_label.
8412         * ch-parse.y:  Add support for compound name strings, but defer
8413         using all over teh place, due to parser ambiguities.
8414         Howver, do use defining_occurrence where appropriate.
8415         * ch-parse.y:  Re-write syntax and semantics of GRANT and SEIZE
8416         statements to support Blue Book functionality.  Neato!
8417
8418 Fri Aug 13 17:10:52 1993  Bill Cox  (bill@rtl.cygnus.com)
8419
8420         * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8421         * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8422           (decl_temp): Deleted.
8423         * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8424         * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8425           readability, add comment.
8426         * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8427         * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8428
8429 Fri Aug 13 13:39:59 1993  Bill Cox  (bill@rtl.cygnus.com)
8430
8431         * ch-decl.c (decl_temp): Break the chain of decls.  This
8432           prevents an infinite loop.
8433         * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8434         * ch-lex.l (equal_number): Check passes in looking up a
8435           symbolic value.
8436         * ch-parse.y: Fix comments.
8437         * ch-tasking.c (tasking_setup): Only act in pass 2.
8438           (make_signal_struct, build_signal_decl,
8439            build_chill_receive_case_label): Don't go indirect
8440            thru NULL decl pointer.
8441
8442 Thu Aug 12 11:02:34 1993  Bill Cox  (bill@rtl.cygnus.com)
8443
8444         * ch-actions.c (route_to_predefined_function): New function called
8445           from build_chill_function_call, to call the proper predefined routine.
8446           (build_chill_card, build_chill_length, build_chill_lower,
8447           build_chill_max, build_chill_min, build_chill_num,
8448           build_chill_pred, build_chill_sizeof, build_chill_succ,
8449           build_chill_upper): Rewritten to run only in pass 2.
8450         * ch-decl.c (init_decl_processing): Build predefined functions for card,
8451           length, lower, max, min, num, pred, sizeof, succ and upper.  Delete
8452           unused builtin_function calls.
8453         * ch-grant.c (chill_finish_module_code): Save current_function_decl
8454           before calling finish_chill_function, and use that to build the
8455           initializer structure.
8456         * ch-lex.l: Remove following tokens, since they're now just predefined,
8457           not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8458           and upper.
8459         * ch-loop.c: Readability, indentation changes.
8460         * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8461           sizeof, succ and upper.  Delete special rules for calls to these.
8462           Delete mode_location and upper_lower_arg non-terminals.
8463           (pmodearg): Eliminate convolutions.
8464           (call): Add rule for typename parameter.
8465         * ch-tasking.c: Readability changes.
8466         * ch-tree.h: Add prototypes.
8467
8468 Thu Aug 12 00:38:17 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8469
8470         * ch-decl.c (save_decl):  Set DECL_CONTEXT (decl).
8471         * ch-grant.c (chill_finish_module_code):  Call
8472         finish_chill_function with nested==0.
8473         * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y:  Rename
8474         {push,pop}_c_function_context to {push,pop}_chill_function_context.
8475         * ch-parse.y (end_function): If nested, call
8476         pop_chill_function_context regardless of which pass we're in.
8477
8478 Wed Aug 11 02:34:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8479
8480         * ch-actions.c (finish_chill_binary_op):  Handle error marks.
8481         * ch-decl.c (do_decl):  Laying out decl and generating rtl
8482         is too late to do here (if there are forward references), so ...
8483         * ch-satisfy.c (satify_decl):  ... do it here instead.
8484         * ch-decl.c (finish_enum):  Fixup types of enum decls now.
8485         * ch-satisfy.c (safe_satisfy_decl):  New routine.  Supports
8486         checking illegal cyclic definitions.
8487         All *satisfy* routines now take a 'chain' parameter (instead
8488         of 'lookup_only') used for checking cycles.
8489         * ch-satisfy.c (satisfy_decl):  Return DECL_INITIAL if appropriate.
8490         * ch-satisfy.c (satisfy):  Lots of little fixes.
8491
8492         * ch-lex.l (init_lex):  Make all the standard ridpointers be
8493         lowercase, so that lookup_name on lower-cased user input
8494         will find the standard types.
8495         * ch-lex.l:  Remove all the standard types, in effect
8496         converting them from reservered anmes to predefined names.
8497         * ch-lex.l, ch-parse.y:  Remove PREDEF_MODEDECL - no longer used.
8498         * ch-grant.c (gfile):  Rename to grant_file_name.
8499         * ch-lex.l (yywrap):  Don't try to seize current grant_file_name.
8500
8501         * initname.c:  Removed. get_file_function_name is now in tree.c
8502         * Makefile.in (CHILL_OBJS): Remove initname.o
8503
8504         * ch-decl.c (do_decl):  New function, based on loop body of do_decls,
8505         * ch-decl.c (do_decls):  Just call do_decl.
8506         * ch-grant.c (chill_finish_module_code):  Minor cleasnups.
8507         Use new do_decl routine.  Clear init_entry_decl's source line.
8508         * ch-grant.c (print_proc_tail):  Fix for new param list structure.
8509         * ch-parse.y (whatpdef):  Removed.  Cleaned up procedure
8510         and process, allowing proper end-label-checking.
8511         * ch-typeck.c (build_chill_cast):  Remove decl->type conversion.
8512
8513 Wed Aug 11 00:33:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8514
8515         * ch-decl.c (layout_enum):  Don't call rest_of_type_compilation.
8516
8517         * ch-lex.l (RETURN_PREDEF):  Don't call lookup_name.
8518         * ch-expr.c (build_chill_indirect_ref):  Call get_type_of.
8519         * ch-parse.y (call):  Call get_type_of before build_chill_cast.
8520
8521 Tue Aug 10 21:33:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8522
8523         *  ch-actions.c (build_char_array_expr):  If a concat operand is
8524         a constant char, convert it to a STRING_CST.
8525         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation
8526         with toplev=0.
8527         * ch-typeck.c (build_chill_cast):  Allow type to be TYPE_DECL.
8528
8529         * ch-parse.y (actionlabel):  Call define_label in both passes.
8530         * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8531         New functions, using lookup_name to find LABEL_DECLs.
8532         * ch-parse.y (GOTO, EXIT):  Use above new functions.
8533         * ch-tasking.c (struct rc_state_type *current_rc_state):
8534         Use to store state for the current receive case statement.
8535         (build_chill_receive_case_start, build_chill_receive_case_end):
8536         Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8537         * ch-decl.c:  Remove all stuff dealing with specific label scopes,
8538         including functions push_label_level, pop_label_level.
8539         * ch-decl.c (define_label):  Re-write for 2-pass.
8540         * ch_tree.h (lang_identifier):  Removed label_value.
8541         * ch-tree.h (IDENTIFIER_LABEL_VALUE):  Removed.
8542
8543         * ch-parse.y (modename):  Changed to yield identifier, not type.
8544         This allows following changes, which work better for 2-pass:
8545         (location):  primval ARROW optmodename -> primval ARROW optname.
8546         (primval):  Tuple can now be prefixed by unsatisfied name.
8547
8548         * ch-actions.c (chill_grant_only):  Renamed to grant_only_flag.
8549         * ch-lex.l (yywrap):  Don't read seizefiles if grant_only_flag.
8550         * ch-decl.c (switch_to_pass_2):  Exit if grant_only_flag,
8551
8552         * ch-satisfy.c (satisfy):  Support CONSTRUCTOR, REFERENCE_TYPE.
8553         * ch-satisfy.c (satisfy_decl, satisfy):  Kludge around
8554         to a TYPE_DECL can be simplified to its type.
8555         * ch-expr.c (build_chill_indirect_ref):  New function.
8556         * ch-lex.l (prepare_paren_colon):  Make kludge even uglier,
8557         since the left paran might already have been seen.
8558         * ch-lang.c (make_chill_pointer_type):  Allow parameter
8559         to select pointer or reference type.
8560         (build_chill_reference_type):  New function.
8561         Either function:  Be more careful (in case arg is identifier).
8562         * ch-except.c (initialize_exceptions):  Make
8563         exception_stack_decl be public.
8564         * ch-actions.c (build_char_array_expr):   Can only
8565         constant fold if operands are STRING_CST.
8566         * ch-grant.c (raw_decode_mode):  Allow TYPE_DECL.
8567         (chill_finish_compile:  Set TREE_PUBLIC of init function to 1.
8568
8569 Tue Aug 10 17:55:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8570
8571         * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8572         * ch-decl.c: Fix comment.
8573         * ch-parse.y (pmodearg): Build tree_list in all cases.
8574         * varasm.c (assemble_tasssking_entry): Delete unused code.
8575
8576 Tue Aug 10 13:58:21 1993  Bill Cox  (bill@rtl.cygnus.com)
8577
8578         * ch-actions.c (build_char_array_expr): save/restore
8579           a tree's constant status.
8580           (build_chill_binary_op): Don't convert an expression
8581           if the type we're converting to is NULL.
8582         * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8583           Call it from convert, and from ..
8584         * ch-expr.c (chill_expand_assignment): call new function.
8585           Move convert code earlier, too.
8586         * ch-decl.c (lookup_name): Delete bogus error message.
8587         * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8588           Add protos.
8589         * ch-typeck.c (valid_array_index): Comment out some strange code
8590           which now seg faults.
8591           (chill_expand_tuple): Re-enable prepending of VARYING
8592           length to a tuple.
8593           (chill_similar): Return FALSE if either mode is NULL_TREE.
8594
8595 Tue Aug 10 07:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
8596
8597         * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8598           Add commented-out calls to pushtag, in case we decide later
8599           to fill in TYPE_STUB_DECL for dbxout.
8600         * ch-lang.c (build_chill_struct_type): Add commented-out
8601           calls to pushtag, in case we decide later to fill in
8602           TYPE_STUB_DECL for dbxout.
8603
8604 Mon Aug  9 23:09:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8605
8606         * ch-decl.c (chill_seize):  Don't get_next_next in pass 2.
8607         * ch-decl.c (get_next_decl):  Skip ALIAS_DECLs.
8608         * ch-decl.c (bind_saved_names):  Handle SEIZE ALL.
8609         * ch-lang.c (layout_chill_struct_type):  Don't call
8610         rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8611         * initname.c (get_file_function_name):  Get new file and
8612         function for language-independent constructor name generation.
8613         * ch-grant.c (get_init_function_id):  Removed.
8614         * ch-grant.c (chill_finish_compile):  Call get_file_function_name
8615         instead of get_init_function_id.
8616
8617 Mon Aug  9 18:33:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8618
8619         * ch-decl.c: Formfeeds and comments.
8620         * ch-parse.y (quasi_formpar): Treat just like real formpar.
8621           Eliminate restriction on single name.
8622           (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8623
8624 Mon Aug  9 17:21:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8625
8626         * ch-lex.h (enum rid), ch-lex.l (init_lex):  Added RID_ALL.
8627         * ch-lang.c (build_chill_pointer_type):  Layout the pointer type,
8628         if the pointee is laid out, even if pass==1.
8629         * ch-parse.y:  Set ignore_exprs=(pass=2) for entire spec module.
8630
8631 Mon Aug  9 15:44:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8632
8633         This version compiles the 5-line program.  Thanks, Per!
8634         * ch-decl.c (print_lang_decl, print_lang_identifier):
8635           Add appropriate calls to indent_to().  Rename reverse_scopes
8636           to switch_to_pass_2, and wait to set pass = 2 until
8637           here.
8638         * ch-grant.c (chill_finish_module_code): Set module_init_list
8639           non-NULL in pass 1;  in pass2, chain on the module_init
8640           structure's decl.
8641           (chill_finish_compile): Clear module_init_list to NULL.
8642         * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8643           Rename reverse_scopes to switch_to_pass_2, delete setting
8644           of pass = 2.
8645         * ch-tree.h: Rename reverse_scopes proto.
8646
8647 Mon Aug  9 13:21:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8648
8649         * ch-decl.c (build_enumerator):  If name is NULL,
8650         don't call save_decl or get_next_decl.
8651         * ch-decl.c (layout_enum):  Fix calculation of next value.
8652         * ch-grant.c (print_enumeral):  Re-do for new 2-pass scheme.
8653         * ch-grant.c (decode_constant):  Better CONSTRUCTOR support.
8654
8655 Mon Aug  9 11:59:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8656
8657         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8658           ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8659           Lots of new prototypes.
8660
8661 Mon Aug  9 01:00:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8662
8663         * ch-lex.h:  Remove unused RID_'s.  Make sure RID_MAX is last.
8664         * ch-decl.c (init_decl_processing):  Moved ridpointers
8665         initialization to init_lex().  Use them consistently.
8666         * ch-lex.l (RETURN_PREDEF):  New macro.  Uses ridpointers
8667         for all preferedined types.
8668         * ch-lex.l (init_lex):  Upper case all RIDs, so grantfiles
8669         (and error messages?) will use uppercase.
8670         * ch-decl.c (build_chill_enumerator):  Merged into build_enumerator.
8671         * ch-lang.c (finish_chill_enum):  Merged into ...
8672         * ch-decl.c (finish_enum): .... this function.
8673         * ch-decl.c (layout_enum):  New function.  Does all the pass-2
8674         stuff for enumerations.
8675         * ch-decl.c (finish_enum, start_enum):  Only trivial pass-1 stuff.
8676         * ch-satisfy.c (satisfy):  Support ENUMERAL_TYPE.  Improve ranges.
8677         * ch-parse.y:  Check ignore_exprs instead of ignore_decls when
8678         parsing and building types.
8679
8680 Sun Aug  8 16:26:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8681
8682         * ch-lex.h:  Add some missing RID_'s.
8683         * ch-decl.c (init_decl_processing):
8684
8685 Sun Aug  8 15:32:54 1993  Bill Cox  (bill@rtl.cygnus.com)
8686
8687         * ch-grant.c (module_has_actions): Delete this and all
8688           references.  It was a botch.
8689           (chill_finish_module_code): Move finish_chill_function_call inside
8690           the test whether actions were found at module level.
8691           Use current_function_name in the initializer build,
8692           and init_entry_id in the module_list setup.
8693           (chill_finish_compile): Call lookup_name to get the
8694           decl from a module_init_list entry.
8695         * ch-parse.y: Revert module_has_actions additions.
8696         * ch-satisfy.c (satisfy): After satisfying the type  referenced
8697           by a pointer_type, call layout type for the pointer.
8698         * ch-tasking.c (tasking_registry): Only active in pass 2.
8699         * ch-typeck.c: Call build_chill_pointer_type everywhere.
8700
8701 Sun Aug  8 13:13:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8702
8703         * ch-tree.def (PAREN_EXPR):  New unary op:  '(' EXPR ')'.
8704         * ch-parse.y (primval):  If pass 1, generate PAREN_EXRR.
8705         * ch-satisfy.c (satisfy):  Reduce PAREN_EXPR to its operand.
8706         * ch-grant.c (decode_const):  Handle PAREN_EXPR.
8707         * ch-decl.c (pop_module):  Fix think.  Inprove error message.
8708
8709 Sun Aug  8 10:31:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8710
8711         Generally, replace 'function' with 'procedure'
8712         and 'type' with 'mode' in error/warning messages.
8713         * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8714         * ch-decl.c: See Generally.
8715           (init_decl_processing): Call build_tasking_enum from here.
8716           Now, it doesn't need a flag to do its work only once.
8717           Also, build the TaskingStruct decl here.
8718         * ch-grant.c: Remove references to `current_grant_file';
8719           there's now only one.  See Generally.  Do gcc -Wall cleanup.
8720         * ch-lex.l: Remove references to `current_grant_file'
8721           and delete USE_GRANT_FILE token.
8722         * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8723         * ch-tasking.c (tasking_setup): Move TaskingStruct build
8724           to init_decl_procesing.  Delete build_tasking_enum calls.
8725         * ch-tree.c: See Generally.
8726         * ch-tree.h: Add proto for build_tasking_struct.
8727
8728 Sun Aug  8 08:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8729
8730         * ch-decl.c: Make unnamed_module_number static, reset it to zero
8731           before pass 2, so same module names get generated in both passes.
8732           (push_module): Return user name or generated name.
8733           (init_decl_processing): Build __tmp_initializer_type.
8734           Code moved from chill_finish_module_code.
8735         * ch-grant.c: New flag module_has_actions.  Set TRUE by push_actions,
8736           used, reset by chill_finish_module_code.    Replaces test of
8737           module_function_name.  Shuffled finish-up code to end of module.
8738           (chill_finish_module_code): Use global_bindings_p to determine
8739           'nested' parameter for finish_chill_function.  Use new
8740           module_has_actions flag to trigger generation of module_init list
8741           entry.  We now can handle not only multiple modules per file,
8742           but modules nested inside functions (I think).
8743         * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8744         * ch-parse.y (push_actions): Set module_has_actions flag.
8745           (modulion, spec_module): Save possibly-generated module name
8746           returned by push_module.
8747         * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8748           case for POINTER_TYPE.
8749         * ch-tasking.c: Replace build_pointer_type calls with
8750           build_chill_pointer_type calls.
8751         * ch-tree.h: Fix, add prototypes.
8752
8753 Sat Aug  7 17:32:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8754
8755         * ch-parse.y:  Remove many useless tests for ignore_decls.
8756         * ch-parse.y:  Remove obsolete support for _EXTERN and _INIT.
8757         * ch-parse.y:  Reset ignore_exprs while parsing declarations,
8758         but handle initializers appropriately.
8759         * ch-grant.c (decode_constant):  Update (for 2-pass) support
8760         for CONSTRUCTOR and SET_TYPE.
8761         * ch-grant.c (chill_initializer_name):  Renamed to
8762         module_function_name.
8763         * ch-grant.c (function_generated):  Removed;
8764         use module_function_name != NULL instead.
8765         * ch-tree.h, ch-parse.y:  Removed unused current_locnamelist.
8766         * ch-decl.c (push_modedef):  Simplify to take just one mode.
8767         * ch-tasking.c (make_process_struct, make_signal_struct):
8768         Change calls to push_modedef correspondingly.
8769         * ch-tree.c (build_powerset_type):  Move the stuff that's
8770         suitable for pass 1 into new function make_powerset_type,
8771         and that for pass 2 into new function layout_powerset_type.
8772         * ch-lang.c:  Move pass-1 stuff from build_chill_pointer_type
8773         into new function make_chill_pointer_type, and split
8774         build_chill_struct_type into make_chill_struct_type
8775         and layout_chill_struct_type.
8776         * ch-decl.c (grok_chill_variantdefs):  Similarly split up
8777         into make_chill_variants and layout_chill_variants.
8778         * ch-satisfy.c (satisfy):  Add support for SET_TYPE, and UNION_TYPE.
8779         Call layout_chill_struct_type for RECORD_TYPE.
8780
8781 Sat Aug  7 09:59:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8782
8783         Fixup previous check-in.
8784         * ch-decl.c: Restore unnamed_module_number, which *was*
8785           used after all.
8786         * ch-grant.c (get_init_function_id): Return type s.b. tree.
8787
8788 Sat Aug  7 09:28:17 1993  Bill Cox  (bill@rtl.cygnus.com)
8789
8790         * ch-decl.c (print_lang_decl, print_lang_type): Add
8791           correct parameter list.  Add print statements for
8792           nesting_level, signal_dest, buffer_size, and the
8793           signal_data flag.
8794           (decl_temp, decl_temp1): Delete unused code.
8795           (init_decl_processing): Call build_instance_type and
8796           build_tasking_type in both passes.
8797           Generally change current_scope comparisons against
8798           global_scope to global_biidings_p calls.
8799         * ch-except.c (push_handler): Add space before parameter paren.
8800         * ch-grant.c (chill_start_module, chill_finish_module,
8801           chill_finish_compile): Complete re-write for 2-pass and
8802           multiple modules per source file.
8803         * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8804         * ch-tasking.c: Diffused small adaptations to 2-pass.
8805         * ch-tree.h (print_lang_decl, print_lang_type): Correct
8806           the prototypes.
8807           (chill_finish_module_code): Add module name parameter.
8808         * ch-typeck.c: Fix comments, add whitespace.
8809
8810 Fri Aug  6 12:17:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8811
8812         * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8813         way I allocated the shadow_list on an obstack was too fragile,
8814         so just use xmalloc/free instead.
8815
8816 Fri Aug  6 08:31:49 1993  Bill Cox  (bill@rtl.cygnus.com)
8817
8818         * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8819           TYPE_MAX_VALUE for vanilla integer type.  Only need
8820           to satisfy TREE_TYPE for integer range type.
8821
8822 Fri Aug  6 00:53:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8823
8824         * ch-lang.c (build_chill_range_type):  Split up into two new
8825         functions (make_chill_range_type, layout_chill_range_type);
8826         only former part is done in pass 1.
8827         * ch-lang.c (build_chill_array_type):  Split up in the same
8828         way (yielding make_chill_array_type, layout_chill_array_type).
8829         * ch-satisfy.c (satisfy):  Handle array and range types.
8830         * ch-tree.h (TYPE_RANGE_PARENT):  Removed.  Not used.
8831         * ch-parse.y (mode2):  Handle optional rangesize.
8832
8833 Thu Aug  5 15:13:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8834
8835         * ch-grant.c (print_an_int):  Re-enable (but don't search for SYN).
8836         * ch-grant.c (raw_decode_mode):  Support printing
8837         of an IDENTIFIER_NODE (unresolved type name).
8838         * ch-grant.c (decode_constant):  Support printing of an unresolved
8839         IDENTIFIER_NODE, as well as some kinds of binary operations.
8840         * ch-grant.c (grant_one_decl):  Don't call globalize_decl.
8841
8842         * ch-grant.c (decode_decl):  Add support for ALIAS_DECLs
8843         (from SEIZEs and GRANTs).
8844         * ch-grant.c:  Remove support for multiple grantfiles.
8845         * ch-grant.c, ch-parse.y:  Removed grant_count, for now at least.
8846         * ch-lex.h (in_seizefile):  Moved to ch-tree.h.
8847         * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c:  Removed.
8848         * ch-tree.h (CH_DECL_GRANTED): Added.
8849         * ch-actions.c (build_chill_exception_decl):  Use
8850         IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8851         * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8852         Change to accept list of remember_decls and granted_decls.
8853
8854 Thu Aug  5 11:58:21 1993  Stan Shebs  (shebs@rtl.cygnus.com)
8855
8856         * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8857
8858 Thu Aug  5 10:03:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8859
8860         * ch-decl.c (init_decl_processing): Only build types
8861           in pass 2, since dbxout machinery is only ready for
8862           output then.
8863         * ch-grant.c (chill_finish_module_code): Do most of the
8864           work in pass 2.
8865
8866 Thu Aug  5 06:54:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8867
8868         * ch-parse.y (receivecaseaction): Pass label-group
8869           numbers around.
8870         * ch-tasking.c (build_chill_receive_case_start):
8871           Generate unique labels for each case, pass back
8872           the label-group's number.
8873           (build_chill_receive_case_end): Accept label-group
8874           number from parser, use it to build labels
8875         * ch-tree.h: Change prototypes.
8876
8877 Wed Aug  4 13:21:13 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8878
8879         * ch-decl.c (decl_temp1):  Call finish_decl().
8880
8881         * ch-grant.c (chill_start_module_code):  Don't call
8882         push_c_function_context - not needed since we're not nested.
8883         * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8884         with nested=0, not 1 (twice).
8885         * ch-grant.c (chill_finish_module_code): Clear function_generated.
8886
8887 Tue Aug  3 20:06:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8888
8889         * ch-decl.c (push_chill_extern_function):  Set TREE_PUBLIC.
8890
8891 Tue Aug  3 19:08:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8892
8893         * ch-actions.c (build_chill_function_call): Handle parameter
8894           attributes better - LOC still not handled.
8895         * ch-tree.def: Amplify comment.
8896
8897 Tue Aug  3 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8898
8899         * ch-lex.l (handle_use_seizefile_directive):  Update
8900         next_file_to_seize correctly.
8901         * ch-actions.c (build_chill_abs):  Create an ABS_EXPR, not an rts_call.
8902
8903 Tue Aug  3 14:03:50 1993  Bill Cox  (bill@rtl.cygnus.com)
8904
8905         First Aid, not real long-term fixes...
8906         * ch-decl.c (pop_module, lookup_name_for_seizing): Check
8907           current_module pointer for NULL before using it.
8908           (init_decl_processing): Set up wchar_type_node before using it.
8909         * ch-grant.c (chill_finish_module_code): Don't build
8910           initializer_type or initializer_decl until pass 2.
8911         * ch-lex.l: Readability - single statement per line.
8912         * ch-tasking.c (make_process_struct): Hide get_parm_info
8913           call inside #ifdef for now.
8914
8915 Tue Aug  3 09:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8916
8917         * ch-decl.c (pushdecllist): Add forward decl.
8918         * ch-parse.y (handler): Add rules which allo
8919           empty onalternativelist.
8920         * ch-tasking.c (get_tasking_code_name): Add
8921           cast of alloca() result.
8922
8923 Tue Aug  3 00:11:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8924
8925         * ch-lex.l (handle_use_seizefile_directive):  Make files_to_seize
8926         a queue.  Check for duplicate use_seizefile-s immediately.
8927         * ch-lex.l (yywrap):  Use this more portable mechanism,
8928         rather than the flex-specific <<EOF>>.  Also, clear saw_eof.
8929         * ch-lex.l:  Don't call push_module/pop_module automatically.
8930         * ch-decl.c (push_chill_extern_function:  Modify for 2-pass.
8931
8932 Mon Aug  2 14:24:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8933
8934         * ch-parse.y:  Rename actionstatement -> nonempty_actionstatement.
8935         New actionstatement is now nonempty_actionstatement | SC.  Use
8936         where appropriate.  This is closer to Blue Book terminology.
8937
8938         * ch-tree.def (ALIAS_DECL):  New tree type.
8939         * ch-decl.c:  Merged all the code we need (I hope) from c-decl.c,
8940         which is no longer used for cc1chill.
8941         * c-decl.c:  Remove all Chill-related code.
8942         * Makefile.in (CHILL_OBJS):  Don't use c-decl.o.
8943         * ch-decl.c:  No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
8944         Introduce a 'nesting_level' level concept instead.
8945         * ch-decl.c:  Merged push_scope into pushlevel; pop_scope into
8946         poplevel;  struct scope and struct binding_level.
8947         * ch-decl.c:  Other major name lookup algorithm changes.
8948         * ch-tree.h (struct lang_identifier): Remove granted_value field.
8949         * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro):  Removed.
8950         * ch-tree.h (DECL_NESTING_LEVEL):  New macro.
8951         * ch-satisfy.c (satisfy, satisfy_decl):  New 'lookup_only' arg.
8952         * ch-tree.h (struct module):  New fields nesting_level, granted_decls.
8953         * ch-grant.c (seize_implied_names, do_seize, chill_seize):  Move ...
8954         * ch-decl.c: ... here.
8955         * ch-grant.c (start_chill_function2):  Remove.
8956         * ch-grant.c (chill_start_module_code):  Now called in both passes.
8957         * ch-actions.c (lang_init):  Code moved to ...
8958         * ch-decl.c (init_decl_processing): ... here.
8959         * ch-actions.c (chill_expand_result, chill_expand_return):
8960         Handle being called during pass 1.
8961         * ch-lex.l (name_type_signal):  Don't try lookup_name during pass 1.
8962         * ch-parse.y (PUSH_ACTION, push_action):  Is now invoked during
8963         both passes, for the sake of chill_start_module_code.  Change all
8964         actions rules to invoke PUSH_ACTION unconconditionally.
8965         * ch-parse.y, ch-decl.c (push_module):  Module label is now optional.
8966
8967 Mon Aug  2 15:02:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8968
8969         * expr.c (store_constructor): Convert library function
8970           parameters to proper integer precision before calling
8971           emit_library_call.
8972
8973 Mon Aug  2 08:46:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8974
8975         * ch-grant.c (seize_implied_names): Check POWERSET's
8976           base type for names to seize.
8977
8978 Fri Jul 30 19:59:30 1993  Bill Cox  (bill@rtl.cygnus.com)
8979
8980         * ch-tree.h: Delete unused definition of JOINER
8981           macro.  Expand comment about INSTANCE_TYPE.
8982
8983 Thu Jul 29 14:57:11 1993  Bill Cox  (bill@rtl.cygnus.com)
8984
8985         * ch-convert.c (unreferenced_type_of): New function.
8986           (convert): Call new function.
8987
8988 Thu Jul 29 07:34:57 1993  Bill Cox  (bill@rtl.cygnus.com)
8989
8990         * ch-lex.l: Allow C-style comments before the module
8991           header.  Use #undef to assure that strchr isn't a
8992           macro (portability), and remove the extra paren-
8993           theses in its extern name.
8994           (check_newline): Call getlc less often, so that user
8995           labels aren't lowercased before their time. Add BEGIN
8996           INITIAL before starting pass 2, so the header is
8997           correctly ignored.
8998
8999 Wed Jul 28 14:23:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9000
9001         * ch-grant.c (chill_start_module_code): Cast alloca()
9002           return value.
9003
9004 Wed Jul 28 12:39:51 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9005
9006         * ch-grant.c: remove extra parens around extern function
9007         declarations (they confuse the DECstation compiler)
9008
9009 Wed Jul 28 12:28:56 1993  Bill Cox  (bill@rtl.cygnus.com)
9010
9011         * Makefile.in: Stop deleting flex's #line lines.
9012
9013 Wed Jul 28 07:05:25 1993  Bill Cox  (bill@cygnus.com)
9014
9015         Adjust after FSF merge:
9016         * calls.c (expand_call): Add comment.
9017         * ch-expr.c: Add newline.
9018         * expmed.c (store_split_bit_field): Add comment.
9019
9020 Tue Jul 27 17:32:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9021
9022         * ch-actions.c (build_chill_binary_op): Set code0 and
9023           code1 only in pass 2.
9024           (get_result_tmp_name): Cast alloca return for portability.
9025         * ch-decl.c (pop_module): Test current_module ptr before
9026           using it.
9027         * ch-lex.l: Set lineno and input_filename for pass 2
9028           error messages.
9029
9030 Tue Jul 27 15:14:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9031
9032         * ch-lex.l: Fix the syntax error at line 329.  Will I
9033           *ever* quit fixing these in the ch-lex.c file?  Stay tuned..
9034
9035 Tue Jul 27 15:01:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9036
9037         * ch-lex.l: Pervasive rewrite for queueing seize files,
9038           then parsing them at the end of pass 1.  Still some
9039           problems.
9040
9041 Tue Jul 27 07:40:39 1993  Bill Cox  (bill@rtl.cygnus.com)
9042
9043         * chill.in: Check for .i suffices only, and use -xchill
9044           to bracket the argument.
9045
9046 Thu Jul 22 19:17:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9047
9048         * c-decl.c (print_lang_identifier): Oops.  Syntax error.
9049
9050 Thu Jul 22 18:56:16 1993  Bill Cox  (bill@rtl.cygnus.com)
9051
9052         * c-decl.c (pushdecllist): Standardize loop for readability.
9053         * ch-decl.c (decl_temp): Call pushdecllist to store decl
9054           into hash table, move after current_scope declaration.
9055           (decl_temp1): Move also.
9056         * ch-lex.l (getlc): New function.  Force char to lower case.
9057           (check_newline): Call it, so comparisons work on uppercase
9058           keywords.
9059
9060 Wed Jul 21 22:17:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9061
9062         * ch-decl.c (do_decls): Add saving of decl tree
9063           address into ID node in pass 2,  reindent.
9064         * ch-grant.c (start_chill_function2): New function.
9065           (chill_start_module_code,  chill_finish_module_code): Call it.
9066         * ch-loop.c (build_temporary_variable, begin_for_range):
9067           Replace start_decl, finish_decl pairs with decl_temp1 calls.
9068         * ch-parse.y (parnamelist): Eliminate warning by eliminating
9069           the %type for now.
9070         * ch-actions.c, ch-tasking.c: Replace do_decls calls with
9071           decl_temp1 calls.
9072         * ch-tree.h: New prototypes.
9073         * stmt.c (stamp_nesting_label): Check parameters for NULL.
9074         * toplev.c (lang_options): Add '-L' option.
9075
9076 Wed Jul 21 21:06:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9077
9078         Portability fixes.
9079         * ch-decl.c (save_decl): Make definition match forward declaration.
9080         * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
9081           in the macro - Sun's compiler throws warnings.  Thanks, Brendan.
9082         * ch-satisfy.c (satisfy): Add forward declaration.
9083           (SATISFY): Add outer parens for greater safety.
9084
9085 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9086
9087         * c-decl.c (pushdecllist): New function.  Add a list of decls
9088         to the current scope, checking for duplicates.
9089         * c-decl.c (start_function):  Remove some Chill junk.
9090         (This function should no longer be used for Chill.)
9091         * ch-lex.l (ch_lex_init):  New function, to re-init for 2nd pass.
9092         * ch-lex.l (<<EOF>>):  Cleanup, and re-start for 2nd pass.
9093         * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG):  New flags.
9094         * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
9095         Implement.  Add comments.
9096         * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
9097         Better Blue Book type checking.
9098         * ch-actions.c (finish_chill_binary_op): Handle folding
9099         and other stuff that couldn't be done in pass 1.
9100         * ch-actions.c (build_chill_binary_op):  Bail out early if pass 1.
9101         Use new CH_ROOT_MODE macro to handle integer promotions etc.
9102         * ch-except.c (push_handler):  Bail out if pass 1.
9103         * ch-tasking.c (make_process_struct):  Defer making this work.
9104         * ch-parse.y (assignaction):  Simplify, and move some code ...
9105         * ch-expr.c (chill_expand_assignment): ... here.
9106         * ch-typeck.c (chill_root_mode, chill_resulting_mode,
9107         chill_compatible_classes):  New functions, implementing the
9108         correspondingly named Blue Book concepts.
9109         * ch-parse.y generally:  Lots of little tweaks to support
9110         2-pass compilation.
9111         * ch-parse.y (push_module, pop_module):  Moved to ...
9112         * ch-decl.c (push_module, pop_module):  ... here.
9113         * ch-parse.y (push_action):  New function.
9114         * ch-parse.y (pdef):  Move complicated action to ...
9115         * ch-parse.y (end_function):  ... new function here.
9116         * ch-parse.y (procedure):  Major re-write.
9117         * ch-parse.y (paramname, paramnamelist):  New, to avoid conflict (?).
9118         * ch-decl.c (do_decls, push_syndecls, push_modedef,
9119         start_chill_function, finish_chill_function):  Do different things
9120         on each pass.  Hence, can use code in c-decl.c to lesser extent.
9121         * ch-decl.c (build_chill_function_type):  First arg is now
9122         just the return type, rather than a singleton list.
9123         * ch-decl.c (massage_param_node):  Remove not needed (we
9124         now encode parameter attributes directly in the TREE_PURPOSE).
9125         * ch-decl.c (chill_munge_params):  New function, called by parser.
9126         * ch-decl.c (push_parms):  Removed function.
9127         * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
9128         New functions, to coordinate decls between passes.
9129
9130 Wed Jul 21 14:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9131
9132         * ch-actions.c (lang_decode_option): Add option -Lpath
9133           to specify seize file path.
9134           (ch_singleton_set): Readability formatting.
9135           Add comment, move functions to easier found places.
9136         * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
9137           (register_seize_path): Use memcpy so pathlen has an effect.
9138         * gcc.c (default_compilers): Add -L option to chill
9139           compiler SPECs.
9140
9141 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9142
9143         * ch-satisfy:  New file.  Used for name lookup.
9144         * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
9145
9146 Wed Jul 21 12:16:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9147
9148         * toplev.c (main): Delete -L option handling - breaks
9149           non-chill compilers.
9150
9151 Wed Jul 21 09:29:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9152
9153         * ch-grant.c: #undef strchr and strrchr names in extern
9154           declarations, to prevent RS6000 compiler from reporting
9155           their misuse as macros.
9156         * ch-lex.l (setup_seizefile_read): Refer to list of  paths
9157           for seizefiles specified by -L options on command line.
9158           (register_seize_path): Add a new path to the seize file list.
9159         * toplev.c (strip_off_ending): Recognize chill suffix.
9160           (main): Recognize -L option, specifying a seize file path.
9161
9162 Tue Jul 20 12:41:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9163
9164         * ch-lex.l (convert_float): Make it really portable,
9165           using the appropriate macros.
9166
9167 Tue Jul 20 11:26:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9168
9169         * ch-lex.l (convert_float): More casts for vxworks
9170           portability.
9171
9172 Tue Jul 20 11:01:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9173
9174         * ch-lex.l (convert_float): Give variable `d' correct
9175           type so build_real call is correct.  Should remove
9176           vxworks portability problem.
9177           (convert_float): Re-indent to standards.
9178
9179 Mon Jul 19 17:32:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9180
9181         * ch-actions.c (build_char_array_expr): Add field decls to
9182           constructor.  Now, it generates the library call.
9183         * ch-expr.c (chill_expand_array_assignment): Make sure that all
9184           error messages say 'mode' not 'type'.
9185
9186 Mon Jul 19 14:44:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9187
9188         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
9189           ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
9190           Make sure that all error messages say 'mode' not 'type'.
9191         * ch-decl.c (push_modedef): Add novelty computation,
9192           storage in each newmode.
9193         * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
9194           Reformat slightly for readability.  Fix comments.
9195         * ch-tree.h: Delete print_lang_type prototype.
9196
9197 Mon Jul 19 06:43:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9198
9199         * ch-actions.c (chill_expand_return): Disable
9200           error message which requires 2-pass analysis, for
9201           now.
9202         * ch-convert.c (convert): Build length-only constructor
9203           for empty string (PR 2930).
9204
9205 Fri Jul 16 16:08:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9206
9207         * ch-expr.c (chill_expand_array_assignment): Check
9208           non-varying string assignments for conformance to
9209           the "string assignment condition" (PR 2920).
9210
9211 Thu Jul 15 13:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9212
9213         * ch-actions.c (build_chill_array_expr): Check parameters.
9214           Call convert to build unitary array from scalar if
9215           needed.  Rewrite CONCAT_EXPR handling.
9216         * ch-convert.c (build_array_type_for_scalar): New functions.
9217           (convert): Call new function, to convert scalar to unitary
9218           array.  Only call chill_expand_tuple if expression hass
9219           NULL_TREE type.
9220         * ch-expr.c (chill_expand_expr): Allow a larger static
9221           varying array to be assigned to a smaller, with a runtime
9222           test (to be provided).
9223         * ch-parse.y (locdec): Comment out bogus error msg.
9224           (elementlist): Replace several lines with chainon call.
9225         * ch-tree.h (SCALAR_P): New macro.  New prototype for
9226           build_array_type_for_scalar.
9227         * ch-typeck.c (build_chill_cast): Re-indent.
9228           (chill_expand_tuple): Comment out strange addition of
9229           varying string's length to front of constructor list.
9230
9231 Thu Jul 15 05:58:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9232
9233         * ch-except.c (start_handler_array): Use unique identifier for
9234           exception array, so we can have > 1 array per reach
9235           (PR 2931).  The change was originally entered June 23, and
9236           subsequently lost.
9237
9238 Mon Jul 12 16:07:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9239
9240         Get executable test cases running again...
9241         * c-typeck.c (build_function_call): Bypass default
9242           parameter promotions, format param syntax check for
9243           CHILL; they've already been converted in
9244           build_chill_function_call.
9245         * ch-actions.c (chill_expand-return): Correct tests
9246           for function which returns no value.
9247         * ch-convert.c (base_type_size_in_bytes): Check for
9248           NULL type parameter, just return.
9249           (convert): Allow conversion of CHAR to varying array
9250           of CHAR.
9251           Change error msg to "conversion" from "assignment".
9252           Remove default from case, which short-circuited before
9253           REFERENCE_TYPEs got converted.  Deleted second copy
9254           of REFERENCE_TYPE code.
9255         * ch-lang.c (build_chill_range_type): Simply exit if
9256           NULL input parameter.
9257         * ch-loop.c: Fix comment.
9258
9259 Sun Jul 11 11:27:08 1993  Bill Cox  (bill@cygnus.com)
9260
9261         * ch-actions.c (chill_expand_result, chill_expand_return):
9262           Move here from ch-typeck.c.  Add a temporary to remember the
9263           result value in.  Change return handler to fetch that
9264           temporary value, if there is one.
9265         * ch-parse.y (pdef): Call chill_expand_return to fetch
9266           the temp's value.
9267         * ch-tree.h, ch-typeck.c: Move return, result functions to
9268           ch-actions.c.  And their prototypes.
9269
9270 Fri Jul  9 15:47:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9271
9272         * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
9273           ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
9274           ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
9275           ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
9276
9277 Fri Jul  9 09:41:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9278
9279         * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
9280           (print_integer): Delete old non-working INSTANCE code.
9281         * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
9282         * ch-parse.y (rccase_label): Move all actions inside if.
9283           Use BUFFERNAME to recognize receice case buffer clause,
9284           eliminate one shift-reduce conflict.
9285         * ch-tasking.c (build_buffer_descriptor): Check for
9286           CH_DECL_BUFFER flag, remove unused code.
9287
9288 Thu Jul  8 11:17:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9289
9290         Declaring and sending buffers..  first draft
9291         * ch-actions.c (lang_init): Define the send_buffer runtime
9292           function.
9293         * ch-decl.c (do_decls): Standardize loop, so stepping
9294           isn't hidden.
9295         * ch-lex.l: Clean up prototypes for readability.
9296         * ch-parse.y (sendaction): Add send buffer action.
9297           (locdec): Add rule for buffer declaration.
9298         * ch-tasking.c (generate_tasking_code): standardize indentation.
9299           (make_signal_struct): Readability changes.
9300           (build_chill_send_buffer, build_buffer_decl,
9301            build_buffer_descriptor): New functions.
9302         * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
9303           buffer's maximum queue length in buffer decl.
9304           (CH_DECL_BUFFER): Add flag in decl.  Clean up for
9305           readability.  Add prototypes.
9306         * ch-typeck.c (build_chill_cast): Call convert rather
9307           than storing directly into TREE_TYPE field.
9308
9309 Tue Jul  6 12:34:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9310
9311         * ch-actions.c (lang_init): Set warn_switch so case labels
9312           get checked.  Move build_chill_case_expr to ch-expr.c.
9313         * ch-expr.c (chill_expand_case_expr): Enable checking
9314           of expression case labels.
9315         * ch-grant.c: Move a comment.
9316
9317 Mon Jul  5 10:02:27 1993  Wilfried Moser  (fs_moser at rcsw1j)
9318
9319         * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
9320         * ch-except.c (initialize_exceptions): Change the layout of the
9321           structure __ch_handler. The entry __jbuf is moved to the end
9322           of the structure and its size was changed to _JBLEN+10.
9323         * ch-decl.c (push_chill_extern_process): Add processing of
9324           processes with no arguments.
9325         * ch-grant.c (decode_decl, do_seize): Add processing of
9326           processes with no arguments.
9327         * ch-tasking.c (build_process_header, build_chill_start_process):
9328           Add processing of processes with no arguments.
9329           (make_process_struct): Add processing of IN attribute for
9330           process arguments.
9331           (tasking_setup): Add NUL-character to name of a tasking
9332           element. The name must be NUL terminated.
9333           (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
9334           to 0 with a warning if -Wall specified on command-line.
9335
9336 Fri Jul  2 16:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9337
9338         * ch-parse.y: Change 'empty' comments to new non-terminal
9339           so that exyacc doesn't discard them.
9340         * ch-lang.c (build_chill_range_type): New error messages.
9341
9342 Fri Jul  2 12:43:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9343
9344         * ch-parse.y (action): Catch and report actions which
9345           shouldn't have exception clauses, but do.  Unfortunately,
9346           catching more than one of these per compilation will
9347           have to await the general addition of syntax error
9348           recovery to the parser.
9349
9350 Fri Jul  2 10:45:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9351
9352         * ch-parse.y (locdec): Issue error for initialization
9353           of bitstring with tuple, not for powerset init with
9354           tuple.
9355
9356 Thu Jul  1 15:29:26 1993  Bill Cox  (bill@rtl.cygnus.com)
9357
9358         * ch-lang.c (build_chill_array_type): Check for indices
9359           that didn't fold into constants, issue error (PR 2924b).
9360         * ch-parse.y: Add novelty counter, alphabeticalize.
9361         * ch-tree.h: Define CH_NOVELTY for novelty checks later.
9362
9363 Thu Jul  1 14:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9364
9365         For Wilfried Moser.
9366         * chill.in: Add -ansi switch at compiler call to avoid
9367           translation of i.e. sun to 1 by cpp.
9368
9369 Wed Jun 30 22:21:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9370
9371         * ch-grant.c (raw_decode_mode): Add code for
9372           integer and enumeral ranges.  Standardize indentation.
9373
9374 Wed Jun 30 14:02:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9375
9376         * ch-grant.c (print_an_int): New function to print a
9377           decimal integer string or the CONST_DECL (SYN) which
9378           best matches it.
9379           (print_integer): Call the above function.  Replace
9380           calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
9381           comparisons, as suggested by Jim Wilson.
9382           (decode_decl): Set current_grant_modename sooner,
9383           be sure to clear it when done.
9384
9385 Wed Jun 30 10:10:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9386
9387         * ch-actions.c (build_max_min): Change interface to accept
9388           just a max/min flag.  Get min/max values from an
9389           enumeral constructor.
9390           (build_chill_max, build_chill_min): Change calls to
9391           build_max_min.
9392         * ch-lang.c (deep_const_expr): Check for NULL_TREE
9393           arguments, don't seg fault.
9394
9395 Wed Jun 30 09:20:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9396
9397         * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
9398           to switch cases, preventing abort.
9399
9400 Tue Jun 29 19:04:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9401
9402         * ch-expr.c: Update comment.
9403         * ch-parse.y (range_or_mode): New non-terminal used in
9404           lexpr to implement mode as case label.
9405
9406 Tue Jun 29 13:13:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9407
9408         * ch-actions.c (build_chill_case_expr): Pass in the
9409           optional ELSE clause, error for multiple case-selector
9410           expressions, error for missing ELSE clause.
9411         * ch-expr.c (chill_expand_assignment): Error if multiple
9412           location assignment and locations not novelty
9413           equivalent.
9414         * ch-parse.y (caseaction): Add range_list_clause non-
9415           terminal, sorry message for it.
9416           (assignaction): error if operator used on multiple
9417           assignment.
9418           (case_expr): Pass optional ELSE tree to
9419           build_chill_case_expr for checking.
9420         * ch-tree.h (build_chill_case_expr): Change proto.
9421
9422 Fri Jun 25 17:22:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9423
9424         * ch-actions.c (chill_comptypes, build_chill_binary_op):
9425           Allow PROC mode variables.
9426         * ch-convert.c (convert): Turn a NULL literal into a zero
9427           valued pointer-to-function, given such a type.  Also
9428           build the ADDR_EXPR of a function variable.
9429         * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9430           (print_enumeral, print_integer, print_struct) Moved these
9431           large functions out of the switch in raw_decode_mode for
9432           readability, and to encourage future code-sharing.
9433           (print_proc_tail, print_proc_exceptions): Moved these out
9434           of decode_decl, to share them.  They're used also to
9435           output PROC modes.
9436         * ch-parse.y (mode2): Enable PROC modes.
9437           (procmode): Represent PROC mode as a ptr-to-function type.
9438           (call): Recognize ptr-to-function as indirect call.
9439           Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9440
9441 Thu Jun 24 15:59:20 1993  Bill Cox  (bill@rtl.cygnus.com)
9442
9443         * ch-grant.c: (raw_decode_mode): Add support for unnamed
9444           and user-numbered enumeration members.
9445
9446 Thu Jun 24 13:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9447
9448         * ch-actions.c (build_chill_array_expr, build_chill_length):
9449           Explicitly convert a varying array's length field to an
9450           integer_type_node, now that it's only a chill_integer_
9451           type_node.
9452         * ch-expr.c (chill_expand_expr,
9453                      expand_assignment_to_varying_array,
9454                      chill_expand_array_assignment,
9455                      expand_varying_length_assignment): Explicitly
9456           convert a varying array's length field to an integer_type_node,
9457           now that it's only a chill_integer_type_node.
9458         * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9459           to handle varying array location iterations.
9460         * ch-parse.y (mode2): Count number of named SET members,
9461           as opposed to '*' members.  Issue error if there were none.
9462           (setelement): Count named set members.  Generate a unique
9463           identifier for the '*' element.
9464         * ch-typeck.c (validate_varying_array_ref):  Explicitly
9465           convert a varying array's length field to an integer_type_node,
9466           now that it's only a chill_integer_type_node.
9467
9468 Wed Jun 23 19:18:28 1993  Bill Cox  (bill@rtl.cygnus.com)
9469
9470         * ch-lang.c (finish_chill_enum): Change test for too-
9471           large enumerations.
9472         * ch-parse.y (setelement, optsetvalue): Allow numbered,
9473           unnamed set elements.
9474
9475 Wed Jun 23 16:25:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9476
9477         * c-typeck.c (process_init_constructor): Suppress
9478           errors about un-initialized array elements if the
9479           array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9480         * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9481           enumerations *can* be only a byte in size.
9482           (adjust_parm_or_field): Convert untyped parameter before
9483           looking at its type to process it.
9484         * ch-convert.c (convert): Generate [ -1, -1 ] value for
9485           an INSTANCE type.
9486         * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9487           type, so that output_constant doesn't seg fault.
9488         * ch-except.c (start_handler_array): Use unique identifier for
9489           exception array, so we can have > 1 array per reach.
9490         * ch-lang.c (finish_chill_enum): Error if number of
9491           enumeration values exceeds 256.
9492         * ch-parse.y (check_end_label): Error, not warning if start
9493           and end labels don't match.
9494           (assignaction): Convert RHS.  Allows untyped tuples to be
9495           passed to stabilize_reference.
9496           (exceptlist, onexceptprefix): Error if non-unique exception
9497           name is coded.
9498         * ch-tree.c: Added form feeds, comment reformatted.
9499         * ch-typeck.c (chill_expand_tuple): Compare tree value to
9500           NULL_TREE, not zero.  Add a constructor element for a
9501           VARYING array's length to the constructor list.
9502           (build_varying_struct): Mark the type as VARYING for
9503           process_init_constructor.
9504         * toplev.c (lang_options): Add '-lang-chill' and
9505           '-fchill-grant-only' options to table.
9506
9507 Tue Jun 22 13:13:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9508
9509         * ch-actions.c (build_chill_function_call): Add check
9510           to prevent calling a PROCESS like a PROCEDURE.
9511         * ch-parse.y (rcalternative): Add check for an
9512           receive case alternative after a RECEIVE CASE
9513           statement.
9514         * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9515         * ch-lang.c (lang_finish): Remove resetting errorcount
9516           and sorrycount for granting.
9517
9518 Mon Jun 21 17:56:48 1993  Bill Cox  (bill@rtl.cygnus.com)
9519
9520         Receiving signals works.
9521         * ch-actions.c (lang_init): Add else_clause flag to
9522           __wait_signal parameter list.
9523         * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9524         * ch-parse.y (SIGNALNAME): New token.  Delete
9525           empty_untyped_exprlist token, no longer used.  Add
9526           name_or_signal non-terminal.  Standardize a few NULL
9527           tests.  Add real RECEIVE CASE semantics.  Add checks that
9528           SIGNALS, BUFFERs are only declared at global scope.
9529           (call): Add signal declarations with/without data fields.
9530         * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9531           build_chill_receive_case_start, build_chill_receive_case_end,
9532           build_chill_receive_case_label): New functions.
9533           Replace build (CONSTRUCTOR, ... calls with build_nt
9534           (CONSTRUCTOR, calls.
9535         * ch-tree.h: New prototypes.
9536
9537 Thu Jun 17 18:36:38 1993  Bill Cox  (bill@rtl.cygnus.com)
9538
9539         SIGNAL declaration compilation, seizing & granting,
9540           SENDing also.
9541         * ch-actions.c (lang_init): Move instance_type_node
9542           build to ch-tasking.c.  Call build_tasking_message_type.
9543           Build a type for send_signal.  Put builtin_function
9544           calls into alpha order.
9545           (adjust_proc_param): Rename to adjust_parm_or_field,
9546           add is_signal flag, so signal fields can use it.  Rename
9547           calls to it, add flag to calls.
9548         * ch-decl.c (push_chill_extern_signal): Add function.
9549         * ch-grant.c (decode_decl): Correct signal decl output.
9550           (do_seize): Correct check for process seizure.  Add
9551           code for seized signal decl.
9552         * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9553         * ch-loop.c (get_unique_identifier): Standardize loop
9554           temporary's name to assure that it's not granted.
9555         * ch-parse.y (SIG_NAME): Delete unused token.
9556           (spec_declist): Delete silly printf.
9557           (quasi_signaldef): Add non-terminal.
9558           (sendaction, optsendwith, optsendto, optpriority):
9559           Implement actual working semantics.
9560           (call, empty_untyped_exprlist): Allow empty signal
9561           fields between parens.
9562         * ch-tasking.c: Rename adjust_proc_param calls, add
9563           is_signal flag to calls.  Make instance_type_node a
9564           type, not a TYPE_DECL, change references.  Fix all
9565           CONSTRUCTOR builds.  Add make_signal_struct function.
9566           Move build_instance_type here from lang_init.
9567           (build_tasking_message-type, build_signal_descriptor,
9568           build_chill_send_signal): New functions.
9569         * ch-tree.h: Add, update protos.
9570         * ch-typeck.c (build_chill_cast): Check for NULL expression
9571           type as well as error_mark.
9572
9573 Thu Jun 17 12:28:03 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9574
9575         * Makefile.in (STAGESTUFF): Add chill to list.
9576
9577 Wed Jun 16 07:12:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9578
9579         * Makefile.in: Complete the renaming of ch-process.c
9580           to ch-tasking.c.
9581         * ch-decl.c (push_chill_extern_function): Drop is_process
9582           parameter, and marking process decl trees.
9583           (push_chill_extern_process): New function for
9584           SEIZEd processes.  Lotsa form feeds added for print
9585           readability.
9586         * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9587           (do_seize): New parameter seize_all.  Handle sseizing
9588           processes.
9589           (chill_seize): Pass seize_all parameter.
9590           (chill_grant): Check for __tmp_ prefix, to disable
9591           *either* seizing or granting.
9592         * ch-parse.y (quasi_pdef): Delete is_process parameter for
9593           push_chill_extern_functon, call push_chill_extern_process
9594           for processes.
9595           (specialinit): Comment these rules as needed only until
9596           2-pass compiler is operational.
9597           (extprocedure): Delete is_process parameter.
9598           (simpledec): Delete `sorry' about SIGNAL decls.
9599           (optsigdest): Correct check for process name.
9600         * ch-tasking.c (build_signal_decl): Finish coding.
9601         * ch-tree.h: Add macro to save a SIGNAL's destination
9602           process name in an id node.  Add/change prototype.
9603
9604 Mon Jun 14 18:17:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9605
9606         * ch-actions.c (lang_init): Build instance_type_node.
9607           Change `this' to a runtime function call.
9608         * ch-grant.c (do_seize): Generate tasking-code
9609           variable for seized process.
9610         * ch-lex.l (equal_number): Also accept synonym
9611           name for numeric value.
9612         * ch-parse.y (primval): Add process-related
9613           function calls.
9614           (signaldef, etc.): Rough draft of SIGNAL definition
9615           processing.
9616           (stopaction): Call runtime function.
9617           (pdef): Pop symbol level if ending a process
9618           and there were parameters.
9619           (primval): Call `whoami' runtime function for THIS.
9620         * ch-tasking.c (build_process_header): Be sure
9621           to define the tasking enum, if it hasn't already
9622           been done.  Only call shadow_record_fields if there
9623           are parameters.
9624           (build_tasking_enum): Only call start_enum *after*
9625           checking the already_built flag.
9626           (build_copy_number, get_tasking_code,
9627           build_gen_code, build_gen_inst, build_get_ptype,
9628           build_proc_type): New functions for process-related
9629           builtins.
9630           (build_signal_decl): New function for SIGNAL
9631           declaration - rough draft.
9632         * ch-tree.def (INSTANCE_TYPE): new tree code.
9633         * ch-tree.h: New prototypes.  Defines for instance
9634           type field access.
9635
9636 Sat Jun 12 21:15:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9637
9638         Get start-process action working:
9639         * ch-actions.c (adjust_proc_param): new function,
9640           extracted from build_chill_function_call and called
9641           from there.
9642         * ch-tree.h, ch-grant.c (do_seize): Add process_type
9643           parameter to add_taskstuff_to_list call, prototype.
9644         * ch-parse.y (start_parlist): New non-terminal for
9645           START action.
9646           (startaction): Reference start_parlist, check for
9647           integer-valued process copy-number.
9648           (optstartset): Check instance parameter - must be
9649           an INSTANCE_TYPE location.
9650         * ch-tasking.c (generate_tasking_code_variable): New
9651           function, extracted from tasking_setup and called
9652           from there.  Also called from build_process_header.
9653           (build_process_header): Add process_type parameter
9654           to add_taskstuff_to_list call.  Remove incrementing
9655           of process_type (moved into generate_tasking_code
9656           _variable).
9657           (build_chill_start_process): Complete rewrite.
9658           (add_tasking_stuff_to_list): Add stuffnumber parameter
9659           putit on the list.
9660
9661 Sat Jun 12 06:08:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9662
9663         Getting processes compiled, initialized and granted:
9664         * .cvsignore: Add chill file.
9665         * c-decl.c (shadow_record_fields): Allow PARM_DECL
9666           as well as VAR_DECL.
9667         * ch-actions.c (lang_init): Move build of
9668           initializer_type into ch-tasking.c.  Change
9669           definition of THIS to function call.
9670         * ch-decl.c (massage_param_node): Add comments.
9671           (start_chill_function): Set nested flag in
9672           start_function call based upon current_function_decl,
9673           not as constant zero.
9674         * ch-grant.c (decode_decl): lotsa code by Wilfried to
9675           GRANT process decls.
9676           (finish_chill_module): Completely rewrote interface
9677           to runtime.
9678         * ch-lex.l (THIS): Just return the token code.
9679         * ch-parse: Add THIS token.
9680           (processpar, processparlist): New rules, to collect
9681           process parameters.
9682           (pdef): Add code to pop the process' WITH scope.
9683           (procedure): Set process WITH scope flag to zero.
9684           (process): Move most code into build_process_header.
9685           (primval): Output function call for THIS.
9686         * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9687           make_process_struct, build_process_header): New code
9688           to handle process translation and interface to runtime.
9689         * ch-tree.h: New prototypes.
9690
9691 Thu Jun 10 13:32:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9692
9693         * Makefile.in: Change ch-process.c to ch-tasking.c.
9694           A delayed part of the last change..
9695
9696 Thu Jun 10 11:14:59 1993  Bill Cox  (bill@rtl.cygnus.com)
9697
9698         * .cvsignore: Add 'chill' file.
9699         * ch-actions.c (lang_init): Add new runtime function
9700           __register_process.
9701         * ch-decl.c (push_chill_extern_function): Add is_process
9702           input flag, use it.
9703         * ch-grant.c (decode_decl): Recognize a process for
9704           granting.
9705           (do_seize): Put seized processes onto the tasking_list.
9706           (chill_finish_module_code): Declare init_list entry,
9707           link it onto the init_list.  Call tasking_setup and
9708           tasking_registry.
9709         * ch-lex.l: Make tasking-related variables global,
9710           delete their initialized flags.
9711         * ch-parse.y: Add is_process flag to push_chill_extern_function
9712           calls.  Put processes onto the tasking_list.
9713         * ch-process.c: Renamed to ch-tasking.c.
9714         * ch-tasking.h: New file.
9715         * ch-tree.h: New, adjusted prototypes.
9716
9717 Wed Jun  9 10:59:27 1993  Wilfried Moser  (moser@deneb.cygnus.com)
9718
9719         * chill: This file is replaced by chill.in and will be
9720           generated during 'make' and 'make install'. This script
9721           now finds the correct chillrt0.o and libchill.a during
9722           linking.
9723         * chill.in: New file that replaced chill.
9724         * Makefile.in: Add rules to make chill out of chill.in.
9725
9726 Wed Jun  9 09:03:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9727
9728         * .cvsignore: Add gfloat.h and xlimits.h.
9729         * ch-actions.c (lang_init): Create new type for module-
9730           level initializer list entry.
9731         * ch-grant.c (chill_start_module_code): Rename actual
9732           module-level code to just the modulename, which is
9733           *not* public.
9734           (chill_finish_module_code): Allocate space for initializer
9735           list entry, build real initializer function, which puts
9736           the list entry on the runtime list.  Name the init function
9737           as the module's constructor function.
9738         * ch-tree.h (build_init_struct): Add prototype.
9739         * ch-typeck.c (build_init_struct): Add function, called
9740           from lang_init.
9741         Note: these changes require a new devo/chillrt/chillrt0.c.
9742
9743 Thu Jun  3 17:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9744
9745         * c-decl.c: Fix comment.
9746         * ch-actions.c, ch-grant.c: Standardize front end:
9747           #define first, etc.  Add comments.
9748           (lang_init): Delete unused flag, code for inapplicable
9749           gen-decls option.  (lang_decode_option): Delete
9750           gen-decls option, add grant-only option, flag.
9751         * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9752           ch-typeck.c: Add form feed after front end.
9753         * ch-expr.c: Standardize testing for error_mark node.
9754         * ch-lang.c: Remove unused deep_fold function.
9755
9756 Fri May 21 11:04:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9757
9758         * c-typeck.c (build_binary_op, build_unary_op):
9759           Recognize BOOLEAN_TYPE.
9760         * ch-actions.c (build_chill_unary_op): Remove
9761           some crufty work-arounds.
9762
9763 Thu May 20 19:03:48 1993  Per Bothner  (bothner@deneb.cygnus.com)
9764
9765         * ch-grant.c (decode_constant):  If the granted value is a
9766         cast, make sure to emit an appropriate expression conversion.
9767
9768 Thu May 20 16:35:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9769
9770         * ch-lang.c (build_chill_range_type): Initialize the
9771           precision variable.  Double-negative ranges work now.
9772
9773 Thu May 20 11:24:42 1993  Bill Cox  (bill@rtl.cygnus.com)
9774
9775         * ch-actions.c (build_unary_op): Compound a wretched
9776           hack which hides a BOOLEAN_TYPE from the underlying
9777           C code.
9778
9779 Wed May 19 16:45:54 1993  Bill Cox  (bill@rtl.cygnus.com)
9780
9781         * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9782           from chill_comptypes. (build_chill_unary_op): Give
9783           better name to unsigned flag.
9784         * ch-expr.c (chill_expand_assignment): Correct calling
9785           sequence for setpowersetbits runtime routine.
9786         * ch-grant.c (raw_decode_mode): Give better name to
9787           unsigned flag.  (decode_constant): Check for null
9788           'val' ptr, avoid seg fault.
9789         * ch-lex.l (convert_number):  Give better name to
9790           unsigned flag. (convert_bitstring): Move increment
9791           of bl counter to emphasize that it increments once
9792           per loop.
9793         * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9794         * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9795           constructor if given a singleton set constructor.
9796
9797 Thu May 13 17:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9798
9799         * c-decl.c (pushdecl): Complete May 9 change.
9800         * ch-actions.c (build_chill_unary_op): Set the
9801           TREE_UNSIGNED flag FALSE for raw_decode_mode.
9802         * ch-grant.c (grant_array_type): Correct the May 12
9803           check for circularity.
9804           (raw_decode_mode): Use TREE_UNSIGNED flag to
9805           control range's printing.
9806           (chill_grant): Remove useless, bogus code.
9807         * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9808           flag TRUE for raw_decode_mode.
9809
9810 Wed May 12 18:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9811
9812         * ch-decl.c (push_syndecls, push_modedef): Comment
9813           reminders to check for circular definitions.  Later!
9814         * ch-grant.c (grant_array_type, decode_decl): Prevent
9815           circular definitions in the use of the array's
9816           type name.
9817
9818 Wed May 12 16:06:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9819
9820         * ch-grant.c (grant_array_type): If array_type has
9821           a name, just use it.
9822         * ch-lang.c (build_chill_range_type): Don't force
9823           unsigned ranges on output.
9824         * expr.c (store_constructor): Preclude seg fault.
9825
9826 Wed May 12 07:49:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9827
9828         * ch-actions.c (fold_set_*): Correct tests for
9829           range set-constructor list entries.
9830           (lang_init): Define setpowersetbits function.
9831         * expr.c (store_constructor): Handle non-constant
9832           set constructors.
9833
9834 Tue May 11 18:25:40 1993  Per Bothner  (bothner@cygnus.com)
9835
9836         * ch-lang.c (build_chill_range_type):  If the parent type
9837         is unknown, and the endpoints of the range are integer
9838         constants, use the smallest suitable integer type.
9839         * ch-lang.c (build_chill_range_type):  Remove kludge
9840         for dealing with char ranges.
9841
9842 Tue May 11 15:24:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9843
9844         * ch-actions.c (build_chill_repetition_op): Build a
9845           range-type set constructor if there's only one value
9846           in the repeated constructor.
9847           (fold_set_*): Abort if range value seen, for now.
9848         * expr.c (store_constructor): Handle range-type by
9849           storing bytes rather than bits as much as possible.
9850
9851 Mon May 10 18:45:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9852
9853         * ch-actions.c (invalid{left right}_operand): Add
9854           handlers for REPLICATE_EXPR.
9855           (build_chill_repetition_op): Build constructor list
9856           for repetition of bitstring.
9857         * ch-parse.y (call): Recognize more trees as arrays,
9858           to avoid error msg.
9859           (operand5): Add count, string temporaries, use them.
9860
9861 Mon May 10 16:49:08 1993  Per Bothner  (bothner@cygnus.com)
9862
9863         * ch-grant.c (seize_implied_names):  Fix code that assumed
9864         a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9865         * ch-grant.c (generate_set, grant_parent_of_enum,
9866         grant_parent_enum): Removed unused functions.
9867         * ch-grant.c (raw_decode_mode):  Remove commented-out code.
9868
9869 Mon May 10 10:54:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9870
9871         * ch-grant.c (do_seize, seize_implied_types): Move
9872           result and parameter processing to proper place.
9873           (chill_seize): Mark unseized identifier with
9874           error_mark_node, to avoid excessive errors.
9875         * ch-parse.y (call): Check for ERROR_MARK before
9876           reporting an error.
9877
9878 Sun May  9 17:21:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9879
9880         * c-decl.c (pushdecl): If a strongly-visible name is
9881           seen, in conflict with a weakly-visible name, take
9882           the strongly-visible one and don't complain.
9883         * ch-actions.c (chill_comptypes): Allow chain of ref-
9884           erence types > 1 in length.
9885         * ch-grant.c: Turn disguised for-loops into actual
9886           ones, so continue works.  Delete redundant code in
9887           seize_implied_names.  Reindent.
9888         * expmed.c (store_split_bit_field): Disable abort for
9889           CHILL.
9890
9891 Sun May  9 17:11:33 1993  Per Bothner  (bothner@cygnus.com)
9892
9893         * ch-convert.c (convert):  Move handling of SET_TYPE until
9894         after we've handled de-referencing and such like.
9895         * ch-grant.c (grant_array_type):  Simplify; remove (now-)
9896         bogus call to generate_set.
9897         * ch-grant.c (get_type):  Remove obsolete stuff.
9898
9899 Fri May  7 10:30:34 1993  Bill Cox  (bill@rtl.cygnus.com)
9900
9901         * ch-actions.c (lang_init): Add definition of psslice
9902           runtime routine. (build_chill_binary_op_1,
9903           build_chill_binary_op): Have result type of
9904           TRUTH_ANDIF_EXPR be boolean, not integer.  Some
9905           reindenting.
9906         * ch-convert.c (convert): Use consistent notation
9907           for expression.
9908         * ch-parse.y: Add front-end pass count. (locdec):
9909           Add syntax for other BASED declaration.
9910         * ch-tree.c: Fix comment.
9911         * ch-typeck.c (build_chill_slice): Implement a runtime
9912           call for bitstring slices. (build_chill_cast):
9913           Add code for BITS_BIG_ENDIAN bit loop.
9914           (chill_expand_tuple): Don't pass ref type to
9915           digest_init, only underlying type.
9916
9917 Thu May  6 12:52:14 1993  Per Bothner  (bothner@cygnus.com)
9918
9919         * ch-typeck.c (build_chill_cast):  type_for_size takes
9920         a size in bits, not bytes.
9921
9922 Wed May  5 19:02:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9923
9924         * ch-actions.c: Break out separate routines for set
9925           folding, handle ranges in set_fold_eq and set_fold_ne.
9926           Fix folding as req'd by TTC test.
9927         * ch-grant.c (raw_decode_more): Check for content match
9928           to decide output mode, not pointer identity.
9929         * ch-typeck.c: Add cross-reference comment.
9930         * varasm.c (emit_set_data): Clarify parameter name.
9931           Handle INTEGER_CST as set constructor.
9932           (output_constant): Handle CONSTRUCTOR node for sets.
9933           Apparently forgot to actually 'checkin' this one last
9934           time.
9935
9936 Wed May  5 12:23:58 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9937
9938         * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
9939
9940 Tue May  4 15:47:44 1993  Bill Cox  (bill@rtl.cygnus.com)
9941
9942         * ch-actions.c (fold_set_expr): new function to fold
9943           set expressions.  Calls inserted into
9944           build_chill_binary_op and build_chill_unary_op.
9945           (build_chill_repetition_op): New function, called
9946           from build_chill_function_call.
9947         * ch-expr.c (chill_expand_assignment): Call
9948           build_chill_repetition_op.
9949         * ch-grant.c (decode_constant): Comment out deep_fold
9950           call.  The earlier fold_set_expr calls should make
9951           this one unnecessary.  Prevent seg fault when name
9952           of structure field is NULL.  Standardize for loop.
9953         * ch-parse.y: Fix comments.
9954           (operand5): build a REPLICATE_EXPR.  Don't call
9955           build_repetition_op until we have a type.
9956         * ch-tree.def (REPLICATE_EXPR): Define tree-code.
9957         * ch-tree.h (build_chill_repetiton_op): Fix proto.
9958         * ch-typeck.c (chill_expand_result): Call
9959           build_chill_repetition_op if needed.
9960         * varasm.c (emit_set_data): Clarify parameter name.
9961           Handle INTEGER_CST as set constructor.
9962           (output_constant): Handle CONSTRUCTOR node for sets.
9963
9964 Mon May  3 13:06:47 1993  Per Bothner  (bothner@cygnus.com)
9965
9966         * ch-typeck.c (build_chill_cast):  Allow more liberality to
9967         casting:  Any discrete type to any non-discrete type that is the
9968         same size as some other discrete type (and vice versa).
9969         * stor-layout.c (layout_type, case SET_TYPE):  If the number
9970         of bits will fit in a char or short, only use that many bits.
9971
9972 Mon May  3 08:22:45 1993  Bill Cox  (bill@rtl.cygnus.com)
9973
9974         * ch-grant.c (decode_constant): Revert interpretation
9975           of SET_TYPE as integer.
9976
9977 Mon May  3 07:55:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9978
9979         * chparse.y (casealternative): Allow empty action list.
9980
9981 Sat May  1 15:07:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9982
9983         * expr.c (expand_expr): Add parameter to __inpowerset
9984           runtime call, to match new runtime.
9985
9986 Sat May  1 14:55:58 1993  Bill Cox  (bill@rtl.cygnus.com)
9987
9988         * ch-actions.c: Cleanup from -Wall.  Reindent.
9989           Redefine __inpowerset to take a 'minval' parameter
9990           that matches the new runtime.  Added comments.
9991         * ch-expr.c (chill_handle_case_label): Handle
9992           NULL or ERROR trees.
9993         * ch-grant.c (get_type): Survive bogus type params,
9994           return empty string.
9995         * ch-tree.c (build_powerset_type): Diagnose powerset
9996           of non-discrete type.
9997         * ch-typeck.c (discrete_type_p): Reindent.
9998
9999 Fri Apr 30 16:08:54 1993  Bill Cox  (bill@rtl.cygnus.com)
10000
10001         * ch-grant.c (decode_constant): Interpret SET_TYPE
10002           with integer value, so we output the same stuff as
10003           the user gave us.
10004         * ch-parse.y: Fix indentation.
10005
10006 Fri Apr 30 09:34:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10007
10008         * ch-actions.c (chill_comptypes): Simplify, correct
10009           integer subrange analysis.
10010         * ch-grant.c (seize_implied_names): Add handling for
10011           PROCESS_DECL, PROCESS_TYPE.
10012           (do_seize): Call seize_implied_names for process,
10013           procedure parameters and return value.
10014         * ch-lang.c (finish_chill_enum): Canonicalize enum
10015           types.
10016         * ch-tree.def (PROCESS_TYPE): Add.
10017         * ch-typeck.c (valid_array_index): Call chill_comptypes
10018           rather than broken macro CH_COMPATIBLE.  The logic
10019           in chill_comptypes will get moved to the macro later.
10020
10021 Thu Apr 29 13:07:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10022
10023         * ch-actions.c (build_chill_lower, build_chill_upper):
10024           Handle enumeration types.
10025           (build_chill_binary_op): Call chill_comptypes
10026           to error check IN arguments.  Change error
10027           messages to say 'mode' rather than 'type'.  Cast
10028           tree codes when build is called.
10029         * ch-expr.c (chill_expand_array_assignment): Call
10030           chill_comptypes to validate assignment args.
10031         * ch-lex.l: Add newline for readability.
10032
10033 Wed Apr 28 15:22:18 1993  Bill Cox  (bill@rtl.cygnus.com)
10034
10035         * Makefile.in (ch-hash.h): Add rule to build this
10036           from chill.gperf.  Not yet used.
10037         * ch-actions.c (build_chill_binary_op): Allow enum
10038           subranges on RHS of IN operator.
10039         * ch-grant.c (decode_constant): Recognize
10040           error_mark_node as empty powerset initializer,
10041           re-indent a bit.
10042         * ch-lang.c (deep_fold): Return error_mark_node for
10043           NULL input pointer or incoming error_mark_node.
10044         * ch-lex.l: Ignore PACK and UNPACK keywords. Return
10045           POS, ROW, and STEP as user-defined names.
10046           (name_or_type): New function for above.
10047         * ch-parse.y: Move token defs for following, comment
10048           them separately: NOPACK, PACK, POS, ROW, STEP
10049         * varasm.c (output_constant): Check for VAR_DECLs in
10050           records & unions, like arrays.  Don't abort.
10051
10052 Tue Apr 27 17:42:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10053
10054         * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
10055           rewrite for generality.
10056         * ch-decl.c (grok_chill_variantdefs): Use chill
10057           comptypes, so that subrange compatibility is ok.
10058           (start_chill_function): Use lookup_name(), not
10059           IDENTIFIER_GLOBAL_VALUE, for full generality.
10060         * ch-expr.c (chill_expand_assignment): Need to
10061           handle non-NOP modify codes here, since C code
10062           in build_modify_expr won't understand powersets,
10063           etc.
10064
10065 Tue Apr 27 09:05:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10066
10067         * ch-actions.c (build_max_min): Assign the set's
10068           base type to the function's return type.
10069           (build_chill_function_call): Before complaining
10070           about parameter mismatches, convert certain actual
10071           parameters.
10072         * ch-expr.c (chill_expand_assignment): Before
10073           complaining about LHS/RHS mismatches, convert
10074           certain RHS expressions.
10075         * ch-grant.c (decode_constant): Deep-fold incoming
10076           expression, so we can output it.
10077         * ch-lang.c (deep_const_expr): New function, called
10078           from const_expr, actually traverses the tree
10079           looking at its leaves for 'const'ness.
10080           (deep_fold): New function to fold already-built
10081           trees.
10082         * ch-parse.y (case_expr): Add whitespace.
10083         * ch-tree.h: Add prototype for deep_fold.
10084
10085 Tue Apr 27 07:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10086
10087         * ch-actions.c (chill_comptypes): Allow enumeration
10088           subranges as compatible with the parent enum.
10089           (build_chill_function_call): Before checking type
10090           compatibility, use convert on typeless expressions,
10091           like constructors.
10092         * ch-expr.c (chill_expand_assignment): Before
10093           checking type compatibility, use convert on
10094           typeless expressions, like constructors.
10095         * ch-lex.l: Add comment.
10096
10097 Thu Apr 22 17:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10098
10099         * .cvsignore: Add genopinit, insn-opinit.c
10100         * c-common.c (binary_op_error): Prevent seg fault on
10101           unknown node code.
10102         * ch-typeck.c (build_chill_array_ref): Remove old
10103           lower-bound-of-array-index-nonzero code.
10104         * expr.c (expand-expr, get_inner_reference): Remove
10105           old lower-bound-of-array-index-nonzero code.
10106
10107 Thu Apr 22 16:01:09 1993  Bill Cox  (bill@rtl.cygnus.com)
10108
10109         * c-decl.c (shadow_record_fields): Add pushlevel for
10110           each PROCESS parameter, too.
10111         * ch-process.c (make_process_struct): First working
10112           version.
10113         * ch-tree.def: Add PROCESS_DECL definition.
10114         * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
10115           for make_process_struct.
10116         * expr.c (expand_expr): Add references to
10117           PROCESS_DECL.  Add #include of ch-tree.h.
10118         * tree.c (decl_function_context): Add check for a
10119           PROCESS_DECL, and #include for ch-tree.h.
10120
10121 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10122
10123         * expr.c (expand_expr): Add missing prototypes, and
10124           parameters to expand_expr call.
10125
10126 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10127
10128         * c-decl.c (shadow_record_fields): Add ability to
10129           handle pointers to records/unions.  For PROCESS
10130           compilation.
10131
10132 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10133
10134         * ch-expr.c (chill_expand_expr): Add missing
10135           parameters to expand_expr calls.  Some trivial
10136           reformatting for readability.
10137
10138 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10139
10140         * ch-lex.l: Make send_*_prio externally visible,
10141           default them to zero, eliminate the init flags.
10142           Same for process_type.
10143
10144 Sat Apr 17 10:59:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10145
10146         * ch-actions.c (build_chill_binary_op): Build a
10147           BIT_FIELD_REF tree for IN_EXPR operations.
10148         * ch-typeck.c (build_chill_array_ref): Build a
10149           BIT_FIELD_REF tree for access to packed array of
10150           bits.
10151
10152 Fri Apr 16 12:33:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10153
10154         * ch-parse.y (EXIT action): Improve error checking,
10155           messages.
10156         * ch-typeck.c (chill_expand_tuple): Remove code to
10157           pack sets (moved to varasm.c long ago).
10158         * varasm.c (unpack_set_constructor): Rename size to
10159           bit_size, since 'size' always means bytes.
10160           (pack_set_constructor): Rename size to wd_size,
10161           since 'size' always means bytes.
10162           (output_constant): Set size to zero, so that extra
10163           bytes of padding aren't output after set constants.
10164
10165 Fri Apr 16 11:57:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10166
10167         * .cvsignore: Add .gdbinit.
10168         * ch-decl.c (start_chill_bindings): Add function name
10169           to binding contour's exit_label for EXIT stmt.
10170         * ch-parse.y (EXIT action): Call lookup_name to avoid
10171           inserting label for function name.  Also check
10172           IDENTIFIER_LABEL_VALUE for label's decl.
10173           (caseaction, beginendblock, ifaction): Call
10174           stamp_nesting_label to put action's label into
10175           contour for EXIT to find.
10176
10177 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10178
10179         * expr.c (expand_expr): Unify, clean up handling of
10180           IN_EXPR, and handling of bit-string element ref.
10181           Now, all goes through IN_EXPR handler.
10182         * stmt.c (stamp_nesting_label, expand_exit_labelled):
10183           New functions, which allow either label or
10184           function decls.
10185
10186 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10187
10188         * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
10189           ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
10190           ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
10191           ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
10192         * ch-actions.c (build_chill_binary_op): Move runtime function call
10193           to expr.c.  Just build a tree here.  Clean up error checking.
10194         * ch-convert.c (convert): Simply store a type into an expression if
10195           TREE_TYPE (expr) == NULL.  Prevent error if an enum is to be
10196           converted to a set of such enums.
10197         * ch-loop.c (init_loop_counter): Restore error msg for undeclared
10198           variable if no local scope is to be created for the loop.
10199         * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
10200           remove redundant code which wasn't ever called.
10201
10202 Wed Apr 14 07:54:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10203
10204         * .cvsignore (y.tab.c) : Add to list.
10205         * ch-convert.c (convert): Check pointers better - avoid NULL reference.
10206           Remove redundant check for ERROR_MARK - already checked earlier.
10207         * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
10208           error_mark_node.
10209
10210 Tue Apr 13 16:00:37 1993  Per Bothner  (bothner@cygnus.com)
10211
10212         * c-decl.c (start_function):  If there is a previous
10213         function declaration of the same name, steal its RTL.
10214         This is a kludge needed for forward declarations of
10215         nested functions.
10216         * ch-decl.c (push_chill_extern_function), ch-tree.h:  New
10217         function, for external and seized function declarations.
10218         Make sure to use permanent obstack.
10219         * ch-parse.y (quasi_pdef, extprocedure):  Use new function.
10220
10221         * ch-grant.c (chill_finish_module_code):  Since module
10222         function is no longer visible,, can't get it using
10223         lookup_name().  Use current_function_decl instead.
10224
10225         * ch-decl.c (build_chill_function_type):  Add void_type_node
10226         to end of parameter types list.
10227
10228         * ch-grant.c (chill_start_module_code):  Make sure module
10229         function isn't visible (and hence isn't granted).
10230
10231 Tue Apr 13 15:48:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10232
10233         * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
10234           current contour for DO FOR EVER loops.
10235
10236 Tue Apr 13 14:37:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10237
10238         * ch-parse.y (actionstatement): Add error rule.  Delete
10239           POP_UNUSED_ON_CONTEXT.  Add comments about label name usage.
10240           (nohandleraction): Better error check in EXIT processing.
10241           (optexprlist): Comment out make_function_rtl call.
10242           (seizestatement): Change error to warning.
10243
10244 Tue Apr 13 08:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10245
10246         * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
10247           call.
10248         * ch-loop.c (begin_chill_loop): Take loop label as parameter.  Stamp
10249           its name into the current contour's exit_label, for EXIT to use.
10250         * ch-parse.y: (actionlabel): Save label tree in global variable.
10251           (actionstatement): Clear label to NULL when action is finished.
10252           (handlerstatement, nohandlerstatement): Split actions into
10253           categories which do/don't permit exception handlers.
10254           (exitaction): Move code into nohandleraction, make it work.
10255           (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
10256         * ch-tree.h: Add parameter  to begin_chill_tree prototype.
10257         * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
10258           Note: This implementation of EXIT only exits from loops, not yet
10259                 from other bracketted statements.
10260
10261 Mon Apr 12 13:41:55 1993  Per Bothner  (bothner@rtl.cygnus.com)
10262
10263         * ch-grant.c (chill_grant):  Remove obsolete code.
10264
10265         * ch-decl.c (push_synmode, push_newmode):  Merged to yield ...
10266         * ch-decl.c (push_modedef):  ... w/ slightly different interface.
10267         * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
10268         (modedefinition):  Use new push_modedef function.
10269         * ch-parse.y (modedefinition):  Don't depend on inherited
10270         attributes (- implemented incorrectly!): Use a global variable
10271         parsing_newmode to distinguish synmode and newmode.
10272
10273 Mon Apr 12 08:10:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10274
10275         * ch-loop.c: Diffuse cleanup after big functional changes.
10276         * ch-parse.y: Eliminate temporary variables, now unnecessary.  Use
10277           parse-time stack instead.
10278         * ch-tree.h: Change build_chill_iterator prototype.
10279
10280 Sun Apr 11 15:50:33 1993  Bill Cox  (bill@rtl.cygnus.com)
10281
10282         * ch-convert.c (convert): Replace an ERROR_MARK type - from a
10283           untyped_expr with the given type.  Move chill_expand_case_expr
10284           call inside chill_expand_expr.
10285         * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
10286           chill_handle_case_label, chill_expand_case_expr):  Move to ch-expr.c
10287           from ch-typeck.c.
10288         * ch-loop.c: Major reorganization to support multiple iterators in
10289           DO FOR loop, very little new code, just a re-org.
10290         * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
10291
10292 Sat Apr 10 14:40:12 1993  Bill Cox  (bill@rtl.cygnus.com)
10293
10294         * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
10295         * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
10296           member.
10297         * ch-lex.l (equal_number): Add function to look in the input for '='
10298           followed by a decimal literal.  Call it from directive scanning.
10299           (start state 'ccitt'): Deleted, unused.  Moved unused, but reserved,
10300           tokens to NORMAL state.
10301           (compiler_directive): Replaced by equal_number.  Now the only
10302           recursive call to yylex happens in check_newline at the beginning
10303           of a compilation.
10304
10305 Sat Apr 10 09:55:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10306
10307         * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
10308         * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
10309           'reserve' them.
10310         * ch-parse.y (case_expr): Move code into ch-actions.c.  There will
10311           need to be much more written.
10312         * ch-tree.def (VARY_ARRAY_REF): Add comment.
10313         * ch-tree.h (build_chill_case_expr): Add prototype.
10314         * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
10315           type to the expr.  Check for CASE_EXPR, call expand_case_expr.
10316
10317 Sat Apr 10 01:10:51 1993  Per Bothner  (bothner@rtl.cygnus.com)
10318
10319         * ch-parse,y (in_pseudo_module): New variable.  Try if we're
10320         in a seizefile, but not in a module nested in the seizefile.
10321         Use for backwards compatibility with old grantfiles.
10322         * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
10323         If in_pseudo_module, grant new declaration.
10324         * ch-decl.c (pushd_newmode):  If there is a granted previous
10325         incomplete type, fix it up.
10326         * ch-grant.c (seize_implied_names):  Do remaining types.
10327         Guard against recursion.
10328         * ch-tree.h (IDENTIFIER_ENUM_VALUE):  Removed, not used.
10329         * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
10330         (finish_chill_enum):  Enum constants are marked with
10331         CH_DECL_ENUM so they don't get written to the grantfile.
10332         * ch-tree.h (IDENTIFIER_GRANTED_VALUE):  Allow fast seizing.
10333         * ch-lex.l:  Re-write to use start states, to avoid calling
10334         yylex() recursively.
10335         * ch-lex.l (compiler_directive);  This is now obsolste. FIXME.
10336         * ch-lex.l:  Call push_module and pop_module when reading a
10337         seizefile.  This creates a pseudo-module.
10338         * ch-parse.y:  Clean up handling of empty declarations and
10339         action statements; semicolons are now optional a number of
10340         places.
10341         * ch-parse.y:  Remove some bogus tests for "statement
10342         out of sequence" (they're both legal and work).
10343         * varasm.c (mak_function_rtl):  Remove  kludge that may
10344         not be necessary (and loses anyway).
10345
10346 Fri Apr  9 09:37:38 1993  Bill Cox  (bill@rtl.cygnus.com)
10347
10348         * ch-expr.c (chill_expand_array_assignment): Remove false error about
10349           arrays that are too small.
10350         * ch-parse.y (callaction): Don't pass an error_mark_node to
10351           c_expand_expr_stmt.
10352
10353 Fri Apr  9 00:26:54 1993  Per Bothner  (bothner@rtl.cygnus.com)
10354
10355         * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
10356         New macros.
10357         * ch-actions.c (build_chill_function_call):  Use latter.
10358         * ch-typeck.c (chill_similar):  Fix typo.
10359         * ch-grant.c (raw_decode_mode):  Handle ENCAPSULATED_ARRAY_P
10360         parameter types.
10361         * ch-grant.c (seize_implied_names):  Handle ranges of enums.
10362         * ch-grant.c (do_seize):  Set DECL_SOURCE_FILE and _LINE of
10363         seized declaration to be the point of the seize itself.
10364         * ch-grant.c (chill_grant), ch-tree.h:  Add a parameter
10365         which is the list (in order) of decls in the module.
10366         Don't reverse the getdecls() list; that is handled by caller.
10367         * ch-grant.c (chill_grant):  Test that a declaration is
10368         visible before writing it.
10369         * ch-parse.y (push_module):  Make sure to hide declarations
10370         from surrounding module.
10371         * ch-parse.y (pop_module):  Restore those declarations.
10372         * ch-parse.y (pop_module): This function is now responsible
10373         for writing out for calling chill_grant() to the grant file.
10374         * ch-actions.c (lang_finish):  Remove calls to chill_grant().
10375
10376 Thu Apr  8 16:56:52 1993  Bill Cox  (bill@rtl.cygnus.com)
10377
10378         * ch-actions.c (build_char_array_expr): Add handling of varying
10379           arrays in relational expressions.
10380         * ch-decl.c: Add prototype for lookup_name_current_level.
10381         * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
10382           so its length is used as the temp's size.
10383           (chill_expand_array_assignment): Correct for varying := varying
10384           assignment, clean up.
10385         * ch-typeck.c: Add prototype for require_complete_type.
10386
10387 Wed Apr  7 16:41:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10388
10389         * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
10390           diffuse changes to fix location loops.
10391         * ch-parse.y (location): Remove ref through NULL ptr.
10392
10393 Wed Apr  7 13:42:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
10394
10395         * ch-decl.c (massage_param_node):  New function.
10396         It handles the LOC/IN/OUT/INOUT parameter distinction,
10397         as well as calling build_chill_array_parm_type if needed.
10398         * ch-tree.h (massage_param_node):  New prototype.
10399         * ch-decl.c (push_parms):  Use new massage_param_node().
10400         * ch-parse.y (pmodearg):  Use new massage_param_node().
10401         * ch-parse.y (formpar):  Don't call build_chill_array_parm_type;
10402         now handled by massage_param_node.
10403         * ch-typeck.c (my_build_array_ref):  Handle non-zero array
10404         lower bounds.
10405         * ch-actions.c (build_chill_function_call):  If the formal
10406         parameter is a pseudo record wrapped around an array, make
10407         sure we wrap the actual parameter in a record CONSTRUCTOR.
10408         * ch-typeck.c (build_chill_array_parm_type):  Make sure
10409         the pseudo struct type is allocated on the permanent_obstack.
10410         * ch-parse.y (location):  Remove thinko.
10411         * ch-actions.c (chill_comptypes):  Comment out test for
10412         NEWMODEness - it gets broken by the forward declaration hacks.
10413
10414 Tue Apr  6 18:05:40 1993  Bill Cox  (bill@rtl.cygnus.com)
10415
10416         * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10417         * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10418         * ch-parse.y (location): Do build_component_ref for an array wrapped
10419           in a structure.
10420         * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10421         * ch-typeck.c (build_chill_array_parm_type): Add function, move
10422           build_varying_struct here from ch-actions.c.
10423
10424 Mon Apr  5 19:56:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10425
10426         * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
10427           rather than in-line code - tests LOW and HIGH values.
10428         * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10429         * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10430           isn't zero.
10431
10432 Mon Apr  5 15:45:10 1993  Bill Cox  (bill@rtl.cygnus.com)
10433
10434         * ch-typeck.c (my_build_array_ref): Add some more code from
10435           build_array_ref.  Change checks, error messages to mention
10436           'discrete types'.  I.E. types which don't kiss and tell..
10437
10438 Sat Apr  3 09:27:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10439
10440         * ch-except.c, ch-expr.c: Turn externs into prototypes.
10441         * ch-grant.c (chill_grant): Remove orphan #else.
10442         * ch-tree.h: Add prototype for build_chill_bin_type.
10443         * ch-typeck.c: Turn externs into prototypes, delete code which
10444           was commented out in chill_expand_return; it will never be used.
10445
10446 Fri Apr  2 21:55:14 1993  Per Bothner  (bothner@rtl.cygnus.com)
10447
10448         Major re-write of New module/seize/grant stuff.
10449         Now, a grantfile is a spec module and contains all the
10450         top-level declarations of the granting module, not just
10451         those that are granted.  It also contains explicit grant
10452         statments naming those declared names that are granted.
10453         It also has seize statements and use_seize_file directives
10454         to correctly handle transitive dependencies.
10455
10456         * ch-parse.y:  Change to allow multiple modules per source file.
10457         Allow spec modules (including quasi definitions) as well as
10458         regular modules.
10459         Allow spec modules inside normal modules;  these behave as if
10460         they were outermost.  This violates the Blue Book, but is
10461         needed by the new grantfile mechanism.  (A grant file is a
10462         spec module that gets included by the use_seize_file directive.)
10463         * ch-parse.y (struct module *current_module, push_module,
10464         pop_module):  Support module nesting (for spec modules only).
10465
10466         * ch-tree.h (struct module): New.
10467         * ch-grant.c (granted_decls):  New list of declarations
10468         that have been granted into the outermode pseudo-module.
10469         * ch-grant.c (decode_mode):  If the decl has a name,
10470         always write the name, not just if the decl has already
10471         been written.  Since we write out all decls, we can assume
10472         it will be written later, and depend on the forward
10473         declaration kludges to catch it.
10474         * ch-grant.c (decode_decl):  Don't write out _EXTERN.
10475         Instead write out standard (Blue Book) quasi-definitions.
10476         * ch-grant.c (push_granted):  New function.
10477         * ch-grant.c (seize_implied_names):  New function.  Re-write
10478         how set element names are seized when a set type is seized.
10479         * ch-grant.c (chill_seize):  Work by seraching the
10480         granted_decls list and copying the declaration.
10481         * ch-grant.c (chill_grant):  Write all declarations
10482         declared in this module.  Write GRANT statements for
10483         those granted.   seize statements for decls seized from
10484         other modules.  Write extra syntax to make a complete
10485         spec module.
10486         * ch-grant.c (grant_use_seizefile):  Copy use_seize_file
10487         directives into grant file.
10488         * ch-lex.l (setup_seizefile_read):  Call grant_use_seizefile.
10489
10490         * ch-lex.l (struct input_state, current_input_state,
10491         push_input_file, pop_input_file):  New (type, variable,
10492         function*2).  Used to save and  restore state on an input file.
10493         * ch-lex.l:  Clean up to handle nested input seizefiles
10494         (needed by new grant/seize mechanism.
10495         * ch-lex.l (skip_to_end_of_directive):  New function.
10496         * ch-lex.l (compiler_directive: USE_SEIZE_FILE):  Make sure
10497         we skip to the end of the directive *before* we switch
10498         input files.
10499         * ch-lex.l (setup_seizefile_read):  Prevent reading the
10500         same seizefile twice (otherwise likely with new grant/seize).
10501         * ch-lex.l:  Recognize SPEC.  Misc cleanups.
10502
10503         * ch-parse.y:  Fixed foreward references of types.
10504         Removed the unknown_type_node crock.
10505         * ch-decl.c:  Remove all uses of unknown_type_node.
10506         Check for TYPE_SIZE zero instead.
10507         * ch-decl.c (fixup_unknown_type):  Make sure new mode
10508         gets copied into old mode.  Merge their variant chains.
10509         * c-decl.c (lookup_name_current_level):  Make non-static.
10510         * ch-decl.c (lookup_name_current_level):  No longer needed.
10511
10512         * ch-parse.y (call):  Allow an implicitly defined function
10513         name following the CALL keyword.
10514         * ch-tree.h (struct lang_identifier): Add implicit_decl,
10515         and make sure order of fields matches c-tree.h.
10516
10517         * ch-actions.c (lang_init, build_allocate_memory_call,
10518         build_allocate_globals_memory_call):  Fix names (add initial '_')
10519         and prototypes of _allocate_[global_]memory (2nd param is ref).
10520         Use build_chill_function_call, not build_function_call,
10521         so the reference parameter gets handled.
10522         * ch-actions.c. (lang_init):  Make sure boolean_{true,false}_node
10523         have boolean_type_node as their types.
10524         * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10525         work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10526
10527         * ch-except.c:  Make sure an end_label is generated,
10528         and jump to it if there is no exception.
10529
10530         * ch-convert.c (convert_to_reference):  Strip off NOP_EXPR casts.
10531         * expr.c (expand_expr):  Handle NOP_EXPR as Chill-style casts.
10532         (Need cleaning up and FSF installation!)
10533         * ch-parse.y:  If taking the address of a cast, move the
10534         ADDR_EXPR inside the NOP_EXPR.
10535
10536         * ch-typeck.c (my_build_array_ref):  Simplified, more suitable
10537         versions of build_array_ref from c-decl.c.  (E.g. don't barf
10538         if index type is char or bool.)
10539         * ch-typeck.c (build_chill_array_ref):  Use my_build_array-ref.
10540
10541         * ch-typech.c (build_chill_bin_type):  New function.
10542         Support BIN(N) range type specification.
10543         * ch-parse.y (mode2), ch-lex.l:  Recognize BIN(N).
10544
10545         * ch-tree.h (CH_SIMILAR):  Redefine in terms of chill_similar.
10546         * ch-typeck.c (chill_similar):  New function.  Recognize that
10547         that range types are similar to their parent types.
10548
10549         * ch-tree.h:  Declare flag_local_loop_counter.
10550         * ch-loop.c:  Whether the loop variable is local to the loop
10551         in now controlled by flag_local_loop_counter, instead of
10552         #ifdef'd on CREATE_SCOPE.
10553         * ch-actions.c (lang_decode_option):  Recognize flags
10554         "-f[no-]local-loop-counter".
10555         * toplev.c (lang_options):  Add Chill flags -f[no-]local-loop-counter.
10556
10557         * varasm.c (make_function_rtl):  Due to problems with forward
10558         references, don't rename nested functions in Chill.  (Kudge!)
10559
10560 Sun Mar 28 10:12:45 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
10561
10562         * ch-lex.l (push_back, readstring): Fix prototypes.
10563
10564 Fri Mar 26 18:32:15 1993  Bill Cox  (bill@rtl.cygnus.com)
10565
10566         * ch-parse.y: Put %type directives back into alpha order.
10567           (variant_alternative): Simplify error_mark test.
10568           (variantfields, varianthack): Add error_mark checks.
10569
10570 Fri Mar 26 13:36:23 1993  Bill Cox  (bill@rtl.cygnus.com)
10571
10572         * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10573         * ch-parse.y (get_type_of): Add function to deal with possible fwd
10574           declared type name.  Call it from lotsa places.  Add lotsa checks
10575           for error_mark_node.  Standardize indentations.
10576
10577 Thu Mar 25 15:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
10578
10579         * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10580           for array assignments.
10581         * ch-parse.y (action): Add recognition for allocate_memory and
10582           allocate_global_memory system calls.
10583           (mode2): Remove ill-conceived error check that broke REFs to
10584           as-yet-undeclared types.  Check for IDENTIFIER_NODE, lookup its
10585           DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10586           (variantfields, varianthack): Clean up.
10587           (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10588           there, pass TREE_TYPE of decl to grok_fixedfields.
10589           (labellist): Explicitly assign error_mark_node to signal error.
10590         * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10591           rather than seg faulting.
10592
10593 Thu Mar 25 10:35:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10594
10595         * ch-actions.c (lang_init): build_function_type for allocate_memory
10596           and allocate_global_memory runtime routines.  Move discrete_type_p
10597           into ch-typeck.c.
10598         * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10599           in build_chill_cast.
10600
10601 Wed Mar 24 16:25:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
10602
10603         * ch-grant.c:  Don't grant previously seized names.
10604
10605 Tue Mar 23 15:25:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10606
10607         * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10608         * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10609           avoid abort.
10610
10611 Tue Mar 23 09:03:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10612
10613         * ch-actions.c (build_char_array_expr): Just build a type for the
10614           result of a CONCAT_EXPR, and pass the tree back.
10615           chill_expand_array_assignment can do a better job of
10616           code-generation.
10617         * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10618           code.
10619
10620 Mon Mar 22 12:42:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
10621
10622         * ch-except.c (start_handler_array):  Make sure the handler
10623         array and its type get on the permanent obstack.
10624         * ch-grant.c (write_grant_file):  Don't write the _INIT=name
10625         specifier:  It isn't needed, and loses (because of funny
10626         characters in the chill_initializer_name).
10627         * ch-decl.c (push_synmode):  Set TYPE_NAME(mode) = syndecl.
10628         * ch-lang.c (finish_chill_enum):  Don't allocate a dummy
10629         TYPE_DECL for the enum.  I don't think it is needed (?),
10630         and removing it is needed for the change above.
10631
10632         * ch-grant.c (grant_array_type, decode_mode):  Remove unused
10633         'decl' parameter.
10634         * ch-grant.ch (raw_decode_mode):  New function, based on old
10635         decode_mode.
10636         * ch-grant.c (decode_mode);  This is now just a wrapper around
10637         raw-decode_mode - but does not call raw_decode_mode if the
10638         type is named and has already been emitted.
10639
10640 Fri Mar 19 11:55:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10641
10642         * ch-actions.c: Add prototypes, remove unused variables.  Attempt to
10643           continue generating grant file in presence of error (Wilfried's
10644           patch to lang_finish).
10645         * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10646           after each statement.  Move convert call into
10647           chill_expand_assignment from ch-parse.y.
10648         * ch-grant.c: Generally re-order, clean up.  Include Per's decode_mode
10649           simplification.  Include commented-out hack in decode_mode to return
10650           type's name if type SEIZEd or already GRANTed in this file.
10651         * ch-lex.l: Add prototypes.
10652         * ch-parse.y (assignaction): Move convert call into
10653           chill_expand_assignment.
10654
10655 Thu Mar 18 16:04:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10656
10657         * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10658           comparison.
10659         * ch-decl.c: Add prototypes, correct error message spelling, remove
10660           unused variables.
10661         * ch-lang.c (build_chill_range_type): Add error message.  Add prototypes.
10662           Correct comment spelling.
10663         * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10664           assignment in conditional.
10665         * ch-loop.c: Add prototypes, remove unused variable.
10666         * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10667           parameter is seen, don't count it in structured_variable_list.  Pre-
10668           vents seg fault when only WITH operand is invalid.
10669         * ch-parse.y (label_spec): Correct assignment within IF expression which
10670           was intended to be equality test.  Remove unused variables.
10671         * ch-tree.h: Add prototype.  Remove unused EXCP_CODE enumeration, and
10672           prototyping editorial comments.
10673         * ch-typeck.c: Disable generation of code to validate array index for
10674           now.  Should be done as a call-back from more generic array_ref code.
10675           Clean up parameter checking.  Remove unused variables.
10676
10677 Fri Mar 12 11:57:32 1993  Bill Cox  (bill@rtl.cygnus.com)
10678
10679         * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10680         * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10681           build_char_array_expr.
10682         * ch-convert.c (convert): protect against seg fault, if type == NULL.
10683         * ch-expr.c (chill_expand_expr): Add FIXME comment.
10684
10685 Fri Mar 12 11:04:02 1993  Bill Cox  (bill@rtl.cygnus.com)
10686
10687         * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10688           Thanks very much to dje!
10689
10690 Thu Mar 11 21:06:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10691
10692         * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10693           Move CONCAT_EXPR handling from binary_op to array_expr.  Add
10694           handling for relationals between varying arrays to array_expr.
10695
10696 Thu Mar 11 19:20:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10697
10698         * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10699           *BIT* length of powersets and arrays of BOOLs.
10700           (invalid_left_operand, invalid_right_operand): Disallow relationals
10701           with arrays of BOOL as operands.
10702         * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10703           comparing pointers.
10704         * ch-decl.c (push_newmode): Re-indent.
10705         * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10706           and arrays of BOOLs.
10707         * ch-lang.c (build_chill_array_type): Add parameter error checking.
10708
10709 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10710
10711         * expr.c (store_constructor): Handle set construction.
10712         * varasm.c (output_constant): Prevent seg fault - terminate case
10713           alternative with a 'break'.
10714
10715 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10716
10717         * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10718         * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10719         * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10720
10721 Mon Mar  8 13:16:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10722
10723         * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10724           be folded.
10725
10726 Mon Mar  8 10:13:57 1993  Bill Cox  (bill@rtl.cygnus.com)
10727
10728         * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10729           Correct some non-standard indentations.
10730
10731 Fri Mar  5 14:58:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10732
10733         * ch-actions.c: Fix up comment.
10734
10735 Thu Mar  4 18:05:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10736
10737         * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10738           negating the result of calling __eqpowerset.  New function
10739           discrete_type_p().
10740         * ch-grant.c (get_tag_value): Don't seg fault referring to an
10741           anonymous enumeration's name.
10742         * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10743         * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10744         * ch-parse.y (label_spec): redefine variant structure label_spec
10745           to agree with the Z.200 spec.
10746                      (locdec): Error if set/bitstring initialized with a tuple.
10747                      (case_label, arrayindex): Use new discrete_type_p
10748                      function.
10749         * ch-process.c: Fix typo.
10750
10751 Wed Mar  3 14:30:53 1993  Per Bothner  (bothner@rtl.cygnus.com)
10752
10753         * ch-lang.c, ch-tree.h: Rename build_range_type to
10754         build_chill_range_type.  Call new build_range_type() in tree.c.
10755         * ch-parse.y:  Call build_chill_range_type as approriate.
10756         * ch-typeck.c (build_chill_cast);  Clean up.
10757
10758 Wed Mar  3 09:36:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10759
10760         * ch-parse.y: Define CONTINUE_EVENT token.
10761         * ch-parse.y (mode2): Give error message for SYN modea = modeb
10762           where modeb is undefined.
10763
10764 Tue Mar  2 20:16:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10765
10766         * ch-actions.c: Add builtin function descriptions for memset and
10767           bitsetpowerset.  Allow build_chill_num expression to exceed 16 bits,
10768           but not 32.
10769         * ch-tree.h: Correct chill_handle_case_default prototype.
10770         * ch-actions.h, ch-lex.h: Add prototypes.
10771         * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10772
10773 Thu Feb 25 17:35:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10774
10775         * c-decl.c (init_decl_processing): Disable creation of C-specific
10776           builtin functions.  They pollute the CHILL name space.
10777         * stor-layout.c (variable_size): Allow variable-size objects at file
10778           scope, for CHILL.
10779
10780 Fri Feb 26 07:14:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10781
10782         * c-decl.c (finsh_decl): Don't output non-constant storage size
10783           error for CHILL
10784         * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10785           call in build_chill_cause_exception.
10786         * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10787         * ch-loop.c (build_temporary_variable): New function
10788         * ch-process.c: Call build_temporary_variable, spell start_process
10789           correctly.
10790         * ch-tree.h: Extern for build_temporary_variable
10791
10792 Thu Feb 25 12:09:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10793
10794         * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10795           builtins - they pollute the CHILL name space.
10796         * ch-typeck.c (valid_array_index): Correct upper-bound check.
10797         * expr.c (expand_expr): Use actual library name for __inpowerset
10798           builtin.
10799         * stor-layout.c (variable_size): Disable complaint about variable-
10800           size type or decl at file scope.  Perhaps later this s.b. a warning.
10801         * varasm.c (emit_set_data): Add function.
10802           (output_constant): Call new emit_set_data function for VAR_DECLs,
10803           in addition to CONSTRUCTORs.
10804
10805 Thu Feb 25 11:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
10806
10807         * ch-actions.c: Change all builtin functions names to their
10808           actual library names.  Change references to boolean_type_node
10809           to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10810           convention.
10811           build_set_expr: Remove length parameter, call powersetlen() instead.
10812             remove handling of CHAR arrays - they're handled in build_char_array_expr.
10813             Call __eqpowerset to test for equality - we can't use a byte-length -
10814             need bitcount instead.
10815           build_chill_compound_expr, internal_build_compound_expr: Copy from C
10816             version that does stuff we don't want.
10817           build_binary_op: Check for in_size_in_bytes return < 0, indicating
10818             size is changeable at run time.  Build two memcpy calls to implement
10819             string concatenation.
10820           powersetlen: Add function.
10821           build_chill_card: Call powersetlen.
10822           build_chill_max_min:  Common code for powerset max/min.
10823           build_chill_length: Move VARYING array handling before regular char
10824             array handling.
10825         * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10826           the VARYING status of the target to do this correctly.  Use powersetlen
10827           for the powerset operations, not a byte length.
10828         * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10829           for each CHILL loop, as Z.200 requires.  Add powerset and error flags
10830           to loop structure.  Evaluate user's powerset expression into a temp,
10831           scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10832           for powerset loop.  Only do loop-end assignments if NOT a powerset
10833           loop, which has much less overhead now.
10834         * ch-tree.h: Add prototype for powersetlen.
10835
10836 Fri Feb 19 08:40:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10837
10838         * ch-lex.l (convert_number): Evaluate number and pass it as
10839           HOST_WIDE_INT.
10840
10841 Fri Feb 19 08:56:44 1993  Michael Tiemann  (fs_tie at rcsw18)
10842
10843         * ch-typeck.c (build_chill_array_ref): Handle newmodes
10844         correctly.
10845
10846         * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10847         we are going to return 0.
10848
10849         * ch-convert.c (convert_to_reference): Don't use
10850         TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10851         (which must match the type of the expr).
10852
10853         * ch-grant.c (chill_seize): Don't let a type be copied just
10854         because we are seizing it.
10855
10856         * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10857         TYPE_MAX_VALUE to integer type.
10858
10859         * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10860         tree type of the bounds.
10861         (build_loop_top): type of GE_EXPR and LE_EXPR is
10862         boolean_type_node, not lp->iter_type.
10863         (for_location): Ditto.
10864
10865         * ch-action.c (build_chill_lower,build_chill_upper): Handle
10866         ENUMERAL_TYPE.  Also, handle different kinds of arguments more
10867         cleanly.
10868
10869         * ch-parse.y (iteration): Convert start_exp and end_exp to
10870         match the type of modename.
10871
10872         * ch-grant.c (chill_seize_aggr): Search also through anonymous
10873         types.
10874
10875         * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10876         already been seized, and if so, do nothing.
10877
10878         * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10879         comes out error_mark_node, set ERRONEOUS.
10880
10881         * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10882         don't use it.
10883
10884         * ch-action.c (chill_comptypes): Test for structural
10885         equivalence of enums.
10886
10887         * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10888         TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10889
10890         * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10891         ARRAY_TYPE, seize the domain type if its a set.
10892
10893 Thu Feb 18 20:02:15 1993  Per Bothner  (bothner@rtl.cygnus.com)
10894
10895         * c-typeck.c (process_init_constructor):  Emit error if some
10896         array elements are not initialized.
10897         * c-typeck.c (process_init_constructor):  Call digest_init()
10898         recursively to expand default_value.
10899         * ch-expr.c (chill_expand_array_assignment):  Simplify, and
10900         handle the case that the lhs has dynamic size (e.g. a slice).
10901         * ch-parse.y (elementlist):  Handle the case that tupleelement
10902         generates more than one TREE_LIST node.
10903
10904 Thu Feb 18 12:40:56 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
10905
10906         * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
10907         * c-typeck.c (lookup_field): add function, calls.
10908         * ch-actions.c (build_chill_binary_op): figure return_type differently.
10909         * ch-convert.c (convert_to_reference): return error_mark_node,
10910           STRIP_NOPS.  (convert): Braces for readability.
10911         * ch-decl.c (build_chill_function_type): accept typespec as parm.
10912           Handle exceptions.
10913           (grok_chill_variantdefs): call comptypes, not chill_comptypes.
10914         * ch-expr.c (chill_expand_assignment): handle references.
10915         * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
10916         * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
10917           call convert.  Generally handle reference types.
10918
10919
10920 Thu Feb 18 09:30:11 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
10921
10922         * ch-actions.c (chill_comptypes): Figure out which newmode or
10923           synmode decls look most canonical.
10924         * ch-convert.c (convert): handle location conversions of records,
10925           unions and arrays.
10926         * ch-decl.c (fixup_unknown_type): changes for variant records
10927         * ch-parse.y (tupleelement): avoid confusing digest_init.
10928         * ch-typeck.c (build_chill_array_ref): give element ref the
10929           type of the ELEMENT, not the array (Bill Cox).
10930
10931 Wed Feb 17 11:52:20 1993  Bill Cox  (bill@rtl.cygnus.com)
10932
10933         * ch-parse.y: change push_newmode and push_synmode interfaces.
10934         * ch-actions.c (build_chill_binary_op): convert operands.
10935
10936 Wed Feb 17 10:54:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10937
10938         * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
10939           handle reference types.
10940         * ch-decl.c (push_newmode, push_synmode): rewritten
10941         * ch-process.c (make_process_struct): new push_newmode interface.
10942         * ch-typeck.c (build_chill_cast): change interface, error checks.
10943
10944 Wed Feb 17 09:50:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10945
10946         * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
10947           code.
10948         * ch-typeck.c (valid_array_index): new function.
10949
10950 Tue Feb 16 22:36:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
10951
10952         * ch-convert.c (convert):  Slightly more correct conversion
10953         for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
10954         * ch-expr.c (chill_expand_array_assignment):  Invoke
10955         __builtin_memcpy using build_function_call, not directly at
10956         the rtx level (which doesn't work).
10957         * ch-typeck.c (build_chill_slice):  First attempt at slices.
10958         * ch-tree.h,  ch-typeck.c (build_chill_slice_with_range,
10959         build_chill_slice_with_length):  New functions.
10960         * ch-parse.y:  Use new slice-building functions.
10961         * expr.c (get_inner_reference):  Subtract low bound of
10962         array when doing an ARRAY_REF.
10963
10964 Tue Feb 16 14:17:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10965
10966         * ch-actions.c (build_chill_function_call): better comments.
10967         * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
10968         * ch-parse.y: indentation cleanup
10969
10970 Tue Feb 16 12:03:53 1993  Michael Tiemann  (tiemann@cygnus.com)
10971
10972         * ch-decl.c (grok_chill_variantdefs): Really implement variant
10973         records for CHILL.
10974         * ch-grant.c (get_tag_value): New function.
10975         * ch-grant.c (decode_mode): Grant variant records.
10976
10977         * ch-grant.c (chill_seize): If we seize a set, seize the set
10978         values.
10979
10980         * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
10981         constructs.
10982
10983         * ch-parse.y (EMPTY): New pseudo-token to disambiguate
10984         variant_alternatives.
10985         (current_fieldlist): New variable to help processing tag
10986         declarations in variant records.
10987         (fields): Renamed from structdef.
10988         (field): Renamed from fields.
10989         (varianthack): New non-terminal to handle parsing ambiguity
10990         for variant records.
10991         (optlabellist): Changed to preserve CONST_DECLs when they are
10992         parsed.
10993
10994         * ch-tree.h (TYPE_TAGFIELD): New macro.
10995         (TYPE_TAG_VALUES): Ditto.
10996
10997 Mon Feb 15 00:49:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
10998
10999         * ch-grant.c (decode_mode):  Fix output for powerset modes.
11000         * ch-grant.c (decode_constant):  Support grant output of
11001         powerset literals.
11002         * ch-actions.c (build_chill_binary_op):  IN_EXPR fix.
11003         * expr.c (expand_expr):  Add Chill-specific kludge for
11004         BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
11005         * ch-expr.c (chill_expand_assignment):  Remove no-longer-needed
11006         special-case support for a BIT_FIELD_REF in right-hand-side.
11007         * ch-lang.c (finish_chill_enum):  Patch up enum elements to
11008         have the correct type (instead of integers, as in C).
11009
11010         * ch-lex.l, ch-parse.y:  Add disgusting hack (involving
11011         context-dependent look-ahead) so we can parse exception
11012         handlers correctly.
11013         * c-typeck.c (digest_init):  Set output type for SET_TYPEs.
11014         * varasm.c (unpack_set_constructor):  Add support for
11015         (power-)set ranges (i.e. low_element:high_element).
11016
11017 Sun Feb 14 13:37:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11018
11019         * ch-inout.c: delete unused #include
11020         * ch-typeck.c (build_chill_slice): turn abort call into error msg.
11021
11022 Sat Feb 13 13:13:31 1993  Bill Cox  (bill@rtl.cygnus.com)
11023
11024         * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
11025
11026 Sat Feb 13 12:17:41 1993  Bill Cox  (bill@rtl.cygnus.com)
11027
11028         * Makefile.in: add lots of header files to the CHILL dependencies
11029
11030 Fri Feb 12 15:48:27 1993  Per Bothner  (bothner@rtl.cygnus.com)
11031
11032         * ch-actions.c (build_chill_function_call):  Don't return
11033         error_mark_node on empty parameter-list.
11034
11035 Fri Feb 12 12:54:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11036
11037         * ch-actions.c (build_chill_function_call): fix start_decl parms.
11038         * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
11039
11040 Fri Feb 12 10:32:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11041
11042         * ch-actions.c (build_chill_function_call): create temps, do
11043           assignments to handle INOUT and OUT parameters.
11044         * ch-decl.c (build_chill_function_type): better parameter name.
11045         * ch-parse.y (action): keep rules in alpha order.
11046           (pmodearg): turn INOUT, OUT parameter types into reference types.
11047         * ch-typeck.c (build_tree_slice): indentation change.
11048
11049 Thu Feb 11 23:16:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11050
11051         * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
11052         take a list of elements which are in the set.  This corresponds
11053         better to the tuple input form in Chill (and Pascal).
11054         * varasm.c (unpack_set_constructor, pack_set_constructor):
11055         New functions, to expand SET_TYPE CONSTRUCTORs.
11056         * varasm.c (output_constructor):  Use pack_set_constructor
11057         to assemble a SET_TYPE constant from a CONSTRUCTOR.
11058
11059         * ch-grant.c (decode_constant):  Better grant for strings,
11060         enumeral, and bitstring constants.
11061         * ch-grant.c:  Fixes in seize to avoid duplicates, and emit
11062         things in the correct order.
11063         * c-typeck.c (chill_initializer_constant_valid_p):  Kludge
11064         needed to export a static function.
11065         * ch-typeck.c (convert):  Avoid needlessly (and lossingly) calling
11066         chill_expand_tuple to convert fix string to varying.
11067         * ch-actions.c (build_chill_binary_op):  Promote short
11068         integer operands if needed (otherwise emit routines barf).
11069         * ch-tree.h (SET_WORD_SIZE):  New macro.
11070         * ch-parse.y:  Fix syntax for RECEIVE CASE.
11071         * ch-parse.y (location):  If IDENTIFIER is a CONST_DECL
11072         return its value instead.
11073
11074 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11075
11076         * ch-actions.c (build_chill_max, build_chill_min): clean up
11077         * ch-typeck.c (chill_expand_tuple): correct set initialization from
11078           an enumeration tuple.  Add sort_constructor function.
11079
11080 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11081
11082         * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
11083           BOOLEAN_TYPE w/out an abort.
11084
11085 Wed Feb 10 14:59:53 1993  Bill Cox  (bill@rtl.cygnus.com)
11086
11087         * ch-actions.c: change most integer_type_node references to
11088           chill_integer_type_node.  Rewrite _max and _min routines,
11089           redefine the signatures for those runtime routines.  Move
11090           empty-set check into runtime.
11091         * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
11092           most integer_type_node references to chill_integer_type_node.
11093
11094 Tue Feb  9 16:00:05 1993  Per Bothner  (bothner@rtl.cygnus.com)
11095
11096         * ch-except.c:  New file.  Stuff for exception handling.
11097         * ch-parse.y:  Add working exception handling support.
11098         * ch-lex.l, ch-parse.y:  Prefer standard type terminology
11099         (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
11100         * ch-grant.c:  Fix various problems related to granting
11101         types such as bitsets.
11102         * ch-tree.c (build_bitstring_type):  Set TYPE_MIN_VALUE
11103         to distinguish bitstrings from powersets (in the same way
11104         we distinguish char strings from char arrays).
11105         * ch-tree.h:  New macro CH_BOOL_TYPE_P.
11106         * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
11107         Undo kludge where integer_type_node was hardwired to 16 bits.
11108         Make integer_type_node etc have the same size as in cc1.
11109         New types chill_integer_type_node and chill_unsigned_type_node
11110         that correspond to the Chill source types INT and UINT.
11111         For now, these match the C 'short' types, but that should
11112         become a configuration option later,
11113
11114 Tue Feb  9 11:41:25 1993  Bill Cox  (bill@rtl.cygnus.com)
11115
11116         * ch-actions.c (build_chill_unary_op): allow NOT of a set.
11117
11118 Tue Feb  9 08:27:18 1993  Bill Cox  (bill@rtl.cygnus.com)
11119
11120         * ch-actions.c (build_chill_function_call): add test for
11121           too many/few actual parameters (and avoid seg fault).
11122         * ch-decl.c (do_decls): code cleanup for readability.
11123         * ch-loop.c (begin_chill_loop, end_chill_loop): remove
11124           emit_nop() calls - they now (since exceptions) cause seg faults.
11125           Make derogation on poor CHILL compiler non-specific.
11126         * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
11127         * ch-tree.h: remove prototypes added to c-tree.h.
11128         * ch-typeck.c (build_chill_array_ref): correct getting domain
11129           subtree for a PARM_DECL.  Subscripting a SET_TYPE is turned into
11130           an IN_EXPR.
11131
11132 Sun Feb  7 18:20:49 1993  Bill Cox  (bill@rtl.cygnus.com)
11133
11134         * ch-tree.def: add a new tree type - just for varying array
11135           references.  We were using ARRAY_REF, but the underlying C
11136           code also generates that one.
11137         * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
11138
11139 Sun Feb  7 17:33:17 1993  Bill Cox  (bill@rtl.cygnus.com)
11140
11141         * ch-convert.c: test given type against type of expr before
11142           calling chill_expand_tuple.  We were getting lots of spurious
11143           calls...
11144
11145 Fri Feb  5 15:24:01 1993  Per Bothner  (bothner@rtl.cygnus.com)
11146
11147         * cccp.c:  Merge in various Chill-specific changes.
11148         * gcc.c (default_compilers array):  Pass -lang-chill
11149         to cpp, not -lang-ch.
11150
11151 Fri Jan 29 17:18:22 1993  Per Bothner  (bothner@rtl.cygnus.com)
11152
11153         * Makefile.in (install-libchill, install-librmt):  Removed.
11154         * ch-actions.c (build_chill_exception_decl):  Change decl
11155         to initialized char array, rather than unitialized common.
11156         (Simplifies extracting string name of exception.)
11157         * ch-actions.c:  Adjust interface to cause_exception accordingly.
11158         * ch-typeck.c (build_chill_array_ref):  Cause rangefail if
11159         index > limit, not >= limit.
11160
11161         * ch-actions.c (build_chill_function_call):  Rename misleading
11162         formal parameter.
11163         * ch-decl.c (do_decls):  Allow (again) general initializer exprs.
11164         * ch-parse.y (call):  Test for function call needs to test for
11165         FUNCTION_TYPE, not FUNCTION_DECL.
11166         nreverse arg list to build_chill_array_ref.
11167         * ch-typeck.c (build_chill_array_ref):  Do recursive call at end
11168         and only if multiple indexes.
11169         * ch-typeck.c:  Cleanups.
11170
11171 Fri Jan 29 11:05:58 1993  Bill Cox  (bill@rtl.cygnus.com)
11172
11173         * ch-decl.c (do_decls): handle set initializations better, more to do.
11174         * ch-loop.c (begin_for_range): correct interface to expand_start_cond
11175           and build_binary_op.
11176         * ch-tree.h: lots more prototypes
11177         * ch-typeck.c (build_array_from_set): added function.
11178         * ch-typeck.c (chill_expand_tuple): handle set initializations better.
11179
11180 Thu Jan 28 17:41:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
11181
11182         * ch-grant.c (set_default_grant_file):  Change default.
11183         Normally, grant file should end up in cwd.
11184         * ch-lang.c (build_chill_struct_type):  Call pushtag,
11185         for the sake of debugging.
11186         * ch-lex.l:  Improve comment parsing.
11187         * ch-lex.l (readstring):  Some improvements.
11188         Initial support for control sequences in string literals.a
11189
11190 Thu Jan 28 16:16:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11191
11192         * ch-convert.c (convert): correct fixed->varying conversion.
11193         * ch-parse.y (mode2): delete unesthetic newline.
11194
11195 Thu Jan 28 10:32:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11196
11197         * ch-actions.c: delete maybe_array_ref()
11198         * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
11199           calling convert().
11200         * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
11201           supervision actions & builtins
11202         * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
11203           smaller actions directly (maybe_array_ref() used to call them).
11204         * ch-tree.h: add build_chill_function_call, build_chill_slice
11205         * ch-typeck.c: add build_chill_slice()
11206
11207 Thu Jan 28 08:44:28 1993  Bill Cox  (bill@rtl.cygnus.com)
11208
11209         * ch-tree.h: bring up to date with ch-actions.c changes.
11210
11211 Wed Jan 27 23:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11212
11213         * ch-expr.c (chill_expand_assignment): handle an RHS varying array
11214           reference.
11215
11216 Wed Jan 27 22:28:36 1993  Per Bothner  (bothner@rtl.cygnus.com)
11217
11218         * ch-grant.c (decode_constant):  Add REAL_TYPE support.
11219         * ch-actions.c (build_chill_exception_decl):  New function.
11220         * ch-actions (build_chill_cause_exception, cond_exceptions):
11221         Convert to take a (char*) parameter (the exception name).
11222         * ch-actions.c, ch-expr.c, ch-typeck.c:  Convert calls to
11223         cond_exception.
11224         * ch-parse.y (check_end_label):  New function, to check if
11225         and end label matches start label.
11226         * ch-parse.y:  Fix syntax to properly recognize and
11227         test optional end labels (using check_end_label).
11228         * ch-decl.c (finish_chill_function):  Simplify, since
11229         we assume check_end_label has already been called.
11230         * ch-parse.y:  Put in infrastructure for exception handling.
11231
11232 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11233
11234         * ch-actions.c: delete convert_chill_parameter, replace call with
11235           call to convert().
11236         * ch-convert.c (convert): combine chill_give_type_to_expr in here.
11237         * ch-decl.c: call convert rather than chill_give_type_to_expr.
11238         * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
11239         * ch-expr.c (chill_expand_assignment): just call convert.
11240         * ch-loop.c (end_chill_loop): expand the end of the loop for a
11241           do while.
11242         * ch-parse.y: call convert rather than chill_give_type_to_expr.
11243         * ch-process.c: checkpoint.
11244         * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
11245
11246 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11247
11248         * ch-grant.c (grant_array_type): new function to allow handling of
11249           VARYING array types.
11250
11251 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11252
11253         * ch-typeck.c (chill_give_type_to_expr): fix typo.  Reorder to
11254           avoid checking types on CONSTRUCTORs.  Correct typo.
11255         * ch-expr.c (expand_assignment_to_varying_array): use proper
11256           expansion function expand_expr_stmt.
11257         * ch-expr.c (expand_chill_assignment): only convert VARYING
11258           array refs or RHS.
11259
11260 Wed Jan 27 15:32:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11261
11262         * ch-actions.c (build_chill_length, build_chill_lower,
11263                         build_chill_upper): accept parameters, too.
11264         * ch-expr.c (chill_expand_assignment):  decipher ARRAY_REF on RHS.
11265         * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
11266           assign proper type to ARRAY_REF expression.
11267
11268 Wed Jan 27 09:51:46 1993  Bill Cox  (bill@rtl.cygnus.com)
11269
11270         * ch-actions.c (build_chill_binary_op): delete unused variable,
11271           get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
11272         * ch-actions.c (build_chill_repetition_op): handle differently-built
11273           declaration trees.
11274         * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
11275         * ch-typeck.c (chill_give_type_to_expr): give type to constructor
11276
11277 Tue Jan 26 11:32:38 1993  Bill Cox  (bill@rtl.cygnus.com)
11278
11279         * ch-parse.y (ifaction): re-add lost call to expand_end_code().
11280         * ch-parse.y (siezelist, grantlist): use 'name' rather than
11281           'checked_name'.  It makes no sense to check sieze/grant names
11282           for WITH expansion.
11283         * ch-expr.c (chill_expand_expr): delete unnecessary (and
11284           seg-fault-causing) code.
11285         * ch-expr.c (chill_expand_assignment): make test for varying array
11286           on the LHS more specific.
11287         * ch-actions.c (invalid_left_operand, invalid_right_operand): error
11288           for use of MOD, REM operators.
11289         * ch-actions.c (build_chill_repetition_op): error for bit-field
11290           initializers (which will get handled in the lexer).
11291
11292 Mon Jan 25 17:26:47 1993  Bill Cox  (bill@rtl.cygnus.com)
11293
11294         * ch-typeck.c (build_chill_array_ref),
11295         * ch-expr.c (chill_expand_expr, chill_expand_assignment):
11296           translate varying array ref into ARRAY_REF, defer processing
11297           until chill_expand_expr.  Update array's length field in
11298           new function expand_assignment_to_varying_array.
11299
11300 Mon Jan 25 14:57:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11301
11302         * ch-parse.y (mode2): eliminate old method to mark varying arrays.
11303         * ch-expr.c (expand_varying_length_assignment): repair scaling of
11304           RHS expression.
11305
11306 Mon Jan 25 11:44:21 1993  Per Bothner  (bothner@cygnus.com)
11307
11308         * ch-parse.y:  Allow character and bitstring literals
11309         in string repetition operator.
11310
11311 Sat Jan 23 14:18:11 1993  Per Bothner  (bothner@cygnus.com)
11312
11313         * ch-parse.y (primval):  Re-recognize '(' expr ')'.
11314         * ch-parse.y (name):  Remove call to check_identifier -
11315         this is not appropriate in certain contexts.
11316         * ch-parse.y (checked_name):  Same as <name>, but *with* the
11317         call to check_identifier.  Use where appropriate.
11318         * ch-parse.y (operand5):  Only allow string repetition of
11319         string literals, because otherwise you get a conflict.
11320
11321 Thu Jan 21 16:32:39 1993  Bill Cox  (bill@rtl.cygnus.com)
11322
11323         * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
11324           continue start_process development.
11325
11326 Thu Jan 21 13:51:06 1993  Bill Cox  (bill@rtl.cygnus.com)
11327
11328         * ch-decl.c (do_decl): fix handling of multi-char initializer.
11329
11330 Thu Jan 21 13:14:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11331
11332         * .cvsignore: add CHILL files to be ignored
11333
11334 Thu Jan 21 07:38:57 1993  Bill Cox  (bill@cygnus.com)
11335
11336         * ch-parse.y: rough draft of start_process handling.
11337
11338 Wed Jan 20 17:11:05 1993  Bill Cox  (bill@rtl.cygnus.com)
11339
11340         * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
11341
11342 Wed Jan 20 16:48:13 1993  Bill Cox  (bill@rtl.cygnus.com)
11343
11344         * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
11345           create new modules for I/O and process-related stuff.
11346         * ch-actions.c: move routines to new modules.
11347           call xmalloc, not malloc.
11348         * ch-lang.c (build_chill_struct_type): add parameter checking.
11349         * ch-lex.l (init_lex): remove redundant cast.
11350
11351 Tue Jan 19 16:33:56 1993  Bill Cox  (bill@rtl.cygnus.com)
11352
11353         * ch-parse.y (operand5): delete unnecessary argument to
11354           build_chill_unary_op.  Add rule for string repetition.
11355         * ch-parse.y (primval): delete string repetition attempt.
11356         * ch-parse.y (start_process): rough draft of action.
11357         * ch-actions.c (build_repetition_op): add it
11358         * ch-actions.c (build_chill_binary_op): handle constant arguments
11359           of CONCAT_EXPR, combine into a single string if possible.
11360         * ch-actions.c (invalid_left_operand, invalid_right_operand):
11361           allow single character arguments to CONCAT_EXPR.
11362         * ch-tree.h: add prototype for build_repetition_op
11363
11364 Tue Jan 19 15:03:29 1993  Fred Fish  (fnf@cygnus.com)
11365
11366         * dwarfout.c (output_type):  Add hack that matches the one in the
11367         chill front end to distinquish between true string types and
11368         arrays of char, since it uses ARRAY_TYPE for both, rather than
11369         trying to use the existing support for STRING_TYPE.
11370
11371 Tue Jan 19 13:54:27 1993  Bill Cox  (bill@rtl.cygnus.com)
11372
11373         * ch-tree.h: added prototypes for all non-static CHILL functions.
11374         * ch-actions.c (lang_init): declare builtin type for start_process
11375         * ch-actions.c (build_chill_binary_op): combine string literals when
11376           concatenated.
11377         * ch-actions.c (formpars2struct): added for later start_process
11378           implementation.
11379         * ch-actions.h: remove un-needed function declarations.
11380         * ch-decl.c: extern cleanup.
11381         * ch-expr.c (chill_expand_array_assignment): add missing first
11382           parameter to cond_exception call.
11383         * ch-lex.l: make build_chill_string non-static.
11384
11385 Mon Jan 18 19:15:08 1993  Bill Cox  (bill@rtl.cygnus.com)
11386
11387         * ch-decl.c (do_decls): get varying array length initialized.
11388
11389 Mon Jan 18 09:51:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11390
11391         * ch-expr.c (chill_expand_array_assignment): fix the copy length
11392         in the memcpy call (it was just 4 bytes always).   Simplify some
11393         code, also.
11394
11395 Mon Jan 18 08:24:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11396
11397         * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
11398
11399 Mon Jan 18 08:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
11400
11401         * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
11402         CHARS synonymous with CHAR, in the lexer.  Delete unnecessary
11403         'bools' non-terminal.
11404         * ch-parse.y (assignaction): add lhs version of length() function
11405         * ch-actions.c: add builtin_concat function, lots of support for
11406         CONCAT_EXPR.
11407         * ch-actions.c, ch-tree.h: make a function out of former
11408         macro CH_VARYING_TYPE_P
11409         * ch-expr.c: add expand_varying_length_assignment ().
11410         * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11411         * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11412         rather than build_rts_call, to eliminate a recursion problem.
11413         * ch-lang.c: eliminate 'sorry' about varying arrays.
11414         * ch-typeck.c (validate_varying_array_ref): re-enable constant
11415         index validation.
11416
11417 Sun Jan 17 18:20:04 1993  Per Bothner  (bothner@cygnus.com)
11418
11419         * ch-grant.c, ch-lex.l:  Major simplification of how
11420         seizes are done and how seizefiles are read.
11421         * ch-actions.h:  Remove declaration of check_seize().
11422         * ch-decl.c (do_decls):  Handle READONLY types.
11423         * ch-parse.y (mode2):  Allow REF to be followed by any mode.
11424         * ch-parse.y (mode2):  Allow literal expressions in string length.
11425         * ch-parse.y (tupleelement):  Allow elemenst to be untyped_expr.
11426         * ch-parse.y (seizestatement, etc):  Call chill_seize each
11427         time something is seized, rather than building a list first.
11428
11429 Sat Jan 16 12:24:44 1993  Bill Cox  (bill@rtl.cygnus.com)
11430
11431         * chill.gperf, ch-hash.h: add Wilfried's tokens
11432         * ch-lex.l: fold in Wilfried's changes.  Some tokens
11433         weren't getting recognized, and INSTANCE wasn't correctly
11434         reported to ch-parse.y as a PREDEF_MODEDCL.
11435
11436 Thu Jan 14 15:02:39 1993  Per Bothner  (bothner@cygnus.com)
11437
11438         * ch-tree.h (CH_CHARS_TYPE_P):  New macro.  Add comment
11439         explaining difference between char strings and char arrays.
11440         * ch-tree.h (CH_STRING_TYPE_P):  Add FIXME re bitstrings.
11441         * ch-tree.c (build_string_type):  Add comment.
11442
11443 Wed Jan 13 15:19:15 1993  Per Bothner  (bothner@cygnus.com)
11444
11445         * calls.c, expr.c, function.c, stmt.c, varasm.c:  Set
11446         MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11447         * expmed.c (store_bit_field, extract_field_field):  Undo
11448         yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11449
11450         * ch-decl.c (do_decls):  Put back support for initializing.
11451         (Was accidentally removed in Jan 8 change.)
11452
11453 Wed Jan 13 14:13:11 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
11454
11455         * ch-lex.l (convert_bitstring): Correct typo in cast.
11456
11457 Tue Jan 12 20:29:08 1993  Per Bothner  (bothner@cygnus.com)
11458
11459         * ch-lex.l (convert_bitstring):  Change to pack bits
11460         within words, not bytes, and to use machine bit-order
11461         (not always little-endian).
11462         * ch-parse.y:  Allow BOOLS(n) as well as BITS(n).
11463         Use build_bitstring_type, not build_string_type.
11464         * expmed.c (store_bit_field, extract_field_field):  Remove
11465         "sanity test" that prevents use with SET_TYPE.
11466         * tree.c (build_bitstring_type, build_powerset_type,
11467         build_string_type):  Move (so far) Chill-specific functions to ...
11468         * ch-tree.c:  ... new file.
11469         * ch-tree.c (build_powerset_type, build_bitstring_type):  Re-write.
11470         * ch-typeck.c (build_chill_array_ref):  Handle bit strings better.
11471         * ch-typeck.c (chill_expand_tuple):  Kludge to handle SET_TYPE.
11472         * Makefile.in (CHILL_OBJS):  Add ch-tree.o.
11473         * ch-decl.c (do_decls):  Call expand_decl.
11474         * stor-layout.c (layout_type):  Handle SET_TYPE.
11475         * expr.c (expand_expr):  Add FIXMEs about IN_EXPR.
11476         * ch-actions.c (lang_init):  Add type and decl for new
11477         function __builtin_setbitinstring.
11478         * ch-expr.c (chill_expand_assignmment):  Special-case handling
11479         for BIT_FIELD_REF with non-constant bit position (which is
11480         not yet handled by expand_expr).
11481         * ch-convert.c (convert):  Handle SET_TYPE.
11482
11483 Tue Jan 12 12:49:13 1993  Fred Fish  (fnf@cygnus.com)
11484
11485         * chill:  If -B arg is given, use to find gcc.
11486
11487 Fri Jan  8 20:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11488
11489         * ch-decl.c: revert to avoid seg fault
11490
11491 Fri Jan  8 14:20:42 1993  Bill Cox  (bill@rtl.cygnus.com)
11492
11493         * ch-decl.c: fix storage into correct offset in varying array.
11494         * ch-actions.c: define sizetype for everyone, use it to build
11495         varying structure.
11496         * ch-parse.y: tiny cleanup.
11497
11498 Wed Jan  6 13:25:33 1993  Bill Cox  (bill@cygnus.com)
11499
11500         * modules: use gdb rather than naked-gdb, to get opcodes
11501         in chill definition.
11502
11503 Wed Jan  6 09:48:35 1993  Bill Cox  (bill@cygnus.com)
11504
11505         * ch-typeck.c: add code to handle references to elements of VARYING
11506         arrays.  Simplify chill_give_type_to_expr.  Add rough draft of run-
11507         time index checking for VARYING arrays (under #if 0).
11508         * ch-actions.c: new function cond_type_range_exception & calls.
11509         New function cond_range_exception, for more general range-checking.
11510         New function build_varying_struct, to do just that.  Use the macros
11511         for the special varying field names.
11512         * ch-tree.h: define macros for varying field names.
11513         * ch-expr.c: use macros for varying struct names.  Simplify
11514         chill_expand_array_assignment.
11515         * ch-parse.y: assure that build_varying_struct is called everywhere
11516         that it applies.  Add a line-number note before the body of a DO
11517         loop.
11518         * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11519
11520 Tue Jan  5 17:26:14 1993  Bill Cox  (bill@cygnus.com)
11521
11522         * c-decl.c: correct order of declaration of start_decl params,
11523         for readability.
11524
11525 Tue Jan  5 15:59:36 1993  Per Bothner  (bothner@cygnus.com)
11526
11527         * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11528         Move shared code into ...
11529         * ch-decl.c (start_chill_function): ... here.
11530         * ch-decl.c (start_chill_function):  Add missing call to
11531         expand_start_bindings.
11532         * ch-decl.c (finish_chill_function): Add missing call to
11533         expand_end_bindings.
11534
11535 Tue Jan  5 01:00:47 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
11536
11537         * Makefile.in: took out the rest of the runtime support
11538
11539 Mon Jan  4 18:02:06 1993  Bill Cox  (bill@cygnus.com)
11540
11541         * ch-expr.c: make chill_expand_array_assignment not static.
11542
11543 Mon Jan  4 17:57:48 1993  Per Bothner  (bothner@cygnus.com)
11544
11545         * ch-grant.c, ch-parse.y:  Remove all code for explicitly
11546         calling initializer functions.  This is not needed, since we
11547         use the same mechanism used for C++ static constructors.
11548         * ch-grant.c (chill_start_module_code):  Make sure the
11549         init_name starts with the magic string also used for C++
11550         initializers.  Also, don't embed the file name in the name,
11551         just use the module name.
11552         * ch-grant.c (chill_finish_module_code):  Now that the
11553         initializer name follows the standard 'collect' convention,
11554         don't need to call assembler_constructor_alias, but can
11555         use the standard assemble_constructor instead.
11556         * varasm.c (assemble_constructor_alias):  Remove no-longer-
11557         needed function.
11558         * ch-parse.y:  Move code that is common to the beginning of
11559         all functions to a new macro INIT_ACTION.
11560         Make sure INIT_ACTION is also done for callaction, fixing a bug.
11561         * ch-parse.y (INIT_ACTION):  Do chill_start_module_code()
11562         before emit_line_note(), not after.
11563
11564 Mon Jan  4 11:43:12 1993  Bill Cox  (bill@cygnus.com)
11565
11566         * ch-parse.y: restore requirement for :upper-bound in array decl.
11567         * ch-actions.c: enhance upper, lower, length functions for VARYING.
11568
11569 Mon Jan  4 09:28:44 1993  Bill Cox  (bill@cygnus.com)
11570
11571         * ch-actions.c: fix NOT of boolean expr.
11572
11573 Mon Jan  4 08:42:57 1993  Bill Cox  (bill@cygnus.com)
11574
11575         * ch-actions.c: provide range-checking function
11576         * ch-lex.l: better compiler-directive error messages,
11577         allow underscores in exponents
11578         * ch-loop.c: prevent passing NULL ptr to printf
11579
11580 Sun Jan  3 11:57:13 1993  Bill Cox  (bill@cygnus.com)
11581
11582         * ch-typeck.c: correct & enable array index range-checking
11583
11584 Sun Jan  3 11:36:39 1993  Bill Cox  (bill@cygnus.com)
11585
11586         * ch-parse.y: define IGNORED_DIRECTIVE
11587         * ch-typeck.c: subtract array's lower domain value, even if
11588         index expression is constant.
11589
11590 Sat Jan  2 23:05:14 1993  Fred Fish  (fnf@cygnus.com)
11591
11592         * ch-lex.l (convert_float):  Fix misspelling in error message.
11593
11594 Sat Jan  2 16:02:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
11595
11596         * Makefile.in:  Took out chill-runtime support.
11597         Chill run times are now in ../chillrt, not ./chillrt.p
11598
11599 Sat Jan  2 15:04:13 1993  Bill Cox  (bill@cygnus.com)
11600
11601         * ch-hash.h, chill.gperf: cleanup.  fewer keywords seen by ch-parse.y.
11602
11603 Sat Jan  2 13:27:49 1993  Per Bothner  (bothner@rtl.cygnus.com)
11604
11605         * ch-lex.l (check_newline):  Use the orginal versions (derived
11606         from the C code, not the simplified, special-case version).
11607         Also, fix that version of check_newline to not call yylex()
11608         recursively.
11609         * ch-lex.l (yy_input):  Call check_newline to handle
11610         newlines and check for # directives.
11611         * ch-lex.l (syntax):  Don't recognize #-directives; these
11612         are now handled by check_newline.
11613         * ch-actions.c (lang_init):  Call the modified version of
11614         check_newline().  Do this at the *after* we've initialized
11615         standard types, so this can be done while lineno is still 0.
11616
11617 Sat Jan  2 10:57:20 1993  Bill Cox  (bill@cygnus.com)
11618
11619         * ch-hash.h, chill.gperf: add remaining reserved words.
11620
11621 Sat Jan  2 09:59:55 1993  Bill Cox  (bill@cygnus.com)
11622
11623         * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11624         names for exceptions
11625
11626 Fri Jan  1 12:30:31 1993  Fred Fish  (fnf@cygnus.com)
11627
11628         * ch-tree.h (JOINER):  Define joiner character the same way
11629         C++ defines it.
11630         * ch-grant.c (chill_start_module_code):  Use JOINER character
11631         to implement name mangling for the initializer function name.
11632         Algorithm is designed to be simple, distinct from C++ mangled
11633         symbols, and easy to convert to demangled form.
11634
11635 Thu Dec 31 10:30:51 1992  Bill Cox  (bill@rtl.cygnus.com)
11636
11637         * ch-expr.c: make array assignments work with indirect refs.
11638         * ch-actions.c: prepare for array parameter handling.
11639         * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11640
11641 Thu Dec 31 15:29:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
11642
11643         * ch-lex.l (yy_input):  Re-write to return more than one
11644         character at a time (execpt when reading seize-files).
11645         Don't increment lineno until we start reading the next line.
11646         This fixes some off-by-one errors in lineno.
11647
11648 Wed Dec 30 16:15:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
11649
11650         * ch-convert.c:  Assume use of new common.c.
11651         * ch-convert.c (convert_to_reference, convert_from_reference):
11652         New routines, to handle loc-identity declared variables and
11653         LOC parameters (both of which are implemented as references).
11654         * ch-lang.c (convert_to_boolean, convert_to_char):  Move to
11655         ch-convert.c, where they would seem to belong.
11656         * ch-convert.c (convert):  New function, since we no longer
11657         link in c-convert.c.
11658         * ch-expr.c (chill_expand_assignment):  Handle by calling
11659         convert() instead of chill_comptypes().
11660         Also handle the LHS being a reference.
11661         * ch-parse.y:  Add a procedure call as an action.
11662         * ch-parse.y (locdec, optlocinit):  Move handling of
11663         loc-identity declarations from optlocinit to locdec
11664         - and add working semantics for it.
11665         * ch-parse.y (seizestatement, visibilty_stmt):  Simplify.
11666         * ch-parse.y (grantstatement etc):  Don't bother making list.
11667         * ch-lex.l:  #include <sys/types.h> before <sys/stat.h>.
11668
11669 Wed Dec 30 16:06:55 1992  Bill Cox  (bill@rtl.cygnus.com)
11670
11671         * ch-parse.y, ch-expr.c: add support for declaring & assigning
11672         VARYING arrays.
11673         * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11674
11675 Tue Dec 29 15:28:48 1992  Bill Cox  (bill@cygnus.com)
11676
11677         * ch-actions.c: implement expressions of arrays of char,
11678         ( concatenation, relationals ), correct type of code parameters
11679         * ch-expr.c: correct type of code parameters
11680
11681 Tue Dec 29 11:16:19 1992  Bill Cox  (bill@cygnus.com)
11682
11683         * ch-decl.c: cleanup.
11684         * ch-parse.y: put emit_line_note() calls in lotsa places,
11685         per Fred's request; be sure that statements get counted also.
11686         * ch-lex.l: standardize function headers.
11687
11688 Tue Dec 29 10:41:56 1992  Fred Fish  (fnf@cygnus.com)
11689
11690         * ch-decl.c (start_chill_function):  Always return 1, rather
11691         than a random value.
11692         * ch-lex.l (check_newline):  Add a version for chill that
11693         just snarfs the right value for main_input_filename out of
11694         the first line of the input file, without disturbing the
11695         lexer state or requiring it's assistance.
11696         * ch-actions.c (lang_init):  Call check_newline, like the
11697         other language frontends, to get main_input_filename set
11698         from first line of input file.
11699
11700 Mon Dec 28 18:49:01 1992  Bill Cox  (bill@cygnus.com)
11701
11702         * ch-parse.y: clean up conflicts.  The remaining one is
11703         harmless.
11704
11705 Mon Dec 28 17:28:40 1992  Bill Cox  (bill@cygnus.com)
11706
11707         * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11708         clean up some parser conflicts.
11709
11710 Mon Dec 28 15:00:20 1992  Bill Cox  (bill@cygnus.com)
11711
11712         * ch-parse.y, ch-lex.l:  add keywords and parsing for most of
11713         CHILL I/O
11714
11715 Sat Dec 26 20:48:23 1992  Fred Fish  (fnf@cygnus.com)
11716
11717         * chillrt/chillrt0.c:  Oops, SVR4 doesn't need leading '_'
11718         on build_exceptions.
11719
11720 Sat Dec 26 11:00:36 1992  Fred Fish  (fnf@cygnus.com)
11721
11722         * ch-grant.c (chill_finish_module_code):  Call
11723         assemble_constructor_alias rather than assemble_constructor.
11724         * varasm.c (assemble_constructor_alias):  New function,
11725         like assemble_constructor, but also handles the case where
11726         ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11727         being used.  Emits a symbol table alias name with the correct
11728         prefix for collect to find and add to the __CTOR_LIST__.
11729         * chillrt/chillrt0.c:  Build on previous hack that gets
11730         _build_exceptions into the __CTOR_LIST__, to make it work
11731         for both the non GNU-ld case and for the SVR4 case.
11732
11733 Tue Dec 22 18:24:55 1992  Bill Cox  (bill@cygnus.com)
11734
11735         * ch-loop.c: clean up location enumeration - one more
11736         pass to do.
11737
11738 Tue Dec 22 16:31:48 1992  Bill Cox  (bill@cygnus.com)
11739
11740         * ch-loop.c: Working version of location enumeration loop
11741
11742 Tue Dec 22 14:42:14 1992  Bill Cox  (bill@cygnus.com)
11743
11744         * ch-lex.l: readability cleanup
11745
11746 Mon Dec 21 14:58:39 1992  Bill Cox  (bill@cygnus.com)
11747
11748         * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11749         ch-loop.c: rough draft of location enumeration
11750         ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11751         ch-actions.c: finish making pred() and succ() work.
11752
11753 Mon Dec 21 10:04:35 1992  Bill Cox  (bill@cygnus.com)
11754
11755         * ch-actions.c: allow pred(char) and succ(char).
11756
11757 Sun Dec 20 16:04:28 1992  Bill Cox  (bill@cygnus.com)
11758
11759         * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11760         c-expr.c: make DO WITH work.
11761
11762 Sun Dec 20 12:22:53 1992  Bill Cox  (bill@cygnus.com)
11763
11764         * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11765         now work
11766
11767 Sat Dec 19 14:20:23 1992  Per Bothner  (bothner@cygnus.com)
11768
11769         * c-typeck.c (process_init_constructor):  Add warning if
11770         there is a duplicate default initializer element.
11771         * ch-typeck.c (chill_give_type_to_expr):  New function,
11772         to handle coercion of an expression to context-given type,
11773         Takes care of untyped tuples, and case expressions.
11774         * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11775         chill_expand_result), ch-parse.y <assignaction>:
11776         Use chill_give_type_to_expr().
11777         * ch-typeck.c (chill_handle_case_label):  New parameter list,
11778         to handle the (new) conventions for <case_label>, including
11779         default elements and ranges.
11780         * ch-parse.y <expanded_case_label>, ch-typeck.c
11781         (expand_case_expr):  Use new version of chill_handle_case_label.
11782         * ch-decl.c (push_syndecls):  Change parameters:  Instead of
11783         TREE_LIST representing a compete <synonym definition statement>,
11784         just pass the parts of a single <synonym definition> as 3
11785         different parameters.  Also, use chill_give_type_to_expr(),
11786         to handle untyped tuples in the RHS.
11787         * ch-parse.y <syndeclist, syndef>:  Don't bother trying to construct
11788         a tree - just call push_syndecls() on each <synonum_definition>
11789         as we see it.
11790         * ch-parse.y (exprlist_get_single):  Remove; no longer needed.
11791         * ch-parse.y:  Handle <tuple> without mode name diferently from
11792         <tuple> with mode name.  The latter is a <primval> that can be
11793         in most contexts, but if the <mode name> is missing, the <tuple>
11794         is only allowed in certain contexts.  Use the new non-terminal
11795         <untyped_expr> to indicate those contexts where untyped tuples
11796         (and case expressions) are valid because the expression gets a
11797         type from its context (such as the RHS of an assignment).
11798         Use chill_give_type_to_expr in those contexts.
11799
11800 Sat Dec 19 14:01:26 1992  Bill Cox  (bill@cygnus.com)
11801
11802         * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11803
11804 Sat Dec 19 10:16:20 1992  Bill Cox  (bill@cygnus.com)
11805
11806         * ch-parse.y: clean up warning messages from byacc.  bison
11807         still complains thrice.
11808
11809 Fri Dec 18 12:33:29 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11810
11811         * ch-actions.c (maybe_chill_comptypes): Delete unused
11812         function.
11813         (chill_comptypes): Add new parameter ERRSTR.  All callers
11814         changed.
11815         (build_chill_binary_op): Fix indentation to match GNU coding
11816         style.
11817
11818 Fri Dec 18 08:18:13 1992  Bill Cox  (bill@rtl.cygnus.com)
11819
11820         * ch-parse.y, ch-expr.c, ch-actions.c, expr.c:  major
11821         cleanup of expression and assignment handling.
11822
11823 Thu Dec 17 10:16:32 1992  Bill Cox  (bill@cygnus.com)
11824
11825         * ch-parse.y: standardize indentation after c-parse.y
11826
11827 Wed Dec 16 15:22:12 1992  Per Bothner  (bothner@cygnus.com)
11828
11829         * c-typeck.c (process_init_constructor):  Add support for
11830         a default initializer element.
11831         * ch-parse.y: Implement default elements for tuples
11832         (as in '(else):' and '(*):' ).
11833
11834         * ch-parse.y:  Previous change to dis-ambiguate case-labels
11835         seems to have allowed getting rid of all of the expr_or_list hair.
11836         * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11837         initialization of multiple variables by a tuple" - the
11838         idea is bogus.
11839
11840 Wed Dec 16 11:17:53 1992  Bill Cox  (bill@cygnus.com)
11841
11842         * ch-parse.y: complete re-write of DO statement handling.
11843         now operational, except WITH is stubbed out.  Improved
11844         syntax error message.
11845         * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11846         * ch-expr.c: fixes to IN_EXPR handling.
11847
11848 Tue Dec 15 17:15:13 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
11849
11850         * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11851         * ch-lex.c: Likewise.
11852
11853         * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11854         by flex to avoid compiler error.
11855
11856 Tue Dec 15 08:41:08 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11857
11858         * ch-decl.c (do_decls): Handle initialization of multiple
11859         variables by a tuple.
11860
11861         * ch-decl.c (do_decls,start_chill_function): Make DECL public
11862         if we're doing a GRANT ALL at top level.
11863
11864         * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11865         range expression.
11866
11867         * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11868         BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11869
11870 Mon Dec 14 14:58:32 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11871
11872         * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11873         (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11874
11875 Mon Dec 14 13:36:44 1992  Bill Cox  (bill@cygnus.com)
11876
11877         * expr.c: install and test newer Pascal IN_EXPR code,
11878         but don't activate it - it's very verbose.
11879
11880 Mon Dec 14 00:22:49 1992  Fred Fish  (fnf@cygnus.com)
11881
11882         * Makefile.in (LANGUAGES):  Add chill.
11883         * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11884         New macros for chill native and cross installation names.
11885         * Makefile.in (COMPILERS):  Add cc1chill.
11886         * Makefile.in (CHILL_OBJS):  New macro, chill objects.
11887         * Makefile.in (CHILL_TREE_H):  New macro, chill headers.
11888         * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11889         sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11890         install-librmt):  New targets.
11891         * Makefile.in (install-native):  Add install-libchill,
11892         install-librmt.
11893
11894 Sun Dec 13 15:21:06 1992  Bill Cox  (bill@cygnus.com)
11895
11896         * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
11897
11898 Sun Dec 13 14:07:32 1992  Bill Cox  (bill@cygnus.com)
11899
11900         * ch-actions.c: fix unary operations, modulus ops,
11901         (discovered after extending regression tests).
11902
11903 Sun Dec 13 12:16:32 1992  Bill Cox  (bill@cygnus.com)
11904
11905         * resync with Michael and Wilfried
11906
11907 Sun Dec 13 09:11:25 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11908
11909         * ch-parse.y (output_constant): Fixed some whitespace
11910         problems.
11911         * ch-tree.h: Add declarations for new chill functions that
11912         have been implemented but not (yet) declared.
11913
11914 Sat Dec 12 00:17:23 1992  Per Bothner  (bothner@cygnus.com)
11915
11916         * c-typeck.c (process_init_constructor):  Warn about duplicate
11917         labels for labelled initializer elements.
11918         * ch-lex.l (various operator tokens, such as "+"):  Don't
11919         set yylval.code to a TREE_CODE; this is better done in parser.
11920         * ch-parse.y:  Some work with case labels and tuples.
11921         Get literal range as tuple (and case) labels working.
11922         Fix some problems introduced by recent grammar overhaul.
11923
11924 Fri Dec 11 13:28:48 1992  Bill Cox  (bill@cygnus.com)
11925
11926         * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
11927         got long, real expressions working.  We can also call a func-
11928         tion and use its return value.
11929
11930 Thu Dec 10 14:45:17 1992  Per Bothner  (bothner@cygnus.com)
11931
11932         * ch-parse.y:  Major change to remove or at least identify
11933         parser ambiguities.  One result:  We now allow actions that
11934         start with '(', as required by teh Blue Book.  This does break
11935         some things; look for FIXME for things that need work.
11936         * ch-typeck.c (chill_expand_case_expr):  We need an extra
11937         level of looping to (in the future) support <case label
11938         specification>s with more than one <case label list>.
11939
11940 Thu Dec 10 09:21:41 1992  Bill Cox  (bill@cygnus.com)
11941
11942         * ch-actions.c, ch-expr.c: Implement string assignments
11943         and relationals.
11944
11945 Thu Dec 10 07:17:35 1992  Bill Cox  (bill@cygnus.com)
11946
11947         * ch-decl.c, ch-typeck.c: rest of previous commit.
11948
11949 Wed Dec  9 18:26:29 1992  Bill Cox  (bill@cygnus.com)
11950
11951         * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
11952         regression test and fix bit arrays and set ops.
11953
11954 Mon Dec  7 14:57:46 1992  Bill Cox  (bill@cygnus.com)
11955
11956         * ch-actions.c: implement crude relationals between
11957         non-exotic operands, such as integers.
11958
11959 Mon Dec  7 10:42:35 1992  Bill Cox  (bill@cygnus.com)
11960
11961         * ch-actions.c: implement relational, logic operations
11962         on arrays of BOOLs.
11963
11964 Mon Dec  7 08:55:20 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11965
11966         * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
11967         indicate we are done with initialization.
11968
11969         * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
11970         `grant all'.
11971         (start_chill_function): Ditto.
11972
11973         * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
11974         (compiler_directive): Don't confuse compiler directives with
11975         equality comparison operators.
11976
11977         * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
11978
11979 Sun Dec  6 13:12:32 1992  Bill Cox  (bill@cygnus.com)
11980
11981         * ch-actions.c: repair set inequality code.
11982
11983 Sun Dec  6 11:15:59 1992  Bill Cox  (bill@cygnus.com)
11984
11985         * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
11986         relational expressions, including (<, <=, =, /=, >, >=, IN).
11987
11988 Fri Dec  4 13:54:58 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
11989
11990         * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
11991         Pascal-required ones, since C++ no longer needs them.  When
11992         Chill's public, a comment can be added to the effect that
11993         SET_LE_EXPR is also used by Chill.
11994
11995 Fri Dec  4 12:05:01 1992  Bill Cox  (bill@cygnus.com)
11996
11997         * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
11998
11999 Fri Dec  4 10:23:10 1992  Bill Cox  (bill@cygnus.com)
12000         * Get *.def and *.c in sync.
12001
12002 Fri Dec  4 06:48:41 1992  Fred Fish  (fnf@cygnus.com)
12003
12004         * ch-actions.c (lang_init):  Change types "long" and
12005         "ulong" from 16 bits to 32.
12006         * dwarfout.c (fundamental_type_code):  Use FT_signed_char
12007         for type "byte" and FT_unsigned_char for type "ubyte".
12008
12009 Thu Dec  3 15:13:24 1992  Bill Cox  (bill@cygnus.com)
12010         * ch-actions.c, ch-tree.def, ch-parse.y:  preparation
12011         for powerset expressions.
12012
12013 Tue Dec  2 17:02:30 1992  Bill Cox  (bill@cygnus.com)
12014         * ch-actions.c: sketch code for exceptions generated
12015         by builtin routines.
12016
12017 Tue Dec  2 12:49:50 1992  Bill Cox  (bill@cygnus.com)
12018         * ch-actions.c, ch-parse.y: add support for lower()
12019         upper() builtin functions.
12020
12021 Wed Dec  2 12:03:30 1992  Fred Fish  (fnf@cygnus.com)
12022
12023         * Makefile.in (chillrt0.o, install-chillrt0):  Remove.
12024         * chill (library):  Remove chillrt0.o.
12025         * chillrt/Makefile:  Remove maintenance of chillrt0.o as a
12026         separate file.  Now gets put in libchill.a.
12027
12028 Tue Dec  2 10:100:20 1992  Bill Cox  (bill@cygnus.com)
12029
12030         * ch-parse.y, ch-actions.c: add support for num()
12031         builtin function.
12032
12033 Wed Dec  2 09:52:06 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12034
12035         * ch-decl.c (fixup_unknown_type): New function.
12036         (push_newmode,push_synmode): Call `fixup_unknown_type' when we
12037         see a declaration that uses `unknown_type_node'.  FIXME.
12038
12039         * ch-grant.c (decode_constant): New function.
12040         (decode_decl): Call `decode_constant' for CONST_DECLs.
12041
12042         * ch-lex.l (char action): Use ridpointers instead of
12043         lookup_name to get "char"'s declaration.
12044
12045         * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
12046         when we need to build a TYPE_DECL.
12047
12048 Tue Dec  2 09:44:05 1992  Bill Cox  (bill@cygnus.com)
12049
12050         * ch-typeck.c: clean up a gcc warning with a forward
12051         declaration of build_string_type.
12052
12053 Tue Dec  1 16:51:05 1992  Bill Cox  (bill@cygnus.com)
12054
12055         * ch-actions.c: completely remove those builtin calls
12056         that are duplicated in c-decl.c
12057
12058 Tue Dec  1 16:38:51 1992  Fred Fish  (fnf@cygnus.com)
12059
12060         * ch-actions.c (lang_init):  Ifdef out initializations for
12061         __builtin_abs and __builtin_fabs, since they are duplicates of
12062         initializations in c-decl.c, and trigger spurious warnings.
12063
12064 Tue Dec  1 16:35:18 1992  Bill Cox  (bill@cygnus.com)
12065
12066         * ch-parse.y: make size() work with a typename argument.
12067
12068 Tue Dec  1 16:15:56 1992  Bill Cox  (bill@cygnus.com)
12069
12070         * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
12071         functions min, max, card.
12072
12073 Tue Dec  1 12:35:56 1992  Bill Cox  (bill@cygnus.com)
12074
12075         * ch-lex.l: fix char-type
12076
12077 Tue Dec  1 11:10:56 1992  Bill Cox  (bill@cygnus.com)
12078
12079         * ch-parse.y, ch-actions: added parsing and processing
12080         for upper, lower, and length built-ins.
12081
12082 Tue Dec  1 09:40:49 1992  Fred Fish  (fnf@cygnus.com)
12083
12084         * dwarf.h (LANG_CHILL):  Add as GNU extension.
12085         * dwarfout.c (output_compile_unit_die):  Test language_string and
12086         set LANG_CHILL if appropriate.
12087         * ch-parse.y (language_string):  New for chill.
12088         * chillrt:  Renamed directory chill to chillrt.
12089         * chill:  Renamed chillsh to chill.
12090         * Makefile.in:  Adjust for renamings.
12091         * chillrt/Makefile:  Adjust for directory renaming.
12092
12093 Mon Nov 30 17:35:33 1992  Fred Fish  (fnf@cygnus.com)
12094
12095         * chillsh:  New script frontend (ala g++), installed as "chill".
12096         Can't be called "chill.sh" because make tries to cat it into the
12097         "chill" directory.  Can't be called just "chill" cause that's
12098         already there as a directory.
12099         * Makefile.in:  Add rules to install chillsh as "chill".
12100         * chill/libchill.c:  Temporarily ifdef out stuff that wants
12101         to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
12102         which itself causes linkage to fail.
12103
12104 Mon Nov 30 16:28:19 1992  Bill Cox  (bill@cygnus.com)
12105
12106         * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
12107         conversion routines.
12108         * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
12109         Added production for SIZE(expr).
12110         * ch-actions.c: Add semantic routine chill_sizeof ().
12111
12112 Mon Nov 30 16:20:40 1992  Per Bothner  (bothner@cygnus.com)
12113
12114         * ch-lex.l, ch-parse.y:  Translate token PFEIL into English ARROW.
12115         * ch-parse.y (op6):  Remove handling of string repetition operator,
12116         until we can figure out a way to parse it correctly.
12117         * ch-parse.y (optmodename):  New non-terminal.
12118         * ch-parse.y (tuple):  Merge the two variants using optmodename.
12119         * ch-parse.y (location):  Add semantic actions for
12120         dereferencing operator ->.
12121
12122 Mon Nov 30 08:01:29 1992  Bill Cox  (bill@cygnus.com)
12123
12124         * ch-actions.c: removed compile warning, better code for abs.
12125
12126         * ch-parse.y: add productions for builtin functions succ, pred,
12127         abs, and size.  Add %tokens also.  Sort %tokens alphabetically.
12128
12129         * ch-lex.l: add parsing for builtin function names, such as abs,
12130         pred, succ, etc.  Put flex -a option into Makefile.in, so we can
12131         clean up the lexer soon.
12132
12133 Tue Nov 24 14:18:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
12134
12135         * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
12136         New functions, for code common to CASE actions and expressions.
12137         * chill.y:  Replace some code by calls to chill_handle_case_label
12138         and chill_handle_case_default.
12139         * ch-typeck.c (chill_expand_case_expr):  Add semantics.
12140
12141         * tree.c:  Change doing_chill_thang from extern to common.
12142
12143 Mon Nov 23 18:34:22 1992  Per Bothner  (bothner@rtl.cygnus.com)
12144
12145         * ch-tree.def:  New CASE_EXPR type, for case expressions.
12146         * ch-expr.c (chill_expand_expr):  Hook for CASE_EXPR.
12147         * ch-typeck.c (chill_expand_case_expr):  New function.
12148         Placeholder to implement case expressions.
12149         * ch-typeck.c (chill_expand_result, chill_expand_return):
12150         Handle mode-unspecified tuples and case expressions in
12151         the context of RETURN and RESULT actions.
12152         * chill.y (assignaction):  Handle case expressions in the
12153         context of the RHS of an assignment action.
12154         * chill.y (caseaction): Remove spurious duplicate OF in grammar.
12155         * chill.y:  Handle labeled structure tuples.
12156         * chill.y:  New rules to parse CASE expressions.
12157         * tree.c (build_function_types):  Allow Chill functions
12158         to return arrays and functions.
12159
12160 Wed Nov 18 13:50:28 1992  Per Bothner  (bothner@rtl.cygnus.com)
12161
12162         * ch-typeck.c (chill_expand_tuple):  New function. Expand a
12163         tuple (constructor) given an expected (context) type.
12164         * chill.y:  Implement 'LHS := TUPLE' using expand_chill_tuple,
12165         using the mode of the LHS and the expected type of the TUPLE.
12166         * chill.y:  Implement initialization.
12167         * chill.y:  Fix some syntax bugs (forbidlist must be surrounded
12168         by parentheses), and remove or note ambiguities.
12169         * chill.y:  Started converting layout style to be like c-parse.in.
12170         * chill.y:  Implement IF expressions.
12171         * chill.y:  Added syntax rules for tuples.  Labelled and unlabelled
12172         array tuples should now work (in some contexts).
12173         * ch-actions.c:  Initialize doing_chill_thang to 1.
12174         * ch-decl.c (do_decls):  Set DECL_INITIAL if there is an
12175         initializer, to make pushdecl and finish_decl work.
12176         * c-decl.c (convert_for_assignment):  If Chill, don't convert
12177         function and arrays into pointers.  (Maybe functions should
12178         still be converted?)
12179         * c-typeck.c (grokdeclarator):  Allow functions in Chill
12180         to return arrays and functions.
12181
12182 Mon Nov 16 15:40:47 1992  Per Bothner  (bothner@rtl.cygnus.com)
12183
12184         * chill.y (exprlist_get_single):  New function, used when
12185         parsing tuples.
12186         * chill.y:  Re-did parsing of tuples to remove ambiguities.
12187         This was a bitch.
12188
12189 Tue Nov 10 16:30:55 1992  Per Bothner  (bothner@rtl.cygnus.com)
12190
12191         * ch-typeck.c (chill_expand_result);  Set TREE_SIDE_EFEFCTS
12192         flags on assignment to result.
12193         * ch-typeck.c (build_chill_array_ref):  Subtract lower
12194         bound of domain if non-zero.  Preliminary hook for range checking.
12195         * ch-tree.h, chill.l:  Combine variables range_check and
12196         range_check_disabled into global variable range_checking.
12197         * ch-tree.h:  Better definitions of CH_CLASS_IS_VALUE
12198         CH_CLASS_IS_DERIVED.
12199