* c-decl.c (grokdeclarator): Use ISO word.
[official-gcc.git] / gcc / ch / ChangeLog
blobc3641f45d019653f5cbfcc8ea86d7aa02b8b6476
1 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3         * actions.c: Remove leading capital from diagnostic messages, as
4         per GNU coding standards.
5         * decl.c: Similarly.
6         * expr.c: Similarly.
7         * inout.c: Similarly.
8         * lang.c: Similarly.
9         * loop.c: Similarly.
10         * nloop.c: Similarly.
11         * parse.c: Similarly.
12         * satisfy.c: Similarly.
13         * tasking.c: Similarly.
14         * tree.c: Similarly.
15         * typeck.c: Similarly.
17 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
19         * Make-lang.in (CHILL.generated-manpages): New dummy target.
21 2001-10-31  Joseph S. Myers  <jsm28@cam.ac.uk>
23         * ChangeLog, actions.c, ch-tree.def, decl.c, except.c, inout.c,
24         tasking.c, typeck.c: Fix spelling errors.
26 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
28         * convert.c, inout.c, loop.c, nloop.c, tasking.c, timing.c,
29         typeck.c: Use /* */ for all commentary, not #if 0 ... #endif.
30         Change the nested comments this creates to // notation.
31         Un-double apostrophes.
33 Sat Sep 22 09:15:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35         * Make-lang.in (cc1chill): Add attribs.o.
37 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39         * tree.c (TYPE_HASH): Moved to ../tree.h.
41 2001-08-11  Zack Weinberg  <zackw@panix.com>
43         * lex.c: Don't include setjmp.h.
45 2001-08-09  Richard Henderson  <rth@redhat.com>
47         * grant.c (chill_finish_compile): Use target hooks instead of
48         assemble_constructor.
50 2001-08-06  Richard Henderson  <rth@redhat.com>
52         * grant.c (chill_finish_compile): Pass a symbol_ref and priority
53         to assemble_constructor.
55 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
57         * Makefile.in (lex.o): No dependence on dwarfout.h.
58         * lex.c: Don't include dwarfout.h.
60 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
62         * ch-tree.h: Remove prototype for combine_parm_decls, unused
63         function.
65 2001-06-28  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
67         * lang.c: #include diagnostic.h
68         (chill_print_error_function): Add a dummy `diagnostic_context *'.
69         * Makefile.in (lang.o): Depend on diagnostic.h
71 2001-06-10  Gabriel Dos Reis  <gdr@codesourcery.com>
73         * decl.c: #include diagnostic.h
74         * actions.c: #include diagnostic.h
75         * Makefile.in (actions.o): Depend on diagnostic.h
76         (decl.o): Depend on diagnostic.h
78 2001-06-02  Joseph S. Myers  <jsm28@cam.ac.uk>
80         * chill.texi: Move contents to just after title page.
82 2001-05-23  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
84         * Make-lang.in (dvi): Use ch/chill.dvi not chill.dvi.
85         (ch/chill.dvi): Use TEXI2DVI instead of custom tex calls.  Create
86         the dvi file in the ch directory.
88 2001-05-26  Zack Weinberg  <zackw@stanford.edu>
90         * configure: Remove obsolete file.
92 2001-05-25  Sam TH  <sam@uchicago.edu>
94         * ch-tree.h tasking.h: Fix header include guards.
96 2001-05-20  Joseph S. Myers  <jsm28@cam.ac.uk>
98         * Make-lang.in (chill.dvi): Remove bogus dependencies.  Don't cd
99         to ch; include both $(srcdir)/ch and $(srcdir) in TEXINPUTS.
100         Don't move chill.dvi after creating it.  Fixes PR other/567 and
101         PR other/1018.
103 Fri Feb 23 15:28:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
105         * decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
107 2001-02-15  Jim Meyering  <meyering@lucent.com>
109         * Make-lang.in (CHILL.install-common): Depend on `installdirs'.
110         (CHILL.install-info): Likewise.
112 Sun Feb  4 15:52:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
114         * convert.c (convert): Call abort instead of fatal.
115         * except.c (pop_handler, chill_check_no_handlers): Likewise.
116         * expr.c (chill_expand_expr): Likewise.
117         * parse.c (peek_token_, pushback_token, require): Likewise.
118         * grant.c (write_grant_file): Call fatal_io_error instead of
119         pfatal_with_name.
120         * lex.c (init_parse, same_file, yywrap): Likewise.
121         * lang.c (GNU_xref_begin, GNU_xref_end): Deleted.
122         * lex.c (convert_bitstring): Delete check for alloca failure.
124 2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
126         * ch-tree.h (integer_minus_one_node): Moved to top level gcc
127         directory.
129         * decl.c (integer_minus_one_node): Likewise.
130         (init_decl_processing): Don't set integer_minus_one_node.
132 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
134         * Makefile.in: Remove all dependencies on defaults.h.
135         * decl.c: Don't include defaults.h.
136         * timing.c: Likewise.
138 2000-12-08  Joseph S. Myers  <jsm28@cam.ac.uk>
140         * Make-lang.in (CHILL.info): Depend on info files in source
141         directory.
142         (ch/chill.info): Build info files in source directory.
143         (CHILL.install-info): Install info files from source directory.
145 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
147         * lex.c: Don't bother checking whether ISUPPER(c) before
148         calling TOLOWER(c).  Don't bother checking whether isascii(c)
149         before testing ISSPACE(c); ISSPACE(c) includes '\n'.
151 2000-12-06  Rodney Brown  <RodneyBrown@mynd.com>
153         * actions.h: Standarize copyright statement.
154         * except.c inout.c lang.c lex.c lex.h loop.c nloop.c: Likewise.
155         * parse.c tasking.c tasking.h timing.c xtypeck.c: Likewise.
157 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
159         * actions.c (check_missing_cases), typeck.c (build_chill_slice,
160         build_chill_cast): Use memset () instead of bzero ().
162 2000-11-05  Joseph S. Myers  <jsm28@cam.ac.uk>
164         * Make-lang.in (CHILL.distdir): Remove.
166 2000-11-02  Geoffrey Keating  <geoffk@cygnus.com>
168         * Make-lang.in: Remove 'CYGNUS LOCAL' markers.
169         * Makefile.in: Likewise.
170         * configure: Likewise.
172 2000-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
174         * Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for
175         updated gperf.
177 2000-10-05  Richard Henderson  <rth@cygnus.com>
179         * decl.c (finish_chill_function): Don't init can_reach_end.
181 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
183         * decl.c, timing.c: Include defaults.h if not already included.
184         Don't define the *_TYPE_SIZE macros.
185         * Makefile.in: Update dependencies.
187 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
189         * inout.c (add_enum_to_list): Use DECL_NAME directly, don't get
190         its IDENTIFIER_POINTER and immediately call get_identifier on it.
191         * lex.c (yywrap): Constify a char *.
193 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
195         * Make-lang.in (cc1chill): Don't depend on c-iterate.o.
197 2000-08-21  Nix  <nix@esperi.demon.co.uk>
199         * lang-specs.h: Do not process -o or run the assembler if
200         -fsyntax-only.
202 2000-08-07  Kazu Hirata  <kazu@hxi.com>
204         * decl.c: Fix a comment typo.
206 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
208         * Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
209         * Makefile.in (cc1chill): Link with $(BACKEND).  Define BACKEND,
210         eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
212 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
214         * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
216 Mon Jul 31 07:58:31 2000  Casper Dik <Casper.Dik@holland.sun.com>
218         * Makefile.in: Remove naked "^L".
220 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
222         * lang-specs.h: Use the new named specs.  Remove unnecessary braces.
224 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
226         * decl.c (init_decl_processing): Set TYPE_USER_ALIGN.
227         (layout_enum): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
228         * typeck.c (layout_chill_range_type): Set TYPE_USER_ALIGN.
229         (apply_chill_field_layout): Set DECL_USER_ALIGN.
230         (layout_chill_struct_type): Set TYPE_USER_ALIGN.
232 Tue Jun 13 15:30:46 2000  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
234         * Make-lang.in (CHILL.install-common): Use $(INSTALL_SCRIPT), not
235         $(INSTALL_PROGRAM) for chill.install.
237 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
239         * Makefile.in (EXPR_H): New dependency variable.
240         (actions.o, expr.o): Use EXPR_H.
241         (lang.o): Depend on RTL_H and EXPR_H.
243         * lang.c: Include rtl.h and expr.h.
244         (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.
246 2000-06-04  Philipp Thomas  <pthomas@suse.de>
248         * Makefile.in(INTLLIBS): New macro.
249         (LIBS): Add INTLLIBS.
250         (DEPLIBS): Likewise.
251         * config-lang(outputs): Specify ch/Makefile.
253 Sat Jun  3 15:31:07 2000  Jeffrey A Law  (law@cygnus.com)
255         * chill.texi (INFO-DIR-ENTRY): Fix chill entry.
257 2000-06-02  Richard Henderson  <rth@cygnus.com>
259         * lang.c (lang_get_alias_set): New.
261 Sat May 27 11:24:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
263         * lang.c (deep_const_expr): Use first_rtl_op.
264         * satisfy.c (satisfy): Use TREE_CODE_LENGTH.
266 2000-05-18  Chris Demetriou  <cgd@netbsd.org>
268         * Makefile.in (hash.h): Delete a redundant use of gawk and sed.
270 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
272         * decl.c (c_decode_option): Update -Wall unused flags by
273         calling set_Wunused.
274         (poplevel): Replace warn_unused with warn_unused_label.
276 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
278         * ch-tree.h: Update prototypes.  Remove prototypes for
279         functions declared elsewhere.
280         * decl.c (define_label): Constify filename parameter.
281         * grant.c (globalize_decl, set_default_grant_file): Constify
282         local char * variables.  Don't declare
283         first_global_object_name or asm_out_file.
284         * lang.c (chill_real_input_filename): Constify.
285         * lex.c (init_parse): Constify parameter and return value.
286         * parse.c: Don't declare input_filename.
287         (ch_expand_asm_operands): Constify filename parameter.
288         (parse_multi_dimension_case_action): Constify local char *.
289         * satisfy.c (safe_satisfy_decl): Constify local char *.
291 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
293         * ch-tree.h (init_function_start): Constify.
295 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
297         * ch/lex.c: Remove references to cccp.c.
299 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
301         * lang-specs.h: Pass -fno-show-column to the preprocessor.
303 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
305         * expr.c (chill_expand_expr): Pass bit alignment to emit_block_move.
307 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
309         * actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT.
310         * typeck.c (expand_constant_to_buffer): Use int_byte_position.
311         (extract_constant_from_buffer): Likewise.
313 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
315         * typeck.c (min_precision): New function.
316         (build_chill_slice): Use host_integerp and tree_low_cst.
317         (expand_constant_to_buffer): Likewise and also int_bit_position.
318         LO is unsigned HOST_WIDE_INT
319         (build_chill_array_ref_1): Make `i' be HOST_WIDE_INT; use tree_low_cst.
320         (extract_constant_from_buffer): Sizes are now HOST_WIDE_INT.
321         Use host_integerp and tree_low_cst.
322         (build_chill_bin_type): Use host_integerp and tree_low_cst.
323         (layout_chill_range_type): Use tree_int_cst_sgn, compare_tree_int,
324         tree_low_cst, and min_precision.
325         (apply_chill_array_layout): Cleanups for types of variables
326         and use tree_int_cst_sgn, compare_tree_int, and tree_low_cst.
327         (apply_chill_field_layout): Likewise.
329 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
331         * grant.c (globalize_decl): Constify a char*.
333 Mon Mar  6 17:52:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
335         * actions.c (chill_convert_for_assignment): INDEX is unsigned
336         HOST_WIDE_INT.
337         * ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH since unsigned.
338         * except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
339         Use compare_tree_int.
340         (expand_goto_except_cleanup): Likewise.
342 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
344         * decl.c (current_function_decl): Move to toplev.c.
346 Mon Feb 28 08:12:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
348         * ch-tree.h (DECL_ACTION_NESTING_LEVEL): Use new tree union name.
349         * decl.c (finish_struct): Don't clear DECL_FIELD_SIZE.
350         * typeck.c (make_chill_struct_type): Likewise.
351         (apply_decl_field_layout): General cleanup.
352         Set DECL_SIZE instead of DECL_FIELD_SIZE.
354 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
356         * actions.c (chill_convert_for_assignment): Don't use size_binop
357         for things that aren't sizes.
358         (expand_varying_length_assignment): Likewise.
359         * convert.c (digest_array_tuple, convert): Likewise.
360         * typeck.c (build_chill_slice, smash_dummy_type): Likewise.
361         (build_chill_slice_with_range): Likewise.
362         (build_chill_slice_with_length): Likewise.
363         (build_array_from_set): Adjust types for size_binop.
364         * expr.c (build_concat_expr, build_chill_repetition_op): Likewise.
365         (build_chill_sizeof): Use TYPE_SIZE_UNIT.
366         * tree.c (build_string_type): Pass proper type to size_binop.
368 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
370         * decl.c (layout_enum): Set DECL_SIZE_UNIT.
371         * satisfy.c (safe_satisfy_decl): Likewise.
373 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
375         * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
377 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
379         * grant.c: Don't declare `version_string'.
381 2000-02-11  Nathan Sidwell  <nathan@acm.org>
383         * decl.c (init_decl_processing): Remove duplicate decl of
384         set_alignment.
386 2000-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
388         * expr.c (compare_records): Delete maximum_field_alignment declaration.
389         * inout.c (inout_init): Likewise.
390         (build_chill_gettextaccess): Likewise.
391         (build_enum_tables): Likewise.
392         * lang.c: Likewise.
393         * satisfy.c (satisfy): Likewise.
394         * tasking.c (build_tasking_struct): Likewise.
395         (build_tasking_message_type): Likewise.
396         * typeck.c (build_init_struct): Likewise.
398         * except.c (emit_setup_handler): Make save_maximum_field_alignment
399         unsigned int to match maximum_field_alignment.
400         * inout.c (inout_init): Likewise.
401         (build_chill_gettextaccess): Likewise.
402         (build_enum_tables): Likewise.
403         * tasking.c (build_tasking_struct): Likewise.
404         (build_tasking_message_type): Likewise.
405         * typeck.c (build_init_struct): Likewise.
407 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
409         * except.c (maximum_field_alignment): Remove duplicate declaration.
411 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
413         * All files: PROTO -> PARAMS.
415 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
417         * lex.c: Include tm_p.h.
419 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
421         * actions.c (update_else_range_for_int_const): Initialize
422         variables `lowval' and `highval'.
423         (update_else_range_for_range): Likewise for `low_range_val' and
424         `high_range_val'.
426 1999-12-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
428         * typeck.c (apply_chill_array_layout, apply_chill_field_layout):
429         Avoid the use of ANSI string concatenation.
431         * expr.c (chill_expand_case_expr): Likewise.
433 1999-11-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
435         * expr.c (build_chill_function_call): Don't call a variadic
436         function with a non-literal format string.
438         * grant.c (write_spec_module): Likewise.
440         * parse.c (require, expect): Likewise.
442         * tasking.c (get_struct_type_name, get_struct_debug_type_name,
443         get_tasking_code_name, get_struct_variable_name,
444         get_process_wrapper_name, build_start_process): Likewise.
446         * typeck.c (valid_array_index_p): Likewise.
448 Sun Oct 31 22:33:33 1999  Jeffrey A Law  (law@cygnus.com)
450         * Makefile.in (convert.o, typeck.o): Depend on output.h
451         * convert.c: Include output.h.
452         * typeck.c: Include output.h.
453         (initializer_constant_valid_p): Delete fucntion.
454         * ch-tree.h (initializer_constant_valid_p): Delete prototype.
456 1999-10-26  Mark Mitchell  <mark@codesourcery.com>
458         * ch-tree.h (remember_end_note): Remove prototype.
459         * decl.c (poplevel): Don't call remember_end_note.
461 Fri Sep 24 10:48:10 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
463         * ch-tree.h (builtin_function): Don't declare.
464         * decl.c (builtin_function): New arg CLASS.  Arg FUNCTION_CODE now of
465         type int.  All callers changed.
466         Set the builtin's DECL_BUILT_IN_CLASS.
468 1999-09-20  Nick Clifton  <nickc@cygnus.com>
470         * lang.c (lang_decode_option): Extend comment.
472 1999-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
474         * lex.c (maybe_downcase, getlc, handle_generic_pragma,
475         check_newline): Use uppercase ctype macro from system.h.
477 1999-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
479         * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
481 Fri Sep 10 10:32:32 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
483         * ch-tree.h: Delete declarations for all tree nodes now moved to
484         global_trees.
485         * expr.c: Likewise.
486         * typeck.c: Likewise.
487         * decl.c: Delete their definitions.
488         (init_decl_processing): Call build_common_tree_nodes and
489         build_common_tree_nodes_2 instead of building their nodes here.
490         Use set_sizetype instead of assigning sizetype.
492 1999-09-08  Bruce Korb  autogen@linuxbox.com
494         * Makefile.in: Give the gperf user a hint about why "gperf -F" fails.
496 Tue Sep  7 15:59:56 1999  Dave Brolley  <brolley@cygnus.com>
498         * parse.h: Undefine DELAY if it's defined.
499         (PACK,NOPACK,POS): Remove erroneous comments regarding these tokens.
500         Also, move them to their proper place alphabetically.
502 1999-09-04  Mark Mitchell  <mark@codesourcery.com>
504         * Make-lang.in (cc1chill): Depend on ggc-callbacks.o.
505         * Makefile.in (CHILL_OBJS): Add ggc-callbacks.o.
507 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
509         * parse.c (language_string): Constify.
511 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
513         * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
514         Remove hacks for stuff which now comes from libiberty.
516 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
518         * lang.c (chill_print_error_function): Constify a char*.
520 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
522         * Makefile.in (ch-version.c): Constify a char*.
524         * actions.c (id_cmp, warn_unhandled, adjust_return_value,
525         update_else_range_for_int_const, update_else_range_for_range,
526         update_else_range_for_range_expr, update_else_range_for_type,
527         compute_else_range, check_case_value,
528         chill_handle_case_label_range,
529         chill_handle_multi_case_label_range,
530         chill_handle_multi_case_else_label, chill_handle_multi_case_label,
531         chill_handle_multi_case_label_list print_missing_cases): Add
532         static prototypes.
533         (build_exception_variant): Cast the function argument of qsort.
534         (build_rts_call, warn_unhandled, chill_convert_for_assignment,
535         adjust_return_value, chill_expand_result,
536         build_multi_case_selector_expression, print_missing_cases):
537         Constify a char*.
538         (print_missing_cases): Introduce an intermediary non-const ptr.
539         Add brackets and indent.
541         * ch-tree.h (maybe_building_objc_message_expr,
542         maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
543         (push_handler, pop_handler): Add prototypes.
544         (builtin_function, valid_array_index_p,
545         build_chill_exception_decl, build_rts_call,
546         chill_convert_for_assignment, display_int_cst,
547         build_chill_addr_expr, check_have_mode, get_identifier3,
548         build_chill_string, register_seize_path, get_unique_identifier,
549         add_taskstuff_to_list, gnuchill_version): Constify a char*.
550         (finish_chill_function): Add void prototype argument.
552         * convert.c (convert_to_reference, convert_to_boolean,
553         convert_to_char, base_type_size_in_bytes, remove_tree_element,
554         check_ps_range, digest_powerset_tuple, digest_structure_tuple,
555         digest_array_tuple, convert1): Add static prototypes.
556         (base_type_size_in_bytes): Hide unused function.
557         (display_int_cst, digest_array_tuple): Constify a char*.
559         * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
560         proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
561         build_implied_names, bind_sub_modules, layout_array_type,
562         do_based_decl, handle_one_level, label_value_cmp,
563         find_implied_types): Add static prototypes.
564         (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
565         Constify a char*.
566         (layout_chill_variants): Cast the function argument of qsort.
567         (start_chill_function, fix_identifier, init_decl_processing):
568         Constify a char*.
569         (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
570         Use xcalloc instead of xmalloc/bzero.
571         (builtin_function, build_chill_exception_decl,
572         finish_outer_function): Constify a char*.
574         * except.c (start_handler_array, finish_handler_array): Add static
575         prototypes.
577         * expr.c (chill_expand_expr, chill_expand_case_expr,
578         check_arglist_length, internal_build_compound_expr,
579         is_really_instance, invalid_operand, invalid_right_operand,
580         build_chill_abstime, build_allocate_memory_call,
581         build_allocate_global_memory_call, build_return_memory,
582         build_chill_duration, build_chill_floatcall,
583         build_allocate_getstack, build_chill_allocate,
584         build_chill_getstack, build_chill_terminate, build_chill_inttime,
585         build_chill_lower_or_upper, build_max_min,
586         build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
587         build_compare_set_expr, scalar_to_string, build_concat_expr,
588         build_compare_string_expr, compare_records, string_char_rep,
589         build_boring_bitstring): Add static prototypes.
590         (check_have_mode, chill_expand_expr, build_chill_floatcall,
591         build_allocate_getstack, build_max_min, build_chill_function_call,
592         expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
593         string_char_rep): Constify a char*.
595         * gperf (hash, in_word_set): Add prototypes.
597         * grant.c (newstring, strfree, append, prepend,
598         grant_use_seizefile, decode_layout, grant_array_type,
599         grant_array_type_selective, get_tag_value,
600         get_tag_value_selective, print_enumeral, print_enumeral_selective,
601         print_integer_type, find_enum_parent, print_integer_selective,
602         print_struct, print_struct_selective, print_proc_exceptions,
603         print_proc_tail, print_proc_tail_selective, find_in_decls,
604         in_ridpointers, grant_seized_identifier, globalize_decl,
605         grant_one_decl_selective, compare_memory_file, search_in_list,
606         really_grant_this): Add static prototypes.
607         (newstring, append, prepend, grant_use_seizefile,
608         print_integer_type, decode_constant, grant_one_decl_selective,
609         header_template): Constify a char *.
611         * inout.c (add_enum_to_list, build_chill_io_list_type,
612         build_io_types, declare_predefined_file, build_access_part,
613         textlocation_mode, check_assoc, assoc_call, check_transfer,
614         connect_process_optionals, connect_text, connect_access,
615         check_access, check_text, get_final_type_and_range,
616         process_io_list, check_format_string, get_max_size,
617         check_exprlist): Add static prototypes.
618         (declare_predefined_file, check_assoc, assoc_call, check_transfer,
619         check_access, check_text, process_io_list): Constify a char*.
621         * lang.c (deep_const_expr, chill_print_error_function): Add static
622         prototypes.
624         * lex.c (close_input_file, maybe_number, string_or_char): Constify
625         a char*.
626         (ch_lex_init, skip_directive, same_file, getlc, yywrap,
627         yy_refill): Add static prototypes.
628         (build_chill_string, same_file, register_seize_path): Constify a
629         char*.
631         * lex.h (finish_chill_seizes): Remove unused prototypes.
633         * loop.c (build_temporary_variable, maybe_make_for_temp,
634         get_unique_identifier): Constify a char*.
636         * parse.c (ch_parse_init, check_end_label, end_function,
637         build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
638         forward_token_, require, check_token, expect, define__PROCNAME__):
639         Add static prototypes.
640         (build_prefix_clause, expect): Constify a char*.
641         (parse_expression, parse_primval, parse_untyped_expr,
642         parse_opt_untyped_expr, parse_opt_actions): Add void prototype
643         argument.
644         (parse_opt_name_string, parse_simple_name_string,
645         parse_name_string, parse_defining_occurrence, parse_name,
646         parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
647         parse_spec_module, parse_semi_colon,
648         parse_defining_occurrence_list, parse_mode_definition,
649         parse_mode_definition_statement, parse_synonym_definition,
650         parse_synonym_definition_statement, parse_on_exception_list,
651         parse_on_alternatives, parse_loc_declaration,
652         parse_declaration_statement, parse_optforbid, parse_postfix,
653         parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
654         parse_grant_statement, parse_seize_statement,
655         parse_param_name_list, parse_param_attr, parse_formpar,
656         parse_formparlist, parse_opt_result_spec, parse_opt_except,
657         parse_opt_recursive, parse_procedureattr, parse_proc_body,
658         parse_procedure_definition, parse_processpar,
659         parse_processparlist, parse_process_definition,
660         parse_signal_definition, parse_signal_definition_statement,
661         parse_then_clause, parse_opt_else_clause, parse_expr_list,
662         parse_range_list_clause, pushback_paren_expr, parse_case_label,
663         parse_case_label_list, parse_case_label_specification,
664         parse_single_dimension_case_action,
665         parse_multi_dimension_case_action, parse_case_action,
666         parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
667         parse_asm_action, parse_begin_end_block, parse_if_action,
668         parse_iteration, parse_delay_case_event_list,
669         parse_delay_case_action, parse_do_action, parse_receive_spec,
670         parse_receive_case_action, parse_send_action, parse_start_action,
671         parse_call, parse_tuple_fieldname_list, parse_tuple_element,
672         parse_opt_element_list, parse_tuple, parse_operand6,
673         parse_operand5, parse_operand4, parse_operand3, parse_operand2,
674         parse_operand1, parse_operand0, parse_case_expression,
675         parse_then_alternative, parse_else_alternative,
676         parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
677         parse_step, parse_opt_layout, parse_field_name_list,
678         parse_fixed_field, parse_variant_field_list,
679         parse_variant_alternative, parse_field, parse_structure_mode,
680         parse_opt_queue_size, parse_procedure_mode, parse_program,
681         parse_pass_1_2): Add static prototypes.
682         (parse_process_definition): Remove extra argument in function call.
683         (parse_range_list_clause): Likewise.
685         * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
686         satisfy_list, satisfy_list_values): Add static prototype.
687         (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
689         * tasking.c (make_process_struct): Remove unused prototype.
690         (validate_process_parameters, get_struct_variable_name,
691         decl_tasking_code_variable, get_struct_debug_type_name,
692         get_process_wrapper_name, build_tasking_enum,
693         build_tasking_message_type, build_receive_signal_case_label,
694         build_receive_buffer_case_label, build_receive_buffer_case_end,
695         build_receive_signal_case_end): Add static prototypes.
696         (struct_name, struct_debug_name, data_name, wrapper_name,
697         get_struct_type_name, get_struct_debug_type_name,
698         get_tasking_code_name, get_struct_variable_name,
699         get_process_wrapper_name): Constify a char*.
700         (validate_process_parameters, get_struct_variable_name,
701         decl_tasking_code_variable): Hide unused functions.
702         (build_start_process, add_taskstuff_to_list, build_queue_length):
703         Constify a char*.
705         * tree.c (make_powerset_type): Add static prototype.
706         (get_identifier3, build_alias_decl, decl_check_rename): Constify a
707         char*.
709         * typeck.c (extract_constant_from_buffer,
710         expand_constant_to_buffer, build_empty_string,
711         make_chill_pointer_type, make_chill_range_type,
712         apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
713         apply_chill_field_layout): Add static prototype.
714         (valid_array_index_p, extract_constant_from_buffer,
715         chill_expand_tuple): Constify a char*.
716         (layout_chill_struct_type): Cast the function argument of qsort.
718 1999-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
720         * actions.c (lang_identify): Constify a char*.
722         * lang.c (chill_print_error_function): Likewise.
723         (lang_init): Remove redundant prototype for `print_error_function'.
725 1999-07-25  Richard Henderson  <rth@cygnus.com>
727         * decl.c (va_list_type_node): New.
729 1999-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
731         * Make-lang.in (CHILL.stage1): Depend on stage1-start.
732         (CHILL.stage2): Likewise for stage2-start.
733         (CHILL.stage3): Likewise for stage3-start.
734         (CHILL.stage4): Likewise for stage4-start.
736 Tue May 18 00:21:34 1999  Zack Weinberg  <zack@rabi.phys.columbia.edu>
738         * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
739         was not given.
741 1999-05-10 18:21 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
743         * lang-specs.h: Pass -$ to the preprocessor.
745 Tue May  4 14:52:53 1999  Dave Brolley  <brolley@cygnus.com>
747         * actions.c (chill_expand_assignment): Use powersetlen to calculate the
748         length of an array of packed bits.
750 Tue Apr 20 23:37:01 1999   Nathan Sidwell  <nathan@acm.org>
752         * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
753         order.
755 Wed Apr 14 21:07:30 1999  Mumit Khan  <khan@xraylith.wisc.edu>
757         * config-lang.in (compilers): Add exeext.
758         (stagestuff): Likewise.
760 Fri Apr  2 15:49:44 1999  Jeffrey A Law  (law@cygnus.com)
762         * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
764 Wed Mar 31 10:44:47 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
766         * Makefile.in (hash.h): Generate using gperf language 'C', not
767         'KR-C', so gperf uses the `const' keyword on strings.
769         * gperf (resword): Const-ify a char*.
771 Sun Mar 28 00:30:36 1999  Jeffrey A Law  (law@cygnus.com)
773         * Make-lang.in (CHILL.dvi): New target.
774         (CHILL.mostlyclean): Remove remnants of old runtime library structure.
776 1999-02-20  Craig Burley  <craig@jcb-sc.com>
778         * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
779         target instead of the chill.texi file.
780         (ch/chill.info): New target, depends on the chill.texi source file.
781         Its command writes ch/chill.info instead of chill.info.
782         (CHILL.install-info): Install from ch/chill.info instead of
783         chill.info.
784         If any ch/chill.info* files exist, delete *all* chill.info* files
785         in $infodir first, not just the ones corresponding to the
786         files to be installed (just in case the docs get smaller).
788 Sun Jan 31 20:34:29 1999  Zack Weinberg  <zack@rabi.columbia.edu>
790         * decl2.c: Don't define flag_no_ident here.  Don't process
791         -f(no-)ident here.
792         * ch-tree.h: Don't declare flag_no_ident here.
793         * lang-specs.h: Map -Qn to -fno-ident.
795 Tue Jan 19 23:24:36 1999  Jeffrey A Law  (law@cygnus.com)
797         * Makefile.in (typeck.o): Depend on insn-codes.h.
798         * actions.c (chill_handle_multi_case_label): Initialize "expr".
799         * decl.c (poplevel): Initialize "block_previously_created".
800         * expr.c (chill_expand_expr): Initialize "size0" and "size1".
801         (fold_set_expr): Initialize "buffer1".
802         * inout.c (process_io_list): Initialize "to_assign".
803         (check_exprlist): Initialize "result".
804         * parse.c (expand_expr): Declare.
805         (parse_multi_dimension_case_action): Initialize "end_case_label".
806         * tasking.c (build_start_process): Initialize "struct_type_node".
807         * typeck.c (apply_chill_field_layout): Initialize "word".
808         (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
809         signed/unsigned comparison warning.
811 Mon Jan 18 11:55:06 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
813         * ch-tree.h: Remove conflicting prototypes for pedwarn,
814         warning_with_decl, and make_dcl_rtl.
816 Sun Jan 17 21:53:23 1999  Jeffrey A Law  (law@cygnus.com)
818         * Makefile.in: Do not put ^Ls at the start of a line.
820 Wed Jan  6 02:53:38 1999  Jeffrey A Law  (law@cygnus.com)
822         * Makefile.in: Add some missing $(exeext).  Remove some obsolete
823         runtime stuff.
824         * Make-lang.in: Similarly.
826 Tue Nov 24 09:57:34 1998  Jeffrey A Law  (law@cygnus.com)
828         * Makefile.in (lex.c): Do not depend on hash.h.
829         (lex.o): Depend on hash.h.
831 Mon Oct 19 12:13:47 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
833         * Makefile.in (lex.o): Depend on dwarfout.h.
835         * lang-specs.h: Add missing braces in initializer.
837         * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
839 Thu Oct 15 09:25:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
841         * expr.c (build_chill_card): Use &&, not &, when comparing truth
842         values.
844         * parse.c (parse_spec_module): Remove unused variable
845         `module_name', but preserve function call from initialization.
846         (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
848         * inout.c (init_text_location): Remove unused variable `textlength'.
850 Wed Oct 14 22:19:48 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
852         * typeck.c (build_chill_cast): Fix typo in assignment statement.
854         * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
855         when printing a `tree'.
857 Fri Oct  9 13:01:23 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
859         * ch-tree.h (build_delay_case_end): Remove unused parameter.
860         (build_receive_case_end): Likewise.
861         (check_queue_size): Likewise.
863         * parse.c: Callers changed.
865         * satisfy.c: Likewise.
867         * tasking.c (build_receive_buffer_case_end): Remove unused
868         parameter `label_cnt'.
869         (build_receive_signal_case_end): Likewise.
870         (build_receive_case_end): Likewise.
871         (build_delay_case_end): Likewise.
872         (check_queue_size): Likewise for parameter `type'.
873         All callers changed.
875 Thu Oct  8 05:57:41 1998  Jeffrey A Law  (law@cygnus.com)
877         * typeck (type_for_mode): Only return TItype nodes when
878         HOST_BITS_PER_WIDE_INT is >= 64 bits.
879         (type_for_size): Similarly.
880         * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
881         when HOST_BITS_PER_WIDE_INT is >= 64 bits.
882         (init_decl_processing): Only create TItype nodes when
883         HOST_BITS_PER_WIDE_INT is >= 64 bits.
885 Wed Oct  7 12:19:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
887         * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
888         (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
890 Thu Oct  1 10:43:45 1998  Nick Clifton  <nickc@cygnus.com>
892         * lex.c: Replace occurrences of HANDLE_SYSV_PRAGMA with
893         HANDLE_GENERIC_PRAGMAS.
894         (handle_generic_pragma): New function: Parse generic pragmas.
896 Wed Sep 30 20:22:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
898         * parse.c (emit_label): Fix return-type of prototype.
900 Wed Sep 30 19:41:36 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
902         * actions.c (chill_handle_multi_case_label): Always return a value
903         in function returning non-void.
905         * except.c: Include OS headers before any local ones.
907         * typeck.c (layout_chill_range_type): Change type of variable
908         `negprecision' to int.
909         (apply_chill_array_layout): Initialize variables `stepsize' and
910         `start_bit'.
911         (layout_chill_struct_type): Change type of variable `min_align' to
912         unsigned int.
913         (smash_dummy_type): Change name of variable `main' to `main_tree'.
915 Wed Sep 30 19:24:41 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
917         * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
918         ensure enough bits for calculation.
920         * ch-tree.h (check_text_length): Remove unused parameter.
922         * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
923         function sprintf into the appropriate type for printing.
925         * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
926         format specifier.
927         (print_mode): Likewise.
928         (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
930         * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
931         the format specifier.
933         * inout.c (check_text_length): Remove unused parameter `type'.
934         (build_chill_associate): Initialize variables `arg1', `arg2',
935         `arg3', `arg4' and `arg5'.
936         (build_chill_modify): Likewise.
937         (scanformcont): Change type of variable `curr' to `unsigned char'.
939         * lex.c (maybe_downcase): Cast the argument of `tolower' to
940         `unsigned char'.
942         * satisfy.c (satisfy): Remove unused parameter in call to
943         `check_text_length'.
945         * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
946         as a `long' in call to function `error'.
947         (decl_tasking_code_variable): Likewise.
949 Wed Sep 30 19:03:02 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
951         * grant.c (decode_decl_selective): Cast switch's enum argument to
952         an int.
953         (really_grant_this): Add default case in switch.
955         * typeck.c (chill_resulting_class): Add default cases in switch.
956         Also add `break' statements after each case.
958 Tue Sep 29 21:37:33 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
960         * ch-tree.h (build_compare_expr): Change first argument's type
961         from `enum chill_tree_code' to `enum tree_code'.
962         (build_compare_discrete_expr): Likewise.
964         * expr.c (build_compare_set_expr): Likewise.
965         (build_compare_string_expr): Likewise.
966         (build_compare_expr): Likewise.
967         (build_compare_discrete_expr): Likewise.  Also add default case in
968         switch statement.
969         (compare_int_csts): Add default case in switch statement.
971 Sun Sep 20 11:02:55 1998  Robert Lipe  <robertl@dgii.com>
973         * except.c: Include system.h.
975         * Makefile.in (except.o): Depend on system.h.
977 Sun Sep 20 09:25:13 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
979         * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
980         lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
981         typeck.o): Depend on system.h and toplev.h.
982         (except.o): Depend on toplev.h.
983         (grant.o): Depend on system.h, toplev.h and output.h.
985         * actions.c: Include system.h and toplev.h.  Remove redundant
986         prototypes.
987         (build_cause_exception): Add default case in switch.
988         (update_else_range_for_range): Add parentheses around && within ||.
989         (chill_handle_multi_case_label_list): Remove unused variable
990         `selector_value'.
991         (print_missing_cases): Reconcile format specifiers vs arguments in
992         calls to sprintf.
994         * ch-tree.h: Don't include stdio.h.  Wrap prototypes using FILE*
995         with macro BUFSIZ.  Add missing prototypes.
997         * convert.c: Include system.h and toplev.h.  Remove redundant
998         prototypes.
999         (convert): Remove unused variable `errstr'.
1001         * decl.c: Include system.h and toplev.h.  Remove redundant
1002         prototypes.
1003         (builtin_scope): Add missing initializers.
1004         (clear_scope): Likewise.
1005         (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
1006         (copy_lang_decl): Likewise for parameter `node'.
1007         (c_decode_option): Likewise for parameter `argc'.
1008         (push_extern_function): Likewise for parameter `granting'.
1009         (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
1010         (pushdecl): Remove unused variable `t'.
1011         (lookup_name_current_level): Make static and hide.
1012         (lookup_name_for_seizing): Make static.
1013         (finish_decl): Remove unused variable `type'.
1014         (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
1015         (complete_array_type): Mark parameters `type', `initial_value' and
1016         `do_default' with ATTRIBUTE_UNUSED.
1017         (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
1018         (start_enum): Likewise.
1019         (shadow_record_fields): Remove unused variables `type' and `parent'.
1021         * except.c: Include toplev.h.  Remove redundant prototypes.
1023         * expr.c: Include system.h and toplev.h.  Don't define NULL.
1024         Remove redundant prototypes.
1025         (internal_build_compound_expr): Mark parameter `first_p' with
1026         ATTRIBUTE_UNUSED.
1027         (build_allocate_getstack): Remove unused variable `init'.
1028         (build_chill_pred_or_succ): Likewise for variable `limit'.
1029         (varying_to_slice): Likewise for variable `doamin' [sic].
1030         (finish_chill_binary_op): Likewise for variables `code0' and
1031         `code1'.  Remove unused label `finish'.  Add explicit braces to
1032         avoid ambiguous `else'.
1033         (build_chill_addr_expr): Remove extra parameter in call to `error'.
1034         (build_chill_unary_op): Remove unused variables `class' and `type0'.
1035         (powersetlen): Remove unused variables `domain' and `temp'.
1037         * grant.c: Include system.h, toplev.h and output.h.  Don't handle
1038         strchr/strrchr.  Remove redundant prototypes.
1039         (decode_constant_selective): Remove unused variables `op' and `wrk'.
1040         (push_granted): Mark parameters `name' and `decl' with
1041         ATTRIBUTE_UNUSED.
1043         * inout.c: Include system.h and toplev.h.  Remove redundant
1044         prototypes.
1045         (textlocation_mode): Use &&, not &, when comparing two truth
1046         values.
1047         (scanformcont): Remove unused label `do_the_action'.
1049         * lang.c: Include system.h and toplev.h.  Remove redundant
1050         prototypes.
1051         (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
1052         (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
1053         (lang_print_xnode): Likewise for parameters `file', `node' and
1054         `indent'.
1055         (lang_decode_option): Explicitly declare `explicit_ignore_case'.
1056         (incomplete_type_error): Mark parameters `value' and `type' with
1057         ATTRIBUTE_UNUSED.
1059         * lex.c: Include system.h and toplev.h.  Remove redundant
1060         prototypes.  Don't handle strchr/strrchr.  Use CAPITALIZED
1061         versions of ctype macros from system.h.  Cast ctype arguments to
1062         unsigned char when necessary.
1063         (last_token, RETURN_TOKEN): Hide definition.
1064         (push_back): Remove unused function.
1065         (readstring): Change variable `i' to unsigned.
1066         (yywrap): Remove unused variable `node'.
1068         * loop.c: Include system.h and toplev.h.  Remove redundant
1069         prototypes.
1070         (chill_unsigned_type): Hide prototype and definition.
1071         (begin_loop_scope): Remove unused variable `firstp'.
1072         (nonvalue_begin_loop_scope): Likewise.
1074         * parse.c: Include system.h and toplev.h.  Remove redundant
1075         prototypes.
1076         (quasi_signal): Hide.
1077         (PEEK_TOKEN): Change return type to `enum terminal'.
1078         (parse_mode_definition_statement): Remove unused variable `names'.
1079         (parse_formpar): Remove unused parameter `in_spec_module'.  All
1080         callers changed.
1081         (parse_formparlist): Likewise.
1082         (parse_processpar): Remove unused variable `parms'.
1083         (parse_definition): Add explicit braces to avoid ambiguous `else'.
1084         (parse_multi_dimension_case_action): Initialize variable
1085         `begin_test_label'.  Remove unused variable `new_test'.
1086         (parse_case_action): Remove unused variable `caseaction_flag'.
1087         (parse_asm_clobbers): Remove unused variable `expr'.
1088         (parse_delay_case_action): Initialize variable `label_cnt'.
1089         (parse_action): Make function static.
1090         (parse_tuple_element): Remove unused variable `list'.
1091         (parse_primval): Add default case in switch.
1092         (parse_variant_alternative): Remove unused variables `x' and
1093         `variant_fields'.
1095         * satisfy.c: Include system.h and toplev.h.  Remove redundant
1096         prototypes.
1098         * tasking.c Include system.h and toplev.h.  Remove redundant
1099         prototypes.
1100         (data_name): Hide.
1101         (get_struct_variable_name): Likewise.
1102         (validate_process_parameters): Mark parameter `parms' with
1103         ATTRIBUTE_UNUSED.
1104         (build_start_process): Initialize variable `tuple'.
1105         (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
1107         * timing.c: Include system.h and toplev.h.
1108         (build_after_timeout_start): Remove unused variable `goto_where'.
1110         * tree.c: Include system.h and toplev.h.  Remove redundant
1111         prototypes.
1113         * typeck.c: Include system.h and toplev.h.  Remove redundant
1114         prototypes.
1115         (extract_constant_from_buffer): Make function static.  Add
1116         explicit braces to avoid ambiguous `else'.
1117         (expand_constant_to_buffer): Likewise.
1118         (build_chill_slice): remove unused variable `is_static'.
1119         (chill_compatible): Add explicit braces to avoid ambiguous `else'.
1120         (apply_chill_array_layout): Remove unused variable `offset'.
1121         (smash_dummy_type): Remove unused variable `save_lang_specific'.
1122         (initializer_constant_valid_p): Add default case in switch.
1124 Mon Sep 14 16:46:36 1998  Dave Brolley  <brolley@cygnus.com>
1126         * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
1127         domain type of the array.
1129         * expr.c (build_chill_function_call): Remove redundant call to
1130         chill_convert_to_assignment
1132 Thu Sep 10 17:52:36 1998  Dave Brolley  <brolley@cygnus.com>
1134         * actions.c (chill_convert_for_assignment): Make a copy of the result
1135         node before modifying it.
1137 Sat Sep  5 16:55:37 1998  John Carr  <jfc@mit.edu>
1139         * Make-lang.in: Comment ^L characters.  Sun make doesn't like them.
1141 Sat Sep  5 23:49:50 1998  Jeffrey A Law  (law@cygnus.com)
1143         * Makefile.in (INCLUDES): Update after recent reorganization at the
1144         toplevel gcc directory.
1146 Sat Sep  5 22:25:51 1998  Richard Henderson  <rth@cygnus.com>
1148         * Makefile.in: Update dependencies for top-level gcc files that moved.
1150 Sat Sep  5 02:21:08 1998  Jeffrey A Law  (law@cygnus.com)
1152         * Makefile.in: Tweak to avoid building runtime.  It's built
1153         elsewhere now.
1155 Thu Sep  3 15:32:03 1998  Dave Brolley  <brolley@cygnus.com>
1157         * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
1159 Wed Sep 02 09:25:29 1998  Nick Clifton  <nickc@cygnus.com>
1161         * lex.c (check_newline):  Change how HANDLE_PRAGMA is called.
1162         Generate warning messages if unknown pragmas are encountered.
1163         (pragma_getc): New function: retrieves characters from the
1164         input stream.  Defined when HANDLE_PRAGMA is defined.
1165         (pragma_ungetc): New function: replaces characters back into the
1166         input stream.  Defined when HANDLE_PRAGMA is defined.
1168 Mon Aug 31 15:35:16 1998  Dave Brolley  <brolley@cygnus.com>
1170         * decl.c (layout_chill_variants): Calculate nlables properly.
1172 Mon Jul 27 17:21:01 1998  Dave Brolley  <brolley@cygnus.com>
1174         * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
1175         element type.
1177 Mon Jul 13 14:20:12 1998  Nick Clifton  <nickc@cygnus.com>
1179         * lang-options.h: Format changed to match changes in gcc/toplev.c
1180         to implement a --help option.
1182 Wed Jul  8 02:58:35 1998  Jeffrey A Law  (law@cygnus.com)
1184         * lang.c (lang_init_options): New function.
1186 Wed Jun 10 12:08:09 1998  Dave Brolley  <brolley@cygnus.com>
1188         * lang-options.h: Remove -I.
1189         * ch-tree.h (c_decode_option): New argc/argv interface.
1190         * decl.c (c_decode_option): New argc/argv interface.
1191         * lang.c (lang_decode_option):  New argc/argv interface.
1193 Wed May 27 10:33:41 1998  Dave Brolley  <brolley@cygnus.com>
1195         * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
1196         chill_handle_multi_case_label_range were reversed.
1198         * Make-lang.in (chill): Use the correct gcc in the driver script.
1200 Thu May 21 14:40:44 1998  Dave Brolley  <brolley@cygnus.com>
1202         * convert.c (digest_array_tuple): Move conversion to
1203         chill_convert_for_assignment.
1205         * actions.c (chill_convert_for_assignment): Allow conversion of array
1206         constructor to bitstring constructor for assignment to array of packed bits.
1208 Thu May 14 13:57:51 1998  Dave Brolley  <brolley@cygnus.com>
1210         * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
1212 Wed May 13 14:07:51 1998  Dave Brolley  <brolley@cygnus.com>
1214         * typeck.c (build_chill_slice): Adjust slice index to account for the
1215         lower bound of the array.
1217         * actions.c (chill_expand_assignment): Convert function arguments to the
1218         correct types.
1219         (chill_expand_assignment): Ditto.
1221 Mon May 11 16:20:57 1998  Dave Brolley  <brolley@cygnus.com>
1223         * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
1224         of the array_type to the slice_type.
1225         (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
1226         of bits.
1228         * loop.c (build_loop_iterator): Disallow location enumeration for
1229         bit-packed arrays.
1231         * convert.c (digest_array_tuple): Allow conversion of an array tuple
1232         to a bitstring for assignment to a packed array of bits.
1234 Mon May  4 16:28:58 1998  Dave Brolley  <brolley@cygnus.com>
1236         * ch-tree.def (PACKED_ARRAY_REF): New tree code.
1237         * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
1238         (chill_location): Handle PACKED_ARRAY_REF.
1239         (apply_chill_array_layout): Allow PACK for arrays of single bits.
1240         * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
1241         (invalid_operand): Check PACKED_ARRAY_REF operands.
1242         * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
1244 Thu Apr 23 15:33:20 1998  Dave Brolley  <brolley@cygnus.com>
1246         * typeck.c (apply_chill_field_layout): Only integral fields can be packed
1247         to the bit level.
1249 Tue Apr 21 14:30:10 1998  Jeffrey A Law  (law@cygnus.com)
1251         * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
1252         (init_decl_processing): Handle TI types.
1253         * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
1254         (type_for_size): Handle TI types.
1255         (type_for_mode): Handle TI types.
1257 Mon Apr 20 13:12:26 1998  Dave Brolley  <brolley@cygnus.com>
1259         * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
1260         int.
1262         * actions.c (chill_convert_for_assignment): Check that the rhs is not
1263         a type declaration.
1265 Tue Apr 14 13:17:44 1998  Dave Brolley  <brolley@cygnus.com>
1267         * lex.c (init_parse): Now returns char* containing the filename.
1269         * typeck.c (get_type_precision): Declare.
1270         (apply_chill_field_layout): Use the minimum number of bits necessary to
1271         represent discrete types as the natural length of the field.
1273 Thu Apr  9 12:46:55 1998  Dave Brolley  <brolley@cygnus.com>
1275         * lex.c (finput): Move definition here from toplev.c
1276         (init_parse): New function replaces init_lex.
1277         (init_parse): Add code to open source file.
1278         (finish_parse): New function.
1279         (close_input_file): File was being closed more than once.
1281         * lang.c (finput): Declare.
1282         * ch-tree.h (init_lex): Remove.
1285 Wed Apr  8 14:47:33 1998  Dave Brolley  <brolley@cygnus.com>
1287         * actions.c (compute_else_range): Fix loop index error.
1288         (chill_handle_multi_case_label_range): Move error checking to
1289         chill_handle_multi_case_label.
1290         (chill_handle_multi_case_else_label): Convert ELSE range values to
1291         the type of the corrersponding CASE selector.
1293 Wed Apr  8 13:02:50 1998  Jeffrey A Law  (law@cygnus.com)
1295         * actions.c (sizetype_tab): Do not declare.
1296         * lang.c (lang_print_xnode): New function.
1298 Mon Mar 23 14:43:06 1998  Dave Brolley  <brolley@cygnus.com>
1300         * grant.c (decode_layout): New function.
1301         (grant_array_type): Call decode_layout to export layout information to
1302         the grant file.
1303         (decode_decl): Ditto
1305 Fri Mar 20 16:06:41 1998  Dave Brolley  <brolley@cygnus.com>
1307         * parse.c (parse_tuple_element): Call had arguments in wrong order.
1309 Thu Mar 19 13:42:33 1998  Dave Brolley  <brolley@cygnus.com>
1311         * typeck.c (apply_chill_array_layout): Use
1312         TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
1313         the word size.
1315 Wed Mar 18 16:25:48 1998  Dave Brolley  <brolley@cygnus.com>
1317         * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
1318         fields.
1320         * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
1321         proper places.
1323 Tue Mar 17 14:16:08 1998  Dave Brolley  <brolley@cygnus.com>
1325         * parse.c (gen_label_rtx): Declare before use.
1326         (emit_jump): Declare before use.
1327         (emit_label): Declare before use.
1328         (parse_case_label_list): Pass in CASE selector so we can mark it as having
1329         an (ELSE) label if necessary.
1330         (parse_case_label_specification): Pass in the CASE selector list so that
1331         the CASE selectors can be passed to parse_case_label_list.
1332         (parse_multi_dimension_case_action): Modify to generate branching code in
1333         one pass.
1334         (parse_case_expression): Compute (ELSE) range before generating CASE expression.
1335         (parse_variant_alternative): Remove error for (ELSE) specified.
1337         * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
1339         * decl.c (layout_chill_variants): Add code to check compatibility of ranges
1340         and discrete mode names.
1342         * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
1344         * actions.h (build_multi_case_selector_expression): Make it extern.
1345         (chill_handle_multi_dimension_case_label): Remove.
1346         (compute_else_ranges): New function.
1348         * actions.c (update_else_range_for_int_const): New function.
1349         (update_else_range_for_range): New function.
1350         (update_else_range_for_range_expr): New function.
1351         (update_else_range_for_type): New function.
1352         (compute_else_range): New function.
1353         (compute_else_ranges): New function.
1354         (chill_handle_multi_case_else_label): New function
1355         (chill_handle_multi_case_label_range): Don't generate tests for conditions
1356         which are always true or false.
1357         (chill_handle_multi_case_label): Ditto.
1358         (chill_handle_multi_case_label): Implement (ELSE) label support.
1359         (chill_handle_multi_case_label): First argument is now the selector tree not
1360         its VALUE.
1361         (chill_handle_multi_dimension_case_label): Removed.
1362         (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
1363         reversed on entry, so reverse it here.
1365 Tue Mar 10 15:02:26 1998  Dave Brolley  <brolley@cygnus.com>
1367         * actions.c (chill_handle_multi_case_label_range): Add more error checking.
1368         (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
1369         (chill_handle_multi_case_label): Improve Error handling.
1371 Mon Mar  9 12:39:00 1998  Dave Brolley  <brolley@cygnus.com>
1373         * actions.c (chill_handle_multi_case_label_range): Added.
1374         (chill_handle_multi_case_label): Add support for discrete ranges and
1375         discrete modes.
1377         * typeck.c (apply_chill_array_layout): Added more error checking.
1378         (apply_chill_field_layout): Added more error checking.
1380 Wed Mar  4 16:08:26 1998  Dave Brolley  <brolley@cygnus.com>
1382         * convert.c (convert): Call build_simple_array_type with new argument.
1384         * ch-tree.h(build_simple_array_type): Add argument for array layout.
1386         * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
1387         (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
1388         (apply_chill_array_layout): New function to implement array layout.
1389         (layout_chill_array_type): Call apply_chill_array_layout and reset
1390         TYPE_ATTRIBUTES to NULL_TREE.
1391         (build_chill_array_type): Extend to handle one array layout per index mode.
1392         (smash_dummy_type): Call build_simple_array_type with new argument.
1394         * satisfy.c (satisfy): Call SATISFY on array layout tree.
1396 Wed Feb 25 14:36:41 1998  Dave Brolley  <brolley@cygnus.com>
1398         * typeck.c (next_struct_offset): Added.
1399         (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
1400         or POS layout to a structure field.
1401         (layout_chill_struct_type): Add call to apply_chill_field_layout.
1403         * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
1404         in the field layout tree.
1406         * parse.c (pack_warn_printed): Remove.
1407         (nopack_warn_printed): Remove.
1408         (step_warn_printed): Remove.
1409         (pos_warn_printed): Remove.
1410         (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
1412         * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
1413         field declarations.
1415 Thu Feb 19 17:33:06 1998  Dave Brolley  <brolley@cygnus.com>
1417         * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
1418         (parse_opt_mode): Removed incorrect comment about association of array
1419         layouts with nested array elements.
1420         (parse_opt_mode): Allow for one layout per index mode specified.
1422 Wed Feb 18 23:48:57 1998  Richard Henderson  <rth@cygnus.com>
1424         * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependency.
1426 Wed Feb 18 17:35:05 1998  Dave Brolley  <brolley@cygnus.com>
1428         * parse.c (parse_field): Get rid of warning for multiple case selectors.
1430         * decl.c (layout_chill_variants): Fix loop indexing error.
1432 Mon Feb 16 15:54:47 1998  Dave Brolley  <brolley@cygnus.com>
1434         * parse.c (parse_case_expression): Remove code which checked for
1435         unimplemented (ELSE) label.
1436         (parse_case_expression): Add code to handle multi dimensional case
1437         expression.
1439         * expr.c (check_case_selector_list): Fixed to return a list of the
1440         selectors which were checked.
1441         (chill_expand_case_expr): Remove "sorry" message for multi dimension
1442         case.
1443         (chill_expand_case_expr): Reverse order of case alternatives.
1444         (chill_expand_case_expr): Add "error" message for multiple case
1445         selectors.
1447         * actions.h (build_chill_multi_dimension_case_expr): Added.
1449         * actions.c (build_multi_case_selector_expression): Renamed from
1450         build_multi_case_expression.
1451         (chill_handle_multi_dimension_case_label): Call above function by its
1452         new name.
1453         (build_chill_case_expr): Don't reverse the list elements here. It may
1454         not be necessary.
1455         (build_chill_multi_dimension_case_expr): New function implements multi
1456         dimensional case expression.
1458 Thu Feb 12 15:44:50 1998  Dave Brolley  <brolley@cygnus.com>
1460         * parse.c (parse_case_action): Implement multi-dimension CASE action.
1461         (parse_multi_dimension_case_action): Added.
1462         (parse_single_dimension_case_action): Added based on code moved from
1463         parse_case_action.
1465         * expr.c (check_case_selector_list): Added.
1467         * ch-tree.h (check_case_selector_list): Added.
1469         * actions.h (chill_handle_single_dimension_case_label): Added.
1470         (chill_handle_multi_dimension_case_label): Added.
1472         * actions.c (chill_handle_single_dimension_case_label): Added.
1473         (chill_handle_multi_case_label): Added.
1474         (chill_handle_multi_case_label_list): Added.
1475         (build_multi_case_expression): Added.
1476         (chill_handle_multi_dimension_case_label): Added
1478 Fri Feb  6 16:43:41 1998  Dave Brolley  <brolley@cygnus.com>
1480         * actions.c (sizetype_tab): Fix declaration to match gcc changes.
1482 Thu Feb  5 14:03:00 1998  Dave Brolley  <brolley@cygnus.com>
1484         * decl.c (chill_tree_code_type):  Change this to be an array of char like
1485         the tree_code_type in the rest of gcc.
1487         * ch-tree.def (chill_tree_code_type): See decl.c.
1489 Thu Jan 29 15:34:18 1998  Dave Brolley  <brolley@cygnus.com>
1491         * tasking.c (error_with_decl): Correct prototype.
1492         (build_gen_ptype): Reverse arguments.
1494         * lang.c (chill_real_input_filename): Add definition.
1495         (chill_print_error_function): Correct second argument.
1496         (lang_init): Set chill_real_input_filename.
1498         * expr.c (NULL): Protect definition with #ifndef.
1500         * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
1501         (init_decl_processing): Change last argument to 'sizeof(char)'.
1504 Tue Nov 25 10:44:19 1997  Nick Clifton  <nickc@cygnus.com>
1506         * Make-lang.in (mostlyclean): Use && to separate commands, so that
1507         if the directory change fails, the rule will not loop.
1509 Mon Mar  3 12:08:19 1997  Fred Fish  <fnf@cygnus.com>
1511         * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1512         spaces and use single tab character on some lines.
1513         (cc1chill): Ditto.
1515 Tue Nov 26 05:12:40 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1517         * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1518         that the buffer location gets evaluated only once, in
1519         build_receive_buffer_case_end.
1521         * typeck.c (build_chill_bin_type): Rework.
1522         (layout_chill_range_type): Process BIN mode.
1523         (build_chill_array_type): Remove checking of layout. This is done
1524         at the parse.
1526         * parse.c (parse_on_exception_list): Don't allow ON name:.
1527         (parse_opt_layout): Parse POS and STEP and return a tree instead
1528         of int.
1530         * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1532         * grant.c (print_integer_type): Take care of BIN.
1534         * expr.c (build_chill_descr): Make descr static if requested
1535         location is static.
1536         (build_chill_length): Process text mode name and text location as
1537         described in Z.200/1992.
1538         (build_compare_expr): Don't allow < <= > >= for composite modes.
1540         * decl.c (grok_chill_fixedfields): Remove checking of
1541         layout. This is done at the parser.
1543         * convert.c (digest_structure_tuple): Take care of wrong (probably
1544         array) tuple. Printing error may cause sigsegv.
1546         * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1547         build_chill_array_type (layout is passed now as a tree instead of
1548         int).
1550 Fri Nov 15 15:17:44 1996  Per Bothner  <bothner@deneb.cygnus.com>
1552         * convert.c (display_int_cst):  Check that val is INTEGER_CST.
1553         (digest_array_tuple):  Some extra error checks (i.e. that indexes
1554         are constant).  If dynamic mode, result is not constant.
1556 Mon Oct 28 12:48:06 1996  Jeffrey A Law  (law@cygnus.com)
1558         * typeck.c (signed_or_unsigned_type): If the given type already
1559         as the correct signedness, then just return it.
1561         * typeck.c ({un,}signed_type): If can't do anything, call
1562         signed_or_unsigned_type.
1564 Fri Sep  6 02:50:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1566         * typeck.c (build_chill_cast): In case of rangecheck, take care of
1567         constant expression (when defining a SYN).
1569 Thu Sep  5 04:30:32 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1571         * parse.c (define__PROCNAME__): New function to define a SYNONYM
1572         __PROCNAME__ (__procname__) which is a character string containing
1573         the name of the current procedure. This is quit the same as
1574         __FUNCTION__ in C.
1575         (parse_proc_body): Add call to define__PROCNAME__.
1577         * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1578         modes on one side and procedures on the other side..
1580 Wed Jul 24 01:13:51 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1582         * typeck.c: Replace all local variables and arguments named `index'
1583         with `idx', `index' gets replaced by `strchr' which makes debugging
1584         somehow difficult.
1585         (valid_array_index_p): New argument to indicate that we are processing
1586         LENGTH (varying string) on the lefthand side of an assignment. The
1587         index check is different in this case.
1588         (build_chill_cast): In case of expression conversion do an OVERFLOW
1589         check with the limits of the target mode.
1591         * ch-tree.h: New prototype for valid_array_index_p.
1593         * actions.c (expand_varying_length_assignment): Add new argument to
1594         call to valid_array_index_p to indicate we are processing
1595         LENGTH on the lefthand side of an assignment.
1597         * loop.c: Rename loop_stack to loopstack to avoid clashes with
1598         global variable ../stmt.c:loop_stack.
1600 Tue Jun 18 23:04:06 1996  Per Bothner  <bothner@deneb.cygnus.com>
1602         * expr.c (resolve_component_ref):  Set TREE_SIDE_EFFECTS properly.
1604 Mon Jun 10 15:01:51 1996  Per Bothner  <bothner@deneb.cygnus.com>
1606         * typeck.c (build_chill_reference_type):  Copy novelty for reference.
1607         * satisfy.c (satisfy):  If REFERENCE_TYPE, copy novelty.
1609 Thu May 30 04:55:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1611         * typeck.c (valid_array_index_p): For varying character strings
1612         we must check if the index is less then the actual length instead
1613         of less equal.
1615 Wed May 15 06:07:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1617         * ch-tree.h: Add prototype for test_range.
1619         * inout.c (process_io_list): Fix duplicate function call if
1620         writetext argument is a function returning a varying string.
1622 Tue May 14 21:08:47 1996  Per Bothner  <bothner@deneb.cygnus.com>
1624         Re-do string comparisons.  Old way could re-use temporary
1625         (SAVE_EXPR created for an argumnet is variable) prematurely.
1626         * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR):  New codes.
1627         * decl.c (init_decl_processing):  Remove __eqstring, __gestring,
1628         __gtstring, __lestring, __ltstring, __nestring declarations.
1629         * expr.c (build_char_array_expr):  Rename to build_compare_string_expr.
1630         Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1631         (chill_expand_expr):    Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1632         (build_compare_expr):  Use new build_char_array_expr name.
1634 Mon Apr  8 14:08:30 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1636         Cleanup of April 5 fix:
1637         * actions.c (test_range):  New function.
1638         (check_range):  Simplify to use test_range.
1639         * convert.c (digest_powerset_tuple):  Move error message from here ...
1640         (check_ps_range):  ... to here.  Also, simplify to use test_range.
1642 Fri Apr  5 03:41:05 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1644         * convert.c (check_ps_range): New function to perform range check
1645         of powerset tuple elements. This is quite the same as check_range,
1646         however, the actions on rangefail are different.
1647         (digest_powerset_tuple): Call check_ps_range.
1649         * loop.c (build_loop_iterator): Chaeck if location enumeration
1650         is requested for BOOLS(n) and print an error message.
1652 Wed Mar  6 17:46:48 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1654         * parse.c (parse_primval):  Emit error if !ignore (before: pass==2).
1656         Implement parameterised array and string modes (using LANG_TYPE).
1657         * parse.c (parse_opt_mode):  Handle parameterized arrays and strings.
1658         * grant.c (decode_mode):  Support extended use of LANG_TYPE.
1659         * satisfy.c (cycle_error_print):  Ignore non-decls in chain.
1660         (safe_satisfy_decl):  No error if non-decl (pointer type) in cycle.
1661         (satisfy):  Return immediately if laid out non-pointer type.
1662         (satisfy case LANG_TYPE):  Handle paramertised mode.
1663         (satisfy case POINTER_TYPE/REFERENCE_TYPE):  Push type on chain;
1664         return immediately if already in chain.
1665         * typeck.c (smash_dummy_type):  Handle parameterized modes and CHAR(N).
1666         Change return type (can now return error_mark_node).
1667         (build_readonly_type):  Return return value from smash_dummy_type.
1668         * ch-tree.h:  Change smash_dummy_type return type.
1670 Tue Mar  5 22:31:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1672         * typeck.c (build_chill_slice):  Re-do index_type calculation.
1673         * typeck.c (layout_chill_range_type):  Use compare_int_csts rather
1674         than tree_int_cst_lt to avoid signed/unsigned problems.
1676         * typeck.c (copy_novelty):  Use copy_node rather than build_type_node.
1677         * typeck.c (smash_dummy_type):  Use copy_novelty for NEWMODE of range.
1679         * decl.c (init_decl_processing): More portable sizetype initialization.
1681         * tree.c (build_string_type):  Generalize to also create bitstrings.
1682         Return error_mark_node if an argument is an ERROR_MARK.
1683         (build_bitstring_type):  Simplify - just call build_string_type.
1685 Tue Mar  5 03:48:32 1996  Wilfried Moser  <moser@blues.cygnus.com>
1687         * actions.c (warn_unhandled): Add missing assignment.
1689         * loop.c (build_loop_iterator): In case of IN, check if
1690         expression has a mode, otherwise make an error.
1692 Mon Mar  4 23:12:03 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1694         *  convert.c (digest_powerset_tuple):  Check tuple elements
1695         for compatibility;  if compatible, call convert.
1697 Thu Feb 29 23:39:54 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1699         Simplify NOVELTY representation.
1700         * ch-tree.h (CH_NOVELTY):  Re-implement as plain TYPE_CONTEXT.
1701         (CH_NOVELTY_FLAG):  Removed.  (Just use CH_NOVELTY.)
1702         * decl.c (push_modedef):  Make copy even for SYNMODE.
1703         but not for internal typedefs (indicated by make_newmode==-1).
1704         * tasking.c:  Call push_modedef with make_newmode==-1.
1705         * typeck.c (chill_novelty):  Remove.
1706         (smash_dummy_type):  Removed unused event/buffer stuff.  Update.
1707         * grant.c (decode_decl), inout.c (build_io_types),
1708         expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1709         tasking.c (build_instance_type):  Simplify using new CH_NOVELTY.
1711         Solidify READ mode handling.
1712         * decl.c (do_decl, push_syndecl, start_chill_function):
1713         Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1714         * typeck.c (build_chill_slice):  Set TREE_READONLY appropriately.
1715         (build_chill_array_ref_1, build_chill_bitref):  Likewise.
1716         (build_chill_cast):  Set TREE_READONLY depending on result type (only).
1717         * convert (convert_from_reference, convert):  Likewise.
1718         * expr.c (resolve_component_ref):  Set TREE_READONLY appropriately.
1719         (build_chill_function_call):  Error if OUT/INOUT arg is TREE_READONLY.
1720         * actions.c (chill_expand_assignment):  Also error if TREE_READONLY.
1721         Use convert_from_reference.
1723 Thu Feb 29 11:14:09 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1725         * parse.c (parse_do_action):  DO WITH expressions are evaluated in
1726         outer scope.  Also call save_if_needed.
1727         * decl.c (shadow_record_fields);  Fix and simplify.
1729 Tue Feb 27 22:19:40 1996  Per Bothner  <bothner@cygnus.com>
1731         * convert.c (display_int_cst):  Gereralize to wider range of ints.
1733 Thu Feb 22 06:12:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1735         * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1737         * decl.c (do_decl): In case of chill_varying_type_p, check if
1738         type of fixed part is error mark and do nothing in this case.
1740         * lex.c (convert_bitstring): Don't complain when length of
1741         bitstring is 0 (BOOLS(0) is a valid mode).
1743         * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1744         (domain) is error mark.
1746         * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1747         error_mark_node, just return.
1749 Tue Feb 20 00:01:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1751         * parse.c (parse_variant_alternative): When checking for ELSE take
1752         care of tagless variants.
1754 Mon Feb 19 05:54:45 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1756         * parse.c (parse_case_action): Check if ELSE was specified
1757         in a case label list (this is only valid for array tuples).
1758         (parse_case_expression): Deto.
1759         (parse_variant_alternative): Deto.
1761 Tue Feb 13 17:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1763         * typeck.c (chill_location):  Cleanup.  Neither SLICE_EXPR nor
1764         BIT_FIELD_REF are referable, even if their base strings are.
1766 Fri Feb  9 02:25:33 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1768         * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1769         checking the expression.
1771         * convert.c (convert): Set TREE_CONSTANT when taking the
1772         address of a function.
1774         * decl.c (start_chill_function): Check if the mode is really
1775         a mode to avoid subsequent segfaults.
1777         * typeck.c (string_assignment_condition): Add checking of
1778         bitstring length.
1780 Thu Feb  8 01:37:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1782         * actions.c (build_cause_exception): Print warning of unhandled
1783         exception only once for each exception.
1785 Mon Feb  5 22:17:13 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1787         * tree.c (discrete_count), ch-tree.h:  New function.
1788         * expr.c (build_concate_expr, build_chill_repetition_op,
1789         chill_expand_expr):  Use discrete_count;  make sure arguments
1790         to size_binop are sizetype.
1791         (powersetlen):  Trvialize using discrete_count.
1793         * inout.c (process_io_list):  Use new assign_temp function.
1794         * inout.c (build_enum_tables):  Avoid taking address of array_ref,
1795         which sometimes gets optimized to a constant.
1797         * expr.c (finish_chill_unary_op):  Call convert_to_class on argument.
1798         Remove some obsolete TREE_UNSIGNED stuff.
1799         * lex.c (convert_integer):  Removed more TREE_UNSIGNED stuff.
1801 Thu Feb  1 15:11:20 1996  Doug Evans  <dje@charmed.cygnus.com>
1803         * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1805 Wed Jan 31 17:13:25 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1807         * decl.c (char_array_type_node, wchar_array_type_node):  Removed.
1808         (init_decl_processing):  Remove array_domain_type;  don't set
1809         char_array_type_node or wchar_array_type_node.
1810         * decl.c (init_decl_processing):  Use fixup_unsigned_type to
1811         simplify code to create boolean_type_node and char_type_node.
1813 Mon Jan 29 14:20:10 1996  Doug Evans  <dje@charmed.cygnus.com>
1815         * lex.c (check_newline): Pass character after `#pragma' to
1816         HANDLE_PRAGMA.  Don't call get_directive_line if at end of line.
1818 Fri Jan 26 05:56:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1820         * expr.c (build_chill_function_call): Add check and error for
1821         actual argument is a TYPE_DECL.
1823         * parse.c (parse_set_mode): Print a warning if the set mode contains
1824         numbered and unnumbered set elements.
1826 Wed Jan 24 05:10:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1828         * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1830         * decl.c (layout_enum): Add check for negative values if
1831         enum is numbered and duplicate values in an enum.
1833 Mon Jan 15 06:21:52 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1835         * actions.c (chill_expand_assignment): Add check for lefthand side
1836         of an assignment is a location.
1838         * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1839         not "concat_expr".
1841         * expr.c (is_really_instance): New function to check if a datum
1842         is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1843         for this case.
1844         (build_chill_component_ref): call is_really_instance.
1846 Wed Jan 10 13:47:14 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1848         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  Removed;  now in ../tree.h.
1850 Mon Jan  8 15:29:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1852         * expr.c (build_char_array_expr):  Add save_if_needed's if varying.
1853         Also, remove unused len0 and len1.
1855 Mon Dec 11 17:36:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1857         * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1858         build_chill_getassociation, build_chill_getusage,
1859         build_chill_gettextrecord,  build_chill_gettextaccess:  Simplify
1860         - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1862         * parse.c (parse_action):  Minor simplification.
1864 Thu Dec  7 00:02:47 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1866         * parse.c (parse_action): In case of CALL, do a check if there
1867         is really a function call.
1869 Tue Dec  5 05:06:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1871         * convert.c (display_int_cst): Fix printing of control sequence.
1873 Thu Nov 30 21:07:57 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1875         * grant.c (decode_constant, decode_constant_selective):  Make work
1876         for REAL_IS_NOT_DOUBLE case.
1878         * decl.c (CHILL_INT_IS_SHORT):  New macro.
1879         (init_decl_processing):  Use CHILL_INT_IS_SHORT.
1880         Change name of integer_type_node from _cint to long.
1882 Mon Nov 27 17:07:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1884         * loop.c (top_loop_end_check):  Check while condition *after*
1885         getting next powerset element.
1887 Mon Nov 27 05:29:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1889         * parse.c (parse_receive_case_action): Fix typo in error message.
1891         * convert.c (display_int_cst): Format characters like strings in
1892         grant.c(decode_constant).
1894         * grant.c: Remove the old forbid stuff.
1896         * lex.c (readstring): Fix reading of '^^'.
1898         * parse.c (parse_procedure_mode): nreverse param_types.
1900 Thu Nov 23 05:39:57 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1902         * actions.c (chill_expand_assignment): Check for assigning to
1903         location with non-value mode.
1905         * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1906         Add new and change some prototypes.
1908         * decl.c (init_nonvalue_struct): New function to generate
1909         initialisation code for non-value structs.
1910         (init_nonvalue_array): New function to generate initialisation
1911         code for non-value array's.
1912         (do_decl): Call one of the above mentioned functions in case
1913         we have a mode with the non-value property.
1914         (start_chill_function): Print error message if a non-value mode
1915         gets returned without LOC and check for arguments of non-value
1916         modes only gets passed by LOC.
1918         * grant.c (print_proc_tail): Fix for procedure returning LOC.
1920         * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1921         association_type_node.
1922         (invalidate_access_recordmode): New function to set the
1923         record mode of an ACCESS to error_mark_node in case of
1924         record mode has the non-value property.
1925         (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1926         (build_access_mode, build_chill_gettextaccess): Deto.
1927         (check_exprlist): Correct processing of repetition factor.
1929         * lex.c (readstring): Correct processing of control
1930         sequences of the form '^([H | D | O | B]'xx)'.
1932         * loop.c: Cleanup iterator handling (done by Per).
1933         (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1934         functions for starting and ending a loop scope in case
1935         of initialising an array with non-value property.
1937         * parse.c (check_end_label): Remove '\n' from error message.
1938         (parse_loc_declaration): Print error in case of loc-identity
1939         declaration without initialisation or with keyword INIT.
1940         (parse_do_action): Clean up iterator handling (done by Per).
1942         * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1943         message in case of TYPE_DECL is a signal and the mode has the
1944         non-value property.
1945         (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1946         the array type if the array element mode has the non-value
1947         property.
1948         (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1949         type if one of the fields have the non-value property. If the
1950         record is a buffer mode and the element mode of the buffer has
1951         the non-value-p., invalidate it (see
1952         tasking.c (invalidate_buffer_element_mode). Same for access modes.
1954         * tasking.c (build_signal_descriptor): If the signal type have
1955         the non-value property, do nothing.
1956         (build_receive_signal_case_label): Don't do an assignment if the
1957         signal type have the non-value property.
1958         (build_receive_buffer_case_label): Add check for buffer element
1959         mode is ERROR_MARK.
1960         (expand_send_buffer): Deto.
1961         (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1962         (invalidate_buffer_element_mode): New function to set type of
1963         buffer element mode to error_mark_node.
1964         (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1966 Wed Nov 15 13:26:20 1995  Jeffrey A Law  (law@cygnus.com)
1968         * inout.c (intsize_of_charsexpr): Move declaration to top
1969         of file to avoid error from solaris2.5 cc.
1971 Thu Nov  9 02:50:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1973         * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1974         mode, temporarily reset maximum_field_alignment to 0 before
1975         layouting it to be compatible with the runtime library.
1977         * inout.c (build_chill_gettextaccess): Deto.
1979 Mon Nov  6 04:12:06 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1981         * decl.c (do_decl): If type is READonly, add check if an
1982         ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1983         and print an error if this is true. Variables of this modes
1984         may not be declared READonly.
1985         Add check for mode is one of the above and an init value was
1986         given. This is also not allowed.
1987         Add initialisation of variables of the above modes during
1988         runtime. This influence the mechanism for detecting to
1989         build a constructor.
1990         (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1991         BUFFER, and EVENT mode must not be READonly.
1992         (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1993         TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1994         (declare_predefined_file): Move to inout.c.
1995         (init_decl_processing): Add definitions for new built-in's.
1996         (finish_outer_function): Build a constructor only if
1997         build_constructor is set.
1999         * except.c: On Linux native, setjmp is __setjmp.
2001         * expr.c (build_chill_component_ref): New function. It gets called
2002         from parse.c instead of build_component_ref. Functions checks if the
2003         user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
2004         EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
2005         (build_chill_floatcall): New function to resolve CHILL's floating
2006         point builtin calls (SIN, COS, TAN, etc.).
2007         (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
2008         build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
2009         GETSTACK, and TERMINATE built-in's.
2010         (build_generalized_call): Process new built-in's.
2012         * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
2013         (decode_mode_selective): deto.
2015         * inout.c: Completely rewritten for implementing Chapter 7 of
2016         Z.200 (input and output).
2018         * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
2019         parsing numbers.
2021         * lex.h (enum rid): Add RID_ASSOCIATION.
2023         * parse.c: New flag build_constructor to indicate if a constructor
2024         should be generated at the end of compilation or not. See
2025         decl.c(do_decl).
2026         (parse_begin_end_block): Don't emit a line note.
2027         (parse_primval): Call build_chill_component_ref instead of
2028         build_component_ref.
2029         (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
2030         modes, USAGE modes, WHERE modes.
2032         * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
2033         ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
2034         (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
2036         * typeck.c (extract_constant_from_buffer): Fix thinko in case
2037         of ! BYTES_BIG_ENDIAN.
2038         (build_chill_cast): Implement representation conversion between
2039         INT's and REAL's.
2040         (chill_similar): Add check of ACCESSes.
2041         (layout_chill_range_type): Check for real ranges and print
2042         sorry message.
2044         * Make-lang.in: Change compiler version.
2045         chill also depends on Makefile.
2047         * chill.in: Process command line option -Xlinker like -Tdata.
2049         * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
2050         CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
2051         Add some prototypes.
2052         (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
2053         BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
2054         Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
2056         * gperf, hash.h: Remove definition of WHERE.
2058 Thu Oct  5 06:22:19 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2060         * grant.c (decode_constant_selective): Add some newlines
2061         to generated SPEC MODULE.
2063 Wed Oct  4 18:16:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2065         * decl.c (pop_chill_function_context):  Remove some bogosity.
2067 Wed Oct  4 05:14:00 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2069         * grant.c (print_integer_selective): In case of a RANGE of
2070         a SET mode, try to find and grant the parent mode.
2071         (grant_seized_identifier): Don't write it out, if the identifier
2072         doesn't have a seize file (it may come from a SPEC MODULE
2073         defined in the compilation unit).
2075 Fri Sep 22 14:04:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2077         * actions.c (check_non_null):  Wrap expr in SAVE_EXPR if needed.
2079 Wed Sep 20 13:51:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2081         * expr.c (force_addr_of):  Optimize an INDIRECT_REF using
2082         convert_to_pointer rather than convert (which in case of
2083         a REFERENCE_TYPE would losingly call convert_from_reference).
2085 Wed Sep 20 04:03:58 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2087         * inout.c (build_chill_writetext): In case of character string:
2088         Add processing of a concatenation including varying character
2089         strings.
2090         (intsize_of_charsexpr, get_max_size): New functions to determine
2091         the maximum size of varying character strings.
2093         * grant.c (decode_constant, decode_constant_selective): Add
2094         processing of COMPONENT_REF.
2096         * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
2097         for SYNONYM's with STRUCT mode.
2099 Mon Sep 18 17:25:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2101         * expr.c (force_addr_of):  Optimize of value is INDIRECT_REF.
2102         * typeck.c (build_chill_slice):  Call mark_addressable.
2104 Mon Sep 18 14:38:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2106         * expr.c (chill_expand_expr):  Make a copy before calling __psslice
2107         if the array is neither referable nor BLKmode.
2108         (build_set_expr):  Renamed to ...
2109         (build_compare_set_expr):  Allow one opperand to be boolean.
2110         (build_compare_expr):  Check both operands for SET_EXPR,
2111         before checking for discrete types (for -fold-strings).
2113 Fri Sep 15 11:35:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2115         * satisfy.c (safe_satisfy_decl):  For a CONST_DECL, set TREE_TYPE
2116         to error_mark_node or error.
2118 Fri Sep 15 00:26:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2120         * grant.c (decode_constant_selective): Add processing of
2121         TREE_OPERAND (val, 0).
2123 Wed Sep 13 14:24:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2125         * ch-tree.h (CH_IS_INSTANCE_MODE):  Redefine to use CH_SIMILAR.
2126         * convert.c (convert):  Use CH_IS_INSTANCE_MODE.
2127         * inout.c (build_chill_writetext):  Likewise.
2128         * tasking.c (build_receive_case_start, build_delay_case_start):  Ditto.
2129         * parse.c (parse_start_action):  Remove redundant tests.
2130         * tasking.c (build_start_process):  Also test that optset is instance.
2131         (build_copy_number, build_proc_type, expand_send_signal):  Use
2132         CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
2133         * actions.c, convert.c (instance_type_node):  Remove redundant
2134         extern declaration.
2136 Wed Sep 13 14:19:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2138         * regression.awk2:  Use \ line-continuation-markers
2139         to remove gratuitous gawk dependency.
2141 Mon Sep 11 17:26:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2143         * typeck.c (build_chill_modify_expr):  Use force_addr_of.
2144         (mark_addressable):  Handle INDIRECT_REF of ADDR_EXPR.
2146         * typeck.c (check_case_value), ch-tree.h:  Moved to ...
2147         * actions.c (check_case_value):  ... here.  Also check for
2148         compatibility with selector (which is passed as extra argument).
2149         (chill_handle_case_label_range):  Take selector argument,
2150         and use it to call check_case_value.
2151         (chill_handle_case_label):  Take extra selector argument.
2152         * ch-tree.h (chill_handle_case_labe):  Add prototype.
2153         * except.c expr.c, parse.c:  Remove chill_handle_case_label prototypes.
2154         * actions.c, except.c, expr.c, parse.c: Pass extra selector
2155         argument to function calls as needed.
2157 Mon Aug 28 02:47:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2159         * grant.c (decode_constant_selective): Fix a bug in writing items
2160         to grant file.
2162 Thu Aug 24 04:52:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2164         * parse.c (parse_case_expression): Print warning only in
2165         pass 1.
2167         * actions.c (print_missing_cases): Correct printing of
2168         character ranges.
2170 Wed Aug 23 15:26:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2172         * parse.c (parse_case_label_list):  Take extra parameter to
2173         indicate if we're parsing a tuple or a case-label-spec.
2174         If former, don't allow '(' EXPR ')' ',' but backup instead.
2175         (parse_case_label_specification, parse_tuple_element):
2176         Pass appropriate new argument to parse_case_label_list.
2178 Wed Aug 23 06:08:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2180         * inout.c (build_chill_readtext): Add processing of BOOL's and
2181         CHARS(n).
2183         * grant.c (decode_constant): Process nonprintable characters
2184         in a STRING_CST.
2186 Fri Aug 11 15:26:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2188         * except.c (initialize_exceptions):  Name setjmp "setjmp" and not
2189         "__builtin_setjmp" (which is not recognized by expand_call).
2191 Wed Aug  9 23:35:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2193         * loop.c (end_loop_scope):  Need to call kept_level_p,
2194         in argument to poplevel.
2196 Wed Aug  9 05:48:30 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2198         * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
2199         file might be empty). Install chill.install instead.
2201 Tue Aug  8 21:46:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2203         * loop.c (end_loop_scope):  Do poplevel *after* expand_end_bindings.
2205 Tue Aug  8 00:51:09 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2207         * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
2208         of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
2210         * decl.c (start_chill_function): Likewise ...
2212 Mon Aug  7 18:35:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2214         * tasking.c (build_process_wrapper):  Also set DECL_ASSEMBLER_NAME
2215         of PARM_DECL, since otherwise dbxout_symbol_name may barf.
2217 Mon Jul 31 14:32:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2219         * loop.c:  Re-written implementation of powerset iteration.
2220         (declare_temps):  iter_var is now integer index into bitstring,
2221         and powerset_temp just uses save_expr (normally needs no temp).
2222         (top_loop_end_check):  Pass index to start searching (from iter_var)
2223         to library function, instead of dependning on latter to clear old bits.
2224         (increment_temps):  UNless DOWN, increment iter_var.
2225         * decl.c (init_decl_processing):  Declare new types for
2226         __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
2228 Mon Jul 31 12:47:28 1995  Per Bothner  <bothner@cygnus.com>
2230         * convert.c (digest_array_tuple):  Set TREE_STATIC if possible.
2232 Fri Jul 28 05:11:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2234         * lex.c (readstring): Process integer literals starting with
2235         H', D', or B' within a control sequence.
2237 Thu Jul 27 23:08:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2239         * parse.c (parse_do_action):  Don't call push_action, but defer
2240         push_handler until begin_loop_scope.
2241         Call parse_opt_handler here, to move handler scope inside loop block.
2242         (parse_action):  After do_action, nothing to do now.
2243         * loop.c (begin_loop_scope):  Also call push_handler here.
2244         (declare_temps):  Copy derived flag to user_var.
2245         (declare_temps):  For POWERSET, always copy to temporary (even if
2246         constant), since the runtime clears bits from it.
2248         * expr.c (build_chill_sizeof):  Use convert_to_class.
2249         * satisfy.c (safe_satisfy_decl):  Cleanup handling of CONST_DECL -
2250         set proper value of CH_DECL_FLAG on both the decl and its value.
2252         * convert.c (digest_array_tuple); Slightly better errors.
2254 Wed Jul 26 22:13:39 1995  Per Bothner  <bothner@cygnus.com>
2256         * expr.c (expand_packed_set):  Also allocate the CONSTRUCTOR itself.
2257         (fold_set_expr):  Simplify accordingly.
2258         (build_concat_expr):  Constant fold bitstring CONCAT_EXPRs.
2260 Thu Jul 13 12:21:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2262         * typeck.c (build_chill_slice):  Use build1 instead of build.
2263         * typeck.c (xtract_constant_from_buffer):  Pass correct precision
2264         to lshift_double.
2266         * typeck.c (expand_constant_to_buffer):  Handle RANGE_EXPR index.
2267         * convert.c (digest_array_tuple):  Generate RANGE_EXPR as index
2268         for tuples with ranges.
2270 Thu Jun 29 23:41:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2272         * typeck.c (build_chill_slice):  Re-implement to use casts
2273         instead of build_chill_array_ref_1 (which doesn't always work).
2274         * convert.c (convert):  Remove old bugs code.
2276 Tue Jun 27 05:00:04 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2278         * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
2279         expression so that a possible handler at the if action will
2280         be found.
2281         (parse_proc_body): New argument to indicate if the function
2282         raises exceptions or not. In case the function will raise
2283         exception: start a handler, parse the function and generate
2284         code for reraising the exceptions (call chill_reraise_exceptions).
2286         * except.c (chill_reraise_exceptions): New function to generate
2287         code for reraising exceptions are specified at the function
2288         definition.
2290         * ch-tree.h: Add prototype for chill_reraise_exceptions.
2292         * decl.c (build_chill_function_type): When the function (type)
2293         raise an exception, generate two new arguments (additional to the
2294         formal parameters), the filename and linenumber of the caller.
2295         (start_chill_function): likewise...
2297         * expr.c (build_chill_function_call): If the called function raises
2298         exceptions, give current filename and linnumber as aditional
2299         arguments.
2301         * actions.c (build_cause_exception): Handle case when function
2302         propagates the exception.
2304         * grant.c (print_proc_tail, print_proc_tail_selective): If the
2305         function(type) raises exceptions, don't process the last to
2306         parmeters of the formal argument list, they are compiler
2307         generated.
2309         * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
2310         the exception lists are equal.
2312 Thu Jun 22 19:27:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2314         * loop.c (flag_local_loop_counter):  Change default to 1.
2315         (end_loop_scope):  Set 'keep' parameter in poplevel call.
2316         (declare)_temps):  Don't set IDENTIFIER_LOCAL_VALUE, since that
2317         is handled (correctly!) by pushdecl.
2318         (begin_loop_scope):  Call pushlevel here,
2319         * parse.c (parse_do_action):  Move pushlevel so only called for WITH.
2320         * decl.c (struct scope):  Remove n_incomplete field and its uses.
2321         (pushdecl):  Re-write to use proclaim_decl.  Remove old C-isms.
2322         (init_decl_processing):  Re-name integer_type_node as "_cint" to
2323         remove complaint from pushdecl about chill_integer_type_node as "int".
2325 Tue Jun 20 18:15:58 1995  Doug Evans  <dje@canuck.cygnus.com>
2327         * Make-lang.in (chill-runtime): Restore patch to disable building of
2328         runtime libraries for cross compilers.  This patch should remain
2329         until a build of a freshly checked out devo "just works".
2331 Mon Jun 19 06:01:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2333         * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
2335         * decl.c (init_decl_processing): Remove builtin function
2336         __cause_exception. New builtin functions __cause_ex1 and
2337         __unhandled_ex.
2339         * except.c (is_handled): Return 0 when no handler found,
2340         1, if the handler is in local scope and 2, if function
2341         may propagate the exception.
2343         * actions.c (build_cause_exception): New argument to
2344         indicate if a warning should be printed when
2345         causing an unhandled exception. Call is_handled here.
2347         * ch-tree.h: Change prototype for build_cause_exception.
2348         New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
2349         identifier already has been written to grant file.
2351         * grant.c (write_spec_module): If not GRANT ALL specified,
2352         write only this identifiers to grant file which are
2353         necessary to form a prober grant file. This will shorten
2354         grant files and speed up compilation.
2355         (decode_constant_selective, decode_mode_selective,
2356         get_type_selective, decode_decl_selective,
2357         grant_array_type_selective, get_tag_value_selective,
2358         print_enumeral_selective, print_integer_selective,
2359         print_struct_selective, print_proc_tail_selective,
2360         grant_one_decl_selective): New functions.
2362         * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
2363         directives to grant file.
2365         * parse.c (parse_on_exception_list): Fis constructing of
2366         exceptions list.
2368 Wed Jun 14 15:21:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2370         * typeck.c (valid_array_index_p):  Check for syntax error, where
2371         index is a mode, rather than a value.
2373         * expr.c (build_chill_binary_op_1):  Remove unused function.
2375 Sat Jun 10 11:36:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2377         * except.c (is_handled):  New function.
2378         Various fixes here and there to make it work.
2380         * parse.c (parse_param_name_list):  Set DECL_ASSEMBLER_NAME.
2381         (Otherwise dbxout may crash.)
2383         * satisfy.c (satisfy case FUNCTION_TYPE):  Check for non-type result.
2384         * decl.c (start_chill_function):  If result type was error_mark,
2385         kludge type chill_os result_decl to avoid extra errors.
2386         * actions.c (chill_expand_result, chill_expand_return):  If type of
2387         chill_result_decl is error_mark, do nothing.
2389         * typeck.c (chill_similar): Fix thinko in recent change.
2391         * config-lang.in (diff_exclude):  Remove ch/lex.c - now it's a
2392         true source file, and is never longer generated with [f]lex.
2394         * regression.sh:  Pass -s to make clean (to make it silent).
2395         Explicitly call gawk, instead of depending of '#!' to work.
2396         Add --objdir flags.  Never send mail to bill.
2398 Thu Jun  8 15:08:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2400         * typeck.c (chill_similar):  Add extra parameter.  Use to to prevent
2401         infinite recursion.
2402         (chill_equivalent, chill_l_equivalent):  Also add new parameter.
2403         * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT):  Modify to match.
2405 Tue Jun  6 17:14:49 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2407         * loop.c (declare_temps):  If -flocal-loop-counter, make sure to
2408         pushdecl the new variable (created with decl_temp1).
2409         And fix the type of the local variable for powerset iteration.
2411 Tue Jun  6 15:07:19 1995  Per Bothner  <bothner@cygnus.com>
2413         * typeck.c (mark_addressable):  Handle ADDR_EXPR inside
2414         NOP_EXPR inside INDIRECT_EXPR.  For TRUTH_ANDIF_EXPR,
2415         TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
2416         (which is used for range-checks and suchlike).
2418 Thu Jun  1 02:45:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2420         * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
2421         GE_EXPR (don't do invert_truthvalue, just switch operands).
2423 Wed May 31 14:00:38 1995  Doug Evans  <dje@canuck.cygnus.com>
2425         * lang-options.h: New file.
2426         * lang-specs.h: New file.
2428 Wed May 24 01:45:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2430         * actions.c (assign_stack_temp):  Remove unneeded declaration.
2432 Tue May 23 00:17:38 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2434         * parse.c (parse_on_exception_list):  Return list of exception
2435         names in pass 1, not in pass 2.  (Return non-NULL dummy if pass 2.)
2436         (parse_on_alternatives):  Call chill_handle_on_labels even if ignoring.
2437         (parse_opt_handler):  Likewise for chill_start_default_handler.
2438         * except.c (push_handler):  Clear on_alt_list only if pass 1.
2439         (chill_handle_on_labels):  Build on_alt_list in pass 1,
2440         retrieve it in pass 2.
2442         Fix so that decl_temp1 does not expand_decl_init, which calls
2443         free_temp_slots, which loses in the middle on an expression.
2444         * decl.c (finish_decl):  Don't call expand_decl_init.
2445         (do-decl):  Do initialization assignment even if stack variable.
2446         * parse.c (parse_loc_declaration):  Call free_temp_slots.
2448         * decl.c (finish_decl), ch-tree.h:  Remove last two always-NULL
2449         parameters.  Cleanup never-used code.
2450         * decl.c, except.c:  Update calls to finish_decl.
2452         * decl.c (case_else_node):  Define new variable.
2453         (init_decl_processing):  Initialize it.
2454         (make_chill_variants): If variant label is case_else_node (i.e. it
2455         is (ELSE):), treat that as an ELSE variant.
2456         * ch-tree.h (case_else_node):  Declare case_else_node.
2457         * parse.c (parse_case_label):  Use case_else_node.
2459 Mon May 22 10:18:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2461         * grant.c (print_proc_tail):  Also call print_proc_exceptions.
2462         (decode_decl):  Don't explicitly call print_proc_exceptions for
2463         FUNCTION_DECL.
2464         (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
2466         * actions.c (chill_convert_for_assignment):  Use save_if_needed,
2467         instead of save_expr, in case value is a reference.
2469         * typeck.c (build_chill_slice):  Fix old thinko (missing call to
2470         build_pointer_type).
2472         * actions.c (size_int):  Remove unused and conflicting prototype.
2474 Wed May 17 16:23:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2476         * actions.c (chill_convert_for_assignment):  Call save_expr if
2477         range_checking (twice).
2479 Tue May 16 11:33:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2481         * typeck.c (layout_chill_range_type):  Re-organize error checking.
2482         Add extra parameter to indicate if non-constant bounds are allowed.
2483         If bounds are bad, set them to the min_value of the parent.
2484         * ch-tree.h (layout_chill_range_type):  Update declaration.
2485         * satisfy.c (satisfy):    Update call of layout_chill_range_type.
2486         * typeck.c (build_chill_range_type):  Likewise.
2487         * tree.c (build_string_type):  Likewise.
2489 Tue May 16 00:37:51 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2491         * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
2493 Mon May 15 12:54:32 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2495         * satisfy.c (satisfy):  Supress error message for REF <error_mark>.
2496         * decl.c (push_modedef):  Check for TREE_CODE != ERROR_MARK, instead
2497         of against error_mark_node.  (smash_dummy_type can copy error marks.)
2498         (finish_decl):  Simplify C-derived check for incomplete type,
2499         and suppress if it is an ERROR_MARK.
2500         Don't call rest_of_decl_compilation if type is an ERROR_MARK.
2502 Sun May 14 22:52:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2504         * convert.c (convert):  Handle array types with different modes.
2506 Thu May 11 15:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2508         * loop.c (build_loop_iterator):  Handle the case of a non-local
2509         loop counter having reference type.
2511 Thu May 11 07:04:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2513         * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2514         build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2515         to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2517 Mon May  8 15:27:16 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2519         * expr.c (build_chill_card):  Do constant folding, if possible.
2520         (build_max_min):  Do constant folding for MIN/MAX of powersets.
2522 Mon May  8 06:57:21 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2524         * expr.c (build_chill_sizeof): Add corect processing of a
2525         SIGNAL definition without data.
2527 Sat May  6 16:27:10 1995  Doug Evans  <dje@canuck.cygnus.com>
2529         * Make-lang.in (maintainer-clean): Renamed from realclean.
2531 Tue May  2 06:16:23 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2533         * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2534         otherwise "handler stack" will get out of sync.
2536 Mon Apr 24 09:51:07 1995  Per Bothner  <bothner@rtl.cygnus.com>
2538         Fixes to support module-level non-static temporary variables.
2539         * parse.c (parse_loc_declaration):  If all_static_flag and not
2540         resursive, tell do_decls to make new decl static.
2541         * decl.c (do_decl):  Don't use maybe_static function to force static.
2542         (do_decl):  Don't let initialization count as "using" the variable.
2543         (maybe_static):  Removed.
2544         (finish_decl):  Call expand_decl and expand_decl_init if needed
2545         (as it will be for non-static temporaries).
2547 Fri Apr 21 21:02:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2549         * convert.c, expr,c typeck.c (expand_decl):  Remove usused declaration.
2551 Fri Apr 21 02:27:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2553         * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2554         LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2555         GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2557 Thu Apr 20 15:29:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2559         * parse.c (yytext, finput):  Remove unused declarations.
2561         * parse.c (proc_action_level):  New variable.
2562         (parse_proc_body):  New function.  Common code from
2563         parse_procedure_definition and parse_process_definition moved here.
2564         Save, set, and restore proc_action_level from action_nesting_level.
2565         (parse_action case RETURN):  Pass proc_action_level to
2566         expand_goto_except_cleanup.
2568 Thu Apr 20 06:02:20 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2570         * grant.c (really_grant_this): Add processing of LABEL_DECL's
2571         (don't grant them).
2573 Tue Apr 18 18:16:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2575         * lex.c ( convert_bitstring):  Use BYTES_BIG_ENDIAN rather
2576         than BITS_BIG_ENDIAN to layout bits within bitstring.
2577         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2578         Likewise.
2580 Sun Apr 16 19:55:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2582         * decl.c (finish_chill_function):  If currently global_function_decl,
2583         don't set outer_function to global_function_decl.
2585 Wed Apr 12 22:45:06 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2587         * decl.c (start_chill_function):  Normal functions are nested.
2588         (finish_chill_function):  No longer takes a 'nested' parameter.
2589         Normal functions are nested.
2590         Never call permanent_allocation, since it does little good (all normal
2591         functions are nested), and trashes some things we need.
2592         (finish_outer_function):  Update call to finish_chill_function.
2593         * grant.c (chill_finish_compile):  Likewise.
2594         * tasking.c (build_process_wrapper):  Likewise.
2595         * parse.c (end_function):  Likewise.
2596         * ch-tree.h (finish_chill_function):  Update declaration.
2598         * parse.c (parse_asm_clobbers):  Re-enable.
2599         (expand_asm_operands):  function.
2600         (parse_asm_action):  Re-enable.  Don't do anything in pass 1.
2602         * typeck.c (build_chill_slice):  Do constant folding.
2603         Also, work around problem where expand_expr constant folds ARRAY_REF.
2604         (sort_constructor):  Remove unused function.
2606         * expr.c (chill_expand_expr case CONCAT_EXPR):  Make sure we
2607         emit_block_move if needed with correct size.
2609         * inout.c (build_chill_io_list_type):  Simplify.
2611         * lex.c (check_newline):  Uncomment some dwarf stuff,
2612         which needs get_directive_line, which we no longer have.
2614 Wed Apr  5 16:05:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2616         * Makefile.in (C_OBJS, xcc1chill):  Removed.  We no longer
2617         link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2619         * expr.c (build_chill_component_ref):  Renamed to build_component_ref.
2620         (chill_truthvalue_conversion):  Renamed to truthvalue_conversion.
2621         * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2622         typeck.c:  Update accordingly.
2623         * typeck.c (valid_array_index_p):  We only need to save_expr (index)
2624         if we're range-checking.
2625         * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2626         mark_addressable, initializer_constant_valid_p, check_case_value,
2627         type_for_size, type_for_mode):  New functions, copied from
2628         ../c-common.c and ../c-typeck.c.
2630         * lang.c (incomplete_type_error):  New.  (Was in c-common.o.)
2631         * decl.c (constant_expression_warning):  New.  (Was in c-common.o.)
2633         * lang.c (string_index_type_dummy):  Remove definition from here.
2634         * tree.c (string_index_type_dummy):  Define here instead.
2635         * lang.c (lang_init):  Move init of string_index_type_dummy
2636         (which is too late) from here ...
2637         * decl.c (init_decl_processing): ... to here.
2639         * decl.c (signed_boolean_type_node):  New variable.
2640         (init_decl_processing):  Initialize it.
2642         * parse.c:  Comment out ASM action support, for now.
2644         * loop.c (maybe_skip_loop):  Make return void, not int.
2645         Use build_compare_discrete_expr.
2646         (increment_temps):  Use chill_expand_assignment.
2648 Thu Mar 30 23:28:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2650         * decl.c (do_decl):  If default-initializing variable-length
2651         string to "" (or []), make it lifetime_bound.
2653 Thu Mar 30 02:51:59 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2655         * parse.h, hash.h, gperf: New compiler directives
2656         EMPTY_ON and EMPTY_OFF.
2658         * lex.c: New variables empty_checking and runtime_checking_flag.
2659         (ch_lex_init): Initialize empty_checking and range_checking
2660         when switching from pass 1 to 2.
2661         (read_directive): Add processing of EMPTY_OFF/ON.
2663         * expr.c (build_chill_indirect_ref): New argument do_empty_check
2664         to indicate if null pointer checking should be done or not.
2665         It's not always necessary to do a null pointer check.
2667         * decl.c (lookup_name): Add argument to call to
2668         build_chill_indirect_ref.
2669         (shadow_record_fields): ...
2670         * parse.c (parse_primval): ...
2671         * tasking.c (build_process_wrapper): ...
2672         (build_receive_buffer_case_label): ...
2674         * ch-tree.h: Change prototype of build_chill_indirect_ref.
2675         Add declaration of runtime_checking_flag and empty_checking.
2677         * actions.c (check_non_null): Do null pointer checking only
2678         when enabled (empty_checking != 0).
2680 Wed Mar 29 15:18:23 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2682         * actions.c (chill_expand_assignment):  Add 'else' so we don't do
2683         regular assignment in addition to spacial assignment (e.g. for slices).
2685         * ch-tree.h (convert_to_discrete):  Add declaration.
2686         * typeck.c (convert_to_discrete):  New function.
2687         (valid_array_index_p):  Use convert_to_discrete.  Also simplify.
2688         (build_chill_slice):  Say sorry if variable-length bitstring.
2689         (build_chill_slice_with_length):  Re-do bounds check.
2690         * expr.c (check_case_selector):  Re-write to use convert_to_discrete.
2691         (build_chill_num, build_chill_pred_or_succ):  Use convert_to_discrete.
2693         * decl.c (do_decl):  Don't do redundant chill_convert_for_assignment.
2695 Wed Mar 29 00:00:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2697         * expr.c (build_chill_num): need_unsigned have to be set for
2698         characyer strings of length 1 too. Happens when compiling
2699         with -fold-strings and do NUM(a(i)).
2701         * parse.c (parse_loc_declaration): Print error message only
2702         in pass 1.
2703         (parse_mode): Likewise ...
2705         * tasking.c (build_tasking_message_type): Temporarily reset
2706         maximum_field_alignment to get proper aligned temp. variables
2707         gets passed to runtime system.
2709 Tue Mar 28 00:08:06 1995  Per Bothner  <bothner@cygnus.com>
2711         * typeck.c (my_build_array-ref):  Merged into build_chill_array_ref_1.
2712         But don't convert index to integer_type_node.  And we don't need to
2713         check the we're given an array.
2714         * typeck.c (valid_array_index_p):  If flag_old_strings, convert
2715         chars(1) to char and bools(1) to bool before index checking.
2717 Sun Mar 26 22:42:39 1995  Per Bothner  <bothner@cygnus.com>
2719         * ch-tree.h (struct module):  Added next module field.
2720         * decl.c (first_mdoule, next_module):  New global variables.
2721         (switch_to_pass_2):  Re-initialize next_module.
2722         (push_module):  In pass 2, reuse the same module objects from pass 1.
2724         * decl.c (declare_predefined_file):  Set DECL_IN_SYSTEM_HEADER.
2726         * typeck.c (valid_array_index_p):  Do range check on original index,
2727         before we convert to domain type.
2729 Fri Mar 24 11:43:39 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2731         * parse.c (parse_fixed_field):  New function.
2732         (parse_variant_field_list):  New function replaces parse_simple_fields.
2733         (parse_variant_alternative, parse_field):  Update to use new functions.
2734         (parse_field):  Error message if neither CASE nor NAME.
2736         * actions.c (check_non_null):  New function - checks for NULL pointers.
2737         * ch-tree.h (check_non_null):  New declaration.
2738         * tasking.c (expand_send_signal):  Call check_non_null.
2739         * expr.c (build_chill_indirect_ref, build_chill_function_call):  Same.
2740         * lex.h (enum rid):  Add RID_EMPTY.
2741         * lex.c (init_lex):  Initialize ridpointers[RID_EMPTY].
2743         * lex.c (read_directive):  Remove 2 calls of to_global_binding_level
2745 Wed Mar 22 16:36:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2747         * tasking.c (tasking_list):  Change to chain of TREE_VEcs, rather than
2748         chain of (nested) TREE_LIST nodes.
2749         (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2750         TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE):  New macros.
2751         (tasking_setup, tasking_registry, add_taskstuff_to_list):  Use them.
2753         * ch-tree.h (C_TYPE_FIELDS_READONLY):  Rename to TYPE_FIELDS_READONLY.
2754         (TYPE_READONLY_PROPERTY):  New macro, to match Z.200 concept.
2755         * typeck.c (build_chill_modify_expr):  Don't check for read-only-ness,
2756         since it is redundant for chill_expand_assignment and breaks
2757         reach-bound initialization in do_decl.
2758         (my_build_array_ref):  Simplify by using TYPE_READONLY_PROPERTY.
2759         (layout_chill_array_type):  Set TYPE_FIELDS_READONLY if appropriate.
2760         * actions.c (chill_expand_assignment):  Check TYPE_READONLY_PROPERTY
2761         instead of TREE_READONLY of the target's type.
2762         * expr.c (build_chill_function_call):  Likewise.
2763         * inout.c (build_chill_readtext):  Likewise.
2764         * decl.c (do_decl):  Likewise, to check if init is required.
2766         * typeck.c (build_chill_bitref):  Removed unused RANGE_EXPR hack.
2768 Wed Mar 22 07:52:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2770         * tasking.c (build_start_process): Get a unique identifier for
2771         the start arguments.
2773 Tue Mar 21 07:36:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2775         * expr.c (fold_set_expr): At label build_result: Add setting unused
2776         bits to 0. This is the same as the runtime library does.
2778         * parse.c (expect): Function returns now int, 0, if the expected
2779         token was not got, 1 when it was found.
2780         (parse_synonym_definition): In case of syntax error (missing =),
2781         set expr to NULL_TREE and mode to error_mark to avoid subsequent
2782         segfaults.
2784         * chill.texi: Add chapter about differences to Z.200/1988.
2786 Mon Mar 20 18:01:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2788         * lang.c (chill_print_error_function):  New function, to report
2789         module name if not inside a function.
2790         (lang_init):  Set print_error_function to chill_print_error_function.
2792         * tasking.c (max_queue_size, buffer_element_mode):  Cleanup
2793         to remove unreachable code.
2795         * grant.c (chill_finish_compile):  Avoid doing a lookup_name
2796         to find init function (which got broken by recent nesting re-org).
2798         * decl.c (poplevel):  Push and pop function context around
2799         call to output_inline_function (as done for C and C++).
2801 Thu Mar 16 17:56:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2803         * parse.c (parse_pass_1_2):  If unknown top-level token, skip pass 2.
2805 Wed Mar  8 13:54:33 1995  Doug Evans  <dje@canuck.cygnus.com>
2807         * Make-lang.in (chill-runtime): Temporarily disable building of
2808         runtime libraries for cross compilers.
2810 Mon Mar  6 23:36:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2812         * parse.c, decl.c:  Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2814         * configure:  Merge in tolerance for new flags (e.g. --x-libraries).
2816 Sat Mar  4 15:47:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2818         * expr.c (build_chill_arrow_expr):  Error if pass == 1.
2820 Thu Mar  2 19:28:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2822         * decl.c (do_decl):  Setting seen_action must be done in pass 1.
2823         (save_decl):  Don't set DECL_CONTEXT to global_function_decl.
2824         (start_chill_function):  Simplify due to above change.
2826         * parse.c (parse_case_label):  Hack to distinguish (ELSE) from (*).
2827         * grant.c (decode_constant):  Emit ELSE in case label.
2829         * parse.c (serious_errors):  New global variable.
2830         * parse.c (to_global_binding_level):  Set serious_errors.
2831         (parse_pass_1_2):  Exit after pass 1 if serious_errors > 0.
2832         * lex.c (readstring):  Recover from unterminstaed control sequence.
2834 Tue Feb 28 17:08:08 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2836         Re-write of module-level actions.  No longer generate a module
2837         function for module-level actions.  Instead, put them inside
2838         a new global dummy function.  Nest everything logically inside it.
2840         * lex.h, grant.c (chill_module_name):  Removed declaration.
2841         * grant.c (write_spec_module):  Instead use current_module->name.
2842         * grant.c (chill_start_module_code, chill_finish_module_code):
2843         Removed.
2844         * grant.c (chill_finish_compile):  Make rtl for global function.
2846         * actions,c (push_action):  Don't call chill_start_module_code.
2847         * expr.c (build_chill_function_call, build_generalized_call):
2848         Likewise.
2849         * parse.c (INIT_ACTION):  Likewise.
2851         * parse.c (seen_action):  New variable.
2852         * parse.c (end_function):  Always call pop_chill_function_context.
2853         (parse_procedure_definition):  Always call push_chill_function_context.
2854         (parse_modulion):  Parse optional handler.
2855         (parse_modulion, parse_spec_module):  Do find_granted_decls.
2856         (parse_action):  Set seen_action if global and a real action.
2857         ([arse_program):  Call start_outer_function and finish_outer_function.
2859         * ch-tree.h:  Appropriate updates.
2861         * tasking.c (generate_tasking_code_variable):  Make it lifetime-bound.
2862         (build_process_header):  Always push_chill_function_context;
2863         we are now always nested.
2864         (build_process_wrapper):  Always pop_chill_function_context.
2866         * tasking.c (build_start_process):  Only expand_start_bindings and
2867         expand_end_bindings if pass 2.
2869         * decl.c (global_function_decl):  New variable.
2870         (do_decl):  Implement reach-bound initialization of static variables.
2871         (start_chill_function):  Set DECL_CONTEXT to NULL if
2872         it would be global_function_decl (so as to not confuse gcc backend).
2873         (start_chill_function, finish_chill_function):  If compiling
2874         global_function_decl in pass 2 and !seen_action, suppress it.
2875         (set_module_name):  New function.
2876         (global_bindings_p):  Re-defined to check against global_function_decl.
2877         (start_outer_function, finish_outer_function):  New functions.
2879 Tue Feb 28 16:00:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2881         * typeck.c (build_chill_modify_expr):  Inline logic from
2882         chill_expand_array_assignment,
2883         * actions.c (chill_expand_array_assignment):  Removed.
2884         (chill_expand_assignment):  Remove call to removed function.
2886         * lex.c (reinit_parse_for_function):  Removed empty unused function.
2887         * decl.c (start_chill_function):  Don't call removed function.
2889 Tue Feb 28 00:29:51 1995  Per Bothner  <bothner@cygnus.com>
2891         * configure:  Merge in code for calculating host, build, and
2892         target and canon_{host,build,target} from ../configure.
2893         Fix calculation of mainsrcdir.  Host canon_* variables
2894         to merge in build-make (as in ../configure).
2896 Sun Feb 26 18:59:02 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2898         * typeck.c (expand_constant_to_buffer):  Use new function
2899         get_set_constructor_bytes.
2901 Tue Feb 21 01:41:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2903         * inout.c (build_chill_writetext): Add processing of
2904         conditional expressions in argument list.
2906         * parse.c (parse_opt_name_string): Print error message only
2907         in pass 1.
2909         * chill.texi: Add chapter about compiler directives.
2911 Tue Feb 14 16:45:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2913         * decl.c (start_chill_function):  Set FUNCTION_NEEDS_STATIC_CHAIN
2914         unless nested.
2916         * decl.c (decl_temp1):  Make lifetime_bound iff static.
2918 Fri Feb  3 04:30:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2920         * grant.c (really_grant_this, search_in_list): New static
2921         functions to determine if a decl should be written to
2922         grant file.
2923         (write_spec_module): Add call to really_grant_this.
2925 Fri Jan 27 00:06:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2927         * actions.c (check_expression): Apply Per's patch.
2928         (chill_expand_result): New argument to indicate if we come
2929         from a RETURN or RESULT action. Change various error messages.
2931         * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2932         New argument for chill_expand_result.
2934         * chill.in: In case of -fgrant-only, clear library, libpath and
2935         startfile to avoid warnings from gcc.
2937         * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2939         * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2941         * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2942         and subsequent SEIZEs to grant file, if the seize file is
2943         used restricted.
2945         * lex.c (read_directive): Process new compiler directive
2946         USE_SEIZE_FILE_RESTRICTED.
2947         (handle_use_seizefile_directive): Same as above.
2948         (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2949         if this seize file is used restricted.
2951         * parse.c (parse_action, case RETURN): Change RETURN expr action
2952         to RESULT expr; RETURN. This enables range checking and
2953         exception delivery in case of rangefail.
2955 Tue Jan 17 07:38:27 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2957         * decl.c (init_decl_processing): Add definition of
2958         library function __inbitstring (see expr.c).
2960         * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2961         __inpowerset fir POWERSET's and function __inbitstring for
2962         BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2963         in case of BITSTRING's we have to do one.
2964         (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2965         statement with no effect).
2967 Fri Jan 13 13:35:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2969         * actions.c (check_expression):  Simplify result.
2971         * ch-tree.h (SET_CH_NOVELTY_NONNIL):  New macro.
2972         * expr.c, timing.c, typeck.c:  Use SET_CH_NOVELTY_NONNIL.
2974         * typeck.c (valid_array_index_p), ch-tree.h:  Change interface
2975         to return modified index expression.  Call error if out-of-range.
2976         * actions.c, typeck.c:  Modify
2977         for new valid_array_index_p interface.
2979         * actions.c (build_chill_slice):  Copy novelty of index type.
2981 Fri Jan 13 13:04:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2983         * convert.c (digest_array_tuple):  Allow mode name in array
2984         tuple label.  Print error message instead of aborting.
2986         * parse.c (parse_body):  Error message only if pass 1.
2988         * decl.c (check_identifier), ch-tree.h:  Remove.  Unused.
2990 Wed Jan 11 14:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2992         * parse.c (parse_modulion):  Undo yesterday's change (to allow
2993         an ON-handler to follow) until we re-implement module.
2995 Tue Jan 10 17:23:55 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2997         * loop.c (declare_temps):  Remove bogus prohibition against
2998         iterating over BOOL arrays.
3000         * parse.c (parse_semi_colon):  Make it a pedwarn (instead of an
3001         error) if a semi-colon is missing before an END.
3002         (parse_action):  Likewise.
3003         * parse.c (parse_modulion):  Allow an ON-handler to follow.
3005         * parse.c (parse_set_mode):  Use parse_expression to get
3006         values for number set elements.
3008         * expr.c (build_compare_expr):  Make sure result has
3009         CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
3010         (finish_chill_binary_op):  Likewise for IN_EXPR.
3012 Tue Jan 10 04:46:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
3014         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
3015         checking the argument.
3016         (chill_expand_assignment): Take care of a newmoded dst_offset
3017         when calling __pscpy and a newmoded from_pos when calling
3018         __setpowersetbits.
3020         * expr.c (chill_expand_expr): When calling __psslice take care
3021         of a newmoded min_value.
3023         * parse.c (parse_name_string): Print error message only in
3024         pass 1.
3026 Tue Jan  3 19:56:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3028         * typeck.c (build_chill_array_ref_1):  Use varying_to_slice
3029         instead of building a VRAY_ARRAY_REF node.
3030         * ch-tree.def (VARY_ARRAY_REF):  Removed.
3031         * actions.c (chill_expand_assignment):  Will never call
3032         expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
3033         (expand_assignment_to_varying_array):  Removed.
3034         * convert.c (convert):  Remove unneeded VARY_ARRAY_REF support.
3035         * expr.c (chill_expand_expr):  Likewise.
3037 Tue Jan  3 19:50:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3039         * parse.c (parse_iteration):  Set step_value to NULL if missing.
3040         * loop.c (ITER_TYPE):  Remove DO_RANGE.
3041         (build_loop_iterator):  Implement old DO_RANGE in terms of DO_STEP.
3042         (begin_loop_scope):  Don't return on error.
3043         (build_loop_iterator):   Calculate loop variable type using
3044         resulting classes (as in Z200), rather than precision.
3046         * loop.c (initialzie_iter_var, bottom_loop_end_check):  For DO_STEP,
3047         make iter_var one less to avoid overflow.
3048         * loop.c (build_loop_iterator):  If !flag_local_loop_counter,
3049         declare a new variable if needed, as allowed by Z200 (1984).
3051         * ch-tree.h (ch_class):  Add typedef.
3053         * typeck.c (chill_resulting_class):  New function.
3054         (chill_root_resulting_class):  Remove.
3055         * ch-tree.h (CH_RESULTING_CLASS):  New macro.
3056         (CH_ROOT_RESULTING_CLASS):  Re-implement using CH_RESULTING_CLASS.
3058 Tue Jan  3 19:36:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3060         * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
3061         Change interface to take IDENTIFIER tree node, rather char char*.
3062         (check_expression): Change (simplify) callers appropriately.
3063         * parse.c (parse_action), typeck.c (valid_array_index_p):  Likewise.
3064         * lex.h (enum rid):  Add RID_ASSERTFAIL.
3065         * lex.c (init_lex):  Enter RID_ASSERTFAIL.
3066         * parse.c (parse_action case ASSERT):  Fix thinko TRUTH_ANDIF_EXPR
3067         to TRUTH_ORIF_EXPR.  Use RID_ASSERTFAIL.
3069         * typeck.c (discrete_type_p):  Re-implement using INTEGRAL_TYPE_P.
3071 Tue Jan  3 19:20:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3073         Move checking for modeless tuples in invalid contexts from parser
3074         to semantic function check_have_mode (for better error recovery):
3075         * expr.c (check_have_mode), ch-tree.h:  New function.
3076         * satisfy.c (safe_satisfy_decl):  Use check_have_mode.
3077         * expr.c (build_compare_expr, finish_chill_binary_op,
3078         finish_chill_unary_op):  Likewise.
3079         * parse.c (parse_primval):  Don't complain about mode-less tuple here.
3081 Tue Jan  3 17:36:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3083         * expr.c (varying_to_slice):  Support varying arrays whose
3084         lower bound is non-zero.
3086         * parse.c (parse_body):  Allow (with warning) definition to
3087         follow action.
3089         * expr.c (check_case_selector), ch-tree.h:  New function.
3090         (chill_expand_case_expr):  Use it.
3091         * parse.c (parse_case_action):  Likewise.
3093 Fri Dec 23 00:47:54 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3095         * actions.c (chill_expand_return): Change error message.
3097         * ch-tree.h: Change prototypes of do_decl and do_decls.
3099         * convert.c (convert): Add missing initialisation of
3100         variable orig_e_constant.
3102         * decl.c: Change all calls to do_decl.
3103         (maybe_static): New function to process the ALL_STATIC_ON/OFF
3104         compiler directives.
3105         (do_decls): New argument.
3106         (do_decl): New argument and process reachbound and lifetime
3107         bound initialisation.
3109         * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
3110         ALL_STATIC_OFF.
3112         * grant.c: Change all calls to do_decl.
3114         * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
3115         directive.
3117         * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
3118         do_decls.
3120         * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
3122         * tasking.c: Change all calls to do_decl.
3124 Mon Dec 19 23:13:58 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3126         * parse.c (parse_procedure_definition): Save chill_at_module_level
3127         flag, set ot to 0 and restore it at the end of function.
3128         A sequence BEGIN x: PROC () RETURN; END x; END; at module level
3129         have produced an error.
3131         * expr.c (build_chill_repetition_op): Fix typo in error message.
3133 Tue Dec 13 12:26:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3135         * actions.c (expand_assignment_to_varying_array):  Fix thinko:
3136         build_chill_array_ref -> build_chill_array_ref_1.
3138 Sun Dec 11 23:04:27 1994  Per Bothner  <bothner@rtl.cygnus.com>
3140         * actions.c (chill_expand_assignment):  Simplify the lhs if it is
3141         a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
3143 Thu Dec  8 13:45:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3145         * loop.c, ch-tree.h (build_loop_iterator):  Fix to return void.
3146         If start_exp is ERROR_MARK, return.
3147         * expr.c (build_generalized_call):  More robust on syntax errors.
3149 Tue Dec  6 02:33:23 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3151         * inout.c (build_chill_readtext): In case of reading a SET mode
3152         pass ignore_case flag to runtime library.
3154 Tue Nov 29 14:41:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3156         * parse.c (parse_receive_case_action):  Print error only if pass==1.
3157         * decl.c (push_scope_decls):  Use error_with_file_and_line
3158         to get correct line number of SEIZE.
3160 Mon Nov 28 16:59:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3162         * expr.c (resolve_component_ref):  Call fold on result.
3164         * expr.c (resolve_component_ref):  Use check_expression.
3165         * actions.c (chill_convert_for_assignment):  Likewise.
3166         * actions.c (cond_exception), ch-tree.h:  Removed.
3167         * actions.c (check_expression):  First part of COMPOUND_EXPR
3168         should be boolean_type_node;  void_type_node loses in SAVE_EXPRs.
3170         * actions.c (chill_convert_for_assignment):
3171         Check string_assignment_condition for varying strings too.
3173         * typeck.c (build_chill_cast):  If the types have different sizes,
3174         don't allow nondiscrete->discrete conversion, and only allow
3175         discrete->nondiscrete if input expression is constant.
3177         * typeck.c (chill_similar):  Don't use losing array_type_nelts.
3179         * ch-tree.h (ELSE_VARIANT_NAME):  New.
3180         * convert.c, decl.c, grant.c:  Use ELSE_VARIANT_NAME.
3181         * decl.c (handle_one_level):  Recurse on ELSE_VARIANT_NAME too.
3183         Reduce dependencies on ../c-typeck.c:
3184         * expr.c:  Fix c_expand_start_case -> expand_start_case.
3185         Fix c_expand_expr_stmt -> expand_expr_stmt.
3186         (build_chill_indirect_ref):  Call convert instead of build_c_cast.
3187         * loop.c (bottom_loop_end_check):  Don't use build_modify_statement.
3188         * expr.c, except.c, typeck.c:  Don't call default_conversion.
3189         * typeck.c (string_assignment_condition):  Fix build_component_ref ->
3190         build_chill_component_ref.
3191         * decl.c:  Fix build_indirect_ref -> build_chill_indirect_ref (twice).
3192         * decl.c:  Don't set unused constructor_no_implicit (from c-typeck.c).
3193         * decl.c:  Don't call declare_function_name.
3195         * parse.c: Don't always keep a valid token in terminal_buffer[0].
3196         The extra look-ahead may have made the parser faster, but caused
3197         some problems synchronizing with the lexer.  Specifically:
3198         (PEEK_TOKEN):  Now calls an optimized variant of peek_token_(0).
3199         (next_token_):  Don't call peek_token_.  Renamed to forward_token_.
3200         (NEXT_TOKEN):  Renamed to FORWARD_TOKEN.
3201         (parse_program):  Don't call yylex yet.
3203         * parse.c (parse_action):  Re-do case ASSERT.
3204         Fix c_expand_expr_stmt -> expand_expr_stmt.
3206         * lex.l:  Re-written to not use [f]lex, and renamed to ...
3207         * lex.c:  ... new lexer.
3208         * Makefile.in, Make-lang.in:  Remove [f]lex crud.
3210         * lex.h (enum rid), lex.c (init_lex):  Added RID_ELSE.
3212 Tue Nov 22 15:19:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3214         * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
3216 Fri Nov 18 14:27:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3218         * parse.c (parse_structure_node):  Simpler, and more robust.
3220 Wed Nov 16 14:40:52 1994  Ian Lance Taylor  (ian@cygnus.com)
3222         * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
3223         not at compile time.
3224         * typeck.c (expand_constant_to_buffer): Likewise.
3225         extract_constant_from_buffer): Likewise.
3227 Tue Nov 15 14:41:53 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3229         * convert.c (convert):  Call build_chill_range_type rather than
3230         build_index_2_type (which has obstack and canonicalization problems).
3231         * expr.c (build_chill_pred_or_succ):  Convert expr to root class
3232         before arithmetic.
3233         * loop.c (declare_temps):  If location iterated over is not
3234         a location, make a temporary variable for it.
3236 Mon Nov 14 16:33:47 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3238         * typeck.c, ch-tree.h (chill_equivalent):  Change to return
3239         a tree (a Boolean expression).  Also, add some missing tests.
3240         * ch-tree.h (CH_EQUIVALENT):  Modify accordingly.
3242         * expr.c (chill_expand_expr case CONCAT_EXPR):  When the 2nd operand
3243         is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
3244         Also, replace MEM (which is not a mode) by Pmode.
3246         * ch-tree.h, typeck.c (chill_comptypes):  Removed.
3247         * convert.c (convert):  Remove calls to chill_comptypes.
3249 Fri Nov 11 13:06:29 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3251         * grant.c (write_grant_file): Call pfatal_with_name instead
3252         of abort when something goes wrong when opening or writing
3253         the grant file.
3254         unlink grant file if something goes wrong during writing
3255         (i.e. device full).
3257         * Make-lang.in (CHILL_SRCS): Add timing.c
3259         * ch-tree.h: Add prototype for chill_tasking_type_node.
3260         * lex.l (equal_number): Use chill_tasking_type_node instead of
3261         integer_type_node for converting the result.
3262         Print error messages in pass 2, in pass 1 no error will be
3263         detected.
3264         * tasking.c: New variable chill_tasking_type_node for all
3265         generated tasking related variables.
3266         Use chill_tasking_type_node instead of chill_unsigned_type_node.
3268         * expr.c (chill_expand_expr): Apply Per's change.
3270         * expr.c (build_chill_sizeof): In case of error just
3271         return error_makr_node.
3272         Set CH_DERIVED_FLAG at the result.
3274         * timing.c (build_after_timeout_start): Clear the the timeout
3275         level to know if we are in the action part of AFTER statement
3276         or in the TIMEOUT part.
3278         * typeck.c (build_chill_slice_with_length): Convert the class
3279         of the result to class of first value in expression.
3281         * inout.c (build_chill_writetext, build_chill_readtext): Use stack
3282         temporary variables for the iolist so that they can get reused in
3283         subsequent calls. Emit code immediately instead of building a
3284         compound expr.
3286 Fri Nov  4 12:00:54 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3288         * expr.c (build_chill_function_call):  Don't set TREE_TYPE
3289         of assignment to void_type_node - it confuses save_expr.
3290         * decl.c (init_decl_processing):  Removed unused code.
3291         * parse.c:  Changes to avoid warnings.
3293         * grant.c (chill_finish_module_code):  Minor simplification.
3294         * lex.l (readstring):  Set *len to 1 on error.
3296 Thu Nov  3 01:05:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3298         * grant.c (decode_decl): Add granting of BASED declarations.
3300 Wed Nov  2 12:14:31 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3302         * expr.c (build_chill_lower_or_upper):  Take more care to
3303         ensure result has the right class.
3304         (build_chill_pred_or_succ):  Be more careful to get the right
3305         resulting class, and check bounds using *root* mode.
3307         * typeck.c (build_chill_slice_with_range):  Check that array
3308         really is an array or string.
3309         (build_chill_slice_with_length):  Likewise.
3311         * typeck.c (extract_constant_from_buffer):  Fix calculation of
3312         SET_TYPE size.  (Cannot depend on 1-byte TYPE_PRECISION field.)
3314 Wed Nov  2 05:33:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3316         * Make-lang.in: Change version of compiler.
3318         * ch-tree.h: Add new prototypes.
3320         * decl.c (init_decl_processing): Remove timing related
3321         initialisations. Add call to timing_init.
3323         * parse.c (parse_action): Process AFTER action.
3325         * tasking.c (build_receive_case_start,
3326         build_receive_signal_case_label, build_receive_buffer_case_label,
3327         build_delay_case_start, build_delay_action, expand_send_buffer):
3328         Add processing of timesupervision.
3329         (tasking_init): Change definitions of runtime   functions.
3331         * timing.c (timing_init): New function for initialisation of
3332         timing related stuff.
3333         (build_cycle_start, build_cycle_end): Changed due to
3334         implementation of timesupervision.
3335         (build_after_start, build_after_timeout_start, build_after_end):
3336         Implement the AFTER action.
3337         (build_timeout_preface, build_timesupervised_call): New functions
3338         to handle timesupervision in case of blocking system calls (i.e.
3339         SEND buffer action, RECEIVE CASE action etc.).
3341 Thu Oct 27 12:50:24 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3343         * expr.c (build_chill_repetition_op):  Fix repeating all-zero
3344         bitstring with orig_len!=1.  Also, call build_boring_bitstring
3345         if original string was all ones, using one range.  Also:
3346         Cannot use one-bit TYPE_PRECISION to get bitstring length.
3348 Tue Oct 25 14:11:07 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3350         * convert.c (convert):  When converting BOOL constant to
3351         bit-string, bit_one_node and bit_zero_node were switched.
3352         * actions.c (chill_expand_assignment):  Use force_addr_of,
3353         not build_chill_addr_expr - latter yields bogus error.
3355 Fri Oct 21 14:26:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3357         * expr.c (build_chill_indirect_ref):  Check for POINTER_TYPE (only)
3358         after converting from REFERENCE_TYPE.
3359         * expr.c (build_compare_expr):  Convert to common mode *after*
3360         we've checked compatibility.
3362 Fri Oct 21 02:29:15 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3364         * lex.l (check_newline): Use getc instead of getlc to read
3365         the filename in a # line name directive to avoid possibly
3366         downcaseing of a filename.
3368 Thu Oct 20 05:37:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3370         * expr.c (build_chill_indirect_ref): Add check for really
3371         dereferencing a pointer.
3373         * convert.c (convert): Take care of TREE_CONSTANT of a
3374         SYNONYM having mode ARRAY () VARYING something.
3376 Mon Oct 17 02:30:38 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3378         * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
3379         boolean_true_node and boolean_false_node. TRUE and FALSE have
3380         the BOOL derived class.
3382         * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
3383         of NUM. NUM delivers the INT derived class.
3385         * grant.c (write_spec_module): Add writing of
3386           <> USE_SEIZE_FILE "x.grt" <>
3387           SEIZE ALL;
3388         to generated grant file.
3390 Thu Oct 13 14:45:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3392         * convert.c (convert_from_reference):  Make non-static.
3393         * ch-tree.h (convert_from_reference):  Add prototype.
3394         * parse.c (parse_name):  If the decl is a REFERENCE_TYPE, just
3395         call convert_from_reference - and not a full-scale convert.
3397         * convert.c (convert):  Only call digest_array_tuple if ARRAY_TYPE.
3398         * typeck.c (chill_expand_tuple):  Print error if type is
3399         neither array, struct, or powerset.
3401         * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
3402         UNDEFINED_EXPR):  Call preserve_temp_slots for temp targets.
3403         If target is not MEM, make temp (even if not REG) to simplify
3404         - and don't copy original target to temp target first.  (Not needed.)
3406         * lang.c (maybe_objc_comptypes):  Just return -1.
3408 Wed Oct 12 12:24:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3410         * tasking.c (tasking_setup):  Fix breakage from previous check-in.
3412 Tue Oct 11 16:00:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3414         * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
3415         timing.c, typeck.c:  Change build1 (ADDR_EXPR, ptr_type_node, XX)
3416         to force_addr_of (XX).  Add call to mark_addressable where needed
3417         for other calls to build 1 (ADDR_EXPR, TYPE, XX).
3419 Thu Oct  6 06:36:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3421         * inout.c (build_chill_writetext): Remove processing
3422         of POWERSET's.
3424 Tue Oct  4 14:08:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3426         * convert.c (convert):  If flag_old_strings, support converting
3427         CHARS(1) and BOOLS(1) to INT.
3429 Fri Sep 30 01:44:51 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3431         * inout.c (build_chill_readtext): Add check for item is
3432         referable and not READonly. Add processing of BITSTRINGs.
3434 Mon Sep 26 16:19:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3436         * expr.c (build_chill_descr):  Add missing call to mark_addressable.
3437         * loop.c (toop_loop_end_check):  Replace build1 (ADDR_EXPR ...)
3438         with call to force_addr_of (which calls mark_addressable).
3439         * expr.c (build_chill_descr, build_chill_inttime):  Likewise.
3440         * inout.c (build_chill_writetext):  Likewise.
3442 Mon Sep 26 05:19:21 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3444         * grant.c (print_struct): Move printing of VARYING from
3445         here ...
3446         * grant.c (grant_array_type): ... to here.
3448 Mon Sep 26 00:09:08 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3450         * ch-tree.h (force_addr_of):  New prototype.
3451         * expr.c (force_addr_of):  Call mark_addressable.  Make non-static.
3452         * inout.c (build_chill_writetext):  Use force_addr_of.
3454 Sun Sep 25 23:41:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3456         * except.c (push_handler), actions.h:  Removed unused parameter.
3457         * actions.c (push_action):  Remove unused paramater.
3458         * parse.c, actions.c:  Remove no-longer-used parameter to
3459         calls to push_handler and push_action.
3461         * decl.c (push_extern_process):  Only build types in pass 1.
3462         * tasking.c (build_process_header):  Only build types in pass 1.
3463         * tasking.c (build_start_process):  Do pushdecl/popdecl etc
3464         even after an error (to maintain consistency between passes).
3466         * convert.c (convert_to_boolean):  Allow any integral input type.
3468 Sat Sep 24 22:47:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3470         * typeck.c (extract_constant_from_buffer):  Add (somewhat kludgey)
3471         support for UNION_TYPE.  (Patch from Wilfried.)
3472         Also, reverse RECORD_TYPE constructor list.
3474 Fri Sep 23 19:06:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3476         * expr.c (build_concat_expr):  Fix calculation of result_size.
3478 Wed Sep 21 00:54:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3480         Give up on trying to use the cleanup mechanism in stmt.c to
3481         make sure the exception handler get unlinked on goto/exit/return.
3482         Instead, do it ourselves.  (Much simpler.)
3483         * except.c, ch-tree.h (action_nesting_level):  New global.
3484         * ch-tree.h (DECL_ACTION_NESTING_LEVEL):  New macro.
3485         * decl.c (define_label):  Set DECL_ACTION_NESTING_LEVEL.
3486         * except.c (expand_goto_except_cleanup):  New function.
3487         (cleanup_chain):  New variable.
3488         (push_handler, pop_handler):  Adjust action_nesting_level.
3489         (emit_setup_handler):  Push cleanup.
3490         (chill_finish_on):  Pop cleanup.
3491         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
3492         Call expand_goto_except_cleanup.
3493         * parse.c (parse_action):  Before RETURN, call
3494         expand_goto_except_cleanup.
3496 Mon Sep 19 00:59:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3498         * lex.l (equal_number):  Make sure converted synonym
3499         is on permanent obstack.
3500         * typeck.c (extract_constant_from_buffer):  Fix INTEGER_TYPE
3501         loop to traverse in big-endian order.
3503 Sat Sep 17 20:48:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3505         * typeck.c (build_chill_cast):  Call mark_addressable.
3506         * expr.c (build_chill_function_call):  Call mark_addressable.
3508 Thu Sep 15 23:47:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3510         * typeck.c (expand_constant_to_buffer):  Fix an endian-ness
3511         problem for INTEGER_CST.
3512         (extract_constant_from_buffer):  Likewise.
3514 Thu Sep 15 22:59:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3516         * decl.c (pushlevel):  Do different things depending on
3517         actual parameter.
3518         * decl.c, parse.c, tasking.c:  Change argument to to pushlevel to 1.
3519         * actions.c (push_action):  Take new parameter.
3520         * except.c (push_handler):  Likewise.
3521         * parse.c:  Change calls to push_action and push_handler.
3522         * loop.c (begin_loop_scope):  Always call expand_start_bindings.
3523         * loop.c (end_loop_scope):  Always call expand_end_bindings.
3524         * except.c (emit_setup_handler):  Add a cleanup to
3525         unlink from exception stack if we return/exit/goto from here.
3526         * loop.c (begin_loop_scope):  Move pushlevel from here ...
3527         * parse.c (parse_do_action): ... to here.
3529         Clean up do-decl interface (for decl_temp1).
3530         * parse.c (parse_loc_declaration):  If global_bindings_p (),
3531         treat as static.
3532         * decl.c (do_decl):  Don't test global_bindings_p ().
3534         * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3535         Not used.  Removed.
3536         (struct scope::keep, scope::keep_if_subblocks):  Likewise.
3537         (keep_next_level):  Likewise.
3538         (kept_level_p, pushlevel, poplevel):  Simplify.
3540         * decl.c (init_decl_processing):  Don't call init_iterators.
3541         * Makefile.in (C_OBJS):  Don't get ../c-iterator.o - not needed.
3543 Thu Sep 15 05:54:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3545         * lex.l (readstring): Add processing of control sequence
3546         in character string literals. The granting mechanism writes
3547         this to grant files.
3549 Tue Sep 13 06:19:42 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3551         * expr.c (compare_records): In case of -fpack do always
3552         a memcmp instead of comparing each field of the
3553         structure. If the structure is a variant structure,
3554         issue a warning.
3556 Mon Sep 12 13:15:09 1994  Per Bothner  (bothner@cygnus.com)
3558         * grant.c (write_spec_module):  Add cast, to avoid PCC warning.
3559         * grant.c (header_template):  Don't use ANSI-specific string
3560         literal concatenation.
3562 Fri Sep  9 01:53:30 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3564         * tasking.c (get_process_wrapper_name): New function.
3565         (add_taskstuff_to_list): Add a new argument, which is
3566         the entrypoint of a process.
3567         (build_process_header): Change PROCESS arguments to be
3568         like arguments of a function. There will be a wrapper
3569         which is the real entry point for a PROCESS. This wrapper
3570         is automatically build after a PROCESS definition and gets
3571         as argument a pointer to a structure looking like the
3572         arguments of the PROCESS. This wrapper will call the
3573         PROCESS (see build_process_wrapper).
3574         (build_process_wrapper): New function (see above).
3575         (build_start_process): Change processing of arguments.
3576         (tasking_setup): Add processing of a different entry point
3577         in case of PROCESSes.
3579         * parse.c (parse_process_definition): Add call to
3580         build_process_wrapper.
3581         * parse.c (end_function): Remove the poplevel() call.
3582         build_process_header no longer makes the corresponding
3583         pushlevel().
3585         * grant.c (print_proc_tail): Remove special processing
3586         of PROCESSes, they look now like normal functions.
3588         * decl.c (init_decl_processing): Add declaration of memcmp
3589         function.
3591         * ch-tree.h: Add new prototype for build_process_wrapper,
3592         change prototypes for add_taskstuff_to_list and
3593         build_process_header.
3595         * grant.c (write_spec_module): Write GNUCHILL and gcc
3596         version into grant file.
3598         * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
3599         GNUCHILL_VERSION to ch/Makefile.
3600         * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3602         * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3603         will get generated every time a new Makefile will get
3604         generated.
3605         * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3606         Make-lang.in.
3608         * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3609         to the compiler to avoid generation of an object file.
3611 Thu Sep  8 12:07:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3613         * convert.c (display_int_cst), ch-tree.h:  New function.
3614         * convert.c (digest_array_tuple):  Use digest_int_cst to
3615         provide better error messages.  Return error_mark_node on error.
3616         * grant.c (decode_const):  Simplify by using digest_int_cst.
3617         * grant.c (format_character, find_assoc):  Removed.
3619         * decl.c (do_decl):  Add missing TREE_CHAIN.
3621         * decl.c (finish_incomplete_decl):  Removed.
3622         (init_decl_processing):  Don't set incomplete_decl_finalize_hook.
3623         (finish_decl):  Remove old C-specific code to deduce size of
3624         array from initialization.
3625         (complete_array_type):  Just make it abort.
3627         * except.c (finish_handler_array):  Avoid calling C-specific kludge
3628         complete_array_type.
3630         * convert.c (digest_constructor):  Rename, and re-write to:
3631         (digest_array_tuple, convert):  No longer use the code in
3632         ../c-typeck.c;  use a Chill-only implementation (sigh).
3634         * typeck.c (chill_expand_tuple):  Remove unneeded call to
3635         complete_array_type.
3637         * expr.c (fold_set_expr), grant.c (decode_constant),
3638         typeck.c (expand_constant_to_buffer):  Update name of called
3639         function unpack_set_constructor to get_set_constructor_bits.
3640         * expr.c (powersetlen ):  Remove redundant call to convert.
3642         * ch-tree.h (unpack_set_constructor):  Removed obsolete declaration.
3644         * inout.c (build_chill_writetext):  Handle 64-bit integer literals
3645         by trying to convert them to a smaller type.
3647         * lex.l (convert_number):  Always use long long type (possibly
3648         unsigned) to avoid problems with constant folding truncation.
3650 Mon Sep  5 08:08:22 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3652         * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3653         Add new prototype (see tasking.c).
3655         * expr.c (build_generalized_call): Add processing of
3656         BUILT_IN_QUEUE_LENGTH.
3658         * tasking.c (build_queue_length): New function.
3660         * tasking.c (tasking_init): Add new external function definition.
3662 Thu Sep  1 15:38:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3664         * lex.l (default_lex):  New function.  Progress towards
3665         getting rid of [f]lex.
3667         * lex.l (convert_number):  Use mul_double and add_double.
3668         Set result type to a reasonable type in which the literal
3669         will fit.  Give error message if literal is too big.
3671         * lex.l (equal_number):  Switch (temporarily) to permanent obstack.
3673         * typeck.c (build_chill_slice_with_range):  Check for empty
3674         slice *after* we have checked for upper/lower limit in range.
3676         * grant.c (decode_mode):  Remove unused code.  (BOOL and
3677         CHAR ranges are represented as INTEGER_TYPEs.)
3679         * tasking.c (build_process_header):  Add missing call to
3680         expand_start_bindings.
3681         * parse.c (end_function):  Add missing expand_end_bindings.
3683 Wed Aug 31 17:25:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3685         * decl.c (init_decl_processing):  Set set_alignment.
3687 Tue Aug 30 16:40:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3689         * actions.c (print_missing_cases, check_missing_cases,
3690         BITARRAY_TEST, BITARRAY_SET):  New functions and macros,
3691         to check for completeness of case actions and expressions.
3692         * decl.c (c_decode_option, init_decl_processing):
3693         Don't set warn_switch.
3694         * expr.c (chill_expand_case_expr):  Call check_missing_cases
3695         instead of check_for_full_enumeration_handling.
3696         * parse.c (parse_case_actions):  Call check_missing_cases.
3698         * expr.c (build_chill_binary_op):  Remove some dead code.
3699         * expr.c (chill_truthvalue_conversion):  Call build_chill_binary_op
3700         instead of build_binary_op.
3701         * ch-tree.h (binary_op_error, build_binary_op):  Unused.  Removed.
3703         * parse.c (end_function):  Use kept_level_p in parameter to
3704         poplevel.  This reverts a June 13 change.
3706 Fri Aug 26 11:50:19 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3708         * configure: Ignore --without, as ../configure does.
3710 Wed Aug 24 01:17:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3712         * lex.l: Change rule for decimal numbers to allow identifiers
3713         to start with an underscore (_).
3715 Fri Aug 19 16:38:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3717         * tasking.c (build_receive_signal_case_label):  Remove backwards
3718         chill_convert_for_assignment (which converted whatever garbage
3719         was in the *target* to the type of the signal argument!).
3721 Fri Aug 19 07:10:43 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3723         * inout.c (build_chill_io_list_type, build_enum_tables),
3724         tasking.c (build_tasking_struct): Temporarily reset
3725         maximum_field_alignment to 0, so that the compiler-built
3726         data structures needed by the RTS can be independent of -fpack.
3728 Thu Aug 18 13:39:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3730         * typeck.c (build_init_struct):  Temporarily reset
3731         maximum_field_alignment to 0, so that the compiler-built
3732         data structures needed by the RTS can be independent of -fpack.
3734 Wed Aug 17 23:48:33 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3736         * parse.c (parse_primval, expect, parse_on_exception_list):
3737         Print error message only in pass 2.
3739 Wed Aug 17 13:47:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3741         * decl.c (switch_to_pass_2):  Revert June 13 change,
3742         (Don't exit after pass 1 if an error was found.)
3744         * ch-tree.def (SLICE_EXPR):  New tree-code.
3745         * typeck.c (build_chill_slice):  For building a slice of a
3746         bit-string, just generate a SLICE_EXPR.
3747         * decl.c (init_decl_processing):  Declare __pscpy.
3748         * actions.c (chill_expand_assignment):  Handle a SLICE_EXPR
3749         on the LHS of assignment, by calling __pscpy.
3750         * expr.c (chill_expand_expr):  Handle SLICE_EXPR (as a RHS
3751         value) by using __psslice to copy slice to a temp.
3753 Wed Aug 17 05:52:44 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3755         * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3756         * expr.c (build_chill_length): Enable LENGTH built-in to process
3757         Buffers and Events too (Z.200/1992).
3758         * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3759         a linux system the previous version was not able to run.
3760         * tasking.c: Correct processing of infinite buffer- and event-length
3761         to avoid RANGEFAIL warning.
3763 Thu Aug 11 11:46:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3765         * parse.c (parse_if_expression_body):  Don't call the C-specific
3766         build_conditional_expr.  Just do build_nt (COND_EXPR, ...).
3767         * convert.c (convert):  Convert a COND_EXPR by converting
3768         each branch.
3770         * convert.c (convert):  Don't call convert before
3771         convert_to_reference.  It's apt to do weird and unneedful things.
3772         * convert.c (convert):  If the expression is varying, just call
3773         varying_to_slice, which simplifies quite a bit.
3775         * ch-tree.h (varying_to_slice):  Add prototype.
3776         * typeck.c (varying_to_slice):  Remove prototype.
3778         * satisfy.c (satisfy):  Move case PAREN_EXPR from type 'e'
3779         to type '1'.
3781         * except.c (emit_setup_handler):  Temporarily reset the
3782         maximum_field_alignment to zero so the compiler's exception
3783         data structures can be compatible with the run-time system,
3784         even when we're compiling with -fpack.
3786         * expr.c (compare_records):  Call saved_if_needed on operands.
3788         * expr.c (build_set_expr case NE_EXPR):  Don't use __nepowerset
3789         which has been reimplemented to just call __eqpowerset and
3790         invert the result.  Inline this new implementation by
3791         handling as EQ_EXPR, and inverting the result.
3792         * decl.c (init_decl_processing):  Don't define unused __eqpowerset.
3794         * typeck.c (valid_array_index_p):  The TRUTH_ANDIF_EXPR has
3795         type boolean_type_node, not void_type_node.  (Fixing this
3796         avoids a crash in the back-end.)
3798         * grant.c (decode_constant):  In a CALL_EXPR, if the argument
3799         list is not a TREE_LIST (as in string repetiation), don't
3800         emit parentheses.
3802 Wed Aug 10 13:13:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3804         * decl.c (proclaim_decl):  Use CH_DECL_ENUM to check that a
3805         CONST_DECL is from a SET definition.  (This is safer than
3806         checking that the type is ENUMERAL_TYPE, because synonym
3807         definitions may have a NULL TREE_TYPE.)
3808         Also, if we have duplicate enums whose types are identical,
3809         this is an error.
3810         * decl.c (proclaim_decl, pushdecllist, push_scope_decls):  Add
3811         an extra 'quiet' parameter, which is true if we're called from
3812         bind_sub_modules.  (In that case an error message about duplicated
3813         decls would be repeated later, so suppress it.)
3815         * parse.c (stmt_count):  Removed, not used.
3816         (INIT_ACTION):  Call emit_line_note only if !ignoring.
3817         (parse_begin_end_block):  Do INIT_ACTION even if ignoring.
3819 Fri Aug  5 12:39:11 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3821         * parse.c (parse_untyped_expr):  Add missing semi-colon.
3823 Thu Aug  4 17:40:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3825         * parse.c (parse_untyped_expr):  Fix various problem for the
3826         case that we see a '(':  Add missing 'case' keyword.
3827         Only recurse if '(' is followed by 'if', 'case' or '[',
3828         and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3830         * parse.c (parse_send_action):  Remove extra nreverse.
3832 Thu Jul 28 04:00:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3834         * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3835         Add new checks.
3837 Tue Jul 26 22:48:15 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
3839         * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3840         Added a missing call to `require' as well.
3842 Tue Jul 19 10:30:12 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3844         * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3845         the extern declaration in the flex skeleton.
3847 Mon Jul 18 23:06:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3849         * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3850         Check the type of the instance expr using CH_COMPATIBLE,
3851         and not just == instance_type_node.  (This allows
3852         the expression to have mode READ INSTANCE).
3853         * tasking.c (build_instance_type):  Give instance_type_node
3854         a non-null novelty (i.e. different from a struct).
3855         * tasking.c (build_receive_case_start, build_delay_case_start):
3856         Check that for a location using CH_LOCATION_P.
3858 Mon Jul 18 13:22:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3860         * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3861         to modify a tree code.
3863 Mon Jul 18 11:24:57 1994  Bill Cox  (bill@rtl.cygnus.com)
3865         * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3866           comparison.
3868 Mon Jul 18 05:40:15 1994  Doug Evans  (dje@canuck.cygnus.com)
3870         * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3872 Thu Jul 14 18:37:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3874         * parse.c (parse_send_action):  Do tree_cons *before* checking
3875         for end of loop.
3877 Mon Jul 11 15:33:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3879         * convert.c (digest_structure_tuple):  Don't use convert to
3880         coerce initial value,  use chill_convert_for_assignment instead.
3881         (Thus we also get range_checking.)
3883         * expr.c (build_chill_card):  Use force_addr_of instead of
3884         build_chill_addr_expr.
3886         * loop.c (build_temporary_variable):  Stylistic tweak.
3887         * loop.c (maybe_make_for_temp):  Initialize temp using
3888         explicitly, not using assignment.  Avoids a problem if
3889         the expression is read-only.
3890         * typeck.c (smash_dummy_type):  Always used the saved TYPE_NAME
3891         and CH_NOVELTY_FLAG.
3893 Wed Jul  6 20:12:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3895         * expr.c, ch-tree.h (finish_chill_unary_op):  New function,
3896         based on code ripped out of build_chill_unary_op.
3897         (build_chill_unary_op):  Call finish_chill_unary_op unless pass==1.
3898         * satisfy.c (satisfy):   Call finish_chill_unary_op when needed.
3900 Mon Jun 27 11:29:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3902         * tree.c (save_if_needed), ch-tree.h:  New function.
3903         * typeck.c (build_chill_slice_with_range,
3904         build_chill_slice_with_length):  Call save_if_neeed on array arg.
3905         * expr.c (varying_to_slice):  Re-write to use save_if_needed.
3907         * typeck.c (extract_constant_from_buffer):  Handle BOOLEAN_TYPE.
3909 Mon Jun 27 01:11:10 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3911         * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3912         that it is always the same, regardless if compiled with -fpack
3913         or not.
3915 Tue Jun 14 16:44:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3917         * lex.l (yywrap):  Kludge to work around mis-synchronization
3918         between lexer (which read ahead) and parser:  Don't emit
3919         (left-over) uze_seizefile directives at the end of file.
3921         * typeck.c (build_chill_array_ref):  Allow the derived
3922         array indexing syntax for arrays of bit strings.
3923         Add a comment explaining why.
3925         * typeck.c, ch-tree.h (string_assignment_condition):  Change
3926         the interface.  Return a boolean expression (which can be
3927         used in a conditional at run-time);  never expand anything.
3929         * actions.c (chill_convert_for_assignment):  Check
3930         string_assignment_condition here, rather than in callers.
3931         * actions.c (chill_expand_assignment):  Don't need to check
3932         string_assignment_condition here.
3933         * expr.c (build_chill_function_call):  Likewise.
3934         * satisfy.c (safe_satisfy_decl):  Update accordingly.
3935         * decl.c (do_decl):  Simplify testing and conversion by
3936         deferring everything to chill_convert_for_assignment.
3938         * parse.c:  Combine the two variables 'ignore_exprs' and
3939         'ignore_actions' into one variable called 'ignoring'.
3940         * ch-tree.h:  Add 'extern int ignoring'.
3941         * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3942         Rename ignore_actions and ignore_exprs to ignoring.
3943         Remove unneeded extern declarations.
3944         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3945         build_chill_arrow_expr, build_generalized_call, build_delay_action,
3946         build_buffer_type, build_event_type):  I changed my mind.  It is
3947         cleaner to check for 'ignoring' in the parser, rather than here.
3948         * parse.c (parse_action, parse_primval, parse_opt_mode):
3949         Therefore we must check for ignoring here.
3950         * parse.c (parse_loc_declaration):  Set ignoring in pass 2
3951         when parsing the mode.
3953         * tasking.c (generate_tasking_code_variable):  Do arithmetic
3954         on signal_code etc using unsigned rather than signed shorts.
3956         * grant.c (static char* current_grant_modename):  Removed.
3957         * grant.c (decode_decl case CONST_DECL):  Remove error message.
3959         * Make-lang.in (CHILL_SRCS):  Add $(srcdir)/ch/parse.c.
3960         * Makefile.in:  Fix dependencies for parse.o.
3961         Remove some duplicate dependencies for $(TREE_H).
3963 Mon Jun 13 14:25:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3965         * typeck.c (build_chill_cast):  Allow a value cast between
3966         non-discrete object of the same size, but with a pedwarn.
3967         * typeck.c (bit_string_assignment_condition,
3968         char_string_assignment_condition):  Merge near-duplicate functions
3969         and place the code in string_assignment_condition.
3971         * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3972         Removed.  Not used.
3973         * decl.c (start_chill_function, finish_chill_function):  Make
3974         parameter level have same nesting level as body, as required by Z200.
3975         * decl.c (switch_to_pass_2):  Always exit if an error has been found.
3976         * decl.c (pop_module):  Copy DECL_SEIZEFILE to a new ALIAS_DECL
3977         generated from GRANT ALL.
3978         * decl.c (lookup_name_for_seizing):  Don't seize from
3979         the nesting level of builtins (predefined objects).
3980         * decl.c (lookup_name_for_seizing):  Make more robust on error.
3982         * decl.c (start_chill_function):  MAKE DECL_NAME (chill_result_decl)
3983         be 'RESULT' (or 'result').  This makes it more accessible from gdb.
3984         Also, use do_decl to declare it, so that debugging symbols are
3985         generated.  And, re-arrange so that actions that need to
3986         be done both passes (such as push_levels) use the same code.
3988         * parse.c (get_type_of):  If ignore_exprs, don't lookup name.
3989         * parse.c (end_function):  Fix poplevel params.
3990         * parse.c (expect):  Don't read forwards on an error.
3991         * parse.c (parse_field):  Don't define two tag_list locals!
3992         * parse.c (parse_pass_1_2):  Better error message.
3994         * parse.c (parse_mode, parse_opt_mode):  Have parse_mode call
3995         parse_opt_mode, rather than vice versa.  If parse_opt_mode
3996         returns NULL_EXPR, then parse_mode gives an error.
3997         Change parse_opt_mode (and any functions it calls) to only
3998         return NULL_TREE if there is no mode (even on ignore_exprs).
3999         (parse_set_mode, parse_structure_mode, parse_procedure_mode):
4000         Never return NULL_EXPR.
4001         * tasking.c (build_buffer_type, build_event_type):  Return
4002         void_type_node instead of NULL_EXPR if ignore_exprs is true.
4004         * parse.c (parse_synonym_definition):  Call parse_untyped_expr
4005         only if we have a mode.
4006         * parse.c (parse_send_action):  Parse list of untyped_expr's,
4007         rather than a list of (typed) expressions.
4008         * parse.c (parse_primval):  Emit error if '[' seen without
4009         preceding mode name.  (If this is to be allowed, call
4010         parse_untyped_expr instead.)
4012         * parse.c (parse_array_index):  Renamed to ...
4013         (parse_index_mode):  ... to match Z200 terminology.
4014         Re-write to resolve some of the nastier ambiguities,
4015         and allow things like ' CHAR(10) : CHAR(20) '.
4017         * parse.c (parse_tuple_element):  Change interface to return
4018         reversed list, so don't call nreverse.
4019         * parse.c (parse_tuple):  No longer nreverse element list here.
4020         * parse.c (parse_opt_element_list):  Do nreverse here instead.
4021         * parse.c (parse_case_label_list):  Call nreverse at end.
4023 Fri Jun 10 15:36:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4025         * typeck.c (chill_similar):  Remove bogus "else".
4027 Wed Jun  8 00:01:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4029         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  New macro (and comment)
4030         to make it clearer that we are using TYPE_MAX_VALUE in a special way.
4031         * typeck.c (build_chill_slice):  Use TYPE_ARRAY_MAX_SIZE.
4032         * expr.c (chill_expand_expr case CONCAT_EXPR):  Likewise.
4033         * convert.c (convert):  When converting a fixed string/array
4034         to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
4035         of (the type of) the padding.
4036         * convert.c (convert): If the concatenation is non-constant, use
4037         the low-level 'build' to set the type of the result (which is usually
4038         a fixed-size array) rather than depend on build_chill_binary_op
4039         to figure it out (it's unable to simplify the size to a constant).
4041 Mon Jun  6 18:16:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4043         * lang.c (lang_decode_option):  Let -fspecial_UC imply
4044         -fno-ignore-case without requiring it explicitly.
4045         * lang.c (lang_decode_option):  Support (experimentally)
4046         the -fpack and -fno-pack flags.
4048 Thu Jun  2 20:49:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4050         * configure: Add support for --program-prefix and --program-suffix.
4052 Tue May 31 18:12:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4054         * convert.c (digest_constructor):  Check that initial value
4055         is compatible with element mode before calling convert.
4056         * typeck.c (chill_compatible):  A string mode is not compatible
4057         with an untyped constructor.
4058         * decl.c (do_decl):  Clean up error messages.  Use error_with_decl.
4060         * ch-tree.h:  Fix inconsistencies: bool_true_node ->
4061         boolean_true_node, and bool_false_node -> boolean_false_node.
4062         * typeck.c (valid_array_index_):  Minor simplification.
4064 Tue May 31 04:33:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4066         * inout.c (build_chill_writetext): Add correct processing
4067         of POWERSET RANGE (setmode).
4069         * lex.l (same_file): Add searching for file(s) in
4070         seize_path_list.
4072 Fri May 27 14:22:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4074         * Make-lang.c (CHILL.mostlyclean, CHILL.distdir):  Don't list
4075         yacc/bison output files, since the grammer is no longer in yacc.
4076         * config-lang.in (diff_excludes):  Likewise.
4078 Thu May 26 16:38:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4080         * gperf, hash.h, lex.l, parse.h:  Rename PROCESS_TYPE token
4081         (in some files spelled PROCESS_TYPE_ to avoid clashes
4082         with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
4084 Thu May 26 02:18:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4086         * timing.c (build_cycle_start): Change call to __define_timeout.
4087         * decl.c (init_decl_processing): Change definitions of
4088         __define_timeout and __wait_timeout.
4090 Wed May 25 11:53:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4092         Replace yacc-based parser with a recursive-decent parser.
4093         (This may seem backwards, but Chill [like C++] is not a
4094         language that is remotely LALR(1).  Using a R-D parser
4095         allows us to use look-ahead and to back-up to resolve the
4096         difficult ambiguities.)
4097         * parse.y:  Removed.
4098         * parse.c, parse.h:  New files, containing new r-d parser.
4099         * Makefile.in:  Update accordingly.
4100         * actions.c (chill_convert_for_assignment):  Don't return
4101         NULL_EXPR if ignore_exprs is true.  It simplifies the parser
4102         if we consistently reserve NULL_EXPR for a missing expression.
4103         * expr.c (build_chill_function_call):  Likewise.
4105         * lex.l:  Tweaks for new parser.
4106         * lex.l (prepare_paren_colon, paren_paren_colon_level,
4107         paren_level):  Ugly hack no longer needed.
4109         * expr.c (build_chill_function_call):  Cleanup.
4110         Call chill_convert_for_assignment to convert IN/INOUT
4111         paramaters on both input and output.  For LOC parameters,
4112         give error if actual is a non-referable location.
4113         * actions.c (convert_for_assignment):  Add new parameter (a
4114         "place" string used in error messages).
4115         * actions.c (adjust_parm_or_field):  Removed.
4116         * actions.c (chill_expand_assignment):  Take just a single LHS,
4117         and move support for multiple assignments to ...
4118         (expand_assignment_action): ... here.  Some cleaning up.
4119         * timing.c (build_cycle_start):  Adjust accordingly.
4120         * actions.c (expand_assignment_to_varying_array):  Likewise.
4121         * tasking.c (many places): Ditto.
4122         * ch-tree.h:  Fix declarations appropriately.
4124         * parse.c (parse_defining_occurrence_list):  Return a single
4125         IDENTIFIER_NODE (instead of a singleton list) in the common
4126         case.  Minor complication to save a minor amount of space.
4127         * decl.c (do_based_decls):  Move guts of code into ...
4128         (do_based_decl):  ... this new function.
4129         * decl.c (do_decls):  Handle either IDENTIFIER_NODE or a TREE_LIST.
4130         * decl.c (push_syndecl):  Replace by ...
4131         (push_syndecl):  ... (which only supports a single name).
4132         (push_modedef):  Only handle a single name.
4133         * tasking.c (build_process_header, build_signal_struct_type):
4134         Adjust accordingly.
4136         * expr.c (build_generalized_call):  Handle string repetition.
4137         * expr.c (build_chill_repetition_op):  Change interface.
4138         * grant.c (decode_constant):  Allow parameter list to be
4139         a non-TREE_LIST.  (Used for string repetition.)
4141 Wed May 25 11:28:48 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4143         * lex.l (make_identifier):  Replaced by ...
4144         (read_identifier, handle_name): ... new functions.
4145         * lex.l: Parse an identifiers using read_identifier using
4146         read_identifier and handle_name, rather than having [f]lex
4147         do it.  (One reason is that lex uses a fixed-size buffer.)
4149         * lex.l (read_directive, skip_directive):  New functions.
4150         Use them to parse compiler-directives, instead of rather
4151         ugly and useless use of lexer start conditions.
4153 Tue May 24 22:36:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4155         * decl.c (unnamed_module_number):  Renamed to ...
4156         (module_number):  .. and make non-static.
4157         (push_module):  Always increment module_number.
4158         * lex.l (yywrap):  Print warning if no modules seen.
4160         * decl.c (pop_module):  Don't set DECL_SEIZEFILE of granted
4161         decl to current_seizefile_name (which is unreliable).
4162         * grant.c (chill_grant):  Set it here instead.
4164         * expr.c (fold_set_expr):  Use int_size_in_bytes instead of
4165         TYPE_PRECISION (which is not defined for a SET_TYPE).
4167 Fri May 20 15:21:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4169         Cleanup to remove need for variables in common storage.
4170         * decl.c:  Remove unused use of current_obstack.
4171         * actions.c (maybe_chill_check_decl):  Remove unused function.
4172         * actions.h, lang.c:  Remove uses of doing_chill_thang.
4173         * ch-tree.h (void_list_node):  Make extern (rather than common).
4174         * decl.c (void_list_node):  Add definition.
4176 Thu May 19 06:54:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4178         * configure (build): Build canon_host and canon_target
4179         to pass it to all subsequently generated Makefiles (needed
4180         for testsuite/execute in case of cross build).
4182 Wed May 18 13:27:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4184         * grant.c (decode_mode):  Remove.  It checks the TYPE_NAME of
4185         the input type, which loses with the no-longer-new 2-pass
4186         implementation, since the input "type" could be an IDENTIFIER_NODE.
4187         * grant.c (raw_decode_mode):  Rename to decode_mode.
4189 Tue May 17 13:19:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4191         * typeck.c (chill_location):  Neither a STRING_CST nor a
4192         CONSTRUCTOR is a location.
4193         * typeck.c (chill_root_mode):  Convert a function to a
4194         pointer-to-function.
4195         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
4196         build_chill_arrow_expr):  If ignore_exprs, return operand
4197         rather than NULL_EXPR.  This makes it easier for the parser to
4198         distinguish missing expressions.
4199         * expr.c (build_max_min):  Convert the lower bound of a
4200         set to a long before calling run-time routine.
4201         * expr.c (build_chill_pred_or_succ):  Use discrete_type_p
4202         to check the argument type.
4203         * expr.c (build_chill_arrow_expr):  If argument is not a location,
4204         do a predwarn if it is a STRING_CST or has function type.
4206 Tue May 17 06:05:13 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4208         * configure (build): Remove building of canon_host and canon_target.
4209         It doesn't work in any case.
4211 Mon May 16 02:10:35 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4213         * configure (build): Build canon_host and canon_target
4214         to pass it to all subsequently generated Makefiles (needed
4215         for testsuite/execute in case of cross build).
4216         * Make-lang.in (chill-runtime): Change chill to CHILL in the case
4217         statement to build chill-runtime automatically.
4219 Mon May  9 15:30:08 1994  Doug Evans  (dje@canuck.cygnus.com)
4221         * Makefile.in (FLAGS_TO_PASS): Define.
4222         (OBJDEPS): Define.
4223         (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
4224         * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
4225         (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
4227 Sun May  8 13:05:00 1994  Per Bothner  (bothner@cygnus.com)
4229         * Make-lang.in (cc1chill):  Should not depend on libgcc.a.
4231 Thu May  5 18:58:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4233         * decl.c (copy_lang_decl):  New (dummy) function.
4235 Mon May  2 14:33:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4237         * parse.y (sendaction):   Fix thinko (in sense of condition).
4238         * tasking.c (build_receive_case_label):  Another thinko.
4240         * parse.y (optsigdest):  Force ignore_exprs to 0 while parsing
4241         the (signal-)name.
4243         * decl.c (build_chill_function_type):  Don't call layout_type
4244         (since that may prevent parameter or result types being
4245         properly satisfied).
4246         * satisfy.c (satisfy):  Layout FUNCTION_TYPEs.
4247         * parse.y (procmode):  Call build_chill_pointer_type, rather
4248         than build_pointer_type (which incorrectly sets TYPE_SIZE).
4250         * parse.y (get_type_of):  Handle TYPE_DECL (again).
4251         * parse.y (optresultspec):  Call build_chill_reference_type, rather
4252         than build_reference_type (which incorrectly sets TYPE_SIZE).
4253         * parse.y (range_or_mode):  Rename to plain range, since it
4254         no longer matches modename.
4255         * actions.c (chill_handle_case_label_range):  New function, with
4256         functionality moved out of chill_handle_case_label.
4257         * actions.c (chill_handle_case_label):  Handle here the case that
4258         the label_value is a TYPE_DECL (modename).   Also clean up some.
4259         * typeck.c (build_chill_slice_with_length):  Convert max_index
4260         to the type of min_value.  (Old code broke on varying strings.)
4262 Sun May  1 13:53:36 1994  Doug Evans  (dje@canuck.cygnus.com)
4264         * Makefile.in (BC_OBJS): Delete all references
4265         (OBJS): Cat ../stamp-objlist to get language independent files.
4266         (../cc1chill): Delete dependency on $(OBJS).
4267         * Make-lang.in (cc1chill): Depend on stamp-objlist.
4269 Sat Apr 30 14:50:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4271         * lex.h, lex.c:  Remove lastiddecl.
4272         * lex.l (name_type_signal):  Simplify.  We no longer check for
4273         TYPENAME or SIGNALNAME (which was unreliable with two passes).
4274         Also rename to make_identifier.
4275         * parse.y:  Cleaned up grammar to not need SIGNALNAME or TYPENAME.
4276         * Makefile.in (stamp-parse);  One conflict fewer!
4277         * parse.y (rccase_label_flag):  Moved to tasking.c.
4278         * parse.y (rccase_label):  Move most of the logic to
4279         build_receive_case_label in tasking.c.
4280         * parse.y (sendaction):  Re-write to not depend on SIGNALNAME.
4282         * parse.y (name):  Do name lookup here (and not in location).
4283         * parse.y:  Replace most uses of NAME by higher-level non-terminals:
4284         simple_name_string, name_string, defining_occurrence, or name.
4286         * tasking.c (build_receive_signal_case_label,
4287         build_receive_buffer_case_label):  New functions, split out from
4288         build_receive_case_label.
4289         * tasking.c (build_receive_case_label):  Change parameters
4290         and return type.  Moved stuff here (from the parser).
4291         * tasking.c (struct rc_state_type):  Removed had_errors.
4292         Return error_mark_node instead.
4293         * tasking.c (build_rccase_set_error), ch-tree.h:  Removed.
4295         * expr.c (build_generalized_call):  If func is a signal type,
4296         call build_signal_descriptor.
4298         * parse.y (arrayindex):  Renamed to index_mode, to match Z.200.
4299         * parse.y (ioindexmode):  Removed;  use index_mode instead.
4300         * expr.c (build_generalized_call):  If args is a RANGE_EXPR,
4301         we have either a slice or a range mode, depending on func.
4302         * parse.y (index_mode):  If we got an 'expr', only allow a name,
4303         or a range mode.
4304         * parse.y (call):  A slice with both end points can be a range
4305         mode, so defer handling to build_generalized_call (or index_mode).
4307         * typeck.c (build_chill_slice_with_length):  Fix type-checking.
4308         * typeck.c (chill_novelty):  Undo (part of) change of April 28:
4309         The novelty of a range mode is the novlety of the parent.
4310         * typeck.c (chill_root_mode):  Don't return integer_type_node
4311         if argument has non-nil novelty.
4313         * decl.c (global_bindings_p):  Return -1 as true, for the sake
4314         of variable_size (in ../stor-layout.c).
4316 Fri Apr 29 13:42:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4318         * parse.y:  Remove TYPENAME and modename.  These are now plain
4319         NAMEs.  Modify parsing actions appropriately.
4320         * expr.c (build_generalized_call):  Handle the case that
4321         TREE_CODE (func) == TYPE_DECL (as in a cast).
4322         * lex.l (name_type_signal):  Never return TYPENAME.
4323         * parse.y (get_type_of):  If pass 1, just return the argument.
4325         * decl.c (do_decl):  If an initializer has the wrong type,
4326         replace it by NULL_TREE, to avoid subsequent errors.
4328 Thu Apr 28 15:21:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4330         * Makefile.in: Add new file timing.c to rules.
4331         * timing.c: New file. Implements the timing actions AT,
4332           CYCLE and AFTER.
4333         * decl.c (init_decl_processing): Add new builtin function
4334           descriptions.
4335         * expr.c (build_chill_indirect_ref): Change error message and
4336           add check agains an IDENTIFIER_NODE.
4337         * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
4338           They are no longer needed.
4339         * grant.c (print_integer_type): Add processing of builtin types
4340           DURATION and TIME.
4341         * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
4342         * parse.y (timingactions): split up to afteraction, ataction
4343           and cycleaction.
4344         * parse.y (afteraction): New rule.
4345         * parse.y (ataction): New rule and put actions in.
4346         * parse.y (cycleaction): New rule and put actions in.
4347         * parse.y (sendaction): Add code for SEND buffer.
4348         * parse.y (rccase_label): Change error processing.
4349         * tasking.c (build_gen_inst): More checks.
4350         * tasking.c (build_gen_code): Add checking for argument is a
4351           PROCESS or a SIGNAL.
4352         * tasking.c (struct rc_state_type): Add new fields for easier
4353           error processing.
4354         * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
4355         * tasking.c (build_rccase_set_error), ch-tree.h: New function.
4356         * tasking.c (build_receive_case_label): Add processing of BUFFER's.
4357         * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
4358           New functions to process the end of a RECEIVE CASE action in case
4359           of BUFFER's and SIGNAL's.
4360         * tasking.c (build_receive_case_end): Do only general processing and
4361           call one of the above mentioned functions.
4362         * tasking.c (build_delay_case_start, build_delay_case_label,
4363           build_delay_case_end): Rewritten due to new implementation of events.
4364         * tasking.c (build_delay_action): Rewritten due to new implementation
4365           of EVENT's.
4366         * tasking.c (expand_send_buffer), ch-tree.h: New function.
4367         * timing.c (build_at_action, build_cycle_start, build_cycle_end),
4368           ch-tree: New functions.
4370 Thu Apr 28 14:11:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4372         * typeck.c (smash_dummy_type):  Handle the special case of a
4373         NEWMODE of a range mode, as required by Z200, by creating a
4374         new parent mode with the new novelty (and casting the min
4375         and max of the range to teh new parent mode).
4376         * typeck.c (chill_novelty, chill_root_mode):  Remove special
4377         kludges for of NEWMODE ranges.
4378         * expr.c (build_chill_lower_or_upper):  New function, combining
4379         the "guts" of build_chill_lower and build_chill_upper.
4380         * expr.c (build_chill_lower_or_upper):  Simplify;  no longer
4381         need to kludge the novelties.
4383         * typeck.c (valid_array_index_p):  A string index expression
4384         need not be Compatible with the index type;  only similar.
4386         * decl.c (layout_chill_variants):  If error seen, skip stuff
4387         (rather than aborting or crashing).
4388         * decl (push_modedef):  If newdecl's type is an error mark,
4389         continue rather than aborting.
4391 Thu Apr 28 02:07:42 1994  Doug Evans  (dje@cygnus.com)
4393         * Make-lang.in: Update of directory reorg from fsf.
4394         * config-lang.in: Ditto.
4396 Mon Apr 25 13:09:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4398         * typeck.c (chill_similar):  Check RECORD_TYPEs properly,
4399         * convert.c (convert):  If all else fails, just call convert1.
4400         Thus we can now convert RECORD_TYPEs (assuming they are similar).
4402         * parse.y, lex.l:  Remove BUFFERNAME (use location/expr instead).
4403         * parse.y:  Re-do BUFFER handling (similar to previous EVENT change).
4404         * grant.c (raw_decode_mode):  Re-do BUFFER mode handling.
4405         * ch-tree (lang_type_record):  Removed max_queue_size field.
4406         * tasking.c (build_buffer_type):  Re-write.
4407         * tasking.c (max_queue_size):  Fix to support buffer modes.
4408         * tasking.c (buffer_element_mode), ch-tree.h:  New function.
4409         * tasking.c ch-tree.h (expand_send_buffer):  Now has 3 parameters.
4410         * parse.y (modename):  No longer match SIGNALNAME.  Instead, add it
4411         to name and simple_name_string.  This removes a reduce/reduce conflict.
4412         * Makefile.in (stamp-parse):  Expect fewer conlicts.
4414         * lex.l (yywrap):  Move check for circularly seizeing current
4415         grant-file from here ...
4416         * lex.l (handle_use_seizefile_directive):  ... to here.
4417         This is to avoid calling stat on a not-yet written grantfile,
4418         now that we're using same_file (which calls stat).
4419         * grant.c (set_use_this_gf):  Removed.
4420         * grant.c (set_default_grant_file):  Set grant_file_name here,
4421         because we need it earlier (due to above lexer change).
4423         * typeck.c (layout_chill_struct_type):  Remove useless code to
4424         remove zero-width bitfield (which messes up CONST_DECLs).
4426 Sat Apr 23 13:16:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4428         * Makefile.in (check): Assure that 'ld' is available before checking.
4430 Thu Apr 21 13:23:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4432         * grant.c (print_an_int):  Removed.
4433         (raw_decode_mode):  Generalized to use decode_constant
4434         instead of print_an_int.
4435         (decode_constant):  Print directly, instead of calling print_an_int.
4436         * parse.y (event_list):  Fix syntax.
4437         * parse.y (optqueuesize):  Default is NULL_TREE, not zero.
4438         * tasking.c (check_queue_size):  New function, for error checking.
4439         * ch-tree.h:  Add declaration for check_queue_size.
4440         * satisfy.c (satisfy case RECORD_TYPE):  Satisfy constant fields
4441         (used for queue size of EVENT and BUFFER), and call check_queue_size.
4443 Tue Apr 19 13:42:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4445         Re-implement EVENT modes to support general EVENT objects
4446         (and not just EVENT names), according to Z200.  (Not finished!)
4447         * tasking.c, ch-tree.h (max_queue_size):  New function.
4448         * parse.y (dcalternative, event_list, event_list_head):  New
4449         implementation of DELAY CASE, avoiding parsing ambiguities.
4450         (call, locdec, delayaction):  Remove old EVENTNAME kludges.
4451         * lex.l (name_type_signal):  Remove EVENTNAME recognition.
4452         * tasking.c (build_event_type):  Re-written.
4453         * typeck.c (chill_similar), decl.c (print_lang_type):
4454         Use new max_queue_size function.
4455         * typeck.c (layout_chill_struct_size):  Ignore CONST_DECL.
4456         * tasking.c (build_delay_action):  Preliminary changes - just to
4457         make it compile.  FIXME!
4458         * grant.c (raw_decode_mode):  Use new max_queue_size function.
4459         Move EVENT support from LANG_TYPE to RECORD_TYPE.
4460         * ch-tree.h (process_event_decls):  Removed.
4462 Tue Apr 19 11:44:01 1994  Bill Cox  (bill@rtl.cygnus.com)
4464         * regression.sh: Complete previous change - eliminate all
4465           references to objdir as a user parameter.
4467 Mon Apr 18 10:17:55 1994  Bill Cox  (bill@cygnus.com)
4469         * Makefile.in (check): Simplified regression.sh call.
4470         * regression.sh: Change command-line parsing.  Default
4471           srcdir to the script's path.  Calculate objdir
4472           internally - don't pass it in.
4474 Thu Apr 14 13:30:19 1994  Wilfried Moser  (moser@phishhead.cygnus.com)
4476         * expr.c (build_chill_duration): Add range checking.
4478         * lex.l (init_lex): Add predefined names DURATION and TIME.
4479         * lex.h (enum rid): Add RID_DURATION and RID_TIME.
4480         * ch-tree.h: Add prototypes and externals.
4481         * decl.c (init_decl_processing): Add builtin function
4482         descriptions.
4483         * expr.c (build_generalized_call): Add processing of some
4484         builtin's.
4485         * expr.c (build_chill_abstime): New function to process builtin
4486         ABSTIME.
4487         * expr.c (build_chill_inttime_type): New function to built type
4488         for the INTTIME builtin.
4489         * expr.c (build_chill_inttime): New function to process builtin
4490         INTTIME.
4491         * expr.c (build_chill_duration): New function to process builtin's
4492         MILLISECS, SECS, MINUTES, HOURS and DAYS.
4494 Tue Apr 12 11:55:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4496         * lex.l (chill_same_grant_file):  Rename to same_file.  Change to
4497         take two files names rather than two DECLs.  Also check that the
4498         filesystems (st_dev) are equal.  Finally, make static.
4499         * lex.l (handle_use_seizefile_directive):  Check for duplicate
4500         USE_SEIZE_FILE directives using same_file.
4501         * decl.c (pop_module):  Remove dubious call to chill_same_grant_file.
4503 Sun Apr 10 17:19:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4505         * decl.c, ch-tree.h (chill_result_decl):  New variable.  Used to
4506         store RESULT value.  (Cannot use DECL_RESULT;  see comment in decl.c.)
4507         * actions.c (chill_expand_result, chill_expand_return):
4508         Use chill_result_decl appropriately.
4509         * ch-tree.h, decl.c, actions.c (saved_result_rtx):  Removed.
4510         Subsumed by chill_result_decl.
4512         * expr.c (chill_expand-expr case CONCAT_EXPR):  Generate temporary
4513         using the mode of the result type, and don't assume it is BLKmode.
4515 Fri Apr  8 17:46:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4517         * actions.c (chill_expand_assignment):  Check for compatibility
4518         _after_ "expanding out" a binary operation.  This fixes
4519         the case "STRING //:= CHAR".
4521         * lex.l (equal_number):  Convert symbol to integer_type_node, to
4522         force the value to be INT-derived (and avoid novelty conflicts).
4524 Mon Apr  4 22:06:31 1994  Per Bothner  (bothner@cygnus.com)
4526         * ch-tree.h (CH_FUNCTION_SETS_RESULT):  New flag.
4527         * ch-actions.c (chill_expand_return), ch-tree.h:  Extra
4528         parameter, indicates if implicit return at end of function.
4529         * ch-parse.y:  Modify accordingly.
4530         * ch-actions.c (chill_expand_return):  Various improvements.
4532         * decl.c, ch-tree.h (result_never_set):  New variable.
4533         * actions.c (chill_expand_result, chill_expand_return):  Clear it.
4534         * ch-parse.y (end_function):  Warn if no RETURN or RESULT action.
4536         * decl.c, ch-tree.h (saved_result_rtx):  New variable.
4537         * decl.c (start_chill_function):  Use saved_result_rtx as return
4538         value if there is a RESULT in a REG that might get clobbered.
4539         * actions.c (chill_expand_result):  Save result in saved_result_rtx
4540         or assign to DECL_RESULT as appropriate.
4541         * decl.c, ch-tree.h (current_function_returns_value,
4542         current_function_returns_null, current_extern_inline):
4543         Don't use.  Only define first two to allow linking with ch-typeck.c.
4545         * typeck.c (chill_l_equivalent):  Add forward declaration.
4547 Fri Apr  1 11:02:27 1994  Wilfried Moser  (fs_moser at rcsw47)
4549         * lex.l (readstring): Handle control sequence in all cases (Z.200
4550         5.2.4.4 page 54).
4552 Fri Apr  1 13:11:27 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4554         * configure:  Simplify and fix the logic for looping through
4555         sub-directories.
4557 Thu Mar 31 18:59:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4559         * ch-tree.h (CH_L_EQUIVALENT):  Moved from typeck.c.
4560         * typeck.c (chill_similar):  Add support for checking
4561         FUNCTION_TYPEs for similarity.  Also, treat
4562         pointer-to-function-type the same as function-type.
4564 Thu Mar 31 11:22:56 1994  Wilfried Moser  (fs_moser at rcsw47)
4566         * ch-tree.h: Change prototype of function expand_send_signal.
4567         * parse.y: Change calls to expand_send_signal.
4568         * tasking.c (expand_send_signal): Change handling of optsetto
4569         argument. New argument signame to get a possible destination
4570         process for the signal.
4572 Wed Mar 30 14:54:48 1994  Wilfried Moser  (fs_moser at rcsw1j)
4574         * tasking.c (make_process_struct): Change error message in case of
4575         a process argument has other attribute then IN or LOC.
4576         * tasking.c (build_start_process): Add check that the optset is
4577         referable in case it is specified (this makes
4578         noncompile/start_.ch working).
4580 Tue Mar 29 13:24:27 1994  Wilfried Moser  (fs_moser at rcsw1h)
4582         * Makefile.in: Change version string to 1.2.1
4583         * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4584           entries.
4585         * ch-tree.h: Change prototype for build_chill_readtext.
4586         * decl.c (init_decl_processing): Add builtin_function _readstring,
4587           _readunixstd and READTEXT.
4588         * expr.c (build_generalized_call): Add processing of READTEXT.
4589           Delete handling of no longer valid builtin_functions.
4590         * gperf: Remove keyword READTEXT.
4591         * parse.y: Remove token READTEXT.
4592         * inout.c (build_chill_io_list_type): Add building type for
4593           READTEXT.
4594         * inout.c (build_chill_readtext): Implement the function
4595           (partial).
4596         * inout.c (build_chill_writetext): Do some cleanups.
4598 Tue Mar 29 12:30:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4600         * typeck.c (build_chill_cast):  Re-arrange, to support casts
4601         of const integer to type of different size, if there is
4602         an integral type of the desired size:  Go through the
4603         const conversion code.
4605         * actions.c (adjust_parm_or_field):  Move support for LOC to ...
4606         * expr.c (build_chill_function_call): ... here.
4607         Fix a number of bugs in OUT/INOUT handling.
4609         * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4610         parse.y (location), typeck.c (chill_comptypes):  Remove unused
4611         support for ENCAPSULATED_ARRAY_P.
4612         * typeck.c (build_chill_array_parm_type), ch-tree.h:  Remove; unused.
4614         * ch-tree.h, decl.c (shadow_record_fields), decl.c
4615         (shadow_record_fields), expr.c (chill_expand_case_expr,
4616         build_chill_function_call), grant.c (chill_finish_compile),
4617         typeck.c (build_empty_string, build_init_struct):  Rename magic
4618         identifiers of the form "<...>" to "__..." for better portability.
4620         * actions.c (adjust_parm_or_field):  Remove extraneous
4621         call to build_chill_repetition_op.
4622         * expr.c (build_chill_function_call):  Some simplifictions
4623         (since neither valtail nor typetail can be NULL).
4624         Clean up error message for OUT//INOUT not location to use only 1 line.
4625         Add error message for OUT/INOUT if type is READonly.
4626         * typeck.c (build_chill_modify_expr):  Simplify.
4628 Sun Mar 27 19:30:25 1994  Bill Cox  (bill@rtl.cygnus.com)
4630         * Makefile.in: Clean up generally.  Assure that
4631           runtime is built before running regressions.
4632           Build correct parameters to regression.sh.
4633           Remove a lot of 'clean' cruft.
4634         * Make-lang.in, config-lang.in: New files for
4635           subdirectory architecture.
4637 Sat Mar 26 10:39:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4639         * Makefile.in (check): Build correct parameters for regression.sh.
4641 Fri Mar 25 10:13:06 1994  Bill Cox  (bill@rtl.cygnus.com)
4643         * configure: Also mark regression.awk3 as executable.
4644         * regression.sh: Add comments about command-line options.
4645           Calculate srcdir correctly, defaulting to the script's path.
4646           Add OPT flag to pass to the Makefiles, to specify the
4647           compiler's optimization level, and -O  and -O2 options.
4648           Delete GLOBAL flag and tests.  Use a different make.log
4649           file for optimized and unoptimized test results.  Add the
4650           compiler's host and target triples to the report header.
4652 Wed Mar 23 21:41:26 1994  Bill Cox  (bill@rtl.cygnus.com)
4654         * expr.c (build_chill_function_call): Handle INOUT and OUT
4655           parameters better (for the rangefail test, at least).
4657 Wed Mar 23 14:13:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4659         * regression.sh (srcdir, objdir):  Fixed hard-wired paths.
4660         (grep args):  Changed [XYZ-] to [-XYZ] for SCO.
4662 Wed Mar 23 13:34:18 1994  Bill Cox  (bill@rtl.cygnus.com)
4664         * expr.c (build_generalized_call): Revert previous change.
4665           To do this correctly, we need a new parsing mechanism, and
4666           C++ initializer technology.
4668 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4670         * expr.c (build_generalized_call): Be sure we're inside the
4671           module-level function before calling build_gen_inst, for
4672           example.
4674 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4676         * regression.sh (dodirectory): Count the gcov and abort tests
4677           among the .dat files.
4679 Tue Mar 22 15:39:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4681         * satisfy.c (safe_satisfy_decl):  When checking that a SYN
4682         value fits in a specified discrete type, don't convert first,
4683         and use compare_int_csts instead of tree_int_cst_lt.
4685 Tue Mar 22 15:25:38 1994  Bill Cox  (bill@rtl.cygnus.com)
4687         * configure: Generate better .gdbinit files.
4689 Tue Mar 22 11:59:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4691         * actions.c (check_range):  Don't emit dynamic checks
4692         if not current_function_decl.
4694         * parse.y (arrayindex):  Allow expr (error is emitted
4695         at semantic level if not the NAME of a type).
4696         * typeck.c (build_chill_cast):  Re-enable some casts.
4697         * satisfy.c (safe_satisfy_decl):  Remove redundant CONST check.
4699 Tue Mar 22 11:46:28 1994  Bill Cox  (bill@rtl.cygnus.com)
4701         * configure: Access the utils directory correctly.
4702         * expr.c (build_compare_expr): Reenable compatibility test.
4704 Tue Mar 22 11:24:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4706         * typeck.c (valid_array_index_p):  Call
4707         build_compare_discrete_expr instead of build_compare_expr.
4708         * typeck.c (build_chill_cast):  Improve logic.
4709         * satisfy.c (safe_satisfy_decl):  Simplify test.
4711 Tue Mar 22 10:17:58 1994  Bill Cox  (bill@rtl.cygnus.com)
4713         * actions.c (chill_expand_assignment): Correct detection of
4714           string assignment case.
4715         * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4716           the actual parameters need to be converted to the unsigned long
4717           type explicitly.  Do that.
4718         * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4720 Mon Mar 21 16:25:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4722         * Makefile.in: Correct prediction of grammar conflicts.
4723         * actions.c(check_range): Fix reference to NULL_TREE pointer.
4724           And allow compile-time errors even if range_checking is off.
4725         * parse.y: Clean up some comments.
4726         * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4728 Mon Mar 21 13:29:23 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4730         * typeck.c (layout_chill_range_type):  Instead of tree_int_cst_lt
4731         use compare_int_csts (which is more robust when signedness differs).
4732         Also, convert the bounds *after* doing range checking.
4734         * ch-tree.def (SET_IN_EXPR):  New.
4735         * expr.c (chill_expand_expr):  Code to expand SET_IN_EXPR,
4736         moved from expand_expr in ../expr.c.  Also add some extra
4737         conversions (because we're now using build_chill_function-call).
4738         * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4739         Use SET_IN_EXPR in place of IN_EXPR.
4741         * expr.c (build_compare_discrete_expr), ch-tree.h:  New function,
4742         with code moved from build_compare_expr.
4743         * expr.c (build_compare_expr):  Re-enable compatibility test.
4745 Mon Mar 21 11:02:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4747         * Makefile.in: Rewrite byacc related rules.
4748         * actions.c (chill_convert_for_assignment): Use the
4749           referenced type only for generating range checks.
4750         * configure: Add 'utils' directory to SUBDIRS variable.
4752 Sun Mar 20 21:49:59 1994  Bill Cox  (bill@rtl.cygnus.com)
4754         * actions.c (check_range): Call build_compare_expr rather than
4755           build_binary_op.
4756           (adjust_parm_or_field): Call convert_for_assignment rathern than
4757           convert, to get the range-checking.
4758         * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4759           Generate a compile-time message if possible.
4760           (build_compare_expr): Comment out compatibility test - should
4761           not be needed in here.  Fix a couple of typos.  Add some types
4762           to some build calls.
4764 Sun Mar 20 11:48:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4766         * decl.c (init_decl_processing):  Clean up parameter type
4767         list for __setbitpowerset,
4769         * typeck.c (chill_compatible_classes):  Allow the M-reference
4770         to be compatible with the N-value class, with suitable M and N.
4771         * typeck.c (build_chill_slice):  Don't smash a void TREE_TYPE.
4772         (We don't need to, and it causes confusion.)
4774         * expr.c (build_compare_expr):  Fix thinko.  Add save_exprs.
4776         * expr.c (build_compare_expr):   Fix a transcription bug
4777         (for converting NULL INSTANCEs).  Also #include convert.h.
4779         * expr.c (compare_int_csts):  New.  Compare INTEGER_CSTs.
4780         Works even if their types have different TREE_UNSIGNED.
4781         * expr.c (finish_chill_binary_op):  Moved code dealing with
4782         the comparison operators from here ...
4783         * expr.c (build_compare_expr):  ... to new function here.
4784         Also, for discrete types, tries to Do The Right Thing, even for
4785         differing values of TYPE_PRECISION and TREE_UNSIGNED.
4786         the code from lay
4787         * ch-tree.h:  Declare new functions.
4788         * typeck.c (valid_array_index_p):  Various cleanups,
4789         including using new build_parse_expr.
4790         * parse.y:  Use new build_compare_expr.
4792         * inout.c (build_chill_writetext):  Handle REFERENCE_TYPE args.
4794 Sun Mar 20 08:54:27 1994  Bill Cox  (bill@rtl.cygnus.com)
4796         * actions.c (expand_assignment_to_varying_array):
4797           Call build_chill_array_ref to get index checking.
4798           (chill_convert_for_assignment): Delete unused errstr
4799           variable.
4800           (chill_expand_assignment): Call build_chill_array_ref
4801           to get runtime index checking.
4802           (expand_varying_length_assignment): Use new interface
4803           to varying_array_index_p.
4804         * ch-tree.h (varying_array_index_p): New proto.
4805         * convert.c (convert): Call build_chill_array_ref
4806           to get runtime index checking.
4807         * expr.c (build_chill_pred_or_succ): Fix cond tree
4808           to have consistent operand types.
4809         * typeck.c (valid_array_index_p): Change interface to pass
4810           validity conditions back on caller's TREE_LIST.  We
4811           cannot link the conditions to anything which a
4812           layout_type routine will expand, since that will occur
4813            before the exception handler is set up.
4814           Change calls to valid_array_index_p also.
4816 Fri Mar 18 14:40:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4818         * actions.c, except.c, loop.c, tasking.c:  Call
4819         build_chill_function_call instead of the C-specific
4820         build_function_call.
4821         * except.c (initialize_exceptions):  Fix parmtype of __builtin_setjmp.
4822         * loop.c (top_loop_end_check):  Coerce library function arg.
4823         * convert.c, expr.c:  Re-write to avoid calls to C-specific
4824         function build_unary_op (e.g. by calling build1 directly).
4826         * typeck.c (chill_equivalent):  Change to force failure
4827         for non-matching integral types (even if not ranges).
4829         * typeck.c, ch-tree.h (build_chill_slice):  Make non-static.
4830         * expr.c (varying_to_slice):  Call build_chill_slice (and not
4831         build_chill_slice_with_length, which does bunches of range
4832         checking and does not allow the length to be zero).
4833         * convert.c (convert):  Fix off-by-one error.
4834         * actions.c (chill_expand_array_assignment):  Minor cleaning up.
4836 Fri Mar 18 00:12:48 1994  Per Bothner  (bothner@deneb.cygnus.com)
4838         * decl.c (init_decl_processing):  __lepowerset and __ltpowerset
4839         take *two* pointer parameters, not one.
4840         * satisfy.c (satisfy):  Only call the appropriate layout routine
4841         if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4842         * typeck.c (build_chill_slice_with_length):  Fix Bill's previous fix.
4844 Thu Mar 17 17:29:43 1994  Bill Cox  (bill@rtl.cygnus.com)
4846         * expr.c (build_chill_function_call): Give function call the correct
4847           type tree.
4848         * typeck.c (build_chill_slice_with_length): Restore dynamic range
4849           checking, so it doesn't obscure the CONSTANTness of the length.
4851 Wed Mar 16 17:23:31 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4853         * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4854         [case CONCAT_EXPR]):  Remove kludge setting slice size upper bound
4855         in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4856         * typeck.c (build_chill_slice):  Use TYPE_MAX_VALUE of
4857         array_type if needed for size upper bound of slice_type.
4858         * expr.c (build_concat_expr):  Improve calculation of size upper bound.
4860         * typeck.c (valid_array_index_p):  Check compatibility using
4861         correct types.
4862         * typeck.c (build_chill_slice_with_length);  For now revert
4863         calling valid_array_index_p on length.  (It makes it harder
4864         to realize when the slice is constant length.)
4865         * expr.c (build_chill_indirect_expr):  Minor tweak.  (This
4866         seems to work around a weird C compiler bug. ??)
4868         * expr.c (build_chill_function_call):  Cleanup so it doesn't
4869         call build_function_call (in c-typeck.c).
4870         * typeck.c, expr.c:  Use build_chill_function_call instead of
4871         build_function_call (in c-typeck.c).
4873         * parse.y (discrete_mode):  Move some of the rules from
4874         non_array_mode into new non-terminal.
4875         (arrayindex):  Use discrete_mode (with NAME and TYPENAME) to
4876         avoid some misparses.
4877         * ch-tree.h (SLICE_PTR, SLICE_LENGTH):  Removed;  unused.
4878         * convert.c (digest_structure_tuple):  Add missing parameter.
4879         * decl.c (comptypes):  Remove unused prototype.
4880         * decl.c (build_chill_function_type):  Handle NULL return_type
4881         correctly (convert to void_type_node).
4882         * decl.c (init_decl_processing):  layout boolean_type_node *after*
4883         we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4885 Wed Mar 16 16:08:22 1994  Bill Cox  (bill@rtl.cygnus.com)
4887         * ch-tree.h: Add prototype.
4888         * convert.c (convert): Correct calculation of padding length.
4889         * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4890           parse.y where it belongs.  This permits the removal of a kludge
4891           in make_process_struct.
4892         * lex.l, parse.y: Call to_global_level for several errors.  Add
4893           code to output error in only one pass.
4894         * tasking.c (make_process_struct): Delete kludge inserted on
4895           March 8.
4896           (build_receive_case_end): Add Wilfried's check for errors.
4898 Tue Mar 15 08:42:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4900         * actions.c: Fix comment.
4901           (build_rts_call): Ifdef it out - never used.
4902           (expand_varying_length_assignment): call valid_array_index_p.
4903           rather than validate_varying_array_ref.
4904         * ch-tree.h: Fix prototype for valid_array_index_p.
4905         * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4906           index validation.
4907           (build_hill_lower, build_chill_upper): Return value now inherits
4908           the novelty of the input parameter.
4909           (varying_to_slice): Use CH_NOVELTY macro rather than calling
4910           chill_novelty directly.
4911         * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4912           to unsigned.
4913           (print_integer_type): Pass string value as APPEND's second parameter.
4914           (decode_decl): Pass a boolean expression as print_proc_tail's
4915           first parameter.
4916           (chill_finish_module_code): Make xmalloc's parameter unsigned.
4917         * lex.l: Pass sizes to xmalloc as unsigned ints.  Pass second
4918           parameter to in_word_set as unsigned.
4919         * loop.c (build_loop_start): Check top_loop_end_check return value.
4920         * parse.y: Add casts to int for third do_decls parameter, fifth
4921           build_loop_iterator parameter, etc.
4922         * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4923         * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4924           valid_array_index): Delete them.  They're now unused.
4925           (valid_array_index_p): Add function, call it everywhere that an
4926           array index is checked.
4927           (build_chill_slice): Restore old functionality where varying_to_slice
4928           is called to handle slices of varying arrays, rather than handling
4929           handling them here.
4930           (build_chill_slice_with_range, build_chill_slice_with_length):
4931           Check range limits for TREE_CONST before calling tree_int_cst_lt.
4932           Delete now-obsolete checks of constant indices.
4934 Mon Mar 14 17:26:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4936         * parse.y (modeless_expr):  New rule to allow ([...]) and (if...)
4937         to count as untyped_exprs.  (This is not really permitted by the
4938         Blue Book, but has been requested by customers.)
4940 Thu Mar 10 10:11:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4942         * chill.texi: Document new command-line options.
4943         * expr.c (build_chill_num): Set unsigned parameter for
4944           type_for_size call correctly (unsigned for enums).
4945         * lang.c (lang_decode_option): Add command-line options to
4946           enable/disable runtime range-checking.
4947         * lex.l: Eat more whitespace.
4949 Thu Mar 10 09:41:37 1994  Bill Cox  (bill@rtl.cygnus.com)
4951         * Makefile.in: Have rules to make parse.h, y.tab.c and other
4952           derived files.  This allows the gcc/configure list of CHILL
4953           files machinery to work.
4954         * ch-tree.h (permanent_allocation): Add a parameter flag.
4955         * decl.c (finish_chill_function, finish_decl): Provide the
4956           new permanent_allocation flag.
4957           (poplevel): Return early, avoid a seg fault.
4958         * lex.l (NORMAL): Replace this whole state with the predefined
4959           INITIAL state.  Force compilation state to global level after
4960           compiler directive error - prevents endless loop on error.
4961           (handle_use_seizefile_directive): Rewrite for readability.
4962           (chill_same_grant_file): Reindent.
4963           Generally handle whitespace differently.
4964         * regression.prpt: Print ten PR numbers per line.  The report's
4965           getting too long.
4967 Wed Mar  9 09:58:51 1994  Bill Cox  (bill@rtl.cygnus.com)
4969         * decl.c (do_decl): Suppress the string-assignment-condition
4970           error - it was too often seen.
4971         * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4972           runtime-changing length (as in a slice), get the parent array's
4973           allocation size from its type tree.
4974         * typeck.c (build_chill_slice): Support VARYING arrays.  Pass
4975           parent array's static allocation size along in the slice type.
4977 Wed Mar  9 08:54:24 1994  Bill Cox  (bill@rtl.cygnus.com)
4979         * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4981 Tue Mar  8 11:51:10 1994  Bill Cox  (bill@rtl.cygnus.com)
4983         * expr.c (build_chill_sizeof): Fix typo in error msg, add
4984           some whitespace.
4985         * lex.l (name_type_signal): Add debug output.
4986         * parse.y (call):  Allow EVENTNAME and BUFFERNAME parameters
4987           to a call, so that SIZE () works on them.
4988         * tasking.c (make_process_struct): Force ignore_exprs non-zero
4989           when processing a SEIZEd PROCESS declaration.  This prevents
4990           grox-fixed_fields from returning a NULL, and indirectly protects
4991           the chill_integer_type_node tree from corruption.
4993 Mon Mar  7 19:14:05 1994  Bill Cox  (bill@rtl.cygnus.com)
4995         * Makefile.in: Use the 'all' target to build the runtime
4996           library and chillrt0.o.
4997         * README: Explain rules for files in this directory.
4998         * addtest, addtest.man, build-release,
4999           chill.regress.cron: Move to utils subdirectory.
5000         * expr.c (build_chill_function_call): Mark the INOUT
5001           temporary so it doesn't get optimized into a
5002           register.  Fixes the execute/inout.ch bug.
5003         * typeck.c (layout_chill_range_type): Restrict it
5004           from complaining about an empty string type's
5005           bounds (0:-1).
5007 Mon Mar  7 09:06:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5009         * Makefile.in (compiler): Restore this target.
5010           (OBJS, BC_OBJS): Delete unused variables.
5011           Add $(FLAGS_TO_PASS) to sub-make invocations.
5012         * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
5013           tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
5015 Sat Mar  5 18:37:50 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5017         * except.c (finish_handler_array): When computing address of
5018         the array ex_decl, don't call build_array_ref.
5020 Sat Mar  5 17:43:36 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5022         * loop.c (declare_temps): Force powerset temp to memory.
5024 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
5026         * typeck.c (layout_chill_range_type): Convert highval and
5027           lowval to a common type before range-checking them.
5029 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
5031         * ch-tree.h: Add loop-related prototypes.
5032         * decl.c, grant.c: Fix -Wall violations.
5033         * parse.y: Fix format of %type directives.
5035 Fri Mar  4 10:04:18 1994  Wilfried Moser  (fs_moser at rcsw1h)
5037         * Makefile.in: Update version number.
5038         * expr.c: Fix a comment.
5039         * inout.c (build_chill_writetext): Add handling of a REAL.
5040         * lex.l (INITIAL): Remove all code to discard 'header lines'.
5041           no longer needed.
5042         * parse.y (optheader): Remove - it's obsolete, as is the
5043           HEADEREL token definition.
5045 Fri Mar  4 09:41:18 1994  Bill Cox  (bill@rtl.cygnus.com)
5047         * addtest: Fix suffix removal when suffix is .c186.
5048         * regression.sh: Allow for underscores on PR filenames.
5049         * typeck.c: Check in the rewrite mentioned earlier.
5051 Thu Mar  3 09:42:10 1994  Wilfried Moser  (fs_moser at rcsw1h)
5053         * tasking.c (build_process_header): Build a debug structure
5054           for easier access to PROCESS parameters.
5056 Thu Mar  3 09:42:10 1994  Bill Cox  (bill@rtl.cygnus.com)
5058         * typeck.c (*string_assignment_condition): Complete rewrite
5059           of a verbose first draft.
5061 Wed Mar  2 16:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5063         * actions.c (adjust_return_value): Simplify.
5064           Delete references to CH_RETURNS_LOC, extra parameters to
5065           push_extern_function and start_chill_functions.
5066           (convert_for_assignment): Check whether to generate runtime
5067           range-checking code.  Handle reference_type in convert call.
5068           (chill_expand_assignment): Produce an INDIRECT_REF for a
5069           reference_type on the LHS.  Delete conversions subsumed by
5070           convert_for_assignment.
5071         * ch-tree.h: Delete parameters from prototypes.
5072         * decl.c (print_lang_decl): Print out signal flag.
5073           (push_extern_function, start_chill_function): Delete
5074           extra parameters, references to CH_RETURNS_LOC.
5075         * grant.c (chill_finish_compile): Delete extra parameter.
5076         * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
5077           push_extern_function and start_chill_functions.
5078         * regression.sh (checkprms): Skip PRMS discrepancies if we
5079           can't access PRMS for some reason.
5080         * satisfy.c: Correct indentation.
5081         * tasking.c (build_process_header): Delete extra parameters
5082           passed to push_extern_function and start_chill_functions.
5084 Wed Mar  2 10:33:50 1994  Bill Cox  (bill@rtl.cygnus.com)
5086         * addtest: Require a fill filename.  Be more careful about
5087           adding the same test twice.
5088         * expr.c: Add FIXME to comment.
5089         * regression.sh: Add configure script call.
5091 Tue Mar  1 16:24:20 1994  Wilfried Moser  (fs_moser at rcsw1h)
5093         * Makefile.in: Change version of chill to 1.1.2
5094         * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
5096 Tue Mar  1 07:34:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5098         RETURN of LOC value is only half-baked.  Stay tuned...
5099         * actions.c (adjust_parm_or_field): Add to comment.
5100           (adjust_return_value): New function for issuing errors about
5101           RETURN and RESULT expressions.  Also converts them.
5102           (chill_expand_result, chill_expand_return): Call new
5103           adjust_return_value function.
5104         * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
5105           New parameter for push_extern_function and start_chill_function.
5106         * decl.c (push_extern_function, start_chill_function): New parameter
5107           to say whether return value is a LOC.
5108         * expr.c (build_chill_indirect_ref): Further qualify the issuing
5109           of the error message.
5110         * grant.c (raw_decode_mode): Move test for instance mode under
5111           STRUCT handling.
5112           (start_chill_module_code, chill_finish_compile): Add new
5113           parameter to start_chill_function calls.
5114         * parse.y (get_type_of): Do lookup_name more often.
5115           (quasi_pdef, procedure, procmode, optresultspec): Set
5116           CH_RETURNS_LOC flag.
5117           (optresultattr): Code keywords as a bitmask.
5118         * tasking.c (build_process_header): Add new parameter to
5119           start_chill_function call.
5121 Sat Feb 26 12:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5123         * Makefile.in: Replace undefined $(RM) with rm -f.
5124         * configure: Make sure scripts are executable.
5125         * regression.sh: Make variables to invoke make
5126           and awk.  Don't process a directory if it
5127           doesn't exist.
5129 Fri Feb 25 14:48:48 1994  Bill Cox  (bill@rtl.cygnus.com)
5131         * Makefile.in (check): Force the building of ../gcov and
5132           ../xgcc before testing.  Move the printf dependency here
5133           since we don't need it until we're testing.
5134         * addtest: Strip suffix from each input filename.
5135         * decl.c (do_decl): Correct error checking.  Call
5136           string_assignment_condition for some of it.
5137         * tasking.c (build_gen_inst): Add ability to pass an integer
5138           for either the process ID or the copy number.  If a number
5139           is passed, range-check it against the CHILL unsigned type
5140           limits.
5141           (build_buffer_descriptor): Add draft code to check the buffer
5142           name for correctness.
5144 Wed Feb 23 15:07:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5146         New cleaner solution to the following problem:
5147         Chill allows an action to be followed by an ON-handler.
5148         But we don't know if an action has a handler until we've parsed
5149         its end, yet we want to generate extra code to set up an
5150         exception handling contour only if needed.  The old solution
5151         would generate code for the action into an rtl sequence, and then
5152         splice in the exception-setup code if we later found we needed it.
5153         This has a few problems (for example it confuses the management
5154         of stack temporaries), and is ugly.  Now that the compiler is 2-pass
5155         we have a cleaner solution:  In pass 1, we remember which actions
5156         were followed by ON-handlers.  In pass 2, we use this information
5157         to generate appropriate code before an action.
5158         * except.c (push_handler, pop_handler):  In pass 1, set up data
5159         structures (global_handler_list) to remember if an action has an
5160         ON-handler.  In  pass 2, digest this information, and setup
5161         handler if needed.
5162         * except.c, actions.h (pop_handler):  Take an extra int arg.
5163         * except.c (emit_setup_handler):  New function, with code (moved
5164         from chill_start_on) to emit code before an action that has a handler.
5165         * except.c (except_init_pass_2):  New function.
5166         * parse.y (pass1_2):  Call except_init_pass_2 before pass 2.
5167         * parse.y (POP_UNUSED_ON_CONTEXT):  Don't call pop_sequence.
5168         * parse.y:  Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
5169         in pass 1 as well as pass 2.
5170         * parse.y (BEGIN ... END):  Re-arrange logic to avoid block_stack
5171         (local to ../stmt.c) getting out of sync.
5172         * actions.c (push_action):  Don't need to emit a NOP,
5173         now that we're no longer moving sequences around.
5174         * actions.c (push_action):  Call push_handler even in pass one.
5176 Wed Feb 23 11:06:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5178         * decl.c (do_decl): Check for possible overflow in initializing
5179           a declared variable.
5180         * expr.c (build-chill_indirect_ref): Add error message for
5181           a syntax error that C programmers converting to CHILL are
5182           quite likely to make.
5183         * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
5184           seg-faulting.
5186 Tue Feb 22 17:54:43 1994  Bill Cox  (bill@rtl.cygnus.com)
5188         * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
5189           defined.  Build chill script differently, and build an install script.
5190           Add an action to run the regression test.
5191         * actions.c (chill_expand_assignment): Change
5192           string_assignment_condition call.
5193         * ch-tree.h: Add prototype.
5194         * expr.c (build_chill_function_call): Change
5195           string_assignment_condition call.
5196         * satisfy.c (safe_satisfy_decl): Add check that string INIT value
5197           will fit in the declared mode.
5198         * typeck.c (string_assignment_condition): Add flag to disable
5199           runtime code generation.  Add code to generate runtime test.
5201 Mon Feb 21 14:04:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5203         * Makefile.in (check): Add target to trigger a regression test.
5205 Mon Feb 21 13:54:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5207         * decl.c (do _based_decls): Add error check for
5208           decls BASED on a PROC or PROCESS name.
5210 Mon Feb 21 13:24:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5212         * grant.c (chill_finish_compile): Bypass handling
5213           module-level code if an earlier error has made
5214           is useless.
5215         * tasking.c (build_start_process): Generate error,
5216           return if process name unknown.
5218 Mon Feb 21 14:29:41 1994  Wilfried Moser  (fs_moser at rcsw47)
5220         * expr.c (build_generalized_call): Use
5221           build_arrow_expr semantics for ADDR () builtin.
5223 Mon Feb 21 12:49:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5225         * tasking.c (build_gen_inst): Output correct
5226           constructor for GEN_INST.
5228 Mon Feb 21 08:14:59 1994  Wilfried Moser  (fs_moser at rcsw47)
5230         * lex.l (yywrap): Fix punctuation error.
5232 Sun Feb 20 19:58:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5234         * regression.sh: Fix cvs update-related commands.
5235           Have cron job always perform the update, so it's
5236           always reporting on the current state of the
5237           sources.
5238         * typeck.c (string_assignment_condition): Allow a
5239           mis-match if the LHS is varying.
5241 Fri Feb 18 18:10:04 1994  Bill Cox  (bill@rtl.cygnus.com)
5243         * actions.c (expand_chill_assignment): Add call to test the
5244           string assignment condition.
5245         * expr.c (build_chill_function_call):  Add call to test the
5246           string assignment condition.
5247         * regression.awk2: Report WITHDRAWN PRs as well.
5248         * regression.sh: Delete extra commentary about FEEDBACK PRs.
5249         * typeck.c (string_assignment_condition): Add function to
5250           perform the check.
5252 Fri Feb 18 16:30:40 1994  Bill Cox  (bill@rtl.cygnus.com)
5254         * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
5255           and exclude them from the regression test report.  Mark them
5256           in the list of PRs as 'W' status.
5258 Thu Feb 17 09:13:42 1994  Wilfried Moser  (fs_moser at rcsw47)
5260         * Makefile.in: Define a version number.  Build chill script
5261           differently.  Makefile depends upon ../configure, not configure.
5262         * chill.in: Define some new flags.
5264 Wed Feb 16 19:44:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5266         * grant.c (decode_constant): Restore a 'return result' statement
5267           that seems to have gotten lost.
5269 Wed Feb 16 12:37:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5271         * ch-tree.h (various STRING-type macros):  Use new TYPE_STRING_FLAG.
5273         * typeck.c (make_chill_array_type):  Remove unused args.
5274         Simplify to build only one-dimensionsal arrays, so change
5275         index list to single index.  Call layout_chill_array_type
5276         if pass!=1.  And rename to:  build_simple_array_type.
5277         * typeck.c (layout_chill_array_type):  Only recurse
5278         if TREE_TYPE has not been laid out.
5279         * typeck.c (build_chill_array_type):  Update accordingly.
5280         * typeck.c (build_chill_slice):  Replace calls to build_array_type
5281         (which does hash-canonicalization, which breaks if we later set
5282         the TYPE_STRING_FLAG) by calls to build_simple_array_type.
5283         * convert.c (convert):  The same.
5285         * grant.c (decode_constant):  Clean up.  Remove remnants of switch
5286         on TREE_TYPE of the value, and fold those cases into first switch.
5288 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5290         * Makefile.in: Add printf as a dependency of ../cc1chill.
5291         * regression.sh: Make srcdir and objdir really work.
5293 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5295         * expr.c (build_char_array_expr): Fix spelling
5296           error in error msg.
5297         * tree.c (build_string_type): Make check for overlarge
5298           string more robust.
5300 Wed Feb 16 02:37:43 1994  Mike Stump  (mrs@cygnus.com)
5302         * grant.c (decode_constant): Remove useless tests
5303         for STRING_TYPE (which isn't used by anyone, including CHILL).
5305 Tue Feb 15 15:35:07 1994  Bill Cox  (bill@cygnus.com)
5307         * build-release:  Add refinements to checkout commands.
5308         * decl.c (init_decl_processing): Move initialization of
5309           chill_unsigned_type_node before 1st call to build_string_type.
5310         * tree.c (build_string_type): Add compile-time test of string
5311           allocated length.
5312         * typeck.c (layout_chill_range_type): Add compile-time range limit
5313           checking.
5315 Tue Feb 15 08:55:37 1994  Bill Cox  (bill@cygnus.com)
5317         * Makefile.in:  Add stamp-chill-objs as a dependency of ../cc1chill.
5318         * regression.sh: Rename test directory names.
5320 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5322         * Makefile.in: Change interface with parent directory's
5323           Makefile, decoupling the lists of each others' files.
5325 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5327         * lex.l: Delete obsolete comment.
5328         * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
5329           instance constructor.
5331 Mon Feb 14 04:04:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5333         * lex.l (maybe_number): Add octal to numbers
5334           handled by Feb 1 change.
5336 Sat Feb 12 16:24:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5338         * actions.c, convert.c, decl.c, expr.c, lex.l,
5339           tasking.c, typeck.c: gcc -Wall cleanups.
5340         * ch-tree.h: Change loop-related prototypes.
5341         * loop.c, parse.y: Rewrite to set up correct loop scope.
5342           Fix error path where loop variable not declared.
5344 Fri Feb 11 11:12:29 1994  Bill Cox  (bill@rtl.cygnus.com)
5346         * Makefile.in: Add rule to build printf.  Make it a dependency
5347           of ../cc1chill.
5348         * printf.c: New tool for regression testing script.
5349         * regression.sh: Look for print in ${objdir}.
5351 Thu Feb 24 17:31:12 1994  Wilfried Moser  (fs_moser at rcsw1j)
5353         * tasking.c (build_gen_inst): Allow integer expression as argument
5354           1 to this function. This was a change request to get rid of
5355           unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
5356           or STRUCT (t UINT, c UINT).
5358 Thu Feb 10 09:49:31 1994  Bill Cox  (bill@rtl.cygnus.com)
5360         * regression.awk3: Recognize upper-case PRMS state names.
5362 Wed Feb  9 15:26:19 1994  Bill Cox  (bill@cygnus.com)
5364         * parse.y (dowithaction): Allow EXIT from DO WITH.
5366 Tue Feb  8 13:13:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5368         * configure: Change to require grant.c for evidence that we've
5369           found the source directory.
5370         * decl.c (init_decl_processing): delete unused builtin_slice
5371           function declaration.
5372         * expr.c (chill_expand_expr): Calculate powerset's length
5373           correctly, calling powersetlen to do it.
5374         * regression.sh: Replace BASE references with objdir references.
5375         * typeck.c (build_chill_slice): Build the compound expression
5376           in the right order.
5378 Mon Feb  7 15:56:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5380         * expr.c (build_chill_lower, build_chill_upper): Handle
5381           LOC parameter types.
5382         * regression.sh: Correct path to executable sub-shell-scripts.
5384 Mon Feb  7 11:33:47 1994  Bill Cox  (bill@rtl.cygnus.com)
5386         * regression.sh: Pervasive changes to allow for separate
5387           source and object directories.
5389 Wed Feb  2 17:5620 1994  Bill Cox  (bill@rtl.cygnus.com)
5391         * decl.c (find_implied_typed): Delete obsolete reference to
5392           PROCESS_TYPE.
5393         * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
5394           obsolete.
5396 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5398         * Makefile.in: Delete bogus runtime/Makefile lines.
5399         * configure: Build testsuite directory.
5401 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5403         * configure: Correct srcdir for chill.examples directory.
5405 Wed Feb  2 11:24:57 1994  Wilfried Moser  (fs_moser at rcsw47)
5407         * ch-parse.y (rule call): Add
5408               BUFFERNAME LPRN untyped_expr RPRN
5409           to enable generating a descriptor same as for SIGNALS.
5410         * ch-tasking.c (generate_tasking_code variable,
5411           decl_tasking_code_variable): Implement overflow check of
5412           taskingcode in case a tasking code is specified with the
5413           compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
5414           PROCESS_TYPE.
5416 Wed Feb  2 09:31:37 1994  Bill Cox  (bill@rtl.cygnus.com)
5418         * configure: Add ${srcdir} to Makefile.in's path.
5419         * loop.c: Delete unused whitespace.
5421 Tue Feb  1 17:09:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5423         * expr.c (string_char_rep): Process STRING_CST correctly.
5425 Tue Feb  1 15:29:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5427         * expr.c (build_boring_bitstring):  New function.
5428         * expr.c (build_chill_repetition_op):  Fix a number of bugs in
5429         implementation of bitstring repetition.
5430         Also, implement repetition of Booleans.
5432 Tue Feb  1 15:28:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5434         * configure: Delete code to check for gas or ld.  Add code to
5435           store a config.status file in each configured subdirectory.
5436         * expr.c (): Spell concatbitstring as concatps, which is the
5437           runtime routine name.
5438         * regression.sh: Force use of GNU make.
5440 Tue Feb  1 15:22:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5442         * tasking.c: Mark compiler-generated temps to prevent
5443           GRANTing them.
5445 Tue Feb  1 17:38:51 1994  Wilfried Moser  (fs_moser at rcsw1j)
5447         * lex.l (equal_number): Improve check for number after = in a
5448           compiler directive.
5449         * tasking.c (build_tasking_struct): Make field TaskValue
5450           pointer to chill_unsigned_type_node.
5451         * tasking.c (generate_tasking_code_variable): Declare tasking
5452           code variable as chill_unsigned_type_node.
5453         * tasking.c (decl_tasking_code_variable): Declare tasking
5454           code variable as chill_unsigned_type_node.
5456 Mon Jan 31 14:01:58 1994  Bill Cox  (bill@rtl.cygnus.com)
5458         * addtest (update_Makefile): No longer build actions - they're
5459           now in pattern rules.
5460         * ch_makedepend: Do the grep first, to avoid processing non
5461           USE_SEIZE_FILE lines.
5462         * configure: Pervasive rewrite to support configuring regression
5463           test directories.
5465 Mon Jan 31 04:35:53 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5467         * typeck.c (build_chill_slice): Compute EXTENT correctly.
5469 Sun Jan 30 14:33:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5471         * tasking.c (build_gen_inst): Return a typed tuple with
5472           INSTANCE type.
5474 Sun Jan 30 12:01:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5476         * actions.c (chill_expand_assignment): Recognize LENGTH builtin
5477           in the left hand side, pass it to
5478           expand_varying_length_assignment.
5479           (expand_varying_length_assignment): Clean up bitrot.
5480         * convert.c (convert): Revert most recent change.
5481         * loop.c (maybe_skip_loop): New function, split out of
5482           begin_chill_loop.  Add conditional to skip processing an empty
5483           VARYING array.
5484         * parse.y (assignaction): Delete code to recognize LENGTH
5485           on left-hand-side.
5486         * typeck.c (validate_varying_array_ref): Correct misleading comment.
5488 Sat Jan 29 10:54:06 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5490         * typeck.c (build_chill_slice): Pass a valid identifier to
5491         `get_unique_identifier'.
5493         * convert.c (convert): Rename LENGTH variable to MAXIDX, and
5494         use correct value for VAR_LENGTH when initializing a varying array.
5496         * decl.c (do_decl): Set DECL_COMMON.
5498         * actions.c (check_range): Temporarily inhibit warnings so the
5499         compiler doesn't warn the user about useless range checks that it
5500         might create.  It's far easier for the compiler to figure out that
5501         a range check need not be done than it is for us to try to figure
5502         it out for ourselves.
5504         * expr.c (build_concat_expr): Generalize to handle bitstrings.
5505         (scalar_to_string): New function.
5506         (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5507         library call (__concatbitstring).
5509 Sat Jan 29 08:43:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5511         * ch_makedepend: Fix the 'sed' command so that seize file
5512           name can be delimited by double quotes as well as apostrophes.
5514 Thu Jan 27 17:26:19 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5516         * typeck.c (my_build_array_ref):  Do constant folding.
5518 Thu Jan 27 16:24:24 1994  Bill Cox  (bill@rtl.cygnus.com)
5520         * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5521           decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5522           lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5523           tree.c, typeck.c: New 'Copyright' line for 1994.
5525 Thu Jan 27 14:12:07 1994  Mike Stump  (mrs@cygnus.com)
5527         * configure: Don't configure this directory with this configure,
5528         just subdirectories and cleanup.
5529         * Makefile.in (Makefile): Run config.status in parent directory,
5530         if we need rebuilding.
5532 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5534         * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5535           Thanks, Zoo!
5537 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5539         * expr.c (build_concat_expr): Fix SunOS portability problem.
5541 Wed Jan 26 14:57:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5543         * convert.c (digest_powerset_tuple):  New function, used to set
5544         TREE_CONSTANT and TREE_STATIC properly.
5545         (digest_structure_tuple, convert (NULL to instance, non-varying
5546         to varying)):  Set TREE_CONSTANT and TREE_STATIC when appropriate.
5547         * expr.c (varying_to_slice):  Preserve novelty of slice type.
5548         * expr.c (build_concat_expr):  Make sure class of result is
5549         correct (including correct novelty).
5550         * satisfy.c (safe_satisfy_decl):  If value of CONST_DECL is
5551         not TREE_CONSTANT, emit an error.
5552         * typeck.c (build_chill_slice):  Preserve novelty of result.
5553         * typeck.c (build_chill_slice):  Simplify for varying argument
5554         (by using varying_to_slice).
5555         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5556         New functions.
5557         * typeck.c (build_chill_cast): Use above new functions to convert
5558         constant expressions.
5559         * typeck.c (copy_novelty), ch-tree.h:  New function.
5560         * chill.texi:  Update for new constant conversion semantics.
5562 Tue Jan 25 14:00:02 1994  Wilfried Moser  (fs_moser at rcsw1j)
5564         * ch-decl.c (init_decl_processing): Add new builtin function
5565           DESCR. Add call to build_chill_descr_type.
5566         * ch-expr.c: Add function build_chill_descr_type, which actually
5567           build the type the DESCR builtin returns.
5568           Add function build_chill_descr, which process the DESCR builtin.
5569         * ch-expr.c (build_chill_length): Add code to enable
5570           LENGTH (bitstring).
5571         * ch-expr.ch (build_generalized_call): Add processing of DESCR
5572           builtin.
5573         * ch-grant.c: Add code to avoid producing of unnecessary grant
5574           files.
5575         * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5576           for build_chill_descr.
5577         * ch-inout.c (build_chill_io_list_type): Change generation of the
5578           type passed to runtime library according to the new definition.
5579         * ch-inout.c (build_chill_writetext): Change processing of format
5580           string that a character constant is allowed as format string if
5581           compiler gets called with -fold-strings option.
5582         * ch-inout.c (build_chill_writetext): Change processing of
5583           integers in case NEWMODE x = INT.
5584         * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5585         * ch-inout.c (build_chill_writetext): Add processing of
5586           bitstrings.
5588 Tue Jan 25 09:07:10 1994  Mike Stump  (mrs@cygnus.com)
5590         * Makefile.in (all, OBSTACK): Build interesting things be default,
5591         and make sure we include OBSTACK.
5593 Sun Jan 23 12:35:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5595         * grant.c (decode_constant):  Handle RANGE_EXPR.
5596         Simplify handling of CONSTRUCTOR.
5598         * typeck.c (build_chill_slice):  Use build_chill_array_ref_1,
5599         not build_chill_array_ref.
5601 Sat Jan 22 16:23:30 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5603         * parse.y:  Generate a RANGE_EXPR (instead of a confusing
5604         TREE_LIST) to indicate a range in case and tuple lables.
5605         * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5606         Update accordingly to handle these RANGE_EXPRs.
5607         * satisfy.c (satisfy):  Don't call finish_chill_binary_op
5608         for a RANGE_EXPR.
5610 Fri Jan 21 15:39:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5612         * expr.c (force_addr_of):  New function, to encapsulate passing
5613         by reference a powerset or string  to a library function.
5614         * expr.c (build_min_max, build_set_expr):  Use force_addr_of.
5615         * expr.c (chill_expand_expr case CONCAT_EXPR):  Fix passing of
5616         rtl modes.  (Old code fails on 64-bit Alpha.)
5617         * expr.c (build_chill_function_call):  Remove bogues check for
5618         READonly variable passed as parameter.
5619         * expr.c (build_set_expr):  Merge common code.
5620         * parse.y (string repetition):  Fix logic for 2-pass scheme.
5621         * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5622         satisfy.c (satisfy):  Handle REPLICATE_EXPR.
5623         * chill.texi:  Fix typo.
5625 Mon Jan 17 13:55:48 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5627         * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5628         tree.c can find ch-tree.h.
5630 Sat Jan 15 15:34:11 1994  Mike Stump  (mrs@rtl.cygnus.com)
5632         * configure: Fix problem so that building in a separate directory
5633         works.
5635 Sat Jan 15 09:51:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5637         * Makefile.in: Recurse down into runtime to
5638           create its Makefile, and to clean up.
5639         * configure: Recurse into runtime to make its Makefile.
5641 Sat Jan 15 09:15:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5643  << This set of CHILL frontend sources is now the
5644     maintainable and master set. Accept no substitutes! >>
5645         * Makefile.in, configure: Completely rewritten
5646           to be invoked by gcc/Makefile.in and
5647           gcc/configure.
5648         * addtest (update_ChangeLog): Fix insertion
5649           of the '*'.
5650         * regression.sh: Add global option to suppress results of
5651           proprietary tests.
5652         * cpy.sh: Add necessary edits to files as they
5653           are copied down.
5654         * actions.c, ch-tree.def, ch-tree.h, convert.c,
5655           decl.c, except.c, expr.c, grant.c, inout.c,
5656           lang.c, lex.h, lex.l, loop.c, parse.y,
5657           satisfy.c, tasking.c, typeck.c: Latest
5658           versions from the repository.
5660 Fri Jan 14 12:28:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5662         * addtest: Fix insertion of line into ChangeLog.
5663         * configure: Add a script.
5664         * Makefile.in: Hack from ../Makefile.in
5665         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5666         * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5668 Mon Jan 10 11:38:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5670         * build-release: Rewrite for easier tailoring.
5672 Wed Jan  5 08:38:21 1994  Bill Cox  (bill@cygnus.com)
5674         * actions.c, convert.c, decl.c, except.c, expr.c,
5675           inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5676           Current versions from devo/gcc.
5678 Wed Dec 29 14:07:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5680         * addtest: Don't add comment headers to source or .dat files
5681           if they're already present.
5683 Wed Dec 29 13:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
5685         * mktg_leads: New file.
5686         * regression.sh, regression.awk2: Updated status report scripts.
5687         * addtest: New script to add a test to a directory.
5688         * ch_makedepend: Add full path to ch_decomment.
5689         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5690           lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5691           Updated copies of actual sources.
5692         * chill.brochure, chill.texi: Update with current status.
5693         * cpy.sh: Script for updating copies of sources.
5694         * chill.patches: New script for creating a patch release.
5695           Pretty rough.
5697 Wed Dec  8 09:35:54 1993  Bill Cox  (bill@rtl.cygnus.com)
5699         * build-release: Delete lots of unused regression-testing cruft.
5700         * chill.brochure: Initial draft of marketing brochure.
5701         * chill.patches: Preliminary script for building patch sets
5702           for CHILL.
5703         * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5704           building a tcov report on the CHILL compiler.
5706 Sun Nov 21 08:34:33 1993  Bill Cox  (bill@rtl.cygnus.com)
5708         * Makefile.in: Adjust gperf rule for names in this directory.
5709         * ch_decomment.l: New file.  Ignores CHILL comments.
5710           Executable is used bu ch_makedepend.
5711         * ch_makedepend: New script.  Makes CHILL dependencies for
5712           Makefiles.
5713         * gperf, hash.h: New files about lexer tokens.
5714         * regression.sh: Delete notes justifying non-summing
5715           report rows.
5716         * regression.awk2: Report PRMS status when there are
5717           missing test results.
5718         * regression.awk3: Add #! line, so this can be used separately.
5719         * Other files: latest versions copied from devo/gcc.
5721 Sat Oct 30 15:02:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5723         * chill.texi:  Add new node about conversions.
5725 Fri Oct 29 14:17:31 1993  Bill Cox  (bill@cygnus.com)
5727         * chill.regress.cron: Change path to executable, enable PR report.
5728         * regression.awk2: Add terminating periods to messages.
5729         * regression.sh: Change path to testsuites.  Add disclaimer at end
5730           of report.  Print explicit lists of resolved/unresolved PRs.
5732 Thu Oct 28 09:22:20 1993  Bill Cox  (bill@rtl.cygnus.com)
5734         * regression.sh: More PR-related status is printed.
5736 Thu Oct 21 19:24:02 1993  Bill Cox  (bill@rtl.cygnus.com)
5738         * regression.sh: Simplify the paths, make the source
5739           and test files accessed separately from the executables.
5741 Wed Oct 20 16:35:30 1993  Bill Cox  (bill@rtl.cygnus.com)
5743         * regression.sh: Finally fix the file-delete problem.
5744           Thanks, Jeffrey!
5745         * build-release: Make more verbose, fix comment.
5747 Mon Oct 18 00:21:24 1993  Bill Cox  (bill@cygnus.com)
5749         * regression.sh: Build linker if -U option.  Put stderr
5750           into make.log files, too.  Also report on Z.200 examples.
5751         * regression.awk3: New script to help build release note.
5753 Fri Oct 15 16:33:54 1993  Bill Cox  (bill@cygnus.com)
5755         * regression.sh, regression.prpt: Output PR status only
5756           conditionally.  Add command-line flag for CVS updates.
5758 Thu Oct 14 07:53:59 1993  Bill Cox  (bill@rtl.cygnus.com)
5760         * regression.sh: Count PRs accurately.
5761         * Makefile.in: New file.
5763 Sat Oct  9 19:46:58 1993  Bill Cox  (bill@rtl.cygnus.com)
5765         * regression.awk?: Add program fragments for
5766           report of PRMS/test exceptions.
5767         * regression.sh: Add options and PRMS reports.
5769 Fri Oct  8 06:44:41 1993  Bill Cox  (bill@rtl.cygnus.com)
5771     Create chill frontend directory, populate it.
5772     Later, the chill-specific frontend files will be moved here.
5774         * chill: Moved here from gcc directory.
5775         * chill.regress.cron: Add crontab file for regression tests.
5776         * regression.sh: Add regression test control script.
5779 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5781 Sat Jan 15 14:54:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5783         * ch-*.*: All of these files are now moved to the ch subdirectory.
5784         Further update changes should be recorded in the ch/ChangeLog file.
5786 Fri Jan 14 21:09:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5788         * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5789         ch-satisfy.c, ch-typeck.c:  Undo all of initializer-related changes
5790         that Tiemann did earlier this month.
5791         * c-typeck.c (really_start_incremental_init):  Save
5792         constructor_elements and (old value of) constructor_stack
5793         on constructor_stack, to allow for nested initializers.
5794         * ch-convert.c (digest_constructor):  If we need a varying
5795         array, and have a constructor (for the array elements),
5796         make sure to use convert so that the constructor gets
5797         wrapped in an implicit record constructor.
5798         * ch-decl.c (do_decl):  If there is no initializer for a
5799         varying array (or bitstring), create default constructor.
5801         * ch-expr.c (build_chill_lower):  Fix thinko for ARRAY_TYPE.
5802         * ch-satisfy.c (safe_satisfy_decl):  Make sure that we make
5803         original decl to check if we need to make an rtl.
5805         * ch-typeck.c (build_chill_array_ref_1), ch-tree.h:  New function
5806         which does the actual work for build_chill_array_ref (which
5807         now just loops over an argument list).
5808         * ch-actions.c, ch-expr.c, ch-inout.c:  Use build_chill_array_ref_1
5809         instead of build_chill_array_ref where appropriate.
5810         * ch-actions.c, ch-expr.c, ch-typeck.c:  Make operand 1 of a
5811         VARY_ARRAY_REF is a single index, not an index list.
5813         * ch-grant.c (__init_list):  Renamed to _ch_init_list, to
5814         avoid a conflict on the Alpha.
5816 Wed Jan 12 10:19:35 1994  Bill Cox  (bill@rtl.cygnus.com)
5818         * ch-lex.l (WS): Add BS, VT and CR to definition of
5819           whitespace.
5820           (convert_number): Allow for uppercase hex digits.
5822 Tue Jan 11 19:43:55 1994  Bill Cox  (bill@cygnus.com)
5824         * ch-actions.c (lookup_and_handle_exit): Correct
5825           conditional so error messages are output.
5826         * ch-expr.c (build_chill_addr_expr): Add error message.
5827         * ch-grant.c (chill_finish_module_code): Avoid abort by
5828           giving the init_list constructor a type.
5829           (chill_finish_compile): Delete unused code.
5830         * ch-lex.l: Make most build_init_2 calls from the
5831           permanent obstack, so that enumeration values endure.
5832         * ch-loop.c (build_chill_iterator): Add several error
5833           messages.
5835 Tue Jan 11 12:31:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5837         * ch-expr.c, ch-typeck.c:  Rewrite some instances of
5838         'struct ch_class class = chill_expr_class (expr);' to
5839         'struct ch_class class; class = chill_expr_class (expr);'
5840         to work around a bug in /usr/ucb/cc on SunOS4.
5842 Mon Jan 10 18:29:36 1994  Bill Cox  (bill@rtl.cygnus.com)
5844         * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5845         * ch-expr.c (expand_packed_set): Add new parameter to pass
5846           set's minimum ordinal value.  Fix loop invariant problem.
5847           (fold_set_expr): Change to add new parameter to
5848           expand_packed_set call.
5849         * ch-grant.c: Move extern declaration to ch-tree.h.
5850         * ch-lex.l (convert_bitstring): Also output the bitstring
5851           if yydebug is set.
5852         * ch-tree.h: Add prototype.
5854 Mon Jan 10 11:29:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5856         * ch-inout.c: Fix comment.
5857         * ch-tree.h: Add prototype.
5859 Sun Jan  9 18:22:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5861         * ch-tree.h (chill_expr_class):  New prototype.
5862         * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5863         Convert result to correct class.
5864         * ch-expr.c (build_chill_repetition_op):  Preserve CH_DERIVED_FLAG.
5865         Also, fix some bugs for bitstrings (with ranges).
5867         (Patches from Tiemann.)
5868         * ch-convert.c (convert1):  New function to force TREE_TYPE.
5869         (convert):  Use convert1 where appropriate.
5870         * ch-typeck.c:  Formatting change.
5871         * ch-parse.y (build_chill_constructor):  Fix thinko.
5873         * ch-expr.c (varying_to_slice):  If array is not referable,
5874         call save_expr on it, rather than stabilize_reference.
5875         * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5876         Don't force value to value class if mode is not explicitly
5877         specified.  Also, make sure convert etc is only done once.
5879 Sat Jan  8 16:37:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5881         * ch-decl.c (build_chill_function_type):  Don't call
5882         build_function_type, because it does hash canonicalization,
5883         which once in a while looses badly.
5884         * tree.c (build_function_type):  Remove no-longer-needed test
5885         for doing_chill_thang.
5887         * ch-tree.h (CH_DERIVED_FLAG):  New flag.
5888         * ch-tree.h (enum ch_expr_class):  Renamed to ch_class_kind.
5889         (struct ch_class):  New type, used to represent a Chill
5890         'class' as a first-class value.
5891         (CH_ROOT_RESULTING_MODE):  Replaced by CH_ROOT_RESULTING_CLASS.
5892         * ch-typeck.c (chill_expr_class):  Change interface to return
5893         a struct ch_class.
5894         (chill_compatible, chill_compatible_classes):  Update accordingly.
5895         (chill_root_resulting_mode):  Replace by ....
5896         (chill_root_resulting_class):  ... new function.
5897         * ch-convert.c (convert_to_class):  New function.
5898         * ch-decl.c (layout_enum):  Mark enum values with CH_DERIVED_FLAG.
5899         * ch-lex.l (string_or_int):  Rename to string_or_char.
5900         * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5901         convert_float, convert_number):  Set CH_DERIVED_FLAG for literals.
5902         * ch-expr.c (finish_chill_binary_op):  Use convert_to_class.
5903         * ch-satisfy.c (safe_satisfy_decl):  For CONST_DECL, make sure
5904         DECL_INITIAL gets set to result of convert.
5905         Also, clear CH_DERIVED_FLAG for SYN value.
5906         * expr.c (store_constructor):  If a [power]set is exactly one
5907         word long, use single-word move.
5909 Sat Jan  8 08:38:29 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5911         * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5913 Wed Jan  5 05:18:46 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5915         * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5916         ARRAY_TYPE before assuming so.  Also, subtract 1 from LENGTH in
5917         computation of SLICE_END.
5919         * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5921         * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5923         * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5924         for unary set operations).
5926         * ch-expr.c (build_chill_array_expr): Take new argument FORCE.  All
5927         callers changed.  All callers changed.
5929         * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5930         being NULL_TREE until we've started walking the list of values via
5931         the loop over VARIANTs.
5933         * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5934         treat it as an enum value (and hence constant).  Also, only set
5935         TREE_STATIC if the constructor is indeed constant.
5936         * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5937         VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5938         recurse on the DECL_INITIAL.
5940 Wed Jan  5 01:24:50 1994  Bill Cox  (bill@cygnus.com)
5942         * Makefile.in: Add CHILL to LANGUAGES variable.
5943         * ch-actions.c (check_range): Call build_binary_op instead of
5944           fold, build to get the common types chosen.
5945           (cond_range_exception, cond_overflow_exception,
5946            cond_type_range_exception): Delete, obsolete.
5947           (chill_convert_for_assignment): Enable this, get particular
5948           about when to generate rangecheck code.
5949         * ch-expr.c (build_chill_function_call): Sketch in where to
5950           perform chill_convert_for_assignment on actual parameters.
5951           (build_chill_addr_expr): Correct compiler warning.
5952         * ch-loop.c (build_chill_iterator): Add runtime check for
5953           negative loop step expression.
5954         * ch-tree.h: Add prototype.
5955         * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5956           A varying array's length field counts the NUMBER of active array
5957           array entries, not the byte-length of them.
5959 Tue Jan  4 17:57:39 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5961         * ch-decl.c (do_decl): Call `suspend_momenary' if the
5962         converted constructor must live on the permanent_obstack.
5963         * ch-convert.c (convert): When building a new SET_TYPE
5964         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5965         * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5967         * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5968         are locations.
5969         * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5970         on permanent_obstack if necessary.
5972         * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5973         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5975         * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5976         the patch below helped to mess up.
5978         * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5979         (build_chill_addr_expr): Take new argument ERRORMSG.
5980         All callers changed.  Also, call `build_chill_addr_expr' where
5981         we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5982         that now calls `mark_addressable' automagically.
5984         * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5985         This is needed because variables may appear in initialization
5986         statements, and their DECL_INITIALs are their values at
5987         initialization time.
5988         * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5989         to handle VAR_DECLs as initializers.
5991         * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5992         they aren't destroyed for later use.
5994 Tue Jan  4 15:25:30 1994  Bill Cox  (bill@cygnus.com)
5996         * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5997           parameter for varying_array_ref calculations.
5998           (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5999         * ch-typeck.c (build_chill_slice_with_range): Correct issuance
6000           of bogus error in votrics.
6001           (build_chill_slice_with_length): Change for debug tracability.
6003 Tue Jan  4 02:43:37 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6005         * ch-convert.c (digest_structure_tuple): Fix phasing problem in
6006         handling variant record initializers.
6007         (various places): Change `pop_init_level' calls to match
6008         `push_init_level' wrt implicit variable.
6010         * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
6011         `integer_type_node' before using it in comparisons.  FIXME: should
6012         this be done in `chill_max_vary_array_index' by default?
6014 Tue Jan  4 00:24:14 1994  Bill Cox  (bill@cygnus.com)
6016         * ch-actions.c: Fix comments.
6017         * ch-parse.y: Define caseaction_flag.
6018           (caseaction): Create new caseaction_flag node at the start,
6019           then free it at the end.  Check it before the ELSE code.
6020           (expanded_case_label): Check the flag here.  If set in either
6021           place, generate a jump to the end of the case.
6022         * ch-typeck.c (build_chill_slice_with_length,
6023           build_chill_slice_with_range): Add lots of compile-time
6024           parameter range checking.
6026 Mon Jan  3 21:49:04 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6028         * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
6029         implicit==0 everywhere, not 1.
6030         (digest_constructor): Ditto.
6032         * ch-actions.c (check_range): Permit limits to be NULL_TREE.
6033         Also, hack out some dead code.
6034         * ch-typeck.c (build_chill_slice): Check varying and non-varying
6035         slice constructs for range failures.
6036         (build_chill_slice_with_range): Reindented, but not changed.
6038         * ch-typeck.c (chill_max_vary_array_index): New function.
6039         * ch-expr.c (chill_expand_expr): Call it.
6041         * ch-decl.c (var_data_id, var_length_id): New variables.
6042         (init_decl_processing): Initialize them.  All calls to
6043         get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
6044         by references to these variables.  This simplifies the code
6045         w/o obscuring anything.
6047 Mon Jan  3 21:24:44 1994  Bill Cox  (bill@cygnus.com)
6049         * c-typeck.c: Fix comment.
6050         * ch-actions.c (chill_expand_assignment): Error assigning to
6051           READONLY location.  (PR_3903)  Pass filename, linenumber
6052           to setbitpowerset runtime routine.
6053         * ch-decl.c (init_decl_processing): Add filename, linenumber
6054           parameters to setbitpowerset prototype.
6055         * ch-expr.c (build_chill_function_call): Error when passing a
6056           READonly location as a LOC or INOUT parameter.
6057         * ch-parse.y (mode): Correct code marking type as readonly.
6059 Mon Jan  3 19:03:55 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6061         * ch-actions.c (chill_expand_assignment): Disable code that defeats
6062         building varying array references.
6063         * ch-expr.c (chill_expand_expr): Add rangecheck code to
6064         VARY_ARRAY_REF case.
6065         * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
6066         function (in this case, `validate_varying_array_ref') when we're
6067         doing a `build_' operation.
6069         * ch-typeck.c (validate_varying_array_ref): Simplify interface
6070         since INDEX parameter can never meaningfully be an INDEXLIST.
6071         * ch-actions.c (expand_varying_length_assignment): Caller changed.
6073 Mon Jan  3 07:29:45 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6075         * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
6076         * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
6077         if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
6078         (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
6079         call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD).  This
6080         can happen when constructors are output incrementally.
6081         * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
6082         * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
6083         CONSTRUCTORS.
6085 Sun Jan  2 08:17:09 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6087         * ch-convert (digest_structure_tuple): Handle SET_TYPEs.  Also, call
6088         `convert' so we can handle INSTANCE types (and other anomolies)
6089         correctly.
6091         * ch-convert.c (digest_structure_tuple): Fixed variant
6092         structure initialization.  Also fixed a typo (TYPE_NAME
6093         was being used on a FIELD_DECL instead of DECL_NAME).
6094         * c-typeck.c (initializer_constant_valid_p): Pass missing
6095         ENDTYPE argument on recursive call.
6096         (set_init_field): New function, needed by ch-convert.c change above.
6098         * ch-decl.c (layout_chill_variants): Added a FIXME next to an
6099         almost certain typo.
6101         * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
6102         TREE_CONSTANT for static references.
6103         * ch-except.c (chill_start_on): Change calls to
6104         `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
6105         which has CHILL semantics.
6106         * ch-convert.c (convert): Ditto (albeit in some disabled code).
6108 Sat Jan  1 21:26:43 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6110         * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
6111         TREE_CODE of DECL in case it's altered by actions in the switch.
6113         * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan.  CVS log
6114         mentions where to find code that triggers this case.
6116         * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
6117         well.
6119         * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
6120         we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
6121         (digest_constructor): Ditto.
6123 Sat Jan  1 10:29:19 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6125         * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
6126         so that CONSTRUCTORS are properly handled before being used.
6128         * ch-convert.c (chill_start_init): New function.  All callers to
6129         `start_init' changed to call this function instead.
6130         (digest_struct_tuple): Defend against initialization machinery
6131         mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
6132         IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots.  This is
6133         needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
6134         can be refered to throughout the compilation unit.  Also remove an
6135         extraneous call to `process_init_element' erroneously added to the
6136         variant record sub-loop.
6137         (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
6138         CONSTRUCTORS of SET_TYPE.
6139         * ch-parse.y (build_chill_constructor): Refix typo.  Also set
6140         TREE_STATIC if at top level.
6142         * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
6143         TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
6144         should have been called.
6146         * ch-convert.c (digest_struct_tuple): Restore code which tracks
6147         field initializations so that the compiler can deduce what variant
6148         initializations to assume.
6150         * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
6151         when we push into a scope that has a DECL with a CONSTRUCTOR as its
6152         DECL_INIT.
6154         * ch-parse.y (build_chill_constructor): Change the name of the
6155         parameter to something more meaningful.  Fix typo.  Also, handle case
6156         where element is an untyped CONSTRUCTOR.
6158         * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
6159         constant ADDR_EXPRs.
6160         (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
6161         on JBUF_REF (instead of calling `build1' which does not).
6163         * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
6165         * ch-typeck.c (chill_expand_tuple): Deleted.
6166         * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
6167         instead, use initialization machinery for CONSTRUCTORS that
6168         come through here.
6169         * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
6170         that are created here.
6171         * ch-satisfy (satisfy): Abort in case we would have called
6172         chill_expand_tuple.  FIXME: some other code is needed here,
6173         but I don't know what yet.
6175         * ch-parse.y (build_chill_constructor): New function to
6176         propagate TREE_CONSTANT bits to CONSTRUCTORS.
6177         (untyped_expr rule): Use it.
6178         (primval rule): Use it.
6180         * ch-decl.c (do_decl): Call `finish_init'.
6181         * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
6182         this function, make sure the initialization machinery is set up.
6184         * ch-convert.c (digest_structure_tuple, digest_constructor): Add
6185         missing prototypes.
6187 Fri Dec 31 11:31:01 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6189         * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
6190         as being TREE_CONSTANT.  Otherwise it gets bounded by the initializer
6191         code.
6193         * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
6194         * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
6195         rewritten to work with GCC's initialization code.  The basic change
6196         was to keep the initializers in sync with the initialization
6197         machinery that `process_init_element' imposes.  Both of these
6198         functions now return `void'.
6199         * ch-convert.c (convert): Changed calls to `digest_...' functions.
6201         FIXME: the code handling UNION_TYPE (and variant records) has not
6202         been tested yet.
6204 Fri Dec 31 15:32:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6206         * ch-lex.l (convert_number): Output the converted number if
6207           yydebug is enabled.
6208         * ch-parse.y (signaldef): Set ignore_exprs correctly for a
6209           SIGNAL declaration.
6211 Fri Dec 31 13:17:48 1993  Bill Cox  (bill@cygnus.com)
6213         * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
6214           a RETURN without a value (which cannot have an exception
6215           handler) from a RETURN with a value (which can).  Eliminate
6216           some shift/reduce and reduce/reduce conflicts.
6218 Thu Dec 30 17:42:32 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6220         * ch-inout.c (build_chill_writetext): Deal with 2 cases where
6221         types returned from `type_for_size' are not expected.  FIXME.
6222         * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
6223         This is required when range checking is enabled.
6225 Thu Dec 30 14:28:25 1993  Bill Cox  (bill@rtl.cygnus.com)
6227         DELAY CASE works now.
6228         * ch-decl.c (init_decl_processing): Move rest of tasking-related
6229           initialization into tasking_init().
6230         * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
6231           (optsetprio): New non-terminal.
6232         * ch-tasking.c (get_task_name): Delete, obsolete.
6233           (build_instance_type): build pointer to instance type also.
6234           (build_receive_case_start): Cleanup per -Wall messages.
6235           (build_receive_case_label): Move between start and end functions.
6236           (build_delay_case_start): Pass SET name and priority also.
6237           Generally update to correct functioning.
6238           (build_delay_case_label): Move between start and end fucntions,
6239           correct its functioning.
6240           (build_delay_case_end): Correct the code.
6241           (tasking_init): Lots of tasking-related code moved here from
6242           init_decl_processing.
6243         * ch-tree.h: Update, add prototypes.
6245 Wed Dec 29 10:13:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6247         * ch-expr.c (build_chill_indirect_ref): Revert change which
6248           failed full regression testing.
6249         * ch-lex.l (name_type_signal): Add debug output.
6250         * ch-parse.y (structured_variable): Add a debug variable.
6252 Wed Dec 29 02:05:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6254         * ch-decl.c (get_next_decl): Revert change which failed full
6255           regression testing.
6257 Tue Dec 28 18:20:14 1993  Bill Cox  (bill@rtl.cygnus.com)
6259         DELAY actions work now.
6260         * ch-decl.c: Correct spelling in comments.
6261           (get_next_decl): NULL out the decl's TREE_CHAIN before returning
6262           it, to prevent accidental access to the remembered_decls.
6263           (init_decl_processing): Add wait_event to runtime functions.
6264         * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
6265           becoming a seg fault.
6266         * ch-grant.c: Correct a comment.
6267         * ch-loop.c: Delete/correct comments.
6268         * ch-parse.y (delaycaseaction): Add push/poplevel calls.  Turn 'sorry'
6269           into rough draft of actual code.
6270           (delayaction): Don't make a new scope here, use get_unique_identifier
6271           instead.
6272           (locdec): process event decls here, too.
6273           (mode): Add code to forbid READonly EVENT and BUFFER decls.  Delete
6274           code which required EVENTs and BUFFERs to be declared at global scope.
6275           (simple_name_string): Add an EVENTNAME.
6276         * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
6277           becoming a seg fault.
6278         * ch-tasking.c (tasking_setup): Add the event queue's max. length
6279           as the 'entry_point' parameter in the list.
6280           (build_receive_case_start, build_receive_case_label): Defer
6281           calling runtime routine until we know whether we have a signal
6282           or a buffer to wait for.
6283           (build_delay_case_start, build_delay_case_end,
6284            build_delay_case_label, build_delay_action,
6285            process_event_decls): Added functions.
6286         * ch-typeck.c (chill_similar): Allow all integers of differing
6287           precisions to be similar.
6289 Thu Dec 23 18:00:40 1993  Bill Cox  (bill@rtl.cygnus.com)
6291         * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
6292           options.  Delete C-specific defines.  Disable piping from
6293           pre-processor to cc1chill (even if -pipe is specified), since cc1chill
6294           rewinds its input for its second pass.  Piping still works
6295           from cc1chill to as.
6297 Thu Dec 23 12:31:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6299         * ch-tasking.c (decl_tasking_code_variable): Assure that the
6300           tasking_code variable is allocated on the permanent obstack.
6301           (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
6302           queue length (passed as the entry_point parameter).
6303           Other changes to variable names to increase 'self-documentation'
6304           the only kind GNU CHILL will get, for a while..
6306 Wed Dec 22 10:46:31 1993  Bill Cox  (bill@rtl.cygnus.com)
6308         * ch-decl.c (do_seize): Delete - it's unused.  Fix comments.
6309         * ch-loop.c (build_chill_iterator): Convert BY expression
6310           so loop involving a SET works.  Additional errors generated
6311           for numbered SET expression as start or end expression.
6312         * ch-tree.h: Prototypes for future DELAY functions.
6313         * ch-typeck.c: Standard indentation.
6315 Tue Dec 21 15:30:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6317         * ch-actions.c (build_cause_exception):  New function.
6318         (expand_cause_exception):  Re-write to use build_cause_exception.
6319         (check_expression, check_range):  New functions.
6320         (chill_convert_for_assignment):  New function.
6321         * ch-expr.c (build_chill_pred_or_succ):  New function.
6322         (build_chill_succ, build_chill_pred):  Removed.
6323         (build_generalized_call):  Use build_chill_pred_or_succ.
6324         * ch-lex.h, ch-lex.l (init_lex):  Add RID_OVERFLOW and RID_RANGEFAIL.
6325         * ch-lex.l (init_lex):  Use new macro to make more terse.
6326         * ch-typeck.c (chill_equivalent):  New function.
6327         Also check that ranges have the same bounds.
6328         * ch-typeck.c (my_build_array_ref):  Add optional range-checking.
6329         * ch-typeck.c (chill_location):  Handle COMPOUND_EXPR properly.
6330         Return 2 if also a referable.
6331         * ch-typeck.c (chill_referable):  Re-define to use chill_location.
6332         * ch-tree.h (CH_EQUIVALENT):  Re-defined to use chill_equivalent.
6334         * dbxout.c (dbxout_type):  Output the type attribute "@S;" to
6335         distinguish a string from a char array, and to distinguish a
6336         bitstring from regulat (power)set.  (Needed for Chill.)
6337         * dbxout.c (dbxout_type):  Only check for baseclasses in
6338         type.binfo is a vector.  (It is used in Chill for tagged unions.)
6340 Fri Dec 17 09:56:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6342         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6343           ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
6344           ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
6345           Fix -Wall problems.
6346         * ch-actions.c (chill_expand_assignment): Error if assigning
6347           a value to a BUFFER or EVENT variable.
6348         * ch-expr.c (invalid_left_operand): Delete, unused.
6349         * ch-grant.c (tasking_setup): Call build_enum_tables.
6350         * ch-inout.c (get_final_type_and_range, build_enum_tables,):
6351           New functions.
6352           (build_chill_writetext): Lots of changes to support other
6353           basic CHILL data types.
6354         * ch-loop.c (build_chill_iterator): Lots of new code to check
6355           the expressions in a STEP loop.
6356         * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
6357           names in receivecasealternative.  Generate error messages
6358           if they're mixed in the same receive case.
6359           (process_buffer_decl): Renamed from build_buffer_decl.
6360         * ch-tree.h: Fix prototypes.
6361         * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
6362           correctly.  Thanks Per!
6364 Wed Dec 15 15:05:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6366         * ch-decl.c (push_scope_decls):  Re-arrange some more, so
6367         that normal SEIZES (without ALL) are handled before SEIZE ALL.
6369 Wed Dec 15 13:01:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6371         * ch-loop.c (declare_temps): Calculate end-of-array pointer
6372           using correct type (NOT chill_integer_type).
6373           (begin_chill_loop): Build loop-bypass expression in the
6374           type of the start expression, not in the unsigned type.
6376 Tue Dec 14 15:41:32 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6378         * ch-decl.c (push_scope_decls):  Re-arrange so that normal
6379         (non-seize) declarations are proclaim_decl'd *before* we
6380         handle the ALIAS_DECLs for seizes.  The advantage is
6381         that we can now test for (an approximation) to the
6382         'seizeable' concept, thus avoiding duplicate definitions
6383         when a module has both GRANTs and SEIZE ALL.
6385         * ch-expr.c (build_chill_arrow_expr): No longer re-write
6386         addr-of-conversion to pointer-conversion-of-addr.
6387         * ch-expr.c (build_chill_addr_expr): Re-write to just use
6388         build_chill_arrow_expr.
6390 Mon Dec 13 16:44:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6392         * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr):  Don't re-write
6394         * ch-tree.h (chill_root_resulting_mode):  Fix typo (missing '_').
6396         * ch-expr.c (finish_chill_binary_op):  Use CH_ROOT_RESULTING_MODE
6397         macro (which works on expressions), rather than CH_RESULTING_MODE
6398         (which works on modes, and isn't quite correct).
6399         * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE):  New macro.
6400         * ch-typeck.c (chill_read_compatible, chill_compatible):
6401         Use the new macro, which handles NEWMODEs of PTR correctly.
6402         * ch-typeck.c (chill_similar):  Return 1 rather than 0 for
6403         dynamic-length array (and string) types (e.g. slices).
6404         * ch-typeck.c (chill_root_mode):  If the mode has a Novelty,
6405         just return it as is.  (This is still not 100% correct for
6406         NEWMODE of RANGEs, but is close enough.)
6408 Mon Dec 13 16:27:06 1993  Bill Cox  (bill@rtl.cygnus.com)
6410         * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
6411           build_buffer_decl, which then seg faults.
6412         * ch-tasking.c (build_buffer_descriptor): Move declaration
6413           of bufdecl closer to its use.
6415 Mon Dec 13 14:57:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6417         * ch-actions.c (chill_expand_result): Use expand_expr_stmt
6418           to avoid C-specific conversions.
6419         * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
6420         * ch-parse.y (sendaction): Delete unused statement, use the 'name'
6421           variable.
6422         * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
6423           conversions.
6424           (build_buffer_decl): Save the tasking_code_variable's decl
6425           in the buffer decl tree.
6426           (build_buffer_descriptor): Real, working version.
6428 Mon Dec 13 03:13:36 1993  Bill Cox  (bill@rtl.cygnus.com)
6430         * ch-decl.c (print_lang_identifier): Delete code
6431           to print buffer size - it's no longer kept here.
6432         * ch-parse.y (expand_send_buffer): Renamed from
6433           build_send_buffer.
6434           (locdec): Enable building of a buffer decl.
6435           (optresultspec, optresultattr): Add optional
6436           result attributes such as LOC.  Semantics
6437           not enabled yet.
6438         * ch-tasking.c (expand_send_buffer): Renamed.
6439         * ch-tree.h (build_send_buffer): Renamed.
6440         * ch-typeck.c (chill_expr_class): Do more complete,
6441           job of classifying expressions.  Thanks, Per.
6443 Mon Dec 13 00:59:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6445         * ch-typeck.c (chill_expr_class):  Return CH_DERIVED_CLASS
6446         for bitstring constants.
6447         * ch-typeck.c (chill_novelty):  The novelty of an (unnamed)
6448         range mode is that of its parent mode; the novelty of READ M
6449         is that of M.
6451 Sat Dec 11 15:14:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6453         * ch-expr.c (varying_to_slice):  Call stabilize_reference
6454         rather than save_expr.
6455         * ch-typeck.c (build_chill_slice):  Don't emit warning
6456         if array is a SAVE_EXPR (it is effectively referable).
6457         * ch-typeck.c (chill_root_resulting_mode):  Handle
6458         correctly the case that one operand is DERIVED and one is VALUE.
6460 Fri Dec 10 10:00:42 1993  Bill Cox  (bill@rtl.cygnus.com)
6462         * ch-grant.c (decode_decl): Restore code mistakenly deleted.
6463           Move instance-handling code to raw_decode_mode.
6464         * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
6465           Add rough draft of DELAY statement handling.
6466         * ch-tasking.c (build_event_type): New function.
6467         * ch-tree.h (build_event_type): Add prototype.
6468         * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
6470 Wed Dec  8 18:02:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6472         Parse and grant BUFFER modes.
6473         * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
6474           Moved from decode_decl.
6475         * ch-parse.y: Fix several sorry() messages.
6476         * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
6477           info.
6479 Wed Dec  8 12:59:54 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6481         * ch-actions.c (chill_expand_assignment):  In a multiple
6482         assignment, check that all the targets are equivalent.
6484         * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT):  New function
6485         and macro to (partially) implement the relation l-equivalent.
6486         * ch-typeck.c (chill_read_compatible):  Implement at least
6487         initial check of read-only-ness.
6488         * ch-typeck.c (build_readonly_type):  Fix thinkos.
6490 Wed Dec  8 09:11:46 1993  Bill Cox  (bill@rtl.cygnus.com)
6492         * ch-decl.c (pop_module): Only warn about duplicate grant
6493           statements if they inhabit different files, by examining
6494           inode numbers.  Only report compatibility problems in pass 1.
6495         * ch-lex.l (chill_same_grant_file): New function to support the
6496           above test.
6498 Tue Dec  7 17:10:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6500         * ch-decl.c (start_chill_function):  Handle attributes in pass 1,
6501         rather than in pass 2.  (It seems to make more sense that way.)
6502         * ch-parse.y (procedureattr):  Build attribute list if pass != 2.
6504         * ch-parse.y (mode):  Don't call build_readonly_type in pass 2.
6506 Mon Dec  6 14:35:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6508         This implements NOVELTY and READONLY checking.
6509         * ch-tree.def:  Added comment about use of LANG_TYPE.
6510         * ch-typeck.c (build_readonly_type, smash_dummy_type):  New functions.
6511         * ch-tree.h: New prototypes.
6512         * ch-decl.c (push_modedef):  If newmode, lazily "copy" the given mode
6513         immediately (even if it's just a type name), using a LANG_TYPE.
6514         * ch-parse.y (mode):  Call build_readonly_type to handle READ.
6515         * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6516         ch-satisfy.c (satisfy):  Handle a LANG_TYPE.
6517         * ch-decl.c:  Remove chill_modes_equiv and other unused junk.
6518         * ch-satisfy.c (safe_satisfy_decl/CONST_DECL):  Better
6519         mode compatibility checking for SYN declarations.
6521         * ch-typeck.c (chill_similar):  Be more general when checking set
6522         modes for similarity - specifically support calling chill_similar
6523         BEFORE the modes have been satisfied (needed by proclaim_decl).
6524         * ch-decl.c (proclaim_decl):  Allow duplicate definitions
6525         of set elements of similar set modes.
6527         * ch-parse.y (caseaction):  Call language-independent
6528         expand_start_case rather than c_expand_start_case (which
6529         doesn't allow chars or booleans).
6531 Sat Dec  4 22:16:19 1993  Bill Cox  (bill@rtl.cygnus.com)
6533         * ch-actions.c (cond_range_exception,
6534           cond_type_range_exception): Check command-line flag before
6535           generating code.  Fix comments.
6536         * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6537           code, commented out.
6538         * ch-loop.c (build_chill_iterator): Comment out
6539           exception code generation.
6540         * ch-parse.y: Delete quasi_signal flag, use
6541           current_module->is_spec_module instead.
6542         * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6543           Delete quasi_decl flag.  Look at current_module
6544           instead.
6545         * ch-tree.h: Take quasi_decl flag out of buffer
6546           related prototypes.
6547         * ch-typeck.c (valid_array_index, chill_similar):
6548           Comment out runtime range checking for now.
6549         * expr.c (store_constructor): Fix word-size set problem.
6550         * varasm.c (emit_set_data): Fix word-size set problem.
6552 Wed Dec  1 19:08:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6554         * ch-actions.c: Delete unused prototype for build_compound_expr.
6555         * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6556           expression to lp->iter_type before expanding it.  Prevents an abort
6557           deep in expand_expr and friends.
6559 Wed Dec  1 17:00:44 1993  Bill Cox  (bill@rtl.cygnus.com)
6561         * ch-actions.c (chill_expand_assignment): Comment out strange
6562           test and its error message.
6563         * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6564           jump around the loop.
6565         * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6567 Wed Dec  1 14:19:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6569         * ch-actions.c (cond_exception): Clarify that it generates
6570           an exception if the given expression is TRUE.  Make it so, Number One.
6571         * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6572           (print_lang_type): Print max queue size.
6573           Add casts to DECL_TASKING_CODE_DECL references.  Fixes a
6574           portability problem.
6575           (init_decl_processing): Add filename and linenumber arameters
6576           to tasking and memory-allocate runtime prototypes.
6577         * ch-expr.c (finish_chill_binary_op): Check for division
6578           by a constant zero.  Replace build_temporary_variable
6579           calls with decl_temp1 calls, to decouple from ch-loop.c.
6580           (build_chill_succ, build_chill_pred): Sketch code to generate
6581           exceptions.  Add error check for numbered set.
6582           (build_generalized-call): Correct call for return_memory.
6583           Standardize whitespace before left parens.
6584         * ch-grant.c: Use new macro for checking for BUFFER mode.
6585         * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6586           and EVENT names.
6587         * ch-loop.c (build_temporary_variable): Make static, unavailable
6588           to outsiders.
6589           (declare_temps): Make user's variable for him/her, in the
6590           true Z.200 case, where it hasn't previously been declared.
6591           (begin_chill_loop): simplify control flow a bit.
6592         * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6593           (rccase_label): Delete bogus error checks.  Rough draft of
6594           BUFFER-related code.
6595           (assertaction): Remove logical negation - it's now in cond_exception.
6596           (locdec): Sketch of buffer-related code.
6597           (non_array_mode): Add EVENT and BUFFER modes here.  Add setting of
6598           set-numbered flag for pred and succ functions.
6599           (optqueuesize): Default to integer_zero_node.
6600           (simple_name_string): Add BUFFERNAME.
6601         * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6602           (build_chill_start_process, expand_send_signal,
6603            build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6604           to tasking-related runtime calls.  Sketches of BUFFER mode
6605           processing.
6606         * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6607           macro, for portability to non-gcc compilers.  Add prototypes
6608           for buffer-related functions.
6609         * ch-typeck.c: Replace build_temporary_variable calls with
6610           decl_temp1 calls, to decouple from ch-loop.c.
6611           (chill_similar): Add tests for BUFFER and EVENT modes.
6613 Wed Dec  1 14:05:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6615         * ch-actions.c (malloc prototype):  Remove; can cause conflicts.
6617 Wed Dec  1 09:49:58 1993  Bill Cox  (bill@rtl.cygnus.com)
6619         * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6621 Tue Nov 30 14:05:23 1993  Bill Cox  (bill@rtl.cygnus.com)
6623         * ch-decl.c (init_decl_processing): Add filename, line number
6624           parameters to tasking-related runtime routines.
6625         * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6626         * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
6627           lex-only list.
6628           (quasi_locdec): Set/reset quasi_decl flag.
6629         * ch-tasking.c (build_start_process, expand_send_signal,
6630           build_receive_case_start, build_send_buffer): Add filename. linenumber to
6631           (build_buffer_decl, build_buffer-type): New rough-draft functions.
6632           generated runtime routine call.
6633         * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6634           to mark a synchronization mode.  Update the prototypes.
6635         * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6636           similarity.
6638 Tue Nov 30 09:51:47 1993  Doug Evans  (dje@canuck.cygnus.com)
6640         * cccp.c (main): Add missing chill sanitization.
6642 Sun Nov 28 15:50:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6644         * ch-loop.c (initialize_iter_var): Build count expression
6645           more robustly.
6646           (bottom_loop_end_check): Call emit_line_note.
6647           (end_chill_loop): Delete emit_line_note call.
6648         * ch-parse.y (doaction): Move DO keyword
6649           after end_chill_loop call.
6651 Wed Nov 24 08:49:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6653         * c-typeck.c (c_expand_start_case): Back out previous
6654           change.
6656 Tue Nov 23 12:33:50 1993  Bill Cox  (bill@rtl.cygnus.com)
6658         * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6659           type as a CASE label.
6661 Tue Nov 23 11:37:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6663         * ch-decl.c (grok_chill_variantdefs):  Use NULL as the name
6664         of variant fields (not __CASE or anything based on it).
6665         * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6666         Don't check for field name __CASE.
6668 Tue Nov 23 09:37:54 1993  Bill Cox  (bill@rtl.cygnus.com)
6670         * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6671           name for the FIELD_DECL.
6672         * ch-parse.y (optstartset): More error tests.
6673         * ch-tasking.c (make_process_struct): Only report error in pass 1.
6674           (build_start_process): Remove bogus restriction, allowing
6675           an INSTANCE expression as the optset parameter.
6677 Mon Nov 22 17:56:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6679         * ch-tree.h (expand_function_end):  Now is takes parameters, not 2.
6680         * ch-decl.c (finish_chill_function):  Add 3rd parameter to
6681         call of expand_function_end.
6683         * ch-expr.c (chill_expand_expr):  For set and strings ops,
6684         if target is in a register, use a stack temporary (since we must
6685         take its address).  (Similar to Oct 29 change for store_constructor.)
6686         * ch-expr.c (resolve_component_ref):  Fix variant field lookups.
6688 Mon Nov 22 14:23:13 1993  Bill Cox  (bill@rtl.cygnus.com)
6690         * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6691           parameter 1 and its mode are always in sync.
6692           (build_chill_pred, build_chill_succ): Allow pred/succ of a
6693           pointer.
6694         * ch-loop.c (chill_unsigned_type): New function, used instead of
6695           unsigned-type, since it understands the chill_integer_type.
6696           (decl_iteration_var): Delete, use build_temporary_variable
6697           instead.
6698           (declare_temps): Use lp->iter_type for the temp evaluations.
6699           (initialize_iter_var): More careful calculation, to handle
6700           MININT to MAXINT loops w/o overflow/underflow.
6701           (begin_chill_loop): Use the original start/end expressions
6702           for the loop bypass test.
6704 Mon Nov 22 14:02:06 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6706         * ch-typeck.c (build_chill_slice):  If the argument is
6707         is constant, use a read-only static variant, as the
6708         existing algorithm assumes addressability.
6709         * ch-typeck.c (chill_compatible):  De-reference reference types.
6710         * ch-typeck.c (layout_chill_range_type):  Set TREE_UNSIGNED.
6712 Sat Nov 20 20:17:15 1993  Bill Cox  (bill@rtl.cygnus.com)
6714         * ch-decl.c (init_decl_processing): Add filename
6715           and linenumber to allocate, free memory calls.
6716         * ch-expr.c (build_allocate_memory_call,
6717           (build_allocate_global_memory_call): Add
6718           filename, linenumber to call.
6719         * ch-loop.c: Complete rewrite for maintainability.
6721 Sat Nov 20 17:30:05 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6723         * ch-except.c:  Make it so that (by default at least) the
6724         code to push/pop the __exceptionStack is done using library
6725         functions __ch_link_handler and __ch_unlink_handler.  This
6726         provides better flexibility (for e.g. multi-threading).
6728         * ch-decl.c (layout_chill_variants):  Allow (useless) selectors
6729         even for tag-less variants.
6731 Fri Nov 19 14:32:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6733         * ch-decl.c (init_decl_processing): Add memmove builtin
6734           function definition.
6735         * ch-actions.c (chill_expand_array_assignment): Use memmove
6736           call to copy an array or slice across the assignment.
6738 Wed Nov 17 18:23:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6740         * ch-satisfy.c (satisfy):  If a CONTRUCTOR already has a
6741         TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6742         to force expansion (processing of the elements).
6743         * ch-grant.c (decode_constant):  If a tuple (CONTRUCTOR) has
6744         a mode, write it out.
6745         * ch-decl.c (init_decl_processing): Add some missing inits.
6747 Wed Nov 17 17:13:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6749         * ch-loop.c: Fix unterminated strings in design comments.
6750           Add enumeration to the iterator structure for type of loop.
6751           unused for now.
6753 Wed Nov 17 16:40:05 1993  Bill Cox  (bill@rtl.cygnus.com)
6755         * ch-decl.c (init_decl_processing): Add long parameters to lots
6756           of powerset runtime routines.
6757         * ch-expr.c (chill_expand_expr): Change parameters to powerset
6758           runtimes so bitlengths are long unsigned ints.
6759         * ch-inout.c (build_chill_writetext): Add filename and linenumber
6760           as runtime parameters, for better error messages.
6761         * ch-loop.c: general pre-rewrite cleanup.
6762         * expr.c (store_constructor): Rewrite set interface to
6763           setpowersetbits for long bitnumbers, rather than shorts.
6765 Tue Nov 16 13:41:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6767         * ch-expr.c (build_chill_function_call): Stop generating empty
6768           copyback statements, which lead to a seg fault.
6770 Tue Nov 16 12:20:17 1993  Per Bothner  (bothner@cygnus.com)
6772         * ch-satisfy.c (satisfy):  If satisfying a type whose
6773         TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6774         * ch-actions.c (build_exception_variant):  Remove some crud.
6775         * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6776         Remove unused first argument.
6777         * ch-decl.c (start_chill_function):  Call build_exception_variant
6778         in pass 1, not in pass 2.
6780 Tue Nov 16 11:10:03 1993  Bill Cox  (bill@rtl.cygnus.com)
6782         * ch-decl.c (shadow_record_fields): Call new function
6783           build_chill_arrow_expr, which returns a ptr-to-a-type.
6784         * ch-expr.c (build_chill_arrow_expr): New function, works like
6785           build_chill_addr_expr used to do, returning a typed ptr.
6786           (build_chill_addr_expr): Now returns unbound ref - analogous
6787           to C 'void *'.
6788         * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6789           (operand6): Call build_chill_arrow_expr.  Reindent a bit.
6790         * ch-tree.h (build_chill_arrow_expr): New prototype.
6792 Mon Nov 15 16:38:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6794         * stor-layout.c (layout_type): If a SET_TYPE needs more than
6795         INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6797         * ch-decl.c (start_chill_function):  Set DECL_CONTEXT of params.
6799 Mon Nov 15 14:49:17 1993  Bill Cox  (bill@rtl.cygnus.com)
6801         * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6802           build_function_call, etc.) to tasking_init.
6803         * ch-gperf, ch-hash.h: Add ASM keyword.
6804         * ch-parse.y: Add ASM statement rules.
6805           (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6806         * ch-tasking.c: Move tasking stuff here.
6808 Sun Nov 14 15:50:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6810         * ch-parse.y (mode2):  Split into array_mode and non_array_mode
6811         to resolve layout ambiguity.
6812         * ch-parse.y (checked_name):  Remove.  Use name_string instead.
6813         * ch-parse.y (variantdef):  Don't crash if no tag fields.
6814         * ch-typeck.c (build_chill_array_type):  If varying_p,
6815         actually do build_varying_struct here (rather than in ch-parse.y).
6817 Fri Nov 12 15:37:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6819         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6820         static names.  (Let make_decl_rtl generate a unique name.)
6822 Sun Nov 14 13:15:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6824         * ch-expr.c (build_chill_lower, cuild_chill_upper):
6825           Rewrite for modes, values, etc.
6826         * ch-inout.c (build_chill_writetext): Add ability
6827           to write out characters.
6828         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6829           static names.  (Let make_decl_rtl generate a unique name.)
6830         * varasm.c (unpack_set_constructor): Subtract
6831           lower domain value from a bit's index value,
6832           to match the runtime and allow powersets
6833           with negative lower bounds.
6835 Fri Nov 12 14:00:48 1993  Bill Cox  (bill@rtl.cygnus.com)
6837         * ch-inout.c (build_chill_writetext): Save reserved words in
6838           uppercase if -fspecial_UC was specified.
6840 Fri Nov 12 13:27:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
6842         * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6843         string concatenation by treating varying strings as slices.
6844         (varying_to_slice): New function.
6845         * ch-typeck.c (build_chill_slice): Changed to support the above.
6847 Fri Nov 12 12:07:28 1993  Bill Cox  (bill@rtl.cygnus.com)
6849         * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6850         * ch-expr.c (build_generalized_call): Start module before a
6851           writetext action, so its variables are inside the module-level
6852           function.
6853         * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6854           for enumeration loop on a varying array.
6856 Thu Nov 11 07:49:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6858         * cccp.c (main): Disable trigraphs for CHILL.
6859         * ch-decl.c (grok_chill_fixedfields): Add special_UC
6860           to conditional to determine case of reserved words.
6861           Make PACK/UNPACK warning more specific.
6862         * ch-expr.c (build_generalized_call): Enable recognition
6863           of WRITETEXT call here.
6864         * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6865           word.  It's only predefined.
6866         * ch-inout.c: Add special_UC to conditionals
6867           to determine case of reserved words.
6868           (build_chill_writetext): Change for call from
6869           build_generalized_call.  Add code to format
6870           integers.
6871         * ch-lang.c (lang_decode_option): Add special_UC and
6872           special_LC flags and logic to interlock with
6873           ignore_case flag.
6874         * ch-lex.l: Add special_UC to conditionals
6875           to determine case of reserved words.
6876         * ch-parse.y: Delete WRITETEXT as reserved word.
6877         * ch-tasking.c: Add special_UC to conditionals
6878           to determine case of reserved words.
6879           (build_instance_type): Make components of INSTANCE
6880           unsigned 16-bit integers.
6881         * ch-tree.h (build_chill_writetext): Fix prototype.
6882         * ch-typeck.c (build_chill_array_type): Make PACK
6883           /UNPACK warning more specific.
6884         * toplev.c (lang_options): Add -fspecial_LC
6885           and -fspecial_UC flags.
6887 Wed Nov 10 02:29:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6889         * Makefile.in: Move ch-hash.h from ch-lex.o
6890           rule to ch-lex.c rule, so flex is rerun.
6891         * ch-actions.c (chill_expand_assignment): Error if
6892           user tries to assign to a LHS function.
6893         * ch-decl.c (grok_chill_fixedfields): Use of PACK
6894           /UNPACK is only a warning.
6895           (init_decl_processing): Add ADDR as a builtin function.
6896         * ch-expr.c (build_generalized_call): Add ADDR
6897           as a builtin function.
6898           (build_chill_addr_expr): Sanity check parameters.
6899         * ch-gperf: Remove ADDR as a reserved word,
6900           make ASM into one.
6901         * ch-hash.h: gperf'd version of the above.
6902         * ch-inout.c (chill_stdio_p): Recognize upper/lower
6903           case file names.
6904         * ch-lex.l: Make ignore-case work.  Downcase
6905           token before checking for reserved words.
6906         * ch-parse.y: Delete ADDR as a reserved word.
6907           (mode2, optlayout): Allow PACK/UNPACK specifier.
6908           (call): Use build_generalized_call for
6909                   primval LPRN modename RPRN.
6910           (primval): Delete ADDR reference.  It's now only
6911           predefined, not reserved.
6912         * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6913         * ch-typeck.c (build_chill_array_type): Just
6914           a warning for PACK/UNPACK usage.
6915         * toplev.c: Add -fignore-case and -fno-ignore-case.
6917 Tue Nov  9 15:07:02 1993  Bill Cox  (bill@rtl.cygnus.com)
6919         * ch-actions.c: Reindent for readability.
6920         * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6921           a conversion to INSTANCE.
6922         * ch-decl.c: Change special_UC to ignore_case everywhere.
6923           (init_decl_processing): Add builtin_function calls for lots of
6924           predefined functions.
6925         * ch-expr.c: Change builtin function handlers back to accepting
6926           args, not a treelist.
6927           (route_to_predefined_function): Delete it and its call.
6928           (build_generalized_call): Add lots of builtin functions.
6929         * ch-gperf (backwards, duration, inttime, null): Delete them.
6930         * ch-hash.h: New version.
6931         * ch-inout.c: Change special_UC to ignore_case everywhere.
6932         * ch-lang.c: Delete special_UC flag.
6933         * ch-lex.l: Change special_UC to ignore_case everywhere.
6934         * ch-loop.c (high_domain_value, low_domain_value): Change
6935           interfaces to build_chill_upper and built_chill_lower.
6936         * ch-parse.y: Delete lots of stuff which should only be predefined.
6937         * ch-tasking.c: Change special_UC to ignore_case everywhere.
6938           Change builtin function handlers back to accepting args,
6939           not a treelist.
6940         * ch-tree.h: Add lots of builtin functions to the enumerator.
6942 Mon Nov  8 18:08:27 1993  Bill Cox  (bill@rtl.cygnus.com)
6944         * ch-tasking.c (tasking_init): Disable last-minute change for now.
6946 Mon Nov  8 17:30:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6948         * Makefile.in: New commands to build ch-hash.h.  Add ch-lex.h to
6949           dependencies where it's used.
6950         * ch-decl.c (init_decl_processing): Build predefined constants
6951           for TRUE, FALSE and NULL.  Add declaration for abs builtin
6952           function.
6953           (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6954           stuff for builtin constant like TRUE.
6955         * ch-expr.c (route_to_predefined_function): Add a bunch of
6956           predefined functions to the list.
6957         * ch-gperf: Define the list of reserved words, minus the predefined
6958           words, using the special_UC flag.  Remove NULL, TRUE, FALSE -
6959           these are only predefined, not reserved.
6960         * ch-hash.h: Check this into repository, even though it's derived
6961           from ch-gperf, for those users who don't have gperf.
6962         * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6963           to refer to the IO types. Standardize the indentation.
6964         * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6965         * ch-lex.l: Total rewrite of reserved-word recognition, using
6966           the ch-hash.h lookup routines.
6967         * ch-parse.y: Delete a bunch of unused rules for predefined
6968           procedures and their parameters.
6969         * ch-tasking.c (tasking_init): Build predefined functions
6970           for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE.  Not
6971           complete yet.  Change interface to builtin handlers to accept
6972           just an expression list.
6974 Wed Nov  3 18:07:08 1993  Bill Cox  (bill@rtl.cygnus.com)
6976         * Makefile.in: Debug, activate rule to make CHILL hash table.
6977         * ch-actions.c: Compress parameter type lists per standard.
6978         * ch-decl.c: Correct spelling in comment, compress parameter lists.
6979           (init_decl_processing): Check special_UC flag to build builtin
6980           function declarations.
6981         * ch-expr.c (route_to_predefined_function): Check for upper OR
6982           lowercase function names.
6983         * ch-gperf: Update the list of keywords.
6984         * ch-inout.c (build_chill_io_list): Check for special_UC flag
6985           to build I/O list type.  Compress parameter lists.
6986           (chill_stdio_p): Check for special_UC flag in recognizing
6987           file streams.
6988         * ch-lang.c (lang_decode_option): Add command-line options
6989           for upper-case keywords and user labels.
6990         * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6991           if special_UC flag is set.
6992           (downcase, getlc, check_newline): Don't do this if ignore_case
6993           flag is set.
6994         * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6995           multiple selector expressions.
6997 Sat Oct 30 01:06:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6999         * ch-expr.c (compare_record, finish_chill_binary_op): Compare
7000         STRUCTs (and INSTANCEs) for equality.
7001         * ch-expr.c (invalid_operand):  New functions, combines most of
7002         the functionality of invalid_left_operand and invalid_right_operand.
7003         * ch-convert.c (digest_constructor):  Set TREE_CONSTANT if it is.
7005 Sat Oct 30 11:12:47 1993  Bill Cox  (bill@rtl.cygnus.com)
7007         * Makefile.in (chill): Add back in the commands to build chill
7008           (the script) from chill.in.
7010 Fri Oct 29 16:25:38 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7012         * expr.c (store_constructor):  If SET_TYPE target is in a register,
7013         use a stack temporary (since we must take its address).
7015         * ch-expr.c (build_allocate_global_memory_call,
7016         build_allocate_memory_call):  Cast argument pointer to PTR,
7017         if needed (using location cast).  Also, some other cleanups.
7018         * ch-parse.y (bracketed_action):  Re-arrange things so that
7019         a handler following BEGIN END comes before the final poplevel.
7020         * ch-typeck.c (build_chill_cast): Just return if already correct type.
7022         Re-do DO WITH so that build_component_ref for is done lazily
7023         (at each reference) instead of eagerly (at the beginning
7024         of DO WITH).  This is needed for tagged variants,
7025         * ch-tree.def (WITH_DECL):  New declaration tree code.
7026         * ch-decl.c (lookup_name):  Recognize WITH_DECLs.
7027         * ch-decl.c (handle_one_level):  Variant parts are currently
7028         indicacted with '__CASE'.  Recognize that.
7029         Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
7031 Thu Oct 28 22:17:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7033         * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
7034         Remove some old crud.
7035         * ch-typeck.c (build_chill_cast):  Another attempt at a
7036         compromise between robustness and generality for casts.
7037         Location conversions are now less likely to confuse things.
7038         * ch-parse.y (optactions):  Allow further optactions following
7039         an initial semicolon.
7040         * ch-parse.y:  Add error messages on EVENT and BUFFER.
7042         * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
7043         Undo some of the Oct 27 changes.
7045         Convert (some) builtin functions previously using reserved
7046         names to be just predefined.
7047         * tree.h (enum builtin_in_function):  Added END_BUILTINS at end.
7048         * ch-decl.c:  Add predefines for allocate_memory,
7049         allocate_global_memory, return_memory, writetext.
7050         * ch-expr.c (check_arglist_length):  New function.
7051         * ch-expr.c (build_generalized_call):  If "function" is
7052         a builtin, build the appropriate tree.
7053         * ch-parse.y, ch-lex.l:  No longer recognize many pre-defined
7054         functions at the lexer/parser level.
7055         * ch-tree.h (enum chill_built_in_function):  New type.
7057 Thu Oct 28 16:43:36 1993  Bill Cox  (bill@rtl.cygnus.com)
7059         * ch-expr.c (allocate_memory, allocate_global_memory):
7060           Check for invalid parameters, issue errors.
7061         * expr.c (store_constructor): Calculate bitlength, startrtx
7062           and endrtx of powerset correctly.  Define targetx, use it
7063           and XEXP correctly.
7065 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7067         * ch-expr.c (build_max_min): Error for passing empty tuple
7068           as the argument.
7070 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7072         * ch-decl.c (init_decl_processing): Make allocate
7073           builtins have a pointer-to-pointer-to-void
7074           first parameter, rather than a reference parameter.
7075         * ch-expr.c (build_allocate_memory_call,
7076           build_allocate_global_memory_call): Do automatic
7077           ADDR () on the first parameter, for backward
7078           compatibility.
7079         * ch-grant.c (grant_one_decl): Don't grant if
7080           DECL_SOURCE_LINE is zero.
7081           (start_chill_module_code): Set DECL_SOURCE_LINE
7082           to zero so that module-level function isn't granted.
7083         * ch-parse.y (handleraction): Add return_memory action.
7084         * ch-typeck.c (chill_similar): Allow a void_type
7085           to be similar to anything.  This makes allocate_memory
7086           and return_memory pointer parameters slide through.
7088 Tue Oct 26 00:12:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7090         * ch-typeck.c (build_chill_array_ref):  Check for and complain
7091         if there are more index expressions than the array rank.
7093         * ch-actions.c (chill_expand_assignment):  Emit appropriate
7094         error message if RHS of multiple assignment is tuple/case/if.
7095         * ch-tree.def (CONCAT_EXPR):  Change TREE_CODE_CLASS from
7096         'e' to the more specific '2'.  (Fixes a satisfy bug.)
7098 Thu Oct 21 17:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
7100         * ch-parse.y: Revert experimental error-generating change
7101           that was checked in by mistake.
7103 Thu Oct 21 12:15:30 1993  Bill Cox  (bill@rtl.cygnus.com)
7105         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7106           code variables associated with a process or signal.
7107           (Apparently I forgot to actually check these in last time.)
7108         * ch-tasking.c: Replace last calls to get_tasking_code with
7109           working references to DECL_TASKING_CODE_DECL.
7111 Thu Oct 21 10:27:42 1993  Bill Cox  (bill@rtl.cygnus.com)
7113         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7114           code variables associated with a process or signal.
7115         * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
7116           tasking_code_decl pointer, rather than trying to look it up
7117           in the hash table or linked scope list.
7119 Wed Oct 20 09:52:44 1993  Bill Cox  (bill@rtl.cygnus.com)
7121         * ch-actions.c (lookup_and_handle_exit): Only output error message
7122           in pass 1.
7123         * ch-convert.c (convert): Correct conversion of VARYING array to/
7124           from non-VARYING one.
7125         * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
7126           field in the node.
7127           (decl_tasking_code_var): Delete it.  Its calls are replaced woth
7128           generate_tasking_code_variable calls, plus a little glue.
7129           (push_extern_process): generate tasking_code_variable as local
7130           static variable, point the process' function_decl at it for later
7131           reference by build_start_process.
7132           (print_mode): Use CHILL upper-case convention to print modes.
7133         * ch-lex.l: Must initialize tasking-related trees to NULL at start
7134           of each pass, or we lose the fact that the user did or did not
7135           specify a value for each of them.
7136         * ch-parse.y (check_end_label, action, exceptlist): Only output
7137           error message in pass 1.
7138           (sendaction): Add comments.
7139           (sigdef): Comment out special handling for external signals.
7140           Chain tasking_variable_decl onto signal structure decl, for
7141           easier non-symbol-table access later.
7142         * ch-tasking.c (generate_tasking_code_variable): Do work in both
7143           passes, using do_decl so we can pass the pass 2 value of the
7144           process_type or signal_code to it.  Only update the process_type
7145           if the incoming pointer isn't null and pass == 2.  Use a new
7146           parameter to know whether to include an init expression.
7147           (build_process_header): Attach tasking-code_variable to process
7148           function_decl for easy access later, not through the hash table.
7149           (build_start_process): Get tasking_code_variable out of the process'
7150           function decl.
7151           (build_signal_struct_type): Return the type decl, to be accessed by ...
7152           (build_signal_descriptor): .. this function.
7153           (build_receive_case_label): Get data buffer pointer not from hash
7154           table, but from Tiemann's current rc_state structure instead.
7155         * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
7156           macro for tasking_code_variable storage.
7158 Tue Oct 19 17:39:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7160         * ch-lex.l (equal_number):  If the "number" is a CONST_DECL,
7161         return its DECL_INITIAL.
7162         * ch-satisfy.c (safe_satisfy_decl):  Change logic for rtl
7163         generation for decls to not use DECL_ASSEMBLER_NAME.
7164         * ch-decl.c:  Set DECL_ASSEMBLER_NAME to DECL_NAME.
7165         This matches C, and allows dbxout to emit proper user-level names.
7166         (It would be cleaner to fix dbxout to use DECL_NAME ...)
7167         * ch-decl.c (outer_decls):  New global list of the decls granted
7168         into the outer scope.
7169         (pop_module):  Change code that grants into outer scope accordingly.
7170         (lookup_name_for_seizing):  Similarly update.
7171         (push_scope_decls):  Handle SEIZE ALL from the global scope
7172         by searching outer_decls.
7173         * ch-grant.c (grant_array_type):  Fix thinko.
7174         * ch-inout.c (build_chill_writetext):  Remove excessive TREE_TYPE.
7176 Mon Oct 18 15:57:00 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7178         * varasm.c (output_constructor):  Add support for non-zero
7179         lower array bound.
7180         * c-typeck.c (output_init_element):  Revert recent changes.
7181         * varasm.c (emit_set_data):  Fix emitting set constant data.
7182         * ch-lex.l (yywrap):  Reset line number to 0, not 1.
7183         It sets incremented to 1 by check_newline.
7184         * ch-tree.h:  Restore old version.
7185         * ch-expr.c (finish_chill_binary_op):  Convert TRUNC_DIV_EXPR
7186         to RDIV_EXPR if an operand is floating.  (This functionality
7187         got dropped when hacking finish_chill_binary_op).
7189         * ch-actions.c (build_chill_case_expr):  Set type to NULL_TREE.
7190         not error_mark_node.
7191         * ch-actions.c (chill_expand_assignment):  Allow such borderline
7192         constructs as:  LHS OR:= [X].
7193         * ch-convert.c (convert):  Hande CASE_EXPR (and COND_EXPR)
7194         with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
7195         * ch-decl.c (do_decl):  Remove CONSTRUCTOR kludge.
7196         * ch-typeck.c (chill_compatible):  Allow expr to have NULL mode
7197         if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
7199 Mon Oct 18 13:20:53 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
7201         * c-typeck.c (output_init_element): Limit previous changes to
7202         ARRAY_TYPE and SET_TYPE initializers.
7204 Sun Oct 17 23:15:00 1993  Bill Cox  (bill@cygnus.com)
7206         * c-typeck.c (output_init_element): Handle NULL domain case.
7207         * ch-decl.c (do_decl): Revert bogus initializer type change.
7208         * ch-grant.c (chill_finish_module_code): Put module's decl onto
7209           the module_init_list, for chill_finish_compile's possible use.
7210           (chill_finish_compile): Rename variables for clarity, add
7211           commented-out code as example for assignment of module address to its
7212           init_list entry.
7214 Sun Oct 17 15:16:54 1993  Bill Cox  (bill@cygnus.com)
7216         * ch-convert.c: Move semicolon to separate line - easier to see.
7217         * ch-decl.c (do_decl): Handle untyped_expr initializers by
7218           simply using the variable's declared type - no compatibility
7219           check can be made if the expression has no type.
7220         * ch-expr.c (expand_packed_set): Fix endless loop - increment
7221           the loop variable.
7222           (fold_set_expr): Fix two other endless loops by passing
7223           correct parameters to unpack_set_constructor.
7224         * varasm.c: Standardize 'for' loop.
7226 Sun Oct 17 12:16:21 1993  Bill Cox  (bill@cygnus.com)
7228         * c-typeck.c (output_init_element): Handle initializer for
7229           array with non-zero lower index bound.
7231 Sat Oct 16 16:48:48 1993  Per Bothner  (bothner@cygnus.com)
7233         * ch-expr.c (finish_chill_binary_op):  Use TREE_SET_CODE
7234         to change TREE_CODE.
7236 Sat Oct 16 08:07:17 1993  Bill Cox  (bill@rtl.cygnus.com)
7238         * ch-expr.c (finish_chill_binary_op): Disable
7239           rough-draft code, not intended for release.
7241 Fri Oct 15 21:44:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
7243         * expr.c (store_constructor): use PROTO for pack_set_constructor
7245 Fri Oct 15 10:30:09 1993  Bill Cox  (bill@cygnus.com)
7247         * ch-expr.c (finish_chill_binary_op): Activate some
7248           type-setup code.
7249         * expr.c (store_constructor): Subtract arrays minimum element.
7250           Makes orientexpress work.
7252 Fri Oct 15 09:26:24 1993  Bill Cox  (bill@cygnus.com)
7254         * ch-convert.c, ch-expr.c: Add externs so it'll compile.
7255         * ch-tree.def: Add BASED_DECL definition.
7257 Thu Oct 14 13:20:02 1993  Bill Cox  (bill@cygnus.com)
7259         * ch-actions.c (build_chill_cause_exception): Pass the
7260           *address* of the filename string to the runtime routine,
7261           rather than passing the string by value.
7263 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7265         * expr.c (store_constructor):  Use a (usually) more efficient
7266         algorithm for setting SET types.
7268 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7270         Changes to better support 1984 version of Chill, which doesn't
7271         really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
7272         * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings):  New flag.
7273         * ch-typeck.c (chill_similar):  Support flag_old_strings.
7274         * ch-convert.c (convert_to_boolean):  Generalize code to
7275         convert singleton bitstring to Boolean.
7276         * ch-convert.c (convert):  Use string_one_type_node.
7277         * ch-convert.c (convert):  Add code to convert Boolean to BOOLS(1).
7278         * ch-convert.c (convert):  In code that converts fixed string to
7279         varying use new 'e' variable, rather than original 'expr' variable.
7280         Allows cascaded conversions:  CHAR -> CHARS(1) -> varying CHARS.
7281         * ch-decl.c (string_type_node, const_string_type_node,
7282         int_array_type_node), ch-tree.h:  Removed.
7283         * ch-decl.c (string_one_type_node, bitstring_one_type_node,
7284         bit_zero_node, bit_one_node), ch-tree.h:  New globals tree nodes.
7285         * ch-decl.c (init_decl_precessing):  Remove some junk.
7286         * ch-expr.c (build_generalized_call):  If flag_old_strings,
7287         treat string index as string slice.  Also, better error checking.
7289         Added support for (some kinds of) BASED declarations.
7290         * ch-tree.def (BASED_DECL):  New tree code.
7291         * ch-decl.c (lookup_name):  Implement BASED_DECL using
7292         build_chill_indirect_ref.
7293         * ch-decl.c (do_based_decls):  Make a BASED_DECL.
7294         * ch-parse.y:  Call do_based_decls for DCL ... BASED(...).
7295         * ch-satisfy.c (safe_satisfy_decl):  Handle BASED_DECL.
7297         Improve handling of set binary operations.
7298         * ch-expr.c (expand_packed_set):  New function.
7299         (fold_set_expr):  Re-write.  Simpler, more general algorithm.
7300         (build_set_expr):  Only used for comparsions now.
7301         (finish_chill_binary_op):  Handle set ops better (more directly).
7302         (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
7303         fold_set_ne, fold_set_xor):  Removed.  No longer needed.
7305         * ch-decl.c:  Remove calls to allocate_lang_decl.
7306         * ch-tree.c (build_string_type):  If const length, layout immediately.
7308 Mon Oct 11 17:23:02 1993  Bill Cox  (bill@cygnus.com)
7310         * ch-decl.c (init_decl_processing): Define __whoami and
7311           __wait_buffer functions.
7312         * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
7313         * ch-parse.y (sigdef): Add new add_taskstuff_to_list
7314           parameter.
7315         * ch-tasking.c (get_tasking_code): Search tasking_list for
7316           tasking code name match.  Can't use lookup_name.
7317           (get_task_name): New function.
7318           (generate_tasking_code_variable): Return if pass 1.
7319           Always update *tasking_code_ptr.
7320           (build_process_header): Add new add_taskstuff_to_list
7321           parameter.
7322           (tasking_setup): New code to unpack the tasking
7323           list entries no built by ..
7324           (add_taskstuff_to_list): Accept new parameter,
7325           add it to the list.
7326         * ch-tree.h (add_taskstuff_to_list): Add new
7327           parameter.
7329 Mon Oct 11 14:54:50 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7331         * Makefile.in (cc1chill):  Also link in $(BC_OBJS).
7333 Mon Oct 11 06:28:39 1993  Doug Evans  (dje@canuck.cygnus.com)
7335         * ch-decl.c (flag_allow_single_precision): New global,
7336         from ss-931002 merge.
7338 Sun Oct 10 09:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7340         * Makefile.in: Remove references to chill.in and
7341           ch-hash.h.  Remove bogus cc1chil : chill
7342           dependency.
7344 Fri Oct  8 16:00:04 1993  Bill Cox  (bill@cygnus.com)
7346         * ch-actions.c (adjust_parm_or_field): Add parameter to
7347           decl_temp1 call.
7348         *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
7349           decl_temp1 call.
7350           (decl_temp1): Add parameter to signal 'make this external'.
7351           (shadow_record_fields): Add parameter to decl_temp1 call.
7352         * ch-expr.c (chill_expand_case_expr): Add parameter
7353           to decl_temp1 call.
7354         * ch-grant.c (chill_finish_compile): Add code to spoof
7355           get_file_function_name,  so we don't get __tmp_s1_code,
7356           for example, as the module-level code's name.
7357         * ch-loop.c (build_temporary_variable, begin_for_range,
7358           init_loop_counter): Add parameter to decl_temp1 call.
7359         * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
7360           for easier maintenance.
7361           (sendaction): Rewrite to receive SIGNALNAME token correctly
7362           from ch-lex.l (name_type_signal).
7363           (signaldef): Don't clear quasi_signal here.
7364         * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
7365           to make the variable public (visible to linker).
7366           (build_start_process): Add parameter to decl_temp1 call.
7367           (tasking_setup): Comment out band-aid hack which calls
7368           generate_tasking_code_variable.  Shouldn't be necessary.
7369           Use null_pointer_node rather than integer_zero_node in
7370           entry_point.  More rewrites.
7371           (build_signal_descriptor): Name the non-signal in the error msg.
7372           Rewrite the building of the signal envelope - avoid seg fault.
7373           Add parameter to decl_temp1 call.
7374           (expand_send_signal, build_receive_case_start,
7375           build_receive_case_end, build_buffer_descriptor): Add parameter
7376           to decl_temp1 call.
7377         * ch-tree.h: Add parameter to decl_temp1 proto.
7378         * chill: Add new CHILL frontend directory
7380 Tue Oct  5 13:51:27 1993  Bill Cox  (bill@cygnus.com)
7382         * ch-grant.c: Standardize indentation.
7383         * ch-parse.y (end_function): Unconditionally poplevel for processes.
7384         * ch-tasking.c (build_process_header): Unconditionally pushlevel.
7385           (generate_tasking_code_variable): Stop using pass number to
7386           force a one-time action.
7387         * ch-tree.h (build_chill_slice): Delete proto since function went static.
7389 Mon Oct  4 13:52:36 1993  Bill Cox  (bill@cygnus.com)
7391         * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
7392           called here in both passes.  Set DECL_ASSEMBLER_NAME.
7393           (lookup_name_for_seizing): Move NULL test forward to prevent
7394           seg fault.
7395         * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
7396           to prevent a seg fault in telebras/dynsto.ch.  Make indentation
7397           changes.
7398         * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
7399           (build_send_signal): Rename to expand_send_signal.
7400           (generate_tasking_code_variable): Return the var's decl.
7401           (build_signal_struct_type): Move generate_tasking_code_variable
7402           and add_taskstuff_to_list calls to ..
7403         * ch-parse.y (sigdef): .. here.  And make indentation changes.
7404         * ch-tree.h: Rename functions, add return values.
7406 Mon Oct  4 15:43:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7408         * ch-convert.c (digest_constructor):  Convert element to element_type.
7409         * ch-parse.y (end_function):  Use DECL_ARGUMENTS to check
7410         for parameterless process.
7412 Fri Oct  1 13:57:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7414         * ch-typeck.c (chill_location):  New function.
7415         Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
7416         * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c:  Use
7417         chill_location instead of lvalue_p.
7420 Fri Oct  1 11:28:42 1993  Bill Cox  (bill@cygnus.com)
7422         * ch-convert.c (convert): Back out Michael's changes, unintentionally
7423           checked in.
7424         * ch-lex.l (handle_use_seizefile_directive): No longer downcase
7425           seize file names.
7426         * ch-parse.y (sendaction): Fix a couple of seg faults.  Comment out
7427           SEND BUFFER processing for now.
7428         * ch-tree.h: Fix comment.
7430 Thu Sep 30 17:00:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7432         * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P):  New macros,
7433         for recognizing singleton strings.
7434         * ch-tree.h (MARK_AS_STRING_TYPE):  New macro.
7435         * ch-tree.c (build_string_type, build_bitstring_type),
7436         ch-convert.c (convert):  Use it.
7437         * ch-typeck.c (build_chill_slice):  Take length rather than upper
7438         bound.  This makes it easier to recognize that A(X UP LENGTH)
7439         really has fixed length.  Also, if the argument is string,
7440         mark the slice as a string too.  Also, handle varying strings.
7442         * ch-typeck.c (conflate_singleton_strings):  New global.
7443         * ch-typeck.c (chill_similar):  If conflate_singleton_strings is
7444         set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
7445         to CHAR/BOOL, as required by the 1984 version of Z.200.
7446         * ch-convert.c (convert_to_char):  Convert CHARS(1) to CHAR.
7447         * ch-convert.c ( build_array_type_for_scalar):  If input is string,
7448         so is output.
7449         * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h:  Removed.
7450         * ch-convert.c (convert):  Convert CHAR to CHARS(1).
7452         This fixes 'X // := Y' and is also a general simplification.
7453         * ch-actions.c (chill_expand_assignment):  Convert 'LHS OP := RHS'
7454         to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
7455         Also, call save_expr on RHS if a multiple assignment.
7456         * ch-parse.y (assignaction):  Therefore, no longer need to call
7457         stabilize_reference on RHS.
7458         * ch-typeck.c (build_chill_modify_expr), ch-tree.h:  Remove
7459         modifycode parameter.  Make it the caller's responsibility to
7460         handle <assigning operator>.
7461         * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
7462         ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
7464 Wed Sep 29 18:02:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7466         * ch-lang.c (string_index_type_dummy), ch-tree.h:  New variable.
7467         * ch-decl.c (integer_minus_one_node), ch-tree.h:  New variable.
7469         * ch-parse.y (arrayindex: modename):  Remove useless code.
7470         * ch-satisfy.c (satisfy):  Don't gag on string_index_type_dummy,
7471         * ch-tree.c (build_string_type):  Pass string_index_type_dummy as
7472         the parent type of the index range.
7473         * ch-typeck.c (layout_chill_range_type):  Recognize and handle
7474         string_index_type_dummy - specifically allow an empty range.
7476 Wed Sep 29 13:36:23 1993 1993  Bill Cox  (bill@cygnus.com)
7478         * ch-convert.c (convert_to_reference): Check for loc-identity
7479           mismatches correctly (and remove one of those chill_compatible
7480           calls).
7481         * ch-decl.c (decl_tasking_code_var): New function, called from
7482           push_extern_process and push_extern_signal.
7483         * ch-parse.y (end_function): Delete parameter.  Check current_function_decl
7484           whether it's actually a process, and whether it has parameters.
7485           Make Michael's change simplifying the pass 2 test, preventing a seg
7486           fault.
7487           (procedure, process): Change calls to end_function, remove
7488           code saving value from build_process_header.  Delete redundant chill_
7489           phrases from some function calls.
7490         * ch-tasking.c: Remove some redundant _chill phrases from function
7491           names.
7492         * ch-tree.h: Remove some redundant _chill phrases from function
7493           names.  Add the CH_VARYING_ARRAY_TYPE macro, call it from
7494           all relevant places.
7495         * ch-typeck.c: Use the new macro.  Cast TREE_CODEs to chill_tree_code.
7497 Wed Sep 29 13:07:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7499         * ch-convert.c (convert_to_reference):  Remove redundancies.
7500         * ch-convert.c (convert):  Handle convert_to_reference
7501         with a recursive convert call.
7502         * ch-decl.c (do_decl): Add missing compatibility-checking
7503         of initializer (don't depend on convert).
7505 Tue Sep 28 00:02:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7507         * ch-tree.h (CH_LOCATION_P):  New macro.
7508         * ch-typeck.c (layout_chill_range_type):  Fix call to
7509         type_for_size, when figuring out a defaulted parent type.
7510         * ch-expr.c (build_chill_lower, build_chill_sizeof):  Check
7511         for TREE_CODE_CLASS != 't' rather than == 'd'.
7512         * ch-expr.c (build_chill_function_call):  Use CH_LOCATION_P
7513         to check for location, rather than TYPE_CODE_CLASS == 'd'.
7515         * ch-tree.c (build_string_type):  Make 2-pass safe.  Also,
7516         change parameter to be length, not index type.
7517         * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7518         (build_chill_string): Modify callers of build_string_type accordingly.
7519         * ch-lex.l (check_newline):  Don't look for # directive inside a
7520         C-style comment.
7521         * ch-grant.c (grant_array_type):  Make more robust for char-
7522         and bit-strings (allow non-constant sizes).  Change parameters
7523         and return types.  (raw_decode_mode):  Use grant_array_type
7524         for bitstrings.  (otherwise):  Fix grant_array_type callers.
7526 Mon Sep 27 16:57:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7528         Remove changes of Sep 15.
7529         * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7530         * ch-typeck.c (chill_similar):  Don't allow a singleton
7531         powerset to be similar to its domain.
7532         * ch-convert.c (convert_to_boolean):  Don't convert a singleton
7533         SET_TYPE constructor to a Boolean.
7535         * ch-actions.c (chill_expand_assignment):  Handle IN_EXPR on
7536         LHS of assignment, which is what we're current (temporarily?) using.
7538 Mon Sep 27 06:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7540         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7541           ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7542           ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7543           -Wall cleanup.  Add prototypes where missing.
7544           Delete unused variables.  Cast uses of tree_codes
7545           to chill_tree_code, which they are.
7547 Sun Sep 26 13:09:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7549         * ch-decl.c (do_decl): Save initializer in pass zero
7550           case also.
7551         * ch-lex.l: Fix comments, indentation.
7552         * ch-parse.y: Standardize error messages to use
7553           uppercase for CHILL keywords rather than quoting them.
7554           Suggestion from docs department.
7555         * ch-tasking.c: Pervasive changes to get processes to
7556           compile and START.
7557         * ch-tree.h: Delete prototypes for functions whic
7558           I made static inside ch-tasking.c.
7560 Sun Sep 26 02:40:02 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7562         * ch-lex.l (yywrap): Call `check_newline' in case the file
7563         started with a line directive.
7565 Sat Sep 25 13:54:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7567         * ch-decl.c:  Expand pre-amble comment.
7568         * ch-decl.c (struct scope, push_module):  Use new field
7569         tail_chain_module to build child-module list in order.
7570         (Just to make compiler debugging a little less confusing.)
7572         * ch-decl.c (struct scope):  New field weak_decls.
7573         * ch-decl.c (find_implied_types):  New interface.  Now pre-pend
7574         new enum types to a given input list.  This makes it easier to
7575         avoid duplicates, which should at least be more efficient.
7576         Also, handle FUNCTION_DECL.
7577         * ch-decl.c (bind_saved_names):  Removed.  Distribute its
7578         functionality over new functions (push_scope_decls, pop_scope_decls,
7579         build_implied_names, bind_sub_modules).  The goal (which seems to
7580         have been more-or-less attained) was to fix weak name handling.
7581         * ch-decl.c (poplevel):  Use new function pop_scope_decls.
7583         * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7584         Use build_decl directly, rather than grok_chill_fixedfields
7585         (which depends on ignore_exprs and has more overhead).
7586         * ch-tasking.c (build_signal_struct):  Construct the type
7587         only in pass 1.
7588         * ch-typeck.c (build_chill_slice):  Use my_build_array_ref rather
7589         than build_array_ref (which does C-specific "optimizations").
7590         (Hence move my_build_array_ref up earlier in the file.)
7592 Sat Sep 25 03:47:28 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7594         * ch-tasking.c: Declare static variable `void_ftype_void'.
7595         (chill_tasking_init): Initialize `void_ftype_void' here.
7596         (build_tasking_struct): Use, don't declare `void_ftype_void'.
7597         (generate_tasking_code_variable): Call `do_decl', not
7598         `decl_temp1' to declare TASKING_CODE_NAME.
7599         (tasking_setup): Drop into 1-pass mode so that all
7600         tasking-related declarations are installed in the global
7601         scope.  Use correct CHILL types for initializers (since
7602         ptr_type_node doesn't have the right meaning for CHILL).
7603         Also, call `do_decl' instead of `decl_temp1' for
7604         `init_struct'.
7605         (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7606         `chill_finish_compile' in sync between passes.
7608         * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7609         declarations on pass zero.  Keep obstacks in sync, and always
7610         call `finish_decl' for pass zero declarations.
7611         (push_chill_extern_function): Keep obstacks in sync, and always
7612         call `finish_decl' for pass zero declarations.
7613         (build_enumerator): Ditto.
7614         (grok_chill_variantdefs): Change PASS test to exclude only
7615         pass one.
7616         (finish_struct): Ditto.
7617         * ch-expr.c (build_chill_component_ref): Ditto.
7618         (build_chill_binary_op): Ditto.
7619         * ch-tree.c (build_powerset_type): Ditto.
7620         (build_bitstring_type): Ditto.
7621         * ch-typeck.c (build_chill_range_type): Ditto.
7622         (build_chill_struct_type): Ditto.
7624         * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7625         extra pushing and popping of obstacks.
7627         * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7628         on IO_DESCRIPTOR.  This causes IO_DESCRIPTOR to be laid out.
7630         * ch-grant.c (chill_finish_compile): Clear out both
7631         MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7632         from pass one.
7634         * ch-parse.y (rccase_label): Add NAME rules so that pass one
7635         works w/o knowing we're parsing a signal.  Simplify SIGNALNAME
7636         rules since we only get SIGNALNAME tokens in pass two.
7637         (sendaction): Ditto.
7638         * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7639         BUFFERNAME on pass two.  The grammar now handles this.
7640         * ch-decl.c (lookup_remembered_decl): Deleted.
7642 Fri Sep 24 15:27:13 1993  Bill Cox  (bill@cygnus.com)
7644         * ch-decl.c (lookup_remembered_names): Removed.  It was being
7645           misused in ch-lex.l.
7646         * ch-lex.l (name_type_signal): Revert last change.  Basically,
7647           we cannot use the C typedef/variable name trick in CHILL, due
7648           due to the language's 2-pass nature.
7649         * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7650           a seg fault.
7651         * ch-tree.h (lookup_remembered_name): Comment out the prototype.
7653 Fri Sep 24 11:01:31 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7655         * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7656           checks so the pass == 0 case is handled for built-in types.
7657           (push_modedef): Add check for error_mark_node.
7658           (lookup_remembered_decl): New function.
7659           (pushlevel, poplevel) Change pass checks.
7660           (pushdecl): Check type as well for NULL.
7661           (build_enumerator): Handle pass == 0 case.
7662         * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7663           during pass 1.
7664         * ch-parse.y: Set pass to zero to indicate initial decl processing.
7665           Replace NAME references with SIGNALNAME references.
7666           (startaction): Only check copy number if not ignoring actions.
7667           Always call build_chill_start_process.
7668           (optstartset): Don't lookup the instance name.
7669         * ch-tasking.c (generate_tasking_code_variable): Replace
7670           do_decl call with decl_temp1 call.
7671           (build_chill_start_action): Check for ignore_actions here.
7672           (build_tasking_message_type): Layout the type.
7673           (rc_state_type): New structure to keep nested receive-case
7674           info in.
7675           (build_chill_receive_case_start, build_chill_receive_case_end):
7676           Use the new struct.
7679 Fri Sep 24 04:19:15 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7681         * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7682         should be a _DECL, not an IDENTIFIER_NODE.
7684 Thu Sep 23 18:18:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7686         * ch-decl.c (find_implied_types):  Handle VAR_DECLs.
7688         * ch-decl.c (print_lang_identifier):  Print IDENTIFIER_OUTER_VALUE.
7689         * ch-actions.c (chill_expand_result):  Allow value-less RETURN.
7690         * ch-expr.c (resolve_component_ref):  Recognize error_mark.
7692         * ch-convert.c (digest_constructor):  Handle a nested powerset tuple.
7693         * ch-satisfy.c (satisfy):  Use return value of layout_chill_range_type.
7694         * ch-typeck.c (chill_similar):  Repeatedly get parent modes
7695         of ranges, not just once.
7696         * ch-typeck.c (chill_root_resulting_mode), ch-tree.h:  New function.
7697         * ch-typeck.c (layout_chill_rang_type):  Re-do type-checking
7698         to follow Blue Book better (check for Compatibility).
7700         * ch-tree.h (CH_ROOT_RESULTING_MODE):  New macro.
7701         * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7702         New variables.  The latter replaces in_seizefile.
7704         Changes to store in the new DECL_SEIZEFILE field each seize
7705         ALIAS_DECL the name in the most recent use_seize_file directive.
7706         (This requires that use_seize_file directives written to the
7707         grant file be written before the SEIZEs that need it.)
7708         Allow clashing declarations granted into the global scope
7709         (produce a warning), but remember the seizefile case from
7710         (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7711         The a SEIZE will select the granted decl that matches its
7712         DECL_SEIZEFILE (in other words:  grants from the most recent
7713         use_seize_file will be preferred).
7714         * ch-tree.h (DECL_SEIZEFILE), ch-tree.def:  New macro.
7715         * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE):  Renamed
7716         to outer_value, IDENTIFIER_OUTER_VALUE.
7717         Changes to cause the use_seize_file directives to be written
7718         out in order as they're seen in source.
7719         * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7720         Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7721         * ch-lex.l (handle_use_seizefile_directive):  Modify appropriately.
7722         Don't call grant_use_seizefile.
7723         * ch-lex.l (mark_use_seizefile_written):  New function.
7724         * ch-grant.c (decode_decl):  Write out use_seize_file directive,
7725         if needed, before writing a seize declarations.
7726         * ch-decl.c (pop_module):  Handle decls granted into the global
7727         module specially, setting IDENTIFIER_OUTER_VALUE.
7728         * ch-decl.c (lookup_name_for_seizing):  Check IDENTIFIER_OUTER_VALUE.
7730 Thu Sep 23 19:05:37 1993  Bill Cox  (bill@cygnus.com)
7732         * ch-decl.c (push_chill_extern_process): Delete unused variables,
7733           declare the process' tasking_code variable as external.
7734         * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7735           the process header.
7736         * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7737           to (signaldef).
7738         * ch-tree.h: Add prototype.
7739         * expr.c (store_constructor): Emergency first-aid.  Rewrite later.
7741 Thu Sep 23 12:57:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7743         * ch-expr.c (build_chill_function_call):  Move possible call to
7744         chill_start_module_code until we know we're not calling a builtin.
7745         * ch-decl.c (save_expr_under_name):  Use pushdecllist,
7746         not proclaim_decl (which provide for popping the decl).
7747         * ch-parse.y (optname):  Also allow TYPENAME.
7749 Thu Sep 23 09:18:35 1993  Bill Cox  (bill@cygnus.com)
7751         * ch-decl.c (print_lang_decl): Make weak name output more standard.
7752           (print_lang_identifier): Make signal-data flag output more standard.
7753           (push_chill_extern_process): Pass correct arg tree to
7754           push_chill_extern_function.
7755           (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7756           Standardize function header layouts (Makes the tcov script
7757           work better).
7758         * ch-except.c (chill_finish_on): Standardize function header.
7759         * ch-expr.c (fold_set_or): Standardize function header.
7760         * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7761           function headers.
7762           (decode_constant): Make sure that alpha operators are surrounded
7763           with whitespace.
7764         * ch-parse.y: Spell Z.200 correctly in comments.
7766 Wed Sep 22 10:42:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7768         * ch-expr.c (build_chill_addr_expr), ch-tree.h:  New function.
7769         * ch-parse.y, ch-decl.c (shadow_record_fields):  Use it.
7770         * ch-lex.l (handle_use_seizefile_directive):  Don't emit
7771         use_seize_file directive if in_seizefile.
7773         * ch-convert.c (digest_structure_tuple):  Fix code that checks
7774         for excess init values.
7775         * ch-decl.c (layout_chill_variants):  Move increment of nlabels
7776         inside the proper loop.
7777         * ch-grant.c (print_struct):  Add missing loop for tag_list.
7778         (print_struct):  Look for variant fields by checking for a
7779         UNION_TYPE, not a NULL name, since we must use a dummy name.
7780         * ch-parse.y (structured_variable):  Various fixing.
7781         * ch-decl.c (shadow_record_fields):  Rename arg decl -> struct_val.
7783         * ch-satisfy.c (safe_satisfy_decl):  Disable copying of modes
7784         for NEWMODE (and hence novelty checking), until we figure out
7785         a better way.
7787         * ch-except.c (finish_handler_array):  Use null_pointer_node,
7788         not integer_zero_node (which fails to type-check).
7790         * c-typeck.c (get_constructor_element_type):  New function.
7791         * ch-tree.h (CH_NOVELTY_FLAG):  Now also used in TYPE_DECLs.
7792         (CH_NOVELTY):  Redefined to call new function chill_novelty.
7793         (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE):  Removed.
7794         * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7795         Take extra output parameter (for M, as in M-value class).
7796         * ch-typeck.c (chill_novelty):  New function.  (Also de-references.)
7798         * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7799         New functions.  Handle 2-pass and variant records.
7800         * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7801         * ch-satisfy.c (satisfy, case COMPONENT_REF):
7802         New case, call resolve_component_ref.
7804         * ch-expr.c (build_generalized_call):  Extract single arg from
7805         arg list before calling build_chill_cast.
7807         * ch-parse.y (defining_occurrence_list):  New non-terminal.
7808         Use it to replace locnamelist, synnames, and modenames.
7809         * ch-parse.y:  Re-write parsing of variant records.
7811         * ch-decl.c (grok_chill_variantdefs):  Now return a FIELD_DECL
7812         rather than just its type.
7813         * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7814         Change callers appropriately.
7816         * ch-tree.h (TYPE_TAG_VALUES):  Add an extra level of TREE_LIST,
7817         to support multiple tag fields.
7818         * ch-grant.c  (print_struct), ch-decl.c (layout_chill_variants):
7819         Support multiple tag fields.
7821         * ch-convert.c (remove_tree_element, digest_structure_tuple):
7822         New functions, to digest structure tuples, without calling the
7823         code in c-typeck.c.  Handles variant tuples and tags (partially).
7824         * ch-convert.c (digest_constructor, convert):  Call
7825         digest_structure_tuple when appropriate.
7826         * ch-convert.c (digest_constructor): Re-arrange a bit.
7828         * ch-decl.c (push_modedef):  Defer copying of tree until ...
7829         * ch-satisfy (safe_satisfy_decl): ... here.
7831         * ch-decl.c (getdecls):  Add kludge to help dbxout_init.
7833 Tue Sep 21 14:19:11 1993  Bill Cox  (bill@cygnus.com)
7835         Partial tasking update - not done yet.
7836         * ch-actions.c: Comments, indentation.
7837         * ch-decl.c (push_chill_extern_process): No longer need to
7838           reformat the arg list for make_process_struct.
7839           (pop_module): Don't seg fault on null DECL_NAME.
7840           (handle_one_level): Error, not warning if tree not recognized.
7841           (shadow_record_fields): Rename formal param for readability.
7842         * ch-grant.c (decode_decl): Write proper header for a process.
7843         * ch-parse.y (quasi_pdef): process now uses processparlist,
7844           which doesn't change with the passes.
7845           (quasi_locdec): Call build_chill_reference_type to defer
7846           doing the type's layout.
7847           (processpar): Use paramnamelist, but reformat it into a
7848           list of identifiers in pass 2, so a processpar is the same
7849           structure in both passes.
7850           (locdec): Call build_chill_reference_type to defer doing the
7851           type's layout.
7852         * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7853           build the decl.  Only update the variable's tree in pass 2.
7854           (make_process_struct): Call build_chill_reference_type to defer
7855           doing the type's layout.
7856           (build_process_header): New code to call make_process_struct.
7857           New pass-2 code to make a PARM_DECL for start_chill_function.
7858           Pass a void_type_node, not a NULL_TREE for an empty list.
7859           Get input for shadow_record_fields from current_function_decl.
7860           (build_buffer_decl): Call do_decl not decl_temp1.
7861         * ch-typeck.c: Reindent to standards.
7862         * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7864 Mon Sep 20 12:00:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7866         * ch-typeck.c (classify_chill_expr):  An expression with a
7867         REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7868         * ch-actions.c (adjust_parm_or_field):, ch-tree.h:  Change last
7869         parameter, so we can reliably recognize LOC parameters.
7870         * ch-tasking.c, ch-expr.c:  Change callers appropriately.
7872 Sun Sep 19 22:26:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7874         * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE):  New macros.
7875         * ch-typeck.c (chill_referable, chill_read_compatible):  New functions.
7876         * ch-typeck.c (chill_compatible):  Allow un-resolved CONSTRUCTOR
7877         (with NULL TREE_TYPE), when reasonable.  (Simplifies callers.)
7878         Also, handle case of expr being of reference class.
7879         * ch-actions.c (adjust_parm_or_field):  Major re-arrange
7880         to handle conversions and LOC args better.
7881         * ch-actions.c (chill_expand_assignment):  Simplify conversions.
7882         * ch-expr.c (build_chill_function_call):  If needed, call
7883         chill_start_module_code.
7884         * ch-decl.c (declare_predefined_file):  New function, used
7885         to pre-define stdin, stdout, and stderr.
7886         * ch-inout.c (chill_stdio_p):  Change names of predefined
7887         files from chill-stdin etc to plain stdin (and change their types).
7888         * ch-lex.l:  Remove some obsolete stuff.
7889         * ch-convert.c (convert):  Move conversion from reference to
7890         to beginning of convert() so other conversion can work better.
7891         Also, remove bogus direct setting of TREE_TYPE.
7893 Fri Sep 10 12:23:41 1993  Wilfried Moser  (fs_moser@cygnus.com)
7895         * Makefile.in: Change installation of the chill script. gcc will
7896           be called always with the full path. That made problems when
7897           somebody was using chill but didn't have the installation
7898           directory in PATH.
7899         * ch-parse.y: Change parsing of WRITETEXT action.
7900         * ch-tree.h: Add some new prototypes according to the
7901           (partial) implementation of WRITETEXT.
7902         * ch-typeck.c: Add new function chill_varying_string_type_p. This
7903           functions checks a type for being CHAR(n) VARYING.
7904         * ch-decl.c (init_decl_processing): Add new built-in functions
7905           _writestring and _writeunixstd.
7906           Add call to  build_chill_io_list_type in ch-inout.c.
7907         * ch-inout.c (build_chill_writetext): Add some code there.
7908           Add new function build_chill_io_list_type.
7909           Add new static function chill_stdio_p. This function checks
7910           the text argument for being chill_stdin, chill_stdout or
7911           chill_stderr.
7913 Fri Sep 17 22:02:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7915         * ch-decl.c (push_modedef):  Fix TYPE_MAIN_VARIANT thinko.
7917 Thu Sep 16 18:38:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7919         * ch-decl.c (allocate_lang_decl):  Do nothing.
7920         * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7921         No longer used;  remove.
7923         * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7924         (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7925         (make_chill_variants, layout_chill_variants):  Add (initial) part
7926         of support for multiple tags.
7927         * ch-decl.c (lookup_tag_fields):  New function.
7928         * ch-parse.y (stmt_count):  Not used; removed.
7929         * ch-parse.y (mode2):  Clear current_fieldlist before
7930         parsing STRUCT fields;  restore afterwards.
7932         * ch-parse.y (push_action):  Moved to ch-actions.c.
7934 Wed Sep 15 18:19:37 1993  Bill Cox  (bill@rtl.cygnus.com)
7936         * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7937           constructor to a boolean.
7939 Wed Sep 15 17:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7941         * ch-decl.c (push_modedef): Enable novelty-setting code.
7942         * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7943         * ch-typeck.c (chill_similar): Add checking of singleton
7944           powerset against its base type.
7946 Tue Sep 14 17:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7948         * ch-actions.c (adjust_parm_or_field): Create a
7949           temporary for an non-referencable actual parameter
7950           passed to a LOC formal parameter.
7951           (chill_expand_assignment): Correct compatibility checking.
7953         * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7954         * ch-parse.y (opsigdest): Only check for process name
7955           in pass 2, when we know.
7956         * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7957         * ch-typeck.c: Fix comment.
7959 Mon Sep 13 17:33:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7961         * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7962         decl_seen_p, processed_decls, allocated, nr_decls):  Removed
7963         no-longer-useful functions and variables that used to guard
7964         against writing a decl multiple times.  Since we now just
7965         go through the decl list linearly, that is no longer an issue.
7966         * ch-satisfy.c (safe_satisfy_decl):  Handle missing current_module.
7968         * ch-decl.c (start_chill_function):  Clear DECL_ASSEMBLER_NAME.
7969         Don't make TREE_PUBLIC.  Don't generate rtl yet.
7970         * ch-decl.c (pop_module):  If a decl is granted, set TREE_PUBLIC,
7971         and its DECL_ASSEMBLER_NAME.
7972         * ch-decl.c (fix_identifier):  New function.
7973         * ch-grant.c (grant_one_decl):  Don't set TREE_PUBLIC.
7974         * ch-tree.h (struct module):  New field prefix_name.
7975         * ch-satisfy.c (safe_satisfy_decl):  If assembler_name isn't
7976         set, prefix it by the module name(s).
7977         * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7978         Call make_function_rtl if needed and !LOOKUP_ONLY.
7979         * ch-typeck.c (chill_similar):  Flesh out substantially.
7980         * ch-typeck.c (chill_compatible):  Re-structure.
7982         * ch-actions.c (adjust_parm_or_field):  Use CH_COMPATIBLE
7983         instead of chill_comptypes to compare actual and formal.
7985 Sun Sep 12 21:10:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7987         * ch-parse.y (labellist):  Don't do anything if ignore_exprs.
7989         * c-typeck.c (output_pending_init_elements): Handle
7990         !constructor_incremental case of filling in empty positions.
7991         (Patch by Jim Wilson.  CYGNUS LOCAL until we have approval.)
7992         * ch-decl.c (pop_module):  Don't grant a seized name.
7993         * ch-grant.c (decode_constant):  Support CALL_EXPR.
7994         * ch-tree.c (build_bitstring_type):  Don't try to fold non-constant
7995         size if pass==1 (since it may be an unsatisfied name).
7998 Sun Sep 12 18:06:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8000         2-pass fixes for processes.  Partially done.
8001         * ch-actions.c (chill_expand_assignment): Add real
8002           novelty-checking sketch, $ifdef'd out for now.
8003         * ch-decl.c: Generally fix indentation.  Move tasking
8004           init code from init_decl_processing to ch-tasking.c.
8005           Delete ObjC-related cruft.  More accurate parameter name
8006           for shadow_record_fields.  Move debug_scope before
8007           its first call.
8008         * ch-expr.c (build_chill_function_call): Return if not
8009           pass 2.
8010         * ch-grant.c (print_proc_tail): Avoid trying to format
8011           a VOID return type, or using a NULL pointer.
8012           (decode_decl): Minor changes for PROCESS arg access.
8013         * ch-lang.c (lang_decode_option): Use -itu flag to
8014           enable 'pedantic' mode.
8015         * ch-lex.l (init_lex): Initialize compiler-directive
8016           variable trees.
8017           (name_type-signal): Disable the returning of SIGNAL and BUFFER
8018           name tokens.
8019         * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
8020           All uses renamed also.
8021           (end_function): Always poplevel, not just in pass 2.
8022           (quasi_pdef): Check for end-label matching.
8023           (quasi_formparlist): Write more clearly.
8024           (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
8025           guards.
8026           (rccase_label, sendaction): Use NAME, not SIGNALNAME
8027           or BUFFERNAME.
8028           (process): Handle like procedure.
8029           (mode): Add SIGNAL as a generic signal parameter.  This
8030           is a client-specific extension, so pedantic is checked.
8031         * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
8032         * ch-tree.h (CH_NOVELTY): Make it an lvalue.
8033         * ch-typeck.c: Fix comment.
8035 Sun Sep 12 15:03:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8037         * c-typeck.c (digest_init):  Compare types using comptypes
8038         instead of comparing pointers.  (Helps Chill front end.)
8039         * ch-expr.c (finish_chill_binary_op):
8040         * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
8041         ch-expr.c (finish_chill_binary_op):  For now, prefer IN_EXPR
8042         over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
8043         (incomplete support for variable fields, and possible bug in
8044         optimize_bit_field_compare).
8045         * ch-expr.c (finish_chill_binary_op):  Fix type-checking
8046         and appropriately coerce operands for IN_EXPR and comparsions.
8047         * expr.c (expand_expr, case ARRAY_REF):  Coerce lower bound (if
8048         non-zero) to sizetype before subtraction.
8049         * expr.c (expand_expr):  Remove Chills-specific calls to
8050         __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
8052 Fri Sep 10 15:47:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8054         * ch-tree.def (UNDEFINED_EXPR):  New kind of expression.
8055         * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
8056         ch-convert.c (convert):  Handle UNDEFINED_EXPR.
8058         * ch-expr.c (build_char_array_expr):  Move CONCAT_EXPR support to ...
8059         * ch-expr.c (build_concat_expr):  ... here.
8060         Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
8061         Also, make result varying only if one of the operands are.
8063         * ch-expr.c (build_chill_binary_op):  Move stuff from here to ...
8064         * ch-expr.c (finish_chill_binary_op):  ... here, as needed for
8065         proper 2-pass split.  Also, clean up and simplify heavily.
8067         * ch-tree.h (enum ch_expr_class):  The 5 kinds of expression classes.
8068         * ch-typeck.c (classify_chill_expr):  New function:  Determine
8069         class of expression.
8070         * ch-typeck.c (chill_compatible_classes):  Re-structure; fix
8071         asymmetry bugs.
8072         * ch-tree.h (CH_CLASS_IS_XXX):  Re-define to use classify_chill_expr.
8074         * ch-convert.c (maybe_turn_scalar_into_array):  Complain
8075         unless scalar is a char constant (and we want a string).
8076         * ch-convert.c (convert):  New code for converting to variable
8077         string/array.  Avoid type errors by padding (with an UNDFIEND_EXPR).
8078         * ch-typeck.c (chill_expand_tuple):  Don't do conversion to
8079         varying type here;  that is handled by convert now.
8080         * ch-decl.c (digest_constructor):  Moved to ...
8081         * ch-convert.c (digest_constructor):  ... here.
8082         * ch-decl.c (do_decl):  Simplify; just use convert for initializer.
8083         * ch-decl.c (chill_digest_init):  Merged into convert, and removed.
8084         * ch-decl.c (init_decl_processing):  Set constructor_no_implicit flag.
8085         * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
8086         Replace chill_digest_init by convert.
8087         * ch-actions.c (chill_expand_array_assignment):  Simplify; use convert.
8088         * ch-lex.l (build_chill_string):  Make string type be derived
8089         from integer, not sizetype, because upper bound can be -1.
8091 Thu Sep  9 18:21:46 1993  Bill Cox  (bill@rtl.cygnus.com)
8093         * ch-typeck.c (my_build_array_ref): Delete pedantic
8094           C-specific error message.
8096 Thu Sep  9 17:44:20 1993  Jeffrey Wheat  (cassidy@eclipse.cygnus.com)
8098         * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
8100 Thu Sep  9 12:22:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8102         * ch-typeck.c (build_chill_array_ref):  Remove redundant and
8103         broken call to my_build_array_ref.
8105 Wed Sep  8 13:03:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8107         * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
8108         Don't use store_init_value, since it calls digest_init instead
8109         of chill_digest_init.
8110         * ch-except.c (finish_handler_array):  Use build1 (ADDR_EXPR, ...)
8111         instead build_unary_op to avoid C-specific optimizations.
8112         * ch-typeck.c (my_build_array_ref):  Don't use default_conversion
8113         to convert array to pointer.
8114         * c-typeck.c (process_init_default):  New function, to support
8115         default values for array tuples in Chill.
8116         * c-typeck.c (default_conversion):  Don't convert array to pointer
8117         if compiling Chill.
8118         * ch-decl.c (digest_constructor):  New function;  used to be guts
8119         of chill_digest_init.  Now recursive, to handle nested tuples.
8121         * ch-decl.c (chill_digest_init):  Handle struct labels.
8122         * ch-grant.c (get_tag_value):  Use decode_constant in general case.
8123         * ch-grant.c (decode_constant):  Add support for lots of missing
8124         binary and unary operators.
8126 Wed Sep  8 10:11:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8128         * ch-lang.c: Look for '-I' option for seize file path.
8129         * ch-lex.l: Fix comment about above option.
8131 Wed Sep  8 00:37:32 1993  Per Bothner  (bothner@rtl.cygnus.com)
8133         * ch-satisfy.c:  Move code to set (and restore) file-and-line
8134         from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
8135         alias decls that refer to real decls with errors.
8136         * ch-actions.c (lang_init):  Move to ch-lang.c.
8137         * ch-decl.c (init_decl_processing):  Move code to initialize
8138         file-and-line from here ...
8139         * ch-lang.c (lang_init): ... to here, to avoid clobbering.
8141         * ch-decl.c (chill_digest_init):  Add support for SET_TYPE,
8142         and index values.
8143         * ch-typeck.c (chill_expand_typle):  Just call chill_digest_init.
8144         * c-typeck.c:  Fix various things that got broken
8145         in the latest merge.
8147 Tue Sep  7 15:45:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8149         * ch-decl.c (build_enumerator):  Handle a "unnamed set element"
8150         (obsolete feature) by generating a dummy name.
8151         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation with
8152         "correct" value of top-level (to get better debugging output).
8153         * ch-decl.c (bind_saved_names):  Allow a null DECL_NAME.
8155 Tue Sep  7 15:48:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8157         * ch-actions.c (chill_expand_return): Correct breakage
8158           due to recent fsf merge.
8160 Tue Sep  7 11:16:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8162         * .cvsignore: Add multilib.h.
8163         * ch-decl.c (chill_digest_init): New function.  Calls were
8164           changed, since it has fewer parameters than old digest_init.
8165         * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
8166           new init stuff.
8167           (elementlist): Delete unused code.
8168         * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
8169         * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
8170         * ch-tree.h: Delete digest_init prototype.
8171         * ch-typeck.c (digest_init): Much new code.
8173 Tue Sep  7 12:06:28 1993  Bill Cox  (bill@rtl.cygnus.com)
8175         * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
8176           files to their pre-init-change state.
8178 Mon Sep  6 15:28:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8180         Preliminary adaptation to rms' new initializer code.
8181         * ch-decl.c (do_decl): Call chill_digest_init, not
8182           digest_init, which rms made static.
8183         * ch-expr.c (chill_truthvalue_conversion): Delete C-
8184           specific code.
8185         * ch-loop.c (init_loop_counter): Indent for readability.
8186         * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
8187         * ch-tree.h: Prototype changes for new init code.
8188         * ch-typeck.c (chill_expand_tuple): Call new init code.
8189         * chill.texi: Add necessary '-f' prefix on options.
8191 Wed Sep  1 13:21:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8193         * ch-convert.c (build_array_type_for_scalar),
8194         ch-tasking.c (build_chill_receive_case_end):  Index type
8195         specification is now chain of types (not chain of TREE_LIST).
8196         * ch-satisfy.c (satisfy):  Don't try to satisfy the
8197         abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
8198         * ch-expr.c (build_chill_binary_op):  If pass 1, do NOT
8199         call finish_chill_binary_op.
8200         * ch-parse.y (arrayindex):  Simplify.
8202 Tue Aug 31 14:57:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8204         * ch-decl.c (print_lang_decl): Print weak-name status.
8205           (print_lang_identifier): Print signal_data as T or F.
8206         * ch-lex.l (convert_bitstring, convert_charliteral,
8207           convert_float, convert_number): Pass string directly to convert
8208           as a parameter.  Return token code consistently, return 0
8209           for error.
8210           (equal_number): Parse differently, allowing hex, binary
8211           and octal constants.
8212         * ch-parse.y (dowithaction, structured_variable): Only
8213           push/pop scopes once per DO WITH.
8214           (structured_variable_list): Check ignore_actions flag here.
8215         * gcc.c: Delete 'traditional' from string, add 'itu'
8216           as the standard flag's name.
8218 Mon Aug 30 15:12:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8220         * ch-typeck.c, ch-tree.h (build_chill_range_type):  Take 3
8221         parameters instead of 2 (explicit low and high bounds).
8222         * ch-parse.y (arrayindex):  Build range type from low:high.
8223         (rangesize, optrangesize):  Removed.
8224         (where appropriate):  Use new build_chill_range_type interface.
8225         * ch-grant.c:  Clean up writing of range and array types.
8226         * ch-satisfy.c (satisfy):  Don't ignore the return value of
8227         layout_chill_array_type. (It may be an error mark.)
8228         * ch-typeck.c (build_chill_array_type):  Simplify.
8229         * ch-typeck.c (layout_chill_array_type):  Clean up checks.
8231 Fri Aug 27 12:55:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8233         * ch-decl.c (decl_temp1):  Set DECL_ASSEMBLER_NAME.
8234         (push_chill_extern_function)  Don't set current_function_decl.
8235         * ch-parse.y (tupleelement):  Don't wrap index is a TREE_LIST
8236         (i.e. a range), don't wrap a PAREN_EXPR around it.
8237         * ch-grant.c (decode_constant):  For tuple CONSTRUCTORs,
8238         add support for ranges in purpose.
8240 Wed Aug 25 16:58:13 1993  Bill Cox  (bill@rtl.cygnus.com)
8242         * .cvsignore: Add g++.sum
8243         * ch-actions.c (chill_expand_result): Stop building a temp.
8244           Assign the expression directly into function's DECL_RESULT.
8245         * ch-decl.c: Add formfeeds.
8246           (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
8247           (push_chill_function_context): Delete C pedwarn message.
8248         * ch-expr.c: Move builtin functions together.
8249         * ch-parse.y (end_function): Delete unused code.
8250           Reformat %union for readability.  Delete _MAX and _MIN
8251           tokens.
8253 Wed Aug 25 13:24:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8255         * ch-actions.c (get_result_tmp_name): Delete unused function.
8256           (chill_expand_result, chill_expand_return): Rewrite for
8257           2-pass.
8258         * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
8259           chain field, so we can make a temp, evaluate a RESULT action's
8260           expression into it, and hang it on here.
8261         * ch-parse.y (end_function): Look for RESULT temps to emit.
8262           (assertaction): Indentation.
8264 Wed Aug 25 08:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8266         * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
8267           It wasn't used anyway.
8269 Tue Aug 24 17:51:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8271         * ch-actions.c (chill_expand_result, chill_expand_return):
8272           No need to make a temp for the value, just use DECL_RESULT.
8274 Tue Aug 24 16:38:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8276         * ch-tree.c (layout_powerset_type):  Remove redundant code.
8277         Generalize (in error message) to also handle bitstrings.
8278         * ch-tree.c (build_bitstring_type):  Remove all layout-like
8279         stuff, and defer that to layout_powerset_type.
8280         * ch-expr.c (chill_expand_expr):  For various SET_xxx_EXPRs,
8281         allocate stack temp for target using correct mode.
8283 Tue Aug 24 10:27:19 1993  Bill Cox  (bill@rtl.cygnus.com)
8285         * ch-actions.c, ch-decl.c, ch-except.c,
8286           ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
8287           ch-typeck.c: Change build_modify_expr calls to
8288           build_CHILL_modify_expr calls.
8289         * ch-expr.c (build_chill_modify_expr): Adapted from
8290           build_modify_expr in c-typeck.c.
8292 Mon Aug 23 16:48:39 1993  Bill Cox  (bill@rtl.cygnus.com)
8294         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
8295           ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
8296           ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
8297           Major re-allocation of functions to files.
8299 Mon Aug 23 12:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
8301         Thanks for the tip, Jim.
8302         * Makefile.in: Add dependency lines for ch-except.o and
8303           ch-satisfy.o.  Correct dependency lines for ch-convert.o,
8304           ch-expr.o, ch-inout.o, and ch-loop.o.
8305           (chill, install-common): Add clean-up commands.
8307 Sat Aug 21 17:11:26 1993  Bill Cox  (bill@rtl.cygnus.com)
8309         * ch-decl.c (get_type_precision): New function.
8310           (layout_enum): Call it.
8311         * ch-tree.c (layout_powerset_type, build_bitstring_type):
8312           Call it.
8314 Sat Aug 21 13:59:40 1993  Bill Cox  (bill@rtl.cygnus.com)
8316         * ch-decl.c (init_decl_processing): Define setbitpowerset
8317           runtime function.
8318         * ch-expr.c (chill_expand_assignment): Call setbitpowerset
8319           to set a bit.
8320         * ch-parse.y: Indentation.
8322 Fri Aug 20 17:29:56 1993  Bill Cox  (bill@rtl.cygnus.com)
8324         * ch-parse.y: Delete unused %type declaration.
8325         * ch-tasking.c (build_signal_struct): Delete return, since
8326           function returns void.
8327         * ch-typeck.c: Indent to standard.
8328         * stor-layout.c: Fix comment.
8329         * toplev.c: Change -L option ti -I.
8330         * varasm.c (emit_set_data): Align set constant to word
8331           boundary.
8333 Fri Aug 20 08:20:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8335         * ch-actions.c: Fix indentation, comments.
8336         * ch-decl.c (push_chill_extern_signal): Use same interface
8337           as build_signal_struct.
8338         * ch-parse.y (quasi_signaldef): Move build_signal_decl
8339           here to sigdef.  Add quasi_signal to distinguish contexts
8340           where sigdef gets used.
8341         * ch-tasking.c: Replace make_signal_struct and build_signal_decl
8342           with build_signal_decl, which doesn't loop through a
8343           TREE_LIST.
8344         * ch-tree.h: Fix protos.
8346 Wed Aug 18 17:36:53 1993  Bill Cox  (bill@cygnus.com)
8348         * ch-actions.c: Fix comments.
8349         * ch-decl.c (push_modedefs): Return the new decl.
8350           (shadow_record_fields): Move pushlevel (0) calls into
8351           the grammar, so they'll get done in both passes.
8352         * ch-parse.y (dowithaction): Always compute & save # of
8353           'with' variables seen (both passes), and always pop that
8354           number of levels.
8355           (structured_variable_list): Always chain variables into a list.
8356           (structured_variable): Put pushlevel here (from shadow_record_fields).
8357         * ch-tasking.c: Indentation fixes.
8358         * ch-tree.h: Change proto.
8359         * chill.texi: Add Blue Book section numbers to unimplemented
8360           features list.
8362 Wed Aug 18 15:48:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8364         * ch-actions.c (build_generalized_call):  New function.
8365         Classifies semantically (if pass 2) this that look like calls.
8366         * ch-parse.y (call):  Invoke build_generalized_call.
8367         * ch-parse.y (sigdef):  Use defining_occurrence instead of NAME.
8368         * ch-parse.y (opt_untyped_exprlist):  New non-terminal.
8369         * ch-satisfy.c (satisfy):  Handle CALL_EXPR.
8371 Tue Aug 17 16:36:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8373         * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
8375 Mon Aug 16 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8377         * ch-tree.h (TUPLE_NAMED_FIELD):  New macro.
8378         * ch-parse.y (labelled structure tupleelement):
8379         Set TUPLE_NAMED_FIELD flag.
8380         * ch-grant.c (decode_constant):  Check for TUPLE_NAMED_FLAG.
8381         * ch-satisfy.c (satisfy):  Check for TUPLE_NAMED_FLAG.
8382         Do satisfy the elements of a CONSTRUCTOR even if call
8383         chill_expand_tuple isn't correct.
8384         * ch-satisfy.c (satisfy):  Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
8385         * ch-parse.y (label_spec):  Defer any semantic checking until ...
8386         * ch-decl.c (layout_chill_variants):  ... here.
8387         Also make sure to call layout_type on the union type.
8388         * ch-decl.c (bind_saved_names):  For weak names, allocate an
8389         ALIAS_DECL, rather than a CONST_DECL.
8391         Add support for implied (weakly visible) names.
8392         * ch-tree.h (DECL_WEAK_NAME):  New macro.
8393         * ch-satisfy.c (satisfy of IDENTIFIER_NODE):  Don't complain
8394         if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
8395         * ch-decl.c (proclaim_name):  Handle DECL_WEAK_NAME appropriately.
8396         * ch-decl.c (concat_lists, find_implied_types):  New functions.
8397         * ch-decl.c (bind_saved_names):  Search for implied names.
8398         * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
8399         * ch-lang.c (layout_chill_struct_type):  Don't use
8400         C_DECL_VARIABLE_SIZE.
8402 Mon Aug 16 16:10:43 1993  Bill Cox  (bill@rtl.cygnus.com)
8404         * ch-actions.c: Delete extra space in error message.
8405         * ch-parse.y: Fix comment.
8406         * expr.c (store_constructor): Avoid passing NULL to convert,
8407           and getting back an error_mark_node and trying to process
8408           *that* node.
8410 Mon Aug 16 14:41:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8412         * ch-decl.c:  Add more overview comments.
8413         * ch-decl.c (proclaim_decl):  New function.
8414         * ch-decl.c (temp_pushdecl, struct shadowing):  Removed.
8415         * ch-decl.c (bind_saved_names):  Remove blevel parameter;
8416         use current_scope global instead.  Do some other cleanups.
8417         * ch-decl.c (save_expr_under_name):  Create an ALIAS_DECL.
8418         * ch-decl.c (pushdecllist, save_expr_under_name):  Use proclaim_decl.
8419         * ch-satisfy.c (satisfy, safe_satisfy_decl):  Be more careful
8420         to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
8422         * chill.texi:  Start collecting Chill documentation here.
8423         * ch-parse.y (mode):  Ignore READ specifier, for now.
8425 Mon Aug 16 11:13:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8427         * ch-actions.c (chill_comptypes): Correct handling reference
8428           of type 1.
8429           (build_chill_length, build_chill_num,
8430            build_chill_sizeof): Convert result to CHILL integer.
8431           (build_chill_function_call): Clean up INOUT and OUT
8432           parameter handling.
8433         * ch-decl.c (build_chill_function_type): Handle INOUT and
8434           OUT parameters.
8435         * ch-loop.c: Fix up comments.
8436         * ch-parse.y: Fix up comments.
8438 Sun Aug 15 15:06:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8440         * ch-actions.c (build_chill_lower, build_chill_upper):
8441           Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
8442         * ch-decl.c (save_expr_under_name): New function to save
8443           addressing expressions for DO WITH and DO FOR handling.
8444           (handle_one_level): Call new function.
8445         * ch-loop.c (init_loop_counter): Call it here, too.
8446           Check lp->user_var before passing it to lookup_name.
8447           (high_domain_value, low_domain_value): Correct call
8448           to build_chill_upper and build_chill_lower.
8449           (begin_chill_loop, end_chill_loop): Move pushlevel,
8450           poplevel up into the grammar, so they're done in both
8451           passes.
8452         * ch-parse.y (doaction): Unconditionally make a scope
8453           for a loop, pop it later.
8454           (controlpart, iteration): Save return from
8455           build_chill_iterator.
8456         * expr.c: Readability changes.
8458 Sat Aug 14 19:42:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8460         * ch-expr.c (chill_expand_case_expr): Complete rewrite
8461           for 2-pass.  About 1/2 the size, too.
8462         * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
8463           This assures that a label preceding a module's first action
8464           is enclosed in the module-level function that's generated.
8466 Sat Aug 14 14:56:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8468         Re-implement how EXIT is done.
8469         'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
8470         'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
8471         Hence we no longer need any support for EXIT in stmt.c.
8472         * stmt.c (stamp_nesting_label, expand_exit_labelled):  Removed.
8473         * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
8474         * ch-tree.c, ch-tree.h (munge_exit_label): New function.
8475         * ch-parse.y:  Re-write bracked actions to support EXIT new way.
8476         * ch-decl.c, ch-loop.c:  Remove calls to stamp_nesting_level.
8477         * ch-parse.y:  Replace SC by new token semi_colon, which
8478         resets the 'label' global.  Also make sure that label gets
8479         reset whenever we might start a new action statement.
8480         * ch-parse.y (possibly_define_exit_label):  New function.
8482         * ch-except.c (chill_start_on):  Wrap an ADDR_EXPR round the jmpbuf.
8483         * ch-grant.c (chill_finish_compile):  Make sure
8484         get_file_function_name is only called once.
8485         * ch-expr.c (chill_expand_array_assignment):  Use store_expr,
8486         instead of incorrectly calling emit_block_move.
8488         * ch-parse.y (procedure):  Call push_chill_function_context
8489         in *both* passes (if nested).
8490         * ch-parse.y (primval):  Call get_type_of before chill_expand_type.
8491         * ch-parse.y (tupleelement):  Only build PAREN_EXPR during pass 1.
8493 Fri Aug 13 16:36:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8495         Re-implement GRANT and SEIZE, to support prefixes and prefix
8496         rename.  All of the Blue Book semantics for these should
8497         now work (except FORBID).
8498         * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
8499         DECL_POSTFIX, DECL_POSTFIX_ALL):  New ALIAS_DECL layout and macros.
8500         * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
8501         decl_check_rename):  New functions.
8502         * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
8503         * ch-satisfy.c (satisfy_decl):  Handle SYN initialized with tuple.
8504         * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
8505         * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8506         * ch-grant.c (decode_prefix_rename):  New function.
8507         Use to print out GRANT and SEIZE statements.
8508         * ch-decl.c (ALL_POSTFIX):  New global variable.
8509         * ch-decl.c (bind_saved_names, pop_module):  Change to use new
8510         ALIAS_DECL layout, and support general prefix rename and ALL.
8511         * ch-decl.c (various places):  Don't barf if DECL_ANME is NULL.
8512         * ch-parse.y (build_prefix_clause):  New function (handle PREFIXED).
8513         * ch-parse.y (optprogendname, optname):  Rename to opt_end_label.
8514         * ch-parse.y:  Add support for compound name strings, but defer
8515         using all over teh place, due to parser ambiguities.
8516         However, do use defining_occurrence where appropriate.
8517         * ch-parse.y:  Re-write syntax and semantics of GRANT and SEIZE
8518         statements to support Blue Book functionality.  Neato!
8520 Fri Aug 13 17:10:52 1993  Bill Cox  (bill@rtl.cygnus.com)
8522         * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8523         * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8524           (decl_temp): Deleted.
8525         * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8526         * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8527           readability, add comment.
8528         * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8529         * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8531 Fri Aug 13 13:39:59 1993  Bill Cox  (bill@rtl.cygnus.com)
8533         * ch-decl.c (decl_temp): Break the chain of decls.  This
8534           prevents an infinite loop.
8535         * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8536         * ch-lex.l (equal_number): Check passes in looking up a
8537           symbolic value.
8538         * ch-parse.y: Fix comments.
8539         * ch-tasking.c (tasking_setup): Only act in pass 2.
8540           (make_signal_struct, build_signal_decl,
8541            build_chill_receive_case_label): Don't go indirect
8542            thru NULL decl pointer.
8544 Thu Aug 12 11:02:34 1993  Bill Cox  (bill@rtl.cygnus.com)
8546         * ch-actions.c (route_to_predefined_function): New function called
8547           from build_chill_function_call, to call the proper predefined routine.
8548           (build_chill_card, build_chill_length, build_chill_lower,
8549           build_chill_max, build_chill_min, build_chill_num,
8550           build_chill_pred, build_chill_sizeof, build_chill_succ,
8551           build_chill_upper): Rewritten to run only in pass 2.
8552         * ch-decl.c (init_decl_processing): Build predefined functions for card,
8553           length, lower, max, min, num, pred, sizeof, succ and upper.  Delete
8554           unused builtin_function calls.
8555         * ch-grant.c (chill_finish_module_code): Save current_function_decl
8556           before calling finish_chill_function, and use that to build the
8557           initializer structure.
8558         * ch-lex.l: Remove following tokens, since they're now just predefined,
8559           not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8560           and upper.
8561         * ch-loop.c: Readability, indentation changes.
8562         * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8563           sizeof, succ and upper.  Delete special rules for calls to these.
8564           Delete mode_location and upper_lower_arg non-terminals.
8565           (pmodearg): Eliminate convolutions.
8566           (call): Add rule for typename parameter.
8567         * ch-tasking.c: Readability changes.
8568         * ch-tree.h: Add prototypes.
8570 Thu Aug 12 00:38:17 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8572         * ch-decl.c (save_decl):  Set DECL_CONTEXT (decl).
8573         * ch-grant.c (chill_finish_module_code):  Call
8574         finish_chill_function with nested==0.
8575         * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y:  Rename
8576         {push,pop}_c_function_context to {push,pop}_chill_function_context.
8577         * ch-parse.y (end_function): If nested, call
8578         pop_chill_function_context regardless of which pass we're in.
8580 Wed Aug 11 02:34:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8582         * ch-actions.c (finish_chill_binary_op):  Handle error marks.
8583         * ch-decl.c (do_decl):  Laying out decl and generating rtl
8584         is too late to do here (if there are forward references), so ...
8585         * ch-satisfy.c (satify_decl):  ... do it here instead.
8586         * ch-decl.c (finish_enum):  Fixup types of enum decls now.
8587         * ch-satisfy.c (safe_satisfy_decl):  New routine.  Supports
8588         checking illegal cyclic definitions.
8589         All *satisfy* routines now take a 'chain' parameter (instead
8590         of 'lookup_only') used for checking cycles.
8591         * ch-satisfy.c (satisfy_decl):  Return DECL_INITIAL if appropriate.
8592         * ch-satisfy.c (satisfy):  Lots of little fixes.
8594         * ch-lex.l (init_lex):  Make all the standard ridpointers be
8595         lowercase, so that lookup_name on lower-cased user input
8596         will find the standard types.
8597         * ch-lex.l:  Remove all the standard types, in effect
8598         converting them from reservered anmes to predefined names.
8599         * ch-lex.l, ch-parse.y:  Remove PREDEF_MODEDECL - no longer used.
8600         * ch-grant.c (gfile):  Rename to grant_file_name.
8601         * ch-lex.l (yywrap):  Don't try to seize current grant_file_name.
8603         * initname.c:  Removed. get_file_function_name is now in tree.c
8604         * Makefile.in (CHILL_OBJS): Remove initname.o
8606         * ch-decl.c (do_decl):  New function, based on loop body of do_decls,
8607         * ch-decl.c (do_decls):  Just call do_decl.
8608         * ch-grant.c (chill_finish_module_code):  Minor cleasnups.
8609         Use new do_decl routine.  Clear init_entry_decl's source line.
8610         * ch-grant.c (print_proc_tail):  Fix for new param list structure.
8611         * ch-parse.y (whatpdef):  Removed.  Cleaned up procedure
8612         and process, allowing proper end-label-checking.
8613         * ch-typeck.c (build_chill_cast):  Remove decl->type conversion.
8615 Wed Aug 11 00:33:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8617         * ch-decl.c (layout_enum):  Don't call rest_of_type_compilation.
8619         * ch-lex.l (RETURN_PREDEF):  Don't call lookup_name.
8620         * ch-expr.c (build_chill_indirect_ref):  Call get_type_of.
8621         * ch-parse.y (call):  Call get_type_of before build_chill_cast.
8623 Tue Aug 10 21:33:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8625         *  ch-actions.c (build_char_array_expr):  If a concat operand is
8626         a constant char, convert it to a STRING_CST.
8627         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation
8628         with toplev=0.
8629         * ch-typeck.c (build_chill_cast):  Allow type to be TYPE_DECL.
8631         * ch-parse.y (actionlabel):  Call define_label in both passes.
8632         * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8633         New functions, using lookup_name to find LABEL_DECLs.
8634         * ch-parse.y (GOTO, EXIT):  Use above new functions.
8635         * ch-tasking.c (struct rc_state_type *current_rc_state):
8636         Use to store state for the current receive case statement.
8637         (build_chill_receive_case_start, build_chill_receive_case_end):
8638         Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8639         * ch-decl.c:  Remove all stuff dealing with specific label scopes,
8640         including functions push_label_level, pop_label_level.
8641         * ch-decl.c (define_label):  Re-write for 2-pass.
8642         * ch_tree.h (lang_identifier):  Removed label_value.
8643         * ch-tree.h (IDENTIFIER_LABEL_VALUE):  Removed.
8645         * ch-parse.y (modename):  Changed to yield identifier, not type.
8646         This allows following changes, which work better for 2-pass:
8647         (location):  primval ARROW optmodename -> primval ARROW optname.
8648         (primval):  Tuple can now be prefixed by unsatisfied name.
8650         * ch-actions.c (chill_grant_only):  Renamed to grant_only_flag.
8651         * ch-lex.l (yywrap):  Don't read seizefiles if grant_only_flag.
8652         * ch-decl.c (switch_to_pass_2):  Exit if grant_only_flag,
8654         * ch-satisfy.c (satisfy):  Support CONSTRUCTOR, REFERENCE_TYPE.
8655         * ch-satisfy.c (satisfy_decl, satisfy):  Kludge around
8656         to a TYPE_DECL can be simplified to its type.
8657         * ch-expr.c (build_chill_indirect_ref):  New function.
8658         * ch-lex.l (prepare_paren_colon):  Make kludge even uglier,
8659         since the left paran might already have been seen.
8660         * ch-lang.c (make_chill_pointer_type):  Allow parameter
8661         to select pointer or reference type.
8662         (build_chill_reference_type):  New function.
8663         Either function:  Be more careful (in case arg is identifier).
8664         * ch-except.c (initialize_exceptions):  Make
8665         exception_stack_decl be public.
8666         * ch-actions.c (build_char_array_expr):   Can only
8667         constant fold if operands are STRING_CST.
8668         * ch-grant.c (raw_decode_mode):  Allow TYPE_DECL.
8669         (chill_finish_compile:  Set TREE_PUBLIC of init function to 1.
8671 Tue Aug 10 17:55:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8673         * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8674         * ch-decl.c: Fix comment.
8675         * ch-parse.y (pmodearg): Build tree_list in all cases.
8676         * varasm.c (assemble_tasssking_entry): Delete unused code.
8678 Tue Aug 10 13:58:21 1993  Bill Cox  (bill@rtl.cygnus.com)
8680         * ch-actions.c (build_char_array_expr): save/restore
8681           a tree's constant status.
8682           (build_chill_binary_op): Don't convert an expression
8683           if the type we're converting to is NULL.
8684         * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8685           Call it from convert, and from ..
8686         * ch-expr.c (chill_expand_assignment): call new function.
8687           Move convert code earlier, too.
8688         * ch-decl.c (lookup_name): Delete bogus error message.
8689         * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8690           Add protos.
8691         * ch-typeck.c (valid_array_index): Comment out some strange code
8692           which now seg faults.
8693           (chill_expand_tuple): Re-enable prepending of VARYING
8694           length to a tuple.
8695           (chill_similar): Return FALSE if either mode is NULL_TREE.
8697 Tue Aug 10 07:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
8699         * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8700           Add commented-out calls to pushtag, in case we decide later
8701           to fill in TYPE_STUB_DECL for dbxout.
8702         * ch-lang.c (build_chill_struct_type): Add commented-out
8703           calls to pushtag, in case we decide later to fill in
8704           TYPE_STUB_DECL for dbxout.
8706 Mon Aug  9 23:09:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8708         * ch-decl.c (chill_seize):  Don't get_next_next in pass 2.
8709         * ch-decl.c (get_next_decl):  Skip ALIAS_DECLs.
8710         * ch-decl.c (bind_saved_names):  Handle SEIZE ALL.
8711         * ch-lang.c (layout_chill_struct_type):  Don't call
8712         rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8713         * initname.c (get_file_function_name):  Get new file and
8714         function for language-independent constructor name generation.
8715         * ch-grant.c (get_init_function_id):  Removed.
8716         * ch-grant.c (chill_finish_compile):  Call get_file_function_name
8717         instead of get_init_function_id.
8719 Mon Aug  9 18:33:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8721         * ch-decl.c: Formfeeds and comments.
8722         * ch-parse.y (quasi_formpar): Treat just like real formpar.
8723           Eliminate restriction on single name.
8724           (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8726 Mon Aug  9 17:21:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8728         * ch-lex.h (enum rid), ch-lex.l (init_lex):  Added RID_ALL.
8729         * ch-lang.c (build_chill_pointer_type):  Layout the pointer type,
8730         if the pointee is laid out, even if pass==1.
8731         * ch-parse.y:  Set ignore_exprs=(pass=2) for entire spec module.
8733 Mon Aug  9 15:44:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8735         This version compiles the 5-line program.  Thanks, Per!
8736         * ch-decl.c (print_lang_decl, print_lang_identifier):
8737           Add appropriate calls to indent_to().  Rename reverse_scopes
8738           to switch_to_pass_2, and wait to set pass = 2 until
8739           here.
8740         * ch-grant.c (chill_finish_module_code): Set module_init_list
8741           non-NULL in pass 1;  in pass2, chain on the module_init
8742           structure's decl.
8743           (chill_finish_compile): Clear module_init_list to NULL.
8744         * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8745           Rename reverse_scopes to switch_to_pass_2, delete setting
8746           of pass = 2.
8747         * ch-tree.h: Rename reverse_scopes proto.
8749 Mon Aug  9 13:21:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8751         * ch-decl.c (build_enumerator):  If name is NULL,
8752         don't call save_decl or get_next_decl.
8753         * ch-decl.c (layout_enum):  Fix calculation of next value.
8754         * ch-grant.c (print_enumeral):  Re-do for new 2-pass scheme.
8755         * ch-grant.c (decode_constant):  Better CONSTRUCTOR support.
8757 Mon Aug  9 11:59:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8759         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8760           ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8761           Lots of new prototypes.
8763 Mon Aug  9 01:00:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8765         * ch-lex.h:  Remove unused RID_'s.  Make sure RID_MAX is last.
8766         * ch-decl.c (init_decl_processing):  Moved ridpointers
8767         initialization to init_lex().  Use them consistently.
8768         * ch-lex.l (RETURN_PREDEF):  New macro.  Uses ridpointers
8769         for all preferedined types.
8770         * ch-lex.l (init_lex):  Upper case all RIDs, so grantfiles
8771         (and error messages?) will use uppercase.
8772         * ch-decl.c (build_chill_enumerator):  Merged into build_enumerator.
8773         * ch-lang.c (finish_chill_enum):  Merged into ...
8774         * ch-decl.c (finish_enum): .... this function.
8775         * ch-decl.c (layout_enum):  New function.  Does all the pass-2
8776         stuff for enumerations.
8777         * ch-decl.c (finish_enum, start_enum):  Only trivial pass-1 stuff.
8778         * ch-satisfy.c (satisfy):  Support ENUMERAL_TYPE.  Improve ranges.
8779         * ch-parse.y:  Check ignore_exprs instead of ignore_decls when
8780         parsing and building types.
8782 Sun Aug  8 16:26:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8784         * ch-lex.h:  Add some missing RID_'s.
8785         * ch-decl.c (init_decl_processing):
8787 Sun Aug  8 15:32:54 1993  Bill Cox  (bill@rtl.cygnus.com)
8789         * ch-grant.c (module_has_actions): Delete this and all
8790           references.  It was a botch.
8791           (chill_finish_module_code): Move finish_chill_function_call inside
8792           the test whether actions were found at module level.
8793           Use current_function_name in the initializer build,
8794           and init_entry_id in the module_list setup.
8795           (chill_finish_compile): Call lookup_name to get the
8796           decl from a module_init_list entry.
8797         * ch-parse.y: Revert module_has_actions additions.
8798         * ch-satisfy.c (satisfy): After satisfying the type  referenced
8799           by a pointer_type, call layout type for the pointer.
8800         * ch-tasking.c (tasking_registry): Only active in pass 2.
8801         * ch-typeck.c: Call build_chill_pointer_type everywhere.
8803 Sun Aug  8 13:13:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8805         * ch-tree.def (PAREN_EXPR):  New unary op:  '(' EXPR ')'.
8806         * ch-parse.y (primval):  If pass 1, generate PAREN_EXRR.
8807         * ch-satisfy.c (satisfy):  Reduce PAREN_EXPR to its operand.
8808         * ch-grant.c (decode_const):  Handle PAREN_EXPR.
8809         * ch-decl.c (pop_module):  Fix think.  Inprove error message.
8811 Sun Aug  8 10:31:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8813         Generally, replace 'function' with 'procedure'
8814         and 'type' with 'mode' in error/warning messages.
8815         * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8816         * ch-decl.c: See Generally.
8817           (init_decl_processing): Call build_tasking_enum from here.
8818           Now, it doesn't need a flag to do its work only once.
8819           Also, build the TaskingStruct decl here.
8820         * ch-grant.c: Remove references to `current_grant_file';
8821           there's now only one.  See Generally.  Do gcc -Wall cleanup.
8822         * ch-lex.l: Remove references to `current_grant_file'
8823           and delete USE_GRANT_FILE token.
8824         * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8825         * ch-tasking.c (tasking_setup): Move TaskingStruct build
8826           to init_decl_procesing.  Delete build_tasking_enum calls.
8827         * ch-tree.c: See Generally.
8828         * ch-tree.h: Add proto for build_tasking_struct.
8830 Sun Aug  8 08:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8832         * ch-decl.c: Make unnamed_module_number static, reset it to zero
8833           before pass 2, so same module names get generated in both passes.
8834           (push_module): Return user name or generated name.
8835           (init_decl_processing): Build __tmp_initializer_type.
8836           Code moved from chill_finish_module_code.
8837         * ch-grant.c: New flag module_has_actions.  Set TRUE by push_actions,
8838           used, reset by chill_finish_module_code.    Replaces test of
8839           module_function_name.  Shuffled finish-up code to end of module.
8840           (chill_finish_module_code): Use global_bindings_p to determine
8841           'nested' parameter for finish_chill_function.  Use new
8842           module_has_actions flag to trigger generation of module_init list
8843           entry.  We now can handle not only multiple modules per file,
8844           but modules nested inside functions (I think).
8845         * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8846         * ch-parse.y (push_actions): Set module_has_actions flag.
8847           (modulion, spec_module): Save possibly-generated module name
8848           returned by push_module.
8849         * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8850           case for POINTER_TYPE.
8851         * ch-tasking.c: Replace build_pointer_type calls with
8852           build_chill_pointer_type calls.
8853         * ch-tree.h: Fix, add prototypes.
8855 Sat Aug  7 17:32:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8857         * ch-parse.y:  Remove many useless tests for ignore_decls.
8858         * ch-parse.y:  Remove obsolete support for _EXTERN and _INIT.
8859         * ch-parse.y:  Reset ignore_exprs while parsing declarations,
8860         but handle initializers appropriately.
8861         * ch-grant.c (decode_constant):  Update (for 2-pass) support
8862         for CONSTRUCTOR and SET_TYPE.
8863         * ch-grant.c (chill_initializer_name):  Renamed to
8864         module_function_name.
8865         * ch-grant.c (function_generated):  Removed;
8866         use module_function_name != NULL instead.
8867         * ch-tree.h, ch-parse.y:  Removed unused current_locnamelist.
8868         * ch-decl.c (push_modedef):  Simplify to take just one mode.
8869         * ch-tasking.c (make_process_struct, make_signal_struct):
8870         Change calls to push_modedef correspondingly.
8871         * ch-tree.c (build_powerset_type):  Move the stuff that's
8872         suitable for pass 1 into new function make_powerset_type,
8873         and that for pass 2 into new function layout_powerset_type.
8874         * ch-lang.c:  Move pass-1 stuff from build_chill_pointer_type
8875         into new function make_chill_pointer_type, and split
8876         build_chill_struct_type into make_chill_struct_type
8877         and layout_chill_struct_type.
8878         * ch-decl.c (grok_chill_variantdefs):  Similarly split up
8879         into make_chill_variants and layout_chill_variants.
8880         * ch-satisfy.c (satisfy):  Add support for SET_TYPE, and UNION_TYPE.
8881         Call layout_chill_struct_type for RECORD_TYPE.
8883 Sat Aug  7 09:59:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8885         Fixup previous check-in.
8886         * ch-decl.c: Restore unnamed_module_number, which *was*
8887           used after all.
8888         * ch-grant.c (get_init_function_id): Return type s.b. tree.
8890 Sat Aug  7 09:28:17 1993  Bill Cox  (bill@rtl.cygnus.com)
8892         * ch-decl.c (print_lang_decl, print_lang_type): Add
8893           correct parameter list.  Add print statements for
8894           nesting_level, signal_dest, buffer_size, and the
8895           signal_data flag.
8896           (decl_temp, decl_temp1): Delete unused code.
8897           (init_decl_processing): Call build_instance_type and
8898           build_tasking_type in both passes.
8899           Generally change current_scope comparisons against
8900           global_scope to global_biidings_p calls.
8901         * ch-except.c (push_handler): Add space before parameter paren.
8902         * ch-grant.c (chill_start_module, chill_finish_module,
8903           chill_finish_compile): Complete re-write for 2-pass and
8904           multiple modules per source file.
8905         * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8906         * ch-tasking.c: Diffused small adaptations to 2-pass.
8907         * ch-tree.h (print_lang_decl, print_lang_type): Correct
8908           the prototypes.
8909           (chill_finish_module_code): Add module name parameter.
8910         * ch-typeck.c: Fix comments, add whitespace.
8912 Fri Aug  6 12:17:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8914         * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8915         way I allocated the shadow_list on an obstack was too fragile,
8916         so just use xmalloc/free instead.
8918 Fri Aug  6 08:31:49 1993  Bill Cox  (bill@rtl.cygnus.com)
8920         * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8921           TYPE_MAX_VALUE for vanilla integer type.  Only need
8922           to satisfy TREE_TYPE for integer range type.
8924 Fri Aug  6 00:53:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8926         * ch-lang.c (build_chill_range_type):  Split up into two new
8927         functions (make_chill_range_type, layout_chill_range_type);
8928         only former part is done in pass 1.
8929         * ch-lang.c (build_chill_array_type):  Split up in the same
8930         way (yielding make_chill_array_type, layout_chill_array_type).
8931         * ch-satisfy.c (satisfy):  Handle array and range types.
8932         * ch-tree.h (TYPE_RANGE_PARENT):  Removed.  Not used.
8933         * ch-parse.y (mode2):  Handle optional rangesize.
8935 Thu Aug  5 15:13:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8937         * ch-grant.c (print_an_int):  Re-enable (but don't search for SYN).
8938         * ch-grant.c (raw_decode_mode):  Support printing
8939         of an IDENTIFIER_NODE (unresolved type name).
8940         * ch-grant.c (decode_constant):  Support printing of an unresolved
8941         IDENTIFIER_NODE, as well as some kinds of binary operations.
8942         * ch-grant.c (grant_one_decl):  Don't call globalize_decl.
8944         * ch-grant.c (decode_decl):  Add support for ALIAS_DECLs
8945         (from SEIZEs and GRANTs).
8946         * ch-grant.c:  Remove support for multiple grantfiles.
8947         * ch-grant.c, ch-parse.y:  Removed grant_count, for now at least.
8948         * ch-lex.h (in_seizefile):  Moved to ch-tree.h.
8949         * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c:  Removed.
8950         * ch-tree.h (CH_DECL_GRANTED): Added.
8951         * ch-actions.c (build_chill_exception_decl):  Use
8952         IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8953         * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8954         Change to accept list of remember_decls and granted_decls.
8956 Thu Aug  5 11:58:21 1993  Stan Shebs  (shebs@rtl.cygnus.com)
8958         * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8960 Thu Aug  5 10:03:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8962         * ch-decl.c (init_decl_processing): Only build types
8963           in pass 2, since dbxout machinery is only ready for
8964           output then.
8965         * ch-grant.c (chill_finish_module_code): Do most of the
8966           work in pass 2.
8968 Thu Aug  5 06:54:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8970         * ch-parse.y (receivecaseaction): Pass label-group
8971           numbers around.
8972         * ch-tasking.c (build_chill_receive_case_start):
8973           Generate unique labels for each case, pass back
8974           the label-group's number.
8975           (build_chill_receive_case_end): Accept label-group
8976           number from parser, use it to build labels
8977         * ch-tree.h: Change prototypes.
8979 Wed Aug  4 13:21:13 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8981         * ch-decl.c (decl_temp1):  Call finish_decl().
8983         * ch-grant.c (chill_start_module_code):  Don't call
8984         push_c_function_context - not needed since we're not nested.
8985         * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8986         with nested=0, not 1 (twice).
8987         * ch-grant.c (chill_finish_module_code): Clear function_generated.
8989 Tue Aug  3 20:06:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8991         * ch-decl.c (push_chill_extern_function):  Set TREE_PUBLIC.
8993 Tue Aug  3 19:08:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8995         * ch-actions.c (build_chill_function_call): Handle parameter
8996           attributes better - LOC still not handled.
8997         * ch-tree.def: Amplify comment.
8999 Tue Aug  3 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9001         * ch-lex.l (handle_use_seizefile_directive):  Update
9002         next_file_to_seize correctly.
9003         * ch-actions.c (build_chill_abs):  Create an ABS_EXPR, not an rts_call.
9005 Tue Aug  3 14:03:50 1993  Bill Cox  (bill@rtl.cygnus.com)
9007         First Aid, not real long-term fixes...
9008         * ch-decl.c (pop_module, lookup_name_for_seizing): Check
9009           current_module pointer for NULL before using it.
9010           (init_decl_processing): Set up wchar_type_node before using it.
9011         * ch-grant.c (chill_finish_module_code): Don't build
9012           initializer_type or initializer_decl until pass 2.
9013         * ch-lex.l: Readability - single statement per line.
9014         * ch-tasking.c (make_process_struct): Hide get_parm_info
9015           call inside #ifdef for now.
9017 Tue Aug  3 09:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9019         * ch-decl.c (pushdecllist): Add forward decl.
9020         * ch-parse.y (handler): Add rules which allo
9021           empty onalternativelist.
9022         * ch-tasking.c (get_tasking_code_name): Add
9023           cast of alloca() result.
9025 Tue Aug  3 00:11:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9027         * ch-lex.l (handle_use_seizefile_directive):  Make files_to_seize
9028         a queue.  Check for duplicate use_seizefile-s immediately.
9029         * ch-lex.l (yywrap):  Use this more portable mechanism,
9030         rather than the flex-specific <<EOF>>.  Also, clear saw_eof.
9031         * ch-lex.l:  Don't call push_module/pop_module automatically.
9032         * ch-decl.c (push_chill_extern_function:  Modify for 2-pass.
9034 Mon Aug  2 14:24:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9036         * ch-parse.y:  Rename actionstatement -> nonempty_actionstatement.
9037         New actionstatement is now nonempty_actionstatement | SC.  Use
9038         where appropriate.  This is closer to Blue Book terminology.
9040         * ch-tree.def (ALIAS_DECL):  New tree type.
9041         * ch-decl.c:  Merged all the code we need (I hope) from c-decl.c,
9042         which is no longer used for cc1chill.
9043         * c-decl.c:  Remove all Chill-related code.
9044         * Makefile.in (CHILL_OBJS):  Don't use c-decl.o.
9045         * ch-decl.c:  No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
9046         Introduce a 'nesting_level' level concept instead.
9047         * ch-decl.c:  Merged push_scope into pushlevel; pop_scope into
9048         poplevel;  struct scope and struct binding_level.
9049         * ch-decl.c:  Other major name lookup algorithm changes.
9050         * ch-tree.h (struct lang_identifier): Remove granted_value field.
9051         * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro):  Removed.
9052         * ch-tree.h (DECL_NESTING_LEVEL):  New macro.
9053         * ch-satisfy.c (satisfy, satisfy_decl):  New 'lookup_only' arg.
9054         * ch-tree.h (struct module):  New fields nesting_level, granted_decls.
9055         * ch-grant.c (seize_implied_names, do_seize, chill_seize):  Move ...
9056         * ch-decl.c: ... here.
9057         * ch-grant.c (start_chill_function2):  Remove.
9058         * ch-grant.c (chill_start_module_code):  Now called in both passes.
9059         * ch-actions.c (lang_init):  Code moved to ...
9060         * ch-decl.c (init_decl_processing): ... here.
9061         * ch-actions.c (chill_expand_result, chill_expand_return):
9062         Handle being called during pass 1.
9063         * ch-lex.l (name_type_signal):  Don't try lookup_name during pass 1.
9064         * ch-parse.y (PUSH_ACTION, push_action):  Is now invoked during
9065         both passes, for the sake of chill_start_module_code.  Change all
9066         actions rules to invoke PUSH_ACTION unconconditionally.
9067         * ch-parse.y, ch-decl.c (push_module):  Module label is now optional.
9069 Mon Aug  2 15:02:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9071         * expr.c (store_constructor): Convert library function
9072           parameters to proper integer precision before calling
9073           emit_library_call.
9075 Mon Aug  2 08:46:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9077         * ch-grant.c (seize_implied_names): Check POWERSET's
9078           base type for names to seize.
9080 Fri Jul 30 19:59:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9082         * ch-tree.h: Delete unused definition of JOINER
9083           macro.  Expand comment about INSTANCE_TYPE.
9085 Thu Jul 29 14:57:11 1993  Bill Cox  (bill@rtl.cygnus.com)
9087         * ch-convert.c (unreferenced_type_of): New function.
9088           (convert): Call new function.
9090 Thu Jul 29 07:34:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9092         * ch-lex.l: Allow C-style comments before the module
9093           header.  Use #undef to assure that strchr isn't a
9094           macro (portability), and remove the extra paren-
9095           theses in its extern name.
9096           (check_newline): Call getlc less often, so that user
9097           labels aren't lowercased before their time. Add BEGIN
9098           INITIAL before starting pass 2, so the header is
9099           correctly ignored.
9101 Wed Jul 28 14:23:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9103         * ch-grant.c (chill_start_module_code): Cast alloca()
9104           return value.
9106 Wed Jul 28 12:39:51 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9108         * ch-grant.c: remove extra parens around extern function
9109         declarations (they confuse the DECstation compiler)
9111 Wed Jul 28 12:28:56 1993  Bill Cox  (bill@rtl.cygnus.com)
9113         * Makefile.in: Stop deleting flex's #line lines.
9115 Wed Jul 28 07:05:25 1993  Bill Cox  (bill@cygnus.com)
9117         Adjust after FSF merge:
9118         * calls.c (expand_call): Add comment.
9119         * ch-expr.c: Add newline.
9120         * expmed.c (store_split_bit_field): Add comment.
9122 Tue Jul 27 17:32:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9124         * ch-actions.c (build_chill_binary_op): Set code0 and
9125           code1 only in pass 2.
9126           (get_result_tmp_name): Cast alloca return for portability.
9127         * ch-decl.c (pop_module): Test current_module ptr before
9128           using it.
9129         * ch-lex.l: Set lineno and input_filename for pass 2
9130           error messages.
9132 Tue Jul 27 15:14:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9134         * ch-lex.l: Fix the syntax error at line 329.  Will I
9135           *ever* quit fixing these in the ch-lex.c file?  Stay tuned..
9137 Tue Jul 27 15:01:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9139         * ch-lex.l: Pervasive rewrite for queueing seize files,
9140           then parsing them at the end of pass 1.  Still some
9141           problems.
9143 Tue Jul 27 07:40:39 1993  Bill Cox  (bill@rtl.cygnus.com)
9145         * chill.in: Check for .i suffices only, and use -xchill
9146           to bracket the argument.
9148 Thu Jul 22 19:17:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9150         * c-decl.c (print_lang_identifier): Oops.  Syntax error.
9152 Thu Jul 22 18:56:16 1993  Bill Cox  (bill@rtl.cygnus.com)
9154         * c-decl.c (pushdecllist): Standardize loop for readability.
9155         * ch-decl.c (decl_temp): Call pushdecllist to store decl
9156           into hash table, move after current_scope declaration.
9157           (decl_temp1): Move also.
9158         * ch-lex.l (getlc): New function.  Force char to lower case.
9159           (check_newline): Call it, so comparisons work on uppercase
9160           keywords.
9162 Wed Jul 21 22:17:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9164         * ch-decl.c (do_decls): Add saving of decl tree
9165           address into ID node in pass 2,  reindent.
9166         * ch-grant.c (start_chill_function2): New function.
9167           (chill_start_module_code,  chill_finish_module_code): Call it.
9168         * ch-loop.c (build_temporary_variable, begin_for_range):
9169           Replace start_decl, finish_decl pairs with decl_temp1 calls.
9170         * ch-parse.y (parnamelist): Eliminate warning by eliminating
9171           the %type for now.
9172         * ch-actions.c, ch-tasking.c: Replace do_decls calls with
9173           decl_temp1 calls.
9174         * ch-tree.h: New prototypes.
9175         * stmt.c (stamp_nesting_label): Check parameters for NULL.
9176         * toplev.c (lang_options): Add '-L' option.
9178 Wed Jul 21 21:06:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9180         Portability fixes.
9181         * ch-decl.c (save_decl): Make definition match forward declaration.
9182         * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
9183           in the macro - Sun's compiler throws warnings.  Thanks, Brendan.
9184         * ch-satisfy.c (satisfy): Add forward declaration.
9185           (SATISFY): Add outer parens for greater safety.
9187 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9189         * c-decl.c (pushdecllist): New function.  Add a list of decls
9190         to the current scope, checking for duplicates.
9191         * c-decl.c (start_function):  Remove some Chill junk.
9192         (This function should no longer be used for Chill.)
9193         * ch-lex.l (ch_lex_init):  New function, to re-init for 2nd pass.
9194         * ch-lex.l (<<EOF>>):  Cleanup, and re-start for 2nd pass.
9195         * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG):  New flags.
9196         * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
9197         Implement.  Add comments.
9198         * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
9199         Better Blue Book type checking.
9200         * ch-actions.c (finish_chill_binary_op): Handle folding
9201         and other stuff that couldn't be done in pass 1.
9202         * ch-actions.c (build_chill_binary_op):  Bail out early if pass 1.
9203         Use new CH_ROOT_MODE macro to handle integer promotions etc.
9204         * ch-except.c (push_handler):  Bail out if pass 1.
9205         * ch-tasking.c (make_process_struct):  Defer making this work.
9206         * ch-parse.y (assignaction):  Simplify, and move some code ...
9207         * ch-expr.c (chill_expand_assignment): ... here.
9208         * ch-typeck.c (chill_root_mode, chill_resulting_mode,
9209         chill_compatible_classes):  New functions, implementing the
9210         correspondingly named Blue Book concepts.
9211         * ch-parse.y generally:  Lots of little tweaks to support
9212         2-pass compilation.
9213         * ch-parse.y (push_module, pop_module):  Moved to ...
9214         * ch-decl.c (push_module, pop_module):  ... here.
9215         * ch-parse.y (push_action):  New function.
9216         * ch-parse.y (pdef):  Move complicated action to ...
9217         * ch-parse.y (end_function):  ... new function here.
9218         * ch-parse.y (procedure):  Major re-write.
9219         * ch-parse.y (paramname, paramnamelist):  New, to avoid conflict (?).
9220         * ch-decl.c (do_decls, push_syndecls, push_modedef,
9221         start_chill_function, finish_chill_function):  Do different things
9222         on each pass.  Hence, can use code in c-decl.c to lesser extent.
9223         * ch-decl.c (build_chill_function_type):  First arg is now
9224         just the return type, rather than a singleton list.
9225         * ch-decl.c (massage_param_node):  Remove not needed (we
9226         now encode parameter attributes directly in the TREE_PURPOSE).
9227         * ch-decl.c (chill_munge_params):  New function, called by parser.
9228         * ch-decl.c (push_parms):  Removed function.
9229         * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
9230         New functions, to coordinate decls between passes.
9232 Wed Jul 21 14:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9234         * ch-actions.c (lang_decode_option): Add option -Lpath
9235           to specify seize file path.
9236           (ch_singleton_set): Readability formatting.
9237           Add comment, move functions to easier found places.
9238         * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
9239           (register_seize_path): Use memcpy so pathlen has an effect.
9240         * gcc.c (default_compilers): Add -L option to chill
9241           compiler SPECs.
9243 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9245         * ch-satisfy:  New file.  Used for name lookup.
9246         * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
9248 Wed Jul 21 12:16:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9250         * toplev.c (main): Delete -L option handling - breaks
9251           non-chill compilers.
9253 Wed Jul 21 09:29:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9255         * ch-grant.c: #undef strchr and strrchr names in extern
9256           declarations, to prevent RS6000 compiler from reporting
9257           their misuse as macros.
9258         * ch-lex.l (setup_seizefile_read): Refer to list of  paths
9259           for seizefiles specified by -L options on command line.
9260           (register_seize_path): Add a new path to the seize file list.
9261         * toplev.c (strip_off_ending): Recognize chill suffix.
9262           (main): Recognize -L option, specifying a seize file path.
9264 Tue Jul 20 12:41:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9266         * ch-lex.l (convert_float): Make it really portable,
9267           using the appropriate macros.
9269 Tue Jul 20 11:26:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9271         * ch-lex.l (convert_float): More casts for vxworks
9272           portability.
9274 Tue Jul 20 11:01:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9276         * ch-lex.l (convert_float): Give variable `d' correct
9277           type so build_real call is correct.  Should remove
9278           vxworks portability problem.
9279           (convert_float): Re-indent to standards.
9281 Mon Jul 19 17:32:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9283         * ch-actions.c (build_char_array_expr): Add field decls to
9284           constructor.  Now, it generates the library call.
9285         * ch-expr.c (chill_expand_array_assignment): Make sure that all
9286           error messages say 'mode' not 'type'.
9288 Mon Jul 19 14:44:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9290         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
9291           ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
9292           Make sure that all error messages say 'mode' not 'type'.
9293         * ch-decl.c (push_modedef): Add novelty computation,
9294           storage in each newmode.
9295         * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
9296           Reformat slightly for readability.  Fix comments.
9297         * ch-tree.h: Delete print_lang_type prototype.
9299 Mon Jul 19 06:43:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9301         * ch-actions.c (chill_expand_return): Disable
9302           error message which requires 2-pass analysis, for
9303           now.
9304         * ch-convert.c (convert): Build length-only constructor
9305           for empty string (PR 2930).
9307 Fri Jul 16 16:08:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9309         * ch-expr.c (chill_expand_array_assignment): Check
9310           non-varying string assignments for conformance to
9311           the "string assignment condition" (PR 2920).
9313 Thu Jul 15 13:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9315         * ch-actions.c (build_chill_array_expr): Check parameters.
9316           Call convert to build unitary array from scalar if
9317           needed.  Rewrite CONCAT_EXPR handling.
9318         * ch-convert.c (build_array_type_for_scalar): New functions.
9319           (convert): Call new function, to convert scalar to unitary
9320           array.  Only call chill_expand_tuple if expression hass
9321           NULL_TREE type.
9322         * ch-expr.c (chill_expand_expr): Allow a larger static
9323           varying array to be assigned to a smaller, with a runtime
9324           test (to be provided).
9325         * ch-parse.y (locdec): Comment out bogus error msg.
9326           (elementlist): Replace several lines with chainon call.
9327         * ch-tree.h (SCALAR_P): New macro.  New prototype for
9328           build_array_type_for_scalar.
9329         * ch-typeck.c (build_chill_cast): Re-indent.
9330           (chill_expand_tuple): Comment out strange addition of
9331           varying string's length to front of constructor list.
9333 Thu Jul 15 05:58:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9335         * ch-except.c (start_handler_array): Use unique identifier for
9336           exception array, so we can have > 1 array per reach
9337           (PR 2931).  The change was originally entered June 23, and
9338           subsequently lost.
9340 Mon Jul 12 16:07:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9342         Get executable test cases running again...
9343         * c-typeck.c (build_function_call): Bypass default
9344           parameter promotions, format param syntax check for
9345           CHILL; they've already been converted in
9346           build_chill_function_call.
9347         * ch-actions.c (chill_expand-return): Correct tests
9348           for function which returns no value.
9349         * ch-convert.c (base_type_size_in_bytes): Check for
9350           NULL type parameter, just return.
9351           (convert): Allow conversion of CHAR to varying array
9352           of CHAR.
9353           Change error msg to "conversion" from "assignment".
9354           Remove default from case, which short-circuited before
9355           REFERENCE_TYPEs got converted.  Deleted second copy
9356           of REFERENCE_TYPE code.
9357         * ch-lang.c (build_chill_range_type): Simply exit if
9358           NULL input parameter.
9359         * ch-loop.c: Fix comment.
9361 Sun Jul 11 11:27:08 1993  Bill Cox  (bill@cygnus.com)
9363         * ch-actions.c (chill_expand_result, chill_expand_return):
9364           Move here from ch-typeck.c.  Add a temporary to remember the
9365           result value in.  Change return handler to fetch that
9366           temporary value, if there is one.
9367         * ch-parse.y (pdef): Call chill_expand_return to fetch
9368           the temp's value.
9369         * ch-tree.h, ch-typeck.c: Move return, result functions to
9370           ch-actions.c.  And their prototypes.
9372 Fri Jul  9 15:47:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9374         * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
9375           ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
9376           ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
9377           ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
9379 Fri Jul  9 09:41:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9381         * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
9382           (print_integer): Delete old non-working INSTANCE code.
9383         * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
9384         * ch-parse.y (rccase_label): Move all actions inside if.
9385           Use BUFFERNAME to recognize receice case buffer clause,
9386           eliminate one shift-reduce conflict.
9387         * ch-tasking.c (build_buffer_descriptor): Check for
9388           CH_DECL_BUFFER flag, remove unused code.
9390 Thu Jul  8 11:17:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9392         Declaring and sending buffers..  first draft
9393         * ch-actions.c (lang_init): Define the send_buffer runtime
9394           function.
9395         * ch-decl.c (do_decls): Standardize loop, so stepping
9396           isn't hidden.
9397         * ch-lex.l: Clean up prototypes for readability.
9398         * ch-parse.y (sendaction): Add send buffer action.
9399           (locdec): Add rule for buffer declaration.
9400         * ch-tasking.c (generate_tasking_code): standardize indentation.
9401           (make_signal_struct): Readability changes.
9402           (build_chill_send_buffer, build_buffer_decl,
9403            build_buffer_descriptor): New functions.
9404         * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
9405           buffer's maximum queue length in buffer decl.
9406           (CH_DECL_BUFFER): Add flag in decl.  Clean up for
9407           readability.  Add prototypes.
9408         * ch-typeck.c (build_chill_cast): Call convert rather
9409           than storing directly into TREE_TYPE field.
9411 Tue Jul  6 12:34:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9413         * ch-actions.c (lang_init): Set warn_switch so case labels
9414           get checked.  Move build_chill_case_expr to ch-expr.c.
9415         * ch-expr.c (chill_expand_case_expr): Enable checking
9416           of expression case labels.
9417         * ch-grant.c: Move a comment.
9419 Mon Jul  5 10:02:27 1993  Wilfried Moser  (fs_moser at rcsw1j)
9421         * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
9422         * ch-except.c (initialize_exceptions): Change the layout of the
9423           structure __ch_handler. The entry __jbuf is moved to the end
9424           of the structure and its size was changed to _JBLEN+10.
9425         * ch-decl.c (push_chill_extern_process): Add processing of
9426           processes with no arguments.
9427         * ch-grant.c (decode_decl, do_seize): Add processing of
9428           processes with no arguments.
9429         * ch-tasking.c (build_process_header, build_chill_start_process):
9430           Add processing of processes with no arguments.
9431           (make_process_struct): Add processing of IN attribute for
9432           process arguments.
9433           (tasking_setup): Add NUL-character to name of a tasking
9434           element. The name must be NUL terminated.
9435           (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
9436           to 0 with a warning if -Wall specified on command-line.
9438 Fri Jul  2 16:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9440         * ch-parse.y: Change 'empty' comments to new non-terminal
9441           so that exyacc doesn't discard them.
9442         * ch-lang.c (build_chill_range_type): New error messages.
9444 Fri Jul  2 12:43:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9446         * ch-parse.y (action): Catch and report actions which
9447           shouldn't have exception clauses, but do.  Unfortunately,
9448           catching more than one of these per compilation will
9449           have to await the general addition of syntax error
9450           recovery to the parser.
9452 Fri Jul  2 10:45:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9454         * ch-parse.y (locdec): Issue error for initialization
9455           of bitstring with tuple, not for powerset init with
9456           tuple.
9458 Thu Jul  1 15:29:26 1993  Bill Cox  (bill@rtl.cygnus.com)
9460         * ch-lang.c (build_chill_array_type): Check for indices
9461           that didn't fold into constants, issue error (PR 2924b).
9462         * ch-parse.y: Add novelty counter, alphabeticalize.
9463         * ch-tree.h: Define CH_NOVELTY for novelty checks later.
9465 Thu Jul  1 14:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9467         For Wilfried Moser.
9468         * chill.in: Add -ansi switch at compiler call to avoid
9469           translation of i.e. sun to 1 by cpp.
9471 Wed Jun 30 22:21:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9473         * ch-grant.c (raw_decode_mode): Add code for
9474           integer and enumeral ranges.  Standardize indentation.
9476 Wed Jun 30 14:02:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9478         * ch-grant.c (print_an_int): New function to print a
9479           decimal integer string or the CONST_DECL (SYN) which
9480           best matches it.
9481           (print_integer): Call the above function.  Replace
9482           calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
9483           comparisons, as suggested by Jim Wilson.
9484           (decode_decl): Set current_grant_modename sooner,
9485           be sure to clear it when done.
9487 Wed Jun 30 10:10:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9489         * ch-actions.c (build_max_min): Change interface to accept
9490           just a max/min flag.  Get min/max values from an
9491           enumeral constructor.
9492           (build_chill_max, build_chill_min): Change calls to
9493           build_max_min.
9494         * ch-lang.c (deep_const_expr): Check for NULL_TREE
9495           arguments, don't seg fault.
9497 Wed Jun 30 09:20:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9499         * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
9500           to switch cases, preventing abort.
9502 Tue Jun 29 19:04:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9504         * ch-expr.c: Update comment.
9505         * ch-parse.y (range_or_mode): New non-terminal used in
9506           lexpr to implement mode as case label.
9508 Tue Jun 29 13:13:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9510         * ch-actions.c (build_chill_case_expr): Pass in the
9511           optional ELSE clause, error for multiple case-selector
9512           expressions, error for missing ELSE clause.
9513         * ch-expr.c (chill_expand_assignment): Error if multiple
9514           location assignment and locations not novelty
9515           equivalent.
9516         * ch-parse.y (caseaction): Add range_list_clause non-
9517           terminal, sorry message for it.
9518           (assignaction): error if operator used on multiple
9519           assignment.
9520           (case_expr): Pass optional ELSE tree to
9521           build_chill_case_expr for checking.
9522         * ch-tree.h (build_chill_case_expr): Change proto.
9524 Fri Jun 25 17:22:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9526         * ch-actions.c (chill_comptypes, build_chill_binary_op):
9527           Allow PROC mode variables.
9528         * ch-convert.c (convert): Turn a NULL literal into a zero
9529           valued pointer-to-function, given such a type.  Also
9530           build the ADDR_EXPR of a function variable.
9531         * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9532           (print_enumeral, print_integer, print_struct) Moved these
9533           large functions out of the switch in raw_decode_mode for
9534           readability, and to encourage future code-sharing.
9535           (print_proc_tail, print_proc_exceptions): Moved these out
9536           of decode_decl, to share them.  They're used also to
9537           output PROC modes.
9538         * ch-parse.y (mode2): Enable PROC modes.
9539           (procmode): Represent PROC mode as a ptr-to-function type.
9540           (call): Recognize ptr-to-function as indirect call.
9541           Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9543 Thu Jun 24 15:59:20 1993  Bill Cox  (bill@rtl.cygnus.com)
9545         * ch-grant.c: (raw_decode_mode): Add support for unnamed
9546           and user-numbered enumeration members.
9548 Thu Jun 24 13:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9550         * ch-actions.c (build_chill_array_expr, build_chill_length):
9551           Explicitly convert a varying array's length field to an
9552           integer_type_node, now that it's only a chill_integer_
9553           type_node.
9554         * ch-expr.c (chill_expand_expr,
9555                      expand_assignment_to_varying_array,
9556                      chill_expand_array_assignment,
9557                      expand_varying_length_assignment): Explicitly
9558           convert a varying array's length field to an integer_type_node,
9559           now that it's only a chill_integer_type_node.
9560         * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9561           to handle varying array location iterations.
9562         * ch-parse.y (mode2): Count number of named SET members,
9563           as opposed to '*' members.  Issue error if there were none.
9564           (setelement): Count named set members.  Generate a unique
9565           identifier for the '*' element.
9566         * ch-typeck.c (validate_varying_array_ref):  Explicitly
9567           convert a varying array's length field to an integer_type_node,
9568           now that it's only a chill_integer_type_node.
9570 Wed Jun 23 19:18:28 1993  Bill Cox  (bill@rtl.cygnus.com)
9572         * ch-lang.c (finish_chill_enum): Change test for too-
9573           large enumerations.
9574         * ch-parse.y (setelement, optsetvalue): Allow numbered,
9575           unnamed set elements.
9577 Wed Jun 23 16:25:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9579         * c-typeck.c (process_init_constructor): Suppress
9580           errors about un-initialized array elements if the
9581           array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9582         * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9583           enumerations *can* be only a byte in size.
9584           (adjust_parm_or_field): Convert untyped parameter before
9585           looking at its type to process it.
9586         * ch-convert.c (convert): Generate [ -1, -1 ] value for
9587           an INSTANCE type.
9588         * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9589           type, so that output_constant doesn't seg fault.
9590         * ch-except.c (start_handler_array): Use unique identifier for
9591           exception array, so we can have > 1 array per reach.
9592         * ch-lang.c (finish_chill_enum): Error if number of
9593           enumeration values exceeds 256.
9594         * ch-parse.y (check_end_label): Error, not warning if start
9595           and end labels don't match.
9596           (assignaction): Convert RHS.  Allows untyped tuples to be
9597           passed to stabilize_reference.
9598           (exceptlist, onexceptprefix): Error if non-unique exception
9599           name is coded.
9600         * ch-tree.c: Added form feeds, comment reformatted.
9601         * ch-typeck.c (chill_expand_tuple): Compare tree value to
9602           NULL_TREE, not zero.  Add a constructor element for a
9603           VARYING array's length to the constructor list.
9604           (build_varying_struct): Mark the type as VARYING for
9605           process_init_constructor.
9606         * toplev.c (lang_options): Add '-lang-chill' and
9607           '-fchill-grant-only' options to table.
9609 Tue Jun 22 13:13:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9611         * ch-actions.c (build_chill_function_call): Add check
9612           to prevent calling a PROCESS like a PROCEDURE.
9613         * ch-parse.y (rcalternative): Add check for an
9614           receive case alternative after a RECEIVE CASE
9615           statement.
9616         * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9617         * ch-lang.c (lang_finish): Remove resetting errorcount
9618           and sorrycount for granting.
9620 Mon Jun 21 17:56:48 1993  Bill Cox  (bill@rtl.cygnus.com)
9622         Receiving signals works.
9623         * ch-actions.c (lang_init): Add else_clause flag to
9624           __wait_signal parameter list.
9625         * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9626         * ch-parse.y (SIGNALNAME): New token.  Delete
9627           empty_untyped_exprlist token, no longer used.  Add
9628           name_or_signal non-terminal.  Standardize a few NULL
9629           tests.  Add real RECEIVE CASE semantics.  Add checks that
9630           SIGNALS, BUFFERs are only declared at global scope.
9631           (call): Add signal declarations with/without data fields.
9632         * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9633           build_chill_receive_case_start, build_chill_receive_case_end,
9634           build_chill_receive_case_label): New functions.
9635           Replace build (CONSTRUCTOR, ... calls with build_nt
9636           (CONSTRUCTOR, calls.
9637         * ch-tree.h: New prototypes.
9639 Thu Jun 17 18:36:38 1993  Bill Cox  (bill@rtl.cygnus.com)
9641         SIGNAL declaration compilation, seizing & granting,
9642           SENDing also.
9643         * ch-actions.c (lang_init): Move instance_type_node
9644           build to ch-tasking.c.  Call build_tasking_message_type.
9645           Build a type for send_signal.  Put builtin_function
9646           calls into alpha order.
9647           (adjust_proc_param): Rename to adjust_parm_or_field,
9648           add is_signal flag, so signal fields can use it.  Rename
9649           calls to it, add flag to calls.
9650         * ch-decl.c (push_chill_extern_signal): Add function.
9651         * ch-grant.c (decode_decl): Correct signal decl output.
9652           (do_seize): Correct check for process seizure.  Add
9653           code for seized signal decl.
9654         * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9655         * ch-loop.c (get_unique_identifier): Standardize loop
9656           temporary's name to assure that it's not granted.
9657         * ch-parse.y (SIG_NAME): Delete unused token.
9658           (spec_declist): Delete silly printf.
9659           (quasi_signaldef): Add non-terminal.
9660           (sendaction, optsendwith, optsendto, optpriority):
9661           Implement actual working semantics.
9662           (call, empty_untyped_exprlist): Allow empty signal
9663           fields between parens.
9664         * ch-tasking.c: Rename adjust_proc_param calls, add
9665           is_signal flag to calls.  Make instance_type_node a
9666           type, not a TYPE_DECL, change references.  Fix all
9667           CONSTRUCTOR builds.  Add make_signal_struct function.
9668           Move build_instance_type here from lang_init.
9669           (build_tasking_message-type, build_signal_descriptor,
9670           build_chill_send_signal): New functions.
9671         * ch-tree.h: Add, update protos.
9672         * ch-typeck.c (build_chill_cast): Check for NULL expression
9673           type as well as error_mark.
9675 Thu Jun 17 12:28:03 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9677         * Makefile.in (STAGESTUFF): Add chill to list.
9679 Wed Jun 16 07:12:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9681         * Makefile.in: Complete the renaming of ch-process.c
9682           to ch-tasking.c.
9683         * ch-decl.c (push_chill_extern_function): Drop is_process
9684           parameter, and marking process decl trees.
9685           (push_chill_extern_process): New function for
9686           SEIZEd processes.  Lotsa form feeds added for print
9687           readability.
9688         * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9689           (do_seize): New parameter seize_all.  Handle sseizing
9690           processes.
9691           (chill_seize): Pass seize_all parameter.
9692           (chill_grant): Check for __tmp_ prefix, to disable
9693           *either* seizing or granting.
9694         * ch-parse.y (quasi_pdef): Delete is_process parameter for
9695           push_chill_extern_functon, call push_chill_extern_process
9696           for processes.
9697           (specialinit): Comment these rules as needed only until
9698           2-pass compiler is operational.
9699           (extprocedure): Delete is_process parameter.
9700           (simpledec): Delete `sorry' about SIGNAL decls.
9701           (optsigdest): Correct check for process name.
9702         * ch-tasking.c (build_signal_decl): Finish coding.
9703         * ch-tree.h: Add macro to save a SIGNAL's destination
9704           process name in an id node.  Add/change prototype.
9706 Mon Jun 14 18:17:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9708         * ch-actions.c (lang_init): Build instance_type_node.
9709           Change `this' to a runtime function call.
9710         * ch-grant.c (do_seize): Generate tasking-code
9711           variable for seized process.
9712         * ch-lex.l (equal_number): Also accept synonym
9713           name for numeric value.
9714         * ch-parse.y (primval): Add process-related
9715           function calls.
9716           (signaldef, etc.): Rough draft of SIGNAL definition
9717           processing.
9718           (stopaction): Call runtime function.
9719           (pdef): Pop symbol level if ending a process
9720           and there were parameters.
9721           (primval): Call `whoami' runtime function for THIS.
9722         * ch-tasking.c (build_process_header): Be sure
9723           to define the tasking enum, if it hasn't already
9724           been done.  Only call shadow_record_fields if there
9725           are parameters.
9726           (build_tasking_enum): Only call start_enum *after*
9727           checking the already_built flag.
9728           (build_copy_number, get_tasking_code,
9729           build_gen_code, build_gen_inst, build_get_ptype,
9730           build_proc_type): New functions for process-related
9731           builtins.
9732           (build_signal_decl): New function for SIGNAL
9733           declaration - rough draft.
9734         * ch-tree.def (INSTANCE_TYPE): new tree code.
9735         * ch-tree.h: New prototypes.  Defines for instance
9736           type field access.
9738 Sat Jun 12 21:15:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9740         Get start-process action working:
9741         * ch-actions.c (adjust_proc_param): new function,
9742           extracted from build_chill_function_call and called
9743           from there.
9744         * ch-tree.h, ch-grant.c (do_seize): Add process_type
9745           parameter to add_taskstuff_to_list call, prototype.
9746         * ch-parse.y (start_parlist): New non-terminal for
9747           START action.
9748           (startaction): Reference start_parlist, check for
9749           integer-valued process copy-number.
9750           (optstartset): Check instance parameter - must be
9751           an INSTANCE_TYPE location.
9752         * ch-tasking.c (generate_tasking_code_variable): New
9753           function, extracted from tasking_setup and called
9754           from there.  Also called from build_process_header.
9755           (build_process_header): Add process_type parameter
9756           to add_taskstuff_to_list call.  Remove incrementing
9757           of process_type (moved into generate_tasking_code
9758           _variable).
9759           (build_chill_start_process): Complete rewrite.
9760           (add_tasking_stuff_to_list): Add stuffnumber parameter
9761           putit on the list.
9763 Sat Jun 12 06:08:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9765         Getting processes compiled, initialized and granted:
9766         * .cvsignore: Add chill file.
9767         * c-decl.c (shadow_record_fields): Allow PARM_DECL
9768           as well as VAR_DECL.
9769         * ch-actions.c (lang_init): Move build of
9770           initializer_type into ch-tasking.c.  Change
9771           definition of THIS to function call.
9772         * ch-decl.c (massage_param_node): Add comments.
9773           (start_chill_function): Set nested flag in
9774           start_function call based upon current_function_decl,
9775           not as constant zero.
9776         * ch-grant.c (decode_decl): lotsa code by Wilfried to
9777           GRANT process decls.
9778           (finish_chill_module): Completely rewrote interface
9779           to runtime.
9780         * ch-lex.l (THIS): Just return the token code.
9781         * ch-parse: Add THIS token.
9782           (processpar, processparlist): New rules, to collect
9783           process parameters.
9784           (pdef): Add code to pop the process' WITH scope.
9785           (procedure): Set process WITH scope flag to zero.
9786           (process): Move most code into build_process_header.
9787           (primval): Output function call for THIS.
9788         * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9789           make_process_struct, build_process_header): New code
9790           to handle process translation and interface to runtime.
9791         * ch-tree.h: New prototypes.
9793 Thu Jun 10 13:32:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9795         * Makefile.in: Change ch-process.c to ch-tasking.c.
9796           A delayed part of the last change..
9798 Thu Jun 10 11:14:59 1993  Bill Cox  (bill@rtl.cygnus.com)
9800         * .cvsignore: Add 'chill' file.
9801         * ch-actions.c (lang_init): Add new runtime function
9802           __register_process.
9803         * ch-decl.c (push_chill_extern_function): Add is_process
9804           input flag, use it.
9805         * ch-grant.c (decode_decl): Recognize a process for
9806           granting.
9807           (do_seize): Put seized processes onto the tasking_list.
9808           (chill_finish_module_code): Declare init_list entry,
9809           link it onto the init_list.  Call tasking_setup and
9810           tasking_registry.
9811         * ch-lex.l: Make tasking-related variables global,
9812           delete their initialized flags.
9813         * ch-parse.y: Add is_process flag to push_chill_extern_function
9814           calls.  Put processes onto the tasking_list.
9815         * ch-process.c: Renamed to ch-tasking.c.
9816         * ch-tasking.h: New file.
9817         * ch-tree.h: New, adjusted prototypes.
9819 Wed Jun  9 10:59:27 1993  Wilfried Moser  (moser@deneb.cygnus.com)
9821         * chill: This file is replaced by chill.in and will be
9822           generated during 'make' and 'make install'. This script
9823           now finds the correct chillrt0.o and libchill.a during
9824           linking.
9825         * chill.in: New file that replaced chill.
9826         * Makefile.in: Add rules to make chill out of chill.in.
9828 Wed Jun  9 09:03:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9830         * .cvsignore: Add gfloat.h and xlimits.h.
9831         * ch-actions.c (lang_init): Create new type for module-
9832           level initializer list entry.
9833         * ch-grant.c (chill_start_module_code): Rename actual
9834           module-level code to just the modulename, which is
9835           *not* public.
9836           (chill_finish_module_code): Allocate space for initializer
9837           list entry, build real initializer function, which puts
9838           the list entry on the runtime list.  Name the init function
9839           as the module's constructor function.
9840         * ch-tree.h (build_init_struct): Add prototype.
9841         * ch-typeck.c (build_init_struct): Add function, called
9842           from lang_init.
9843         Note: these changes require a new devo/chillrt/chillrt0.c.
9845 Thu Jun  3 17:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9847         * c-decl.c: Fix comment.
9848         * ch-actions.c, ch-grant.c: Standardize front end:
9849           #define first, etc.  Add comments.
9850           (lang_init): Delete unused flag, code for inapplicable
9851           gen-decls option.  (lang_decode_option): Delete
9852           gen-decls option, add grant-only option, flag.
9853         * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9854           ch-typeck.c: Add form feed after front end.
9855         * ch-expr.c: Standardize testing for error_mark node.
9856         * ch-lang.c: Remove unused deep_fold function.
9858 Fri May 21 11:04:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9860         * c-typeck.c (build_binary_op, build_unary_op):
9861           Recognize BOOLEAN_TYPE.
9862         * ch-actions.c (build_chill_unary_op): Remove
9863           some crufty work-arounds.
9865 Thu May 20 19:03:48 1993  Per Bothner  (bothner@deneb.cygnus.com)
9867         * ch-grant.c (decode_constant):  If the granted value is a
9868         cast, make sure to emit an appropriate expression conversion.
9870 Thu May 20 16:35:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9872         * ch-lang.c (build_chill_range_type): Initialize the
9873           precision variable.  Double-negative ranges work now.
9875 Thu May 20 11:24:42 1993  Bill Cox  (bill@rtl.cygnus.com)
9877         * ch-actions.c (build_unary_op): Compound a wretched
9878           hack which hides a BOOLEAN_TYPE from the underlying
9879           C code.
9881 Wed May 19 16:45:54 1993  Bill Cox  (bill@rtl.cygnus.com)
9883         * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9884           from chill_comptypes. (build_chill_unary_op): Give
9885           better name to unsigned flag.
9886         * ch-expr.c (chill_expand_assignment): Correct calling
9887           sequence for setpowersetbits runtime routine.
9888         * ch-grant.c (raw_decode_mode): Give better name to
9889           unsigned flag.  (decode_constant): Check for null
9890           'val' ptr, avoid seg fault.
9891         * ch-lex.l (convert_number):  Give better name to
9892           unsigned flag. (convert_bitstring): Move increment
9893           of bl counter to emphasize that it increments once
9894           per loop.
9895         * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9896         * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9897           constructor if given a singleton set constructor.
9899 Thu May 13 17:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9901         * c-decl.c (pushdecl): Complete May 9 change.
9902         * ch-actions.c (build_chill_unary_op): Set the
9903           TREE_UNSIGNED flag FALSE for raw_decode_mode.
9904         * ch-grant.c (grant_array_type): Correct the May 12
9905           check for circularity.
9906           (raw_decode_mode): Use TREE_UNSIGNED flag to
9907           control range's printing.
9908           (chill_grant): Remove useless, bogus code.
9909         * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9910           flag TRUE for raw_decode_mode.
9912 Wed May 12 18:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9914         * ch-decl.c (push_syndecls, push_modedef): Comment
9915           reminders to check for circular definitions.  Later!
9916         * ch-grant.c (grant_array_type, decode_decl): Prevent
9917           circular definitions in the use of the array's
9918           type name.
9920 Wed May 12 16:06:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9922         * ch-grant.c (grant_array_type): If array_type has
9923           a name, just use it.
9924         * ch-lang.c (build_chill_range_type): Don't force
9925           unsigned ranges on output.
9926         * expr.c (store_constructor): Preclude seg fault.
9928 Wed May 12 07:49:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9930         * ch-actions.c (fold_set_*): Correct tests for
9931           range set-constructor list entries.
9932           (lang_init): Define setpowersetbits function.
9933         * expr.c (store_constructor): Handle non-constant
9934           set constructors.
9936 Tue May 11 18:25:40 1993  Per Bothner  (bothner@cygnus.com)
9938         * ch-lang.c (build_chill_range_type):  If the parent type
9939         is unknown, and the endpoints of the range are integer
9940         constants, use the smallest suitable integer type.
9941         * ch-lang.c (build_chill_range_type):  Remove kludge
9942         for dealing with char ranges.
9944 Tue May 11 15:24:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9946         * ch-actions.c (build_chill_repetition_op): Build a
9947           range-type set constructor if there's only one value
9948           in the repeated constructor.
9949           (fold_set_*): Abort if range value seen, for now.
9950         * expr.c (store_constructor): Handle range-type by
9951           storing bytes rather than bits as much as possible.
9953 Mon May 10 18:45:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9955         * ch-actions.c (invalid{left right}_operand): Add
9956           handlers for REPLICATE_EXPR.
9957           (build_chill_repetition_op): Build constructor list
9958           for repetition of bitstring.
9959         * ch-parse.y (call): Recognize more trees as arrays,
9960           to avoid error msg.
9961           (operand5): Add count, string temporaries, use them.
9963 Mon May 10 16:49:08 1993  Per Bothner  (bothner@cygnus.com)
9965         * ch-grant.c (seize_implied_names):  Fix code that assumed
9966         a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9967         * ch-grant.c (generate_set, grant_parent_of_enum,
9968         grant_parent_enum): Removed unused functions.
9969         * ch-grant.c (raw_decode_mode):  Remove commented-out code.
9971 Mon May 10 10:54:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9973         * ch-grant.c (do_seize, seize_implied_types): Move
9974           result and parameter processing to proper place.
9975           (chill_seize): Mark unseized identifier with
9976           error_mark_node, to avoid excessive errors.
9977         * ch-parse.y (call): Check for ERROR_MARK before
9978           reporting an error.
9980 Sun May  9 17:21:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9982         * c-decl.c (pushdecl): If a strongly-visible name is
9983           seen, in conflict with a weakly-visible name, take
9984           the strongly-visible one and don't complain.
9985         * ch-actions.c (chill_comptypes): Allow chain of ref-
9986           erence types > 1 in length.
9987         * ch-grant.c: Turn disguised for-loops into actual
9988           ones, so continue works.  Delete redundant code in
9989           seize_implied_names.  Reindent.
9990         * expmed.c (store_split_bit_field): Disable abort for
9991           CHILL.
9993 Sun May  9 17:11:33 1993  Per Bothner  (bothner@cygnus.com)
9995         * ch-convert.c (convert):  Move handling of SET_TYPE until
9996         after we've handled de-referencing and such like.
9997         * ch-grant.c (grant_array_type):  Simplify; remove (now-)
9998         bogus call to generate_set.
9999         * ch-grant.c (get_type):  Remove obsolete stuff.
10001 Fri May  7 10:30:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10003         * ch-actions.c (lang_init): Add definition of psslice
10004           runtime routine. (build_chill_binary_op_1,
10005           build_chill_binary_op): Have result type of
10006           TRUTH_ANDIF_EXPR be boolean, not integer.  Some
10007           reindenting.
10008         * ch-convert.c (convert): Use consistent notation
10009           for expression.
10010         * ch-parse.y: Add front-end pass count. (locdec):
10011           Add syntax for other BASED declaration.
10012         * ch-tree.c: Fix comment.
10013         * ch-typeck.c (build_chill_slice): Implement a runtime
10014           call for bitstring slices. (build_chill_cast):
10015           Add code for BITS_BIG_ENDIAN bit loop.
10016           (chill_expand_tuple): Don't pass ref type to
10017           digest_init, only underlying type.
10019 Thu May  6 12:52:14 1993  Per Bothner  (bothner@cygnus.com)
10021         * ch-typeck.c (build_chill_cast):  type_for_size takes
10022         a size in bits, not bytes.
10024 Wed May  5 19:02:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10026         * ch-actions.c: Break out separate routines for set
10027           folding, handle ranges in set_fold_eq and set_fold_ne.
10028           Fix folding as req'd by TTC test.
10029         * ch-grant.c (raw_decode_more): Check for content match
10030           to decide output mode, not pointer identity.
10031         * ch-typeck.c: Add cross-reference comment.
10032         * varasm.c (emit_set_data): Clarify parameter name.
10033           Handle INTEGER_CST as set constructor.
10034           (output_constant): Handle CONSTRUCTOR node for sets.
10035           Apparently forgot to actually 'checkin' this one last
10036           time.
10038 Wed May  5 12:23:58 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
10040         * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
10042 Tue May  4 15:47:44 1993  Bill Cox  (bill@rtl.cygnus.com)
10044         * ch-actions.c (fold_set_expr): new function to fold
10045           set expressions.  Calls inserted into
10046           build_chill_binary_op and build_chill_unary_op.
10047           (build_chill_repetition_op): New function, called
10048           from build_chill_function_call.
10049         * ch-expr.c (chill_expand_assignment): Call
10050           build_chill_repetition_op.
10051         * ch-grant.c (decode_constant): Comment out deep_fold
10052           call.  The earlier fold_set_expr calls should make
10053           this one unnecessary.  Prevent seg fault when name
10054           of structure field is NULL.  Standardize for loop.
10055         * ch-parse.y: Fix comments.
10056           (operand5): build a REPLICATE_EXPR.  Don't call
10057           build_repetition_op until we have a type.
10058         * ch-tree.def (REPLICATE_EXPR): Define tree-code.
10059         * ch-tree.h (build_chill_repetiton_op): Fix proto.
10060         * ch-typeck.c (chill_expand_result): Call
10061           build_chill_repetition_op if needed.
10062         * varasm.c (emit_set_data): Clarify parameter name.
10063           Handle INTEGER_CST as set constructor.
10064           (output_constant): Handle CONSTRUCTOR node for sets.
10066 Mon May  3 13:06:47 1993  Per Bothner  (bothner@cygnus.com)
10068         * ch-typeck.c (build_chill_cast):  Allow more liberality to
10069         casting:  Any discrete type to any non-discrete type that is the
10070         same size as some other discrete type (and vice versa).
10071         * stor-layout.c (layout_type, case SET_TYPE):  If the number
10072         of bits will fit in a char or short, only use that many bits.
10074 Mon May  3 08:22:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10076         * ch-grant.c (decode_constant): Revert interpretation
10077           of SET_TYPE as integer.
10079 Mon May  3 07:55:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10081         * chparse.y (casealternative): Allow empty action list.
10083 Sat May  1 15:07:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10085         * expr.c (expand_expr): Add parameter to __inpowerset
10086           runtime call, to match new runtime.
10088 Sat May  1 14:55:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10090         * ch-actions.c: Cleanup from -Wall.  Reindent.
10091           Redefine __inpowerset to take a 'minval' parameter
10092           that matches the new runtime.  Added comments.
10093         * ch-expr.c (chill_handle_case_label): Handle
10094           NULL or ERROR trees.
10095         * ch-grant.c (get_type): Survive bogus type params,
10096           return empty string.
10097         * ch-tree.c (build_powerset_type): Diagnose powerset
10098           of non-discrete type.
10099         * ch-typeck.c (discrete_type_p): Reindent.
10101 Fri Apr 30 16:08:54 1993  Bill Cox  (bill@rtl.cygnus.com)
10103         * ch-grant.c (decode_constant): Interpret SET_TYPE
10104           with integer value, so we output the same stuff as
10105           the user gave us.
10106         * ch-parse.y: Fix indentation.
10108 Fri Apr 30 09:34:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10110         * ch-actions.c (chill_comptypes): Simplify, correct
10111           integer subrange analysis.
10112         * ch-grant.c (seize_implied_names): Add handling for
10113           PROCESS_DECL, PROCESS_TYPE.
10114           (do_seize): Call seize_implied_names for process,
10115           procedure parameters and return value.
10116         * ch-lang.c (finish_chill_enum): Canonicalize enum
10117           types.
10118         * ch-tree.def (PROCESS_TYPE): Add.
10119         * ch-typeck.c (valid_array_index): Call chill_comptypes
10120           rather than broken macro CH_COMPATIBLE.  The logic
10121           in chill_comptypes will get moved to the macro later.
10123 Thu Apr 29 13:07:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10125         * ch-actions.c (build_chill_lower, build_chill_upper):
10126           Handle enumeration types.
10127           (build_chill_binary_op): Call chill_comptypes
10128           to error check IN arguments.  Change error
10129           messages to say 'mode' rather than 'type'.  Cast
10130           tree codes when build is called.
10131         * ch-expr.c (chill_expand_array_assignment): Call
10132           chill_comptypes to validate assignment args.
10133         * ch-lex.l: Add newline for readability.
10135 Wed Apr 28 15:22:18 1993  Bill Cox  (bill@rtl.cygnus.com)
10137         * Makefile.in (ch-hash.h): Add rule to build this
10138           from chill.gperf.  Not yet used.
10139         * ch-actions.c (build_chill_binary_op): Allow enum
10140           subranges on RHS of IN operator.
10141         * ch-grant.c (decode_constant): Recognize
10142           error_mark_node as empty powerset initializer,
10143           re-indent a bit.
10144         * ch-lang.c (deep_fold): Return error_mark_node for
10145           NULL input pointer or incoming error_mark_node.
10146         * ch-lex.l: Ignore PACK and UNPACK keywords. Return
10147           POS, ROW, and STEP as user-defined names.
10148           (name_or_type): New function for above.
10149         * ch-parse.y: Move token defs for following, comment
10150           them separately: NOPACK, PACK, POS, ROW, STEP
10151         * varasm.c (output_constant): Check for VAR_DECLs in
10152           records & unions, like arrays.  Don't abort.
10154 Tue Apr 27 17:42:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10156         * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
10157           rewrite for generality.
10158         * ch-decl.c (grok_chill_variantdefs): Use chill
10159           comptypes, so that subrange compatibility is ok.
10160           (start_chill_function): Use lookup_name(), not
10161           IDENTIFIER_GLOBAL_VALUE, for full generality.
10162         * ch-expr.c (chill_expand_assignment): Need to
10163           handle non-NOP modify codes here, since C code
10164           in build_modify_expr won't understand powersets,
10165           etc.
10167 Tue Apr 27 09:05:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10169         * ch-actions.c (build_max_min): Assign the set's
10170           base type to the function's return type.
10171           (build_chill_function_call): Before complaining
10172           about parameter mismatches, convert certain actual
10173           parameters.
10174         * ch-expr.c (chill_expand_assignment): Before
10175           complaining about LHS/RHS mismatches, convert
10176           certain RHS expressions.
10177         * ch-grant.c (decode_constant): Deep-fold incoming
10178           expression, so we can output it.
10179         * ch-lang.c (deep_const_expr): New function, called
10180           from const_expr, actually traverses the tree
10181           looking at its leaves for 'const'ness.
10182           (deep_fold): New function to fold already-built
10183           trees.
10184         * ch-parse.y (case_expr): Add whitespace.
10185         * ch-tree.h: Add prototype for deep_fold.
10187 Tue Apr 27 07:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10189         * ch-actions.c (chill_comptypes): Allow enumeration
10190           subranges as compatible with the parent enum.
10191           (build_chill_function_call): Before checking type
10192           compatibility, use convert on typeless expressions,
10193           like constructors.
10194         * ch-expr.c (chill_expand_assignment): Before
10195           checking type compatibility, use convert on
10196           typeless expressions, like constructors.
10197         * ch-lex.l: Add comment.
10199 Thu Apr 22 17:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10201         * .cvsignore: Add genopinit, insn-opinit.c
10202         * c-common.c (binary_op_error): Prevent seg fault on
10203           unknown node code.
10204         * ch-typeck.c (build_chill_array_ref): Remove old
10205           lower-bound-of-array-index-nonzero code.
10206         * expr.c (expand-expr, get_inner_reference): Remove
10207           old lower-bound-of-array-index-nonzero code.
10209 Thu Apr 22 16:01:09 1993  Bill Cox  (bill@rtl.cygnus.com)
10211         * c-decl.c (shadow_record_fields): Add pushlevel for
10212           each PROCESS parameter, too.
10213         * ch-process.c (make_process_struct): First working
10214           version.
10215         * ch-tree.def: Add PROCESS_DECL definition.
10216         * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
10217           for make_process_struct.
10218         * expr.c (expand_expr): Add references to
10219           PROCESS_DECL.  Add #include of ch-tree.h.
10220         * tree.c (decl_function_context): Add check for a
10221           PROCESS_DECL, and #include for ch-tree.h.
10223 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10225         * expr.c (expand_expr): Add missing prototypes, and
10226           parameters to expand_expr call.
10228 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10230         * c-decl.c (shadow_record_fields): Add ability to
10231           handle pointers to records/unions.  For PROCESS
10232           compilation.
10234 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10236         * ch-expr.c (chill_expand_expr): Add missing
10237           parameters to expand_expr calls.  Some trivial
10238           reformatting for readability.
10240 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10242         * ch-lex.l: Make send_*_prio externally visible,
10243           default them to zero, eliminate the init flags.
10244           Same for process_type.
10246 Sat Apr 17 10:59:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10248         * ch-actions.c (build_chill_binary_op): Build a
10249           BIT_FIELD_REF tree for IN_EXPR operations.
10250         * ch-typeck.c (build_chill_array_ref): Build a
10251           BIT_FIELD_REF tree for access to packed array of
10252           bits.
10254 Fri Apr 16 12:33:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10256         * ch-parse.y (EXIT action): Improve error checking,
10257           messages.
10258         * ch-typeck.c (chill_expand_tuple): Remove code to
10259           pack sets (moved to varasm.c long ago).
10260         * varasm.c (unpack_set_constructor): Rename size to
10261           bit_size, since 'size' always means bytes.
10262           (pack_set_constructor): Rename size to wd_size,
10263           since 'size' always means bytes.
10264           (output_constant): Set size to zero, so that extra
10265           bytes of padding aren't output after set constants.
10267 Fri Apr 16 11:57:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10269         * .cvsignore: Add .gdbinit.
10270         * ch-decl.c (start_chill_bindings): Add function name
10271           to binding contour's exit_label for EXIT stmt.
10272         * ch-parse.y (EXIT action): Call lookup_name to avoid
10273           inserting label for function name.  Also check
10274           IDENTIFIER_LABEL_VALUE for label's decl.
10275           (caseaction, beginendblock, ifaction): Call
10276           stamp_nesting_label to put action's label into
10277           contour for EXIT to find.
10279 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10281         * expr.c (expand_expr): Unify, clean up handling of
10282           IN_EXPR, and handling of bit-string element ref.
10283           Now, all goes through IN_EXPR handler.
10284         * stmt.c (stamp_nesting_label, expand_exit_labelled):
10285           New functions, which allow either label or
10286           function decls.
10288 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10290         * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
10291           ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
10292           ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
10293           ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
10294         * ch-actions.c (build_chill_binary_op): Move runtime function call
10295           to expr.c.  Just build a tree here.  Clean up error checking.
10296         * ch-convert.c (convert): Simply store a type into an expression if
10297           TREE_TYPE (expr) == NULL.  Prevent error if an enum is to be
10298           converted to a set of such enums.
10299         * ch-loop.c (init_loop_counter): Restore error msg for undeclared
10300           variable if no local scope is to be created for the loop.
10301         * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
10302           remove redundant code which wasn't ever called.
10304 Wed Apr 14 07:54:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10306         * .cvsignore (y.tab.c) : Add to list.
10307         * ch-convert.c (convert): Check pointers better - avoid NULL reference.
10308           Remove redundant check for ERROR_MARK - already checked earlier.
10309         * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
10310           error_mark_node.
10312 Tue Apr 13 16:00:37 1993  Per Bothner  (bothner@cygnus.com)
10314         * c-decl.c (start_function):  If there is a previous
10315         function declaration of the same name, steal its RTL.
10316         This is a kludge needed for forward declarations of
10317         nested functions.
10318         * ch-decl.c (push_chill_extern_function), ch-tree.h:  New
10319         function, for external and seized function declarations.
10320         Make sure to use permanent obstack.
10321         * ch-parse.y (quasi_pdef, extprocedure):  Use new function.
10323         * ch-grant.c (chill_finish_module_code):  Since module
10324         function is no longer visible,, can't get it using
10325         lookup_name().  Use current_function_decl instead.
10327         * ch-decl.c (build_chill_function_type):  Add void_type_node
10328         to end of parameter types list.
10330         * ch-grant.c (chill_start_module_code):  Make sure module
10331         function isn't visible (and hence isn't granted).
10333 Tue Apr 13 15:48:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10335         * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
10336           current contour for DO FOR EVER loops.
10338 Tue Apr 13 14:37:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10340         * ch-parse.y (actionstatement): Add error rule.  Delete
10341           POP_UNUSED_ON_CONTEXT.  Add comments about label name usage.
10342           (nohandleraction): Better error check in EXIT processing.
10343           (optexprlist): Comment out make_function_rtl call.
10344           (seizestatement): Change error to warning.
10346 Tue Apr 13 08:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10348         * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
10349           call.
10350         * ch-loop.c (begin_chill_loop): Take loop label as parameter.  Stamp
10351           its name into the current contour's exit_label, for EXIT to use.
10352         * ch-parse.y: (actionlabel): Save label tree in global variable.
10353           (actionstatement): Clear label to NULL when action is finished.
10354           (handlerstatement, nohandlerstatement): Split actions into
10355           categories which do/don't permit exception handlers.
10356           (exitaction): Move code into nohandleraction, make it work.
10357           (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
10358         * ch-tree.h: Add parameter  to begin_chill_tree prototype.
10359         * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
10360           Note: This implementation of EXIT only exits from loops, not yet
10361                 from other bracketted statements.
10363 Mon Apr 12 13:41:55 1993  Per Bothner  (bothner@rtl.cygnus.com)
10365         * ch-grant.c (chill_grant):  Remove obsolete code.
10367         * ch-decl.c (push_synmode, push_newmode):  Merged to yield ...
10368         * ch-decl.c (push_modedef):  ... w/ slightly different interface.
10369         * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
10370         (modedefinition):  Use new push_modedef function.
10371         * ch-parse.y (modedefinition):  Don't depend on inherited
10372         attributes (- implemented incorrectly!): Use a global variable
10373         parsing_newmode to distinguish synmode and newmode.
10375 Mon Apr 12 08:10:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10377         * ch-loop.c: Diffuse cleanup after big functional changes.
10378         * ch-parse.y: Eliminate temporary variables, now unnecessary.  Use
10379           parse-time stack instead.
10380         * ch-tree.h: Change build_chill_iterator prototype.
10382 Sun Apr 11 15:50:33 1993  Bill Cox  (bill@rtl.cygnus.com)
10384         * ch-convert.c (convert): Replace an ERROR_MARK type - from a
10385           untyped_expr with the given type.  Move chill_expand_case_expr
10386           call inside chill_expand_expr.
10387         * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
10388           chill_handle_case_label, chill_expand_case_expr):  Move to ch-expr.c
10389           from ch-typeck.c.
10390         * ch-loop.c: Major reorganization to support multiple iterators in
10391           DO FOR loop, very little new code, just a re-org.
10392         * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
10394 Sat Apr 10 14:40:12 1993  Bill Cox  (bill@rtl.cygnus.com)
10396         * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
10397         * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
10398           member.
10399         * ch-lex.l (equal_number): Add function to look in the input for '='
10400           followed by a decimal literal.  Call it from directive scanning.
10401           (start state 'ccitt'): Deleted, unused.  Moved unused, but reserved,
10402           tokens to NORMAL state.
10403           (compiler_directive): Replaced by equal_number.  Now the only
10404           recursive call to yylex happens in check_newline at the beginning
10405           of a compilation.
10407 Sat Apr 10 09:55:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10409         * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
10410         * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
10411           'reserve' them.
10412         * ch-parse.y (case_expr): Move code into ch-actions.c.  There will
10413           need to be much more written.
10414         * ch-tree.def (VARY_ARRAY_REF): Add comment.
10415         * ch-tree.h (build_chill_case_expr): Add prototype.
10416         * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
10417           type to the expr.  Check for CASE_EXPR, call expand_case_expr.
10419 Sat Apr 10 01:10:51 1993  Per Bothner  (bothner@rtl.cygnus.com)
10421         * ch-parse,y (in_pseudo_module): New variable.  Try if we're
10422         in a seizefile, but not in a module nested in the seizefile.
10423         Use for backwards compatibility with old grantfiles.
10424         * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
10425         If in_pseudo_module, grant new declaration.
10426         * ch-decl.c (pushd_newmode):  If there is a granted previous
10427         incomplete type, fix it up.
10428         * ch-grant.c (seize_implied_names):  Do remaining types.
10429         Guard against recursion.
10430         * ch-tree.h (IDENTIFIER_ENUM_VALUE):  Removed, not used.
10431         * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
10432         (finish_chill_enum):  Enum constants are marked with
10433         CH_DECL_ENUM so they don't get written to the grantfile.
10434         * ch-tree.h (IDENTIFIER_GRANTED_VALUE):  Allow fast seizing.
10435         * ch-lex.l:  Re-write to use start states, to avoid calling
10436         yylex() recursively.
10437         * ch-lex.l (compiler_directive);  This is now obsolste. FIXME.
10438         * ch-lex.l:  Call push_module and pop_module when reading a
10439         seizefile.  This creates a pseudo-module.
10440         * ch-parse.y:  Clean up handling of empty declarations and
10441         action statements; semicolons are now optional a number of
10442         places.
10443         * ch-parse.y:  Remove some bogus tests for "statement
10444         out of sequence" (they're both legal and work).
10445         * varasm.c (mak_function_rtl):  Remove  kludge that may
10446         not be necessary (and loses anyway).
10448 Fri Apr  9 09:37:38 1993  Bill Cox  (bill@rtl.cygnus.com)
10450         * ch-expr.c (chill_expand_array_assignment): Remove false error about
10451           arrays that are too small.
10452         * ch-parse.y (callaction): Don't pass an error_mark_node to
10453           c_expand_expr_stmt.
10455 Fri Apr  9 00:26:54 1993  Per Bothner  (bothner@rtl.cygnus.com)
10457         * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
10458         New macros.
10459         * ch-actions.c (build_chill_function_call):  Use latter.
10460         * ch-typeck.c (chill_similar):  Fix typo.
10461         * ch-grant.c (raw_decode_mode):  Handle ENCAPSULATED_ARRAY_P
10462         parameter types.
10463         * ch-grant.c (seize_implied_names):  Handle ranges of enums.
10464         * ch-grant.c (do_seize):  Set DECL_SOURCE_FILE and _LINE of
10465         seized declaration to be the point of the seize itself.
10466         * ch-grant.c (chill_grant), ch-tree.h:  Add a parameter
10467         which is the list (in order) of decls in the module.
10468         Don't reverse the getdecls() list; that is handled by caller.
10469         * ch-grant.c (chill_grant):  Test that a declaration is
10470         visible before writing it.
10471         * ch-parse.y (push_module):  Make sure to hide declarations
10472         from surrounding module.
10473         * ch-parse.y (pop_module):  Restore those declarations.
10474         * ch-parse.y (pop_module): This function is now responsible
10475         for writing out for calling chill_grant() to the grant file.
10476         * ch-actions.c (lang_finish):  Remove calls to chill_grant().
10478 Thu Apr  8 16:56:52 1993  Bill Cox  (bill@rtl.cygnus.com)
10480         * ch-actions.c (build_char_array_expr): Add handling of varying
10481           arrays in relational expressions.
10482         * ch-decl.c: Add prototype for lookup_name_current_level.
10483         * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
10484           so its length is used as the temp's size.
10485           (chill_expand_array_assignment): Correct for varying := varying
10486           assignment, clean up.
10487         * ch-typeck.c: Add prototype for require_complete_type.
10489 Wed Apr  7 16:41:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10491         * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
10492           diffuse changes to fix location loops.
10493         * ch-parse.y (location): Remove ref through NULL ptr.
10495 Wed Apr  7 13:42:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
10497         * ch-decl.c (massage_param_node):  New function.
10498         It handles the LOC/IN/OUT/INOUT parameter distinction,
10499         as well as calling build_chill_array_parm_type if needed.
10500         * ch-tree.h (massage_param_node):  New prototype.
10501         * ch-decl.c (push_parms):  Use new massage_param_node().
10502         * ch-parse.y (pmodearg):  Use new massage_param_node().
10503         * ch-parse.y (formpar):  Don't call build_chill_array_parm_type;
10504         now handled by massage_param_node.
10505         * ch-typeck.c (my_build_array_ref):  Handle non-zero array
10506         lower bounds.
10507         * ch-actions.c (build_chill_function_call):  If the formal
10508         parameter is a pseudo record wrapped around an array, make
10509         sure we wrap the actual parameter in a record CONSTRUCTOR.
10510         * ch-typeck.c (build_chill_array_parm_type):  Make sure
10511         the pseudo struct type is allocated on the permanent_obstack.
10512         * ch-parse.y (location):  Remove thinko.
10513         * ch-actions.c (chill_comptypes):  Comment out test for
10514         NEWMODEness - it gets broken by the forward declaration hacks.
10516 Tue Apr  6 18:05:40 1993  Bill Cox  (bill@rtl.cygnus.com)
10518         * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10519         * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10520         * ch-parse.y (location): Do build_component_ref for an array wrapped
10521           in a structure.
10522         * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10523         * ch-typeck.c (build_chill_array_parm_type): Add function, move
10524           build_varying_struct here from ch-actions.c.
10526 Mon Apr  5 19:56:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10528         * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
10529           rather than in-line code - tests LOW and HIGH values.
10530         * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10531         * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10532           isn't zero.
10534 Mon Apr  5 15:45:10 1993  Bill Cox  (bill@rtl.cygnus.com)
10536         * ch-typeck.c (my_build_array_ref): Add some more code from
10537           build_array_ref.  Change checks, error messages to mention
10538           'discrete types'.  I.E. types which don't kiss and tell..
10540 Sat Apr  3 09:27:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10542         * ch-except.c, ch-expr.c: Turn externs into prototypes.
10543         * ch-grant.c (chill_grant): Remove orphan #else.
10544         * ch-tree.h: Add prototype for build_chill_bin_type.
10545         * ch-typeck.c: Turn externs into prototypes, delete code which
10546           was commented out in chill_expand_return; it will never be used.
10548 Fri Apr  2 21:55:14 1993  Per Bothner  (bothner@rtl.cygnus.com)
10550         Major re-write of New module/seize/grant stuff.
10551         Now, a grantfile is a spec module and contains all the
10552         top-level declarations of the granting module, not just
10553         those that are granted.  It also contains explicit grant
10554         statements naming those declared names that are granted.
10555         It also has seize statements and use_seize_file directives
10556         to correctly handle transitive dependencies.
10558         * ch-parse.y:  Change to allow multiple modules per source file.
10559         Allow spec modules (including quasi definitions) as well as
10560         regular modules.
10561         Allow spec modules inside normal modules;  these behave as if
10562         they were outermost.  This violates the Blue Book, but is
10563         needed by the new grantfile mechanism.  (A grant file is a
10564         spec module that gets included by the use_seize_file directive.)
10565         * ch-parse.y (struct module *current_module, push_module,
10566         pop_module):  Support module nesting (for spec modules only).
10568         * ch-tree.h (struct module): New.
10569         * ch-grant.c (granted_decls):  New list of declarations
10570         that have been granted into the outermode pseudo-module.
10571         * ch-grant.c (decode_mode):  If the decl has a name,
10572         always write the name, not just if the decl has already
10573         been written.  Since we write out all decls, we can assume
10574         it will be written later, and depend on the forward
10575         declaration kludges to catch it.
10576         * ch-grant.c (decode_decl):  Don't write out _EXTERN.
10577         Instead write out standard (Blue Book) quasi-definitions.
10578         * ch-grant.c (push_granted):  New function.
10579         * ch-grant.c (seize_implied_names):  New function.  Re-write
10580         how set element names are seized when a set type is seized.
10581         * ch-grant.c (chill_seize):  Work by seraching the
10582         granted_decls list and copying the declaration.
10583         * ch-grant.c (chill_grant):  Write all declarations
10584         declared in this module.  Write GRANT statements for
10585         those granted.   seize statements for decls seized from
10586         other modules.  Write extra syntax to make a complete
10587         spec module.
10588         * ch-grant.c (grant_use_seizefile):  Copy use_seize_file
10589         directives into grant file.
10590         * ch-lex.l (setup_seizefile_read):  Call grant_use_seizefile.
10592         * ch-lex.l (struct input_state, current_input_state,
10593         push_input_file, pop_input_file):  New (type, variable,
10594         function*2).  Used to save and  restore state on an input file.
10595         * ch-lex.l:  Clean up to handle nested input seizefiles
10596         (needed by new grant/seize mechanism.
10597         * ch-lex.l (skip_to_end_of_directive):  New function.
10598         * ch-lex.l (compiler_directive: USE_SEIZE_FILE):  Make sure
10599         we skip to the end of the directive *before* we switch
10600         input files.
10601         * ch-lex.l (setup_seizefile_read):  Prevent reading the
10602         same seizefile twice (otherwise likely with new grant/seize).
10603         * ch-lex.l:  Recognize SPEC.  Misc cleanups.
10605         * ch-parse.y:  Fixed foreward references of types.
10606         Removed the unknown_type_node crock.
10607         * ch-decl.c:  Remove all uses of unknown_type_node.
10608         Check for TYPE_SIZE zero instead.
10609         * ch-decl.c (fixup_unknown_type):  Make sure new mode
10610         gets copied into old mode.  Merge their variant chains.
10611         * c-decl.c (lookup_name_current_level):  Make non-static.
10612         * ch-decl.c (lookup_name_current_level):  No longer needed.
10614         * ch-parse.y (call):  Allow an implicitly defined function
10615         name following the CALL keyword.
10616         * ch-tree.h (struct lang_identifier): Add implicit_decl,
10617         and make sure order of fields matches c-tree.h.
10619         * ch-actions.c (lang_init, build_allocate_memory_call,
10620         build_allocate_globals_memory_call):  Fix names (add initial '_')
10621         and prototypes of _allocate_[global_]memory (2nd param is ref).
10622         Use build_chill_function_call, not build_function_call,
10623         so the reference parameter gets handled.
10624         * ch-actions.c. (lang_init):  Make sure boolean_{true,false}_node
10625         have boolean_type_node as their types.
10626         * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10627         work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10629         * ch-except.c:  Make sure an end_label is generated,
10630         and jump to it if there is no exception.
10632         * ch-convert.c (convert_to_reference):  Strip off NOP_EXPR casts.
10633         * expr.c (expand_expr):  Handle NOP_EXPR as Chill-style casts.
10634         (Need cleaning up and FSF installation!)
10635         * ch-parse.y:  If taking the address of a cast, move the
10636         ADDR_EXPR inside the NOP_EXPR.
10638         * ch-typeck.c (my_build_array_ref):  Simplified, more suitable
10639         versions of build_array_ref from c-decl.c.  (E.g. don't barf
10640         if index type is char or bool.)
10641         * ch-typeck.c (build_chill_array_ref):  Use my_build_array-ref.
10643         * ch-typech.c (build_chill_bin_type):  New function.
10644         Support BIN(N) range type specification.
10645         * ch-parse.y (mode2), ch-lex.l:  Recognize BIN(N).
10647         * ch-tree.h (CH_SIMILAR):  Redefine in terms of chill_similar.
10648         * ch-typeck.c (chill_similar):  New function.  Recognize that
10649         that range types are similar to their parent types.
10651         * ch-tree.h:  Declare flag_local_loop_counter.
10652         * ch-loop.c:  Whether the loop variable is local to the loop
10653         in now controlled by flag_local_loop_counter, instead of
10654         #ifdef'd on CREATE_SCOPE.
10655         * ch-actions.c (lang_decode_option):  Recognize flags
10656         "-f[no-]local-loop-counter".
10657         * toplev.c (lang_options):  Add Chill flags -f[no-]local-loop-counter.
10659         * varasm.c (make_function_rtl):  Due to problems with forward
10660         references, don't rename nested functions in Chill.  (Kudge!)
10662 Sun Mar 28 10:12:45 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
10664         * ch-lex.l (push_back, readstring): Fix prototypes.
10666 Fri Mar 26 18:32:15 1993  Bill Cox  (bill@rtl.cygnus.com)
10668         * ch-parse.y: Put %type directives back into alpha order.
10669           (variant_alternative): Simplify error_mark test.
10670           (variantfields, varianthack): Add error_mark checks.
10672 Fri Mar 26 13:36:23 1993  Bill Cox  (bill@rtl.cygnus.com)
10674         * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10675         * ch-parse.y (get_type_of): Add function to deal with possible fwd
10676           declared type name.  Call it from lotsa places.  Add lotsa checks
10677           for error_mark_node.  Standardize indentations.
10679 Thu Mar 25 15:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
10681         * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10682           for array assignments.
10683         * ch-parse.y (action): Add recognition for allocate_memory and
10684           allocate_global_memory system calls.
10685           (mode2): Remove ill-conceived error check that broke REFs to
10686           as-yet-undeclared types.  Check for IDENTIFIER_NODE, lookup its
10687           DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10688           (variantfields, varianthack): Clean up.
10689           (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10690           there, pass TREE_TYPE of decl to grok_fixedfields.
10691           (labellist): Explicitly assign error_mark_node to signal error.
10692         * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10693           rather than seg faulting.
10695 Thu Mar 25 10:35:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10697         * ch-actions.c (lang_init): build_function_type for allocate_memory
10698           and allocate_global_memory runtime routines.  Move discrete_type_p
10699           into ch-typeck.c.
10700         * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10701           in build_chill_cast.
10703 Wed Mar 24 16:25:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
10705         * ch-grant.c:  Don't grant previously seized names.
10707 Tue Mar 23 15:25:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10709         * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10710         * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10711           avoid abort.
10713 Tue Mar 23 09:03:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10715         * ch-actions.c (build_char_array_expr): Just build a type for the
10716           result of a CONCAT_EXPR, and pass the tree back.
10717           chill_expand_array_assignment can do a better job of
10718           code-generation.
10719         * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10720           code.
10722 Mon Mar 22 12:42:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
10724         * ch-except.c (start_handler_array):  Make sure the handler
10725         array and its type get on the permanent obstack.
10726         * ch-grant.c (write_grant_file):  Don't write the _INIT=name
10727         specifier:  It isn't needed, and loses (because of funny
10728         characters in the chill_initializer_name).
10729         * ch-decl.c (push_synmode):  Set TYPE_NAME(mode) = syndecl.
10730         * ch-lang.c (finish_chill_enum):  Don't allocate a dummy
10731         TYPE_DECL for the enum.  I don't think it is needed (?),
10732         and removing it is needed for the change above.
10734         * ch-grant.c (grant_array_type, decode_mode):  Remove unused
10735         'decl' parameter.
10736         * ch-grant.ch (raw_decode_mode):  New function, based on old
10737         decode_mode.
10738         * ch-grant.c (decode_mode);  This is now just a wrapper around
10739         raw-decode_mode - but does not call raw_decode_mode if the
10740         type is named and has already been emitted.
10742 Fri Mar 19 11:55:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10744         * ch-actions.c: Add prototypes, remove unused variables.  Attempt to
10745           continue generating grant file in presence of error (Wilfried's
10746           patch to lang_finish).
10747         * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10748           after each statement.  Move convert call into
10749           chill_expand_assignment from ch-parse.y.
10750         * ch-grant.c: Generally re-order, clean up.  Include Per's decode_mode
10751           simplification.  Include commented-out hack in decode_mode to return
10752           type's name if type SEIZEd or already GRANTed in this file.
10753         * ch-lex.l: Add prototypes.
10754         * ch-parse.y (assignaction): Move convert call into
10755           chill_expand_assignment.
10757 Thu Mar 18 16:04:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10759         * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10760           comparison.
10761         * ch-decl.c: Add prototypes, correct error message spelling, remove
10762           unused variables.
10763         * ch-lang.c (build_chill_range_type): Add error message.  Add prototypes.
10764           Correct comment spelling.
10765         * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10766           assignment in conditional.
10767         * ch-loop.c: Add prototypes, remove unused variable.
10768         * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10769           parameter is seen, don't count it in structured_variable_list.  Pre-
10770           vents seg fault when only WITH operand is invalid.
10771         * ch-parse.y (label_spec): Correct assignment within IF expression which
10772           was intended to be equality test.  Remove unused variables.
10773         * ch-tree.h: Add prototype.  Remove unused EXCP_CODE enumeration, and
10774           prototyping editorial comments.
10775         * ch-typeck.c: Disable generation of code to validate array index for
10776           now.  Should be done as a call-back from more generic array_ref code.
10777           Clean up parameter checking.  Remove unused variables.
10779 Fri Mar 12 11:57:32 1993  Bill Cox  (bill@rtl.cygnus.com)
10781         * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10782         * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10783           build_char_array_expr.
10784         * ch-convert.c (convert): protect against seg fault, if type == NULL.
10785         * ch-expr.c (chill_expand_expr): Add FIXME comment.
10787 Fri Mar 12 11:04:02 1993  Bill Cox  (bill@rtl.cygnus.com)
10789         * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10790           Thanks very much to dje!
10792 Thu Mar 11 21:06:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10794         * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10795           Move CONCAT_EXPR handling from binary_op to array_expr.  Add
10796           handling for relationals between varying arrays to array_expr.
10798 Thu Mar 11 19:20:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10800         * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10801           *BIT* length of powersets and arrays of BOOLs.
10802           (invalid_left_operand, invalid_right_operand): Disallow relationals
10803           with arrays of BOOL as operands.
10804         * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10805           comparing pointers.
10806         * ch-decl.c (push_newmode): Re-indent.
10807         * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10808           and arrays of BOOLs.
10809         * ch-lang.c (build_chill_array_type): Add parameter error checking.
10811 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10813         * expr.c (store_constructor): Handle set construction.
10814         * varasm.c (output_constant): Prevent seg fault - terminate case
10815           alternative with a 'break'.
10817 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10819         * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10820         * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10821         * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10823 Mon Mar  8 13:16:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10825         * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10826           be folded.
10828 Mon Mar  8 10:13:57 1993  Bill Cox  (bill@rtl.cygnus.com)
10830         * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10831           Correct some non-standard indentations.
10833 Fri Mar  5 14:58:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10835         * ch-actions.c: Fix up comment.
10837 Thu Mar  4 18:05:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10839         * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10840           negating the result of calling __eqpowerset.  New function
10841           discrete_type_p().
10842         * ch-grant.c (get_tag_value): Don't seg fault referring to an
10843           anonymous enumeration's name.
10844         * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10845         * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10846         * ch-parse.y (label_spec): redefine variant structure label_spec
10847           to agree with the Z.200 spec.
10848                      (locdec): Error if set/bitstring initialized with a tuple.
10849                      (case_label, arrayindex): Use new discrete_type_p
10850                      function.
10851         * ch-process.c: Fix typo.
10853 Wed Mar  3 14:30:53 1993  Per Bothner  (bothner@rtl.cygnus.com)
10855         * ch-lang.c, ch-tree.h: Rename build_range_type to
10856         build_chill_range_type.  Call new build_range_type() in tree.c.
10857         * ch-parse.y:  Call build_chill_range_type as approriate.
10858         * ch-typeck.c (build_chill_cast);  Clean up.
10860 Wed Mar  3 09:36:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10862         * ch-parse.y: Define CONTINUE_EVENT token.
10863         * ch-parse.y (mode2): Give error message for SYN modea = modeb
10864           where modeb is undefined.
10866 Tue Mar  2 20:16:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10868         * ch-actions.c: Add builtin function descriptions for memset and
10869           bitsetpowerset.  Allow build_chill_num expression to exceed 16 bits,
10870           but not 32.
10871         * ch-tree.h: Correct chill_handle_case_default prototype.
10872         * ch-actions.h, ch-lex.h: Add prototypes.
10873         * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10875 Thu Feb 25 17:35:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10877         * c-decl.c (init_decl_processing): Disable creation of C-specific
10878           builtin functions.  They pollute the CHILL name space.
10879         * stor-layout.c (variable_size): Allow variable-size objects at file
10880           scope, for CHILL.
10882 Fri Feb 26 07:14:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10884         * c-decl.c (finsh_decl): Don't output non-constant storage size
10885           error for CHILL
10886         * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10887           call in build_chill_cause_exception.
10888         * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10889         * ch-loop.c (build_temporary_variable): New function
10890         * ch-process.c: Call build_temporary_variable, spell start_process
10891           correctly.
10892         * ch-tree.h: Extern for build_temporary_variable
10894 Thu Feb 25 12:09:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10896         * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10897           builtins - they pollute the CHILL name space.
10898         * ch-typeck.c (valid_array_index): Correct upper-bound check.
10899         * expr.c (expand_expr): Use actual library name for __inpowerset
10900           builtin.
10901         * stor-layout.c (variable_size): Disable complaint about variable-
10902           size type or decl at file scope.  Perhaps later this s.b. a warning.
10903         * varasm.c (emit_set_data): Add function.
10904           (output_constant): Call new emit_set_data function for VAR_DECLs,
10905           in addition to CONSTRUCTORs.
10907 Thu Feb 25 11:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
10909         * ch-actions.c: Change all builtin functions names to their
10910           actual library names.  Change references to boolean_type_node
10911           to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10912           convention.
10913           build_set_expr: Remove length parameter, call powersetlen() instead.
10914             remove handling of CHAR arrays - they're handled in build_char_array_expr.
10915             Call __eqpowerset to test for equality - we can't use a byte-length -
10916             need bitcount instead.
10917           build_chill_compound_expr, internal_build_compound_expr: Copy from C
10918             version that does stuff we don't want.
10919           build_binary_op: Check for in_size_in_bytes return < 0, indicating
10920             size is changeable at run time.  Build two memcpy calls to implement
10921             string concatenation.
10922           powersetlen: Add function.
10923           build_chill_card: Call powersetlen.
10924           build_chill_max_min:  Common code for powerset max/min.
10925           build_chill_length: Move VARYING array handling before regular char
10926             array handling.
10927         * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10928           the VARYING status of the target to do this correctly.  Use powersetlen
10929           for the powerset operations, not a byte length.
10930         * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10931           for each CHILL loop, as Z.200 requires.  Add powerset and error flags
10932           to loop structure.  Evaluate user's powerset expression into a temp,
10933           scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10934           for powerset loop.  Only do loop-end assignments if NOT a powerset
10935           loop, which has much less overhead now.
10936         * ch-tree.h: Add prototype for powersetlen.
10938 Fri Feb 19 08:40:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10940         * ch-lex.l (convert_number): Evaluate number and pass it as
10941           HOST_WIDE_INT.
10943 Fri Feb 19 08:56:44 1993  Michael Tiemann  (fs_tie at rcsw18)
10945         * ch-typeck.c (build_chill_array_ref): Handle newmodes
10946         correctly.
10948         * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10949         we are going to return 0.
10951         * ch-convert.c (convert_to_reference): Don't use
10952         TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10953         (which must match the type of the expr).
10955         * ch-grant.c (chill_seize): Don't let a type be copied just
10956         because we are seizing it.
10958         * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10959         TYPE_MAX_VALUE to integer type.
10961         * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10962         tree type of the bounds.
10963         (build_loop_top): type of GE_EXPR and LE_EXPR is
10964         boolean_type_node, not lp->iter_type.
10965         (for_location): Ditto.
10967         * ch-action.c (build_chill_lower,build_chill_upper): Handle
10968         ENUMERAL_TYPE.  Also, handle different kinds of arguments more
10969         cleanly.
10971         * ch-parse.y (iteration): Convert start_exp and end_exp to
10972         match the type of modename.
10974         * ch-grant.c (chill_seize_aggr): Search also through anonymous
10975         types.
10977         * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10978         already been seized, and if so, do nothing.
10980         * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10981         comes out error_mark_node, set ERRONEOUS.
10983         * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10984         don't use it.
10986         * ch-action.c (chill_comptypes): Test for structural
10987         equivalence of enums.
10989         * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10990         TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10992         * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10993         ARRAY_TYPE, seize the domain type if its a set.
10995 Thu Feb 18 20:02:15 1993  Per Bothner  (bothner@rtl.cygnus.com)
10997         * c-typeck.c (process_init_constructor):  Emit error if some
10998         array elements are not initialized.
10999         * c-typeck.c (process_init_constructor):  Call digest_init()
11000         recursively to expand default_value.
11001         * ch-expr.c (chill_expand_array_assignment):  Simplify, and
11002         handle the case that the lhs has dynamic size (e.g. a slice).
11003         * ch-parse.y (elementlist):  Handle the case that tupleelement
11004         generates more than one TREE_LIST node.
11006 Thu Feb 18 12:40:56 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
11008         * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
11009         * c-typeck.c (lookup_field): add function, calls.
11010         * ch-actions.c (build_chill_binary_op): figure return_type differently.
11011         * ch-convert.c (convert_to_reference): return error_mark_node,
11012           STRIP_NOPS.  (convert): Braces for readability.
11013         * ch-decl.c (build_chill_function_type): accept typespec as parm.
11014           Handle exceptions.
11015           (grok_chill_variantdefs): call comptypes, not chill_comptypes.
11016         * ch-expr.c (chill_expand_assignment): handle references.
11017         * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
11018         * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
11019           call convert.  Generally handle reference types.
11022 Thu Feb 18 09:30:11 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
11024         * ch-actions.c (chill_comptypes): Figure out which newmode or
11025           synmode decls look most canonical.
11026         * ch-convert.c (convert): handle location conversions of records,
11027           unions and arrays.
11028         * ch-decl.c (fixup_unknown_type): changes for variant records
11029         * ch-parse.y (tupleelement): avoid confusing digest_init.
11030         * ch-typeck.c (build_chill_array_ref): give element ref the
11031           type of the ELEMENT, not the array (Bill Cox).
11033 Wed Feb 17 11:52:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11035         * ch-parse.y: change push_newmode and push_synmode interfaces.
11036         * ch-actions.c (build_chill_binary_op): convert operands.
11038 Wed Feb 17 10:54:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11040         * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
11041           handle reference types.
11042         * ch-decl.c (push_newmode, push_synmode): rewritten
11043         * ch-process.c (make_process_struct): new push_newmode interface.
11044         * ch-typeck.c (build_chill_cast): change interface, error checks.
11046 Wed Feb 17 09:50:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11048         * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
11049           code.
11050         * ch-typeck.c (valid_array_index): new function.
11052 Tue Feb 16 22:36:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11054         * ch-convert.c (convert):  Slightly more correct conversion
11055         for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
11056         * ch-expr.c (chill_expand_array_assignment):  Invoke
11057         __builtin_memcpy using build_function_call, not directly at
11058         the rtx level (which doesn't work).
11059         * ch-typeck.c (build_chill_slice):  First attempt at slices.
11060         * ch-tree.h,  ch-typeck.c (build_chill_slice_with_range,
11061         build_chill_slice_with_length):  New functions.
11062         * ch-parse.y:  Use new slice-building functions.
11063         * expr.c (get_inner_reference):  Subtract low bound of
11064         array when doing an ARRAY_REF.
11066 Tue Feb 16 14:17:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11068         * ch-actions.c (build_chill_function_call): better comments.
11069         * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
11070         * ch-parse.y: indentation cleanup
11072 Tue Feb 16 12:03:53 1993  Michael Tiemann  (tiemann@cygnus.com)
11074         * ch-decl.c (grok_chill_variantdefs): Really implement variant
11075         records for CHILL.
11076         * ch-grant.c (get_tag_value): New function.
11077         * ch-grant.c (decode_mode): Grant variant records.
11079         * ch-grant.c (chill_seize): If we seize a set, seize the set
11080         values.
11082         * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
11083         constructs.
11085         * ch-parse.y (EMPTY): New pseudo-token to disambiguate
11086         variant_alternatives.
11087         (current_fieldlist): New variable to help processing tag
11088         declarations in variant records.
11089         (fields): Renamed from structdef.
11090         (field): Renamed from fields.
11091         (varianthack): New non-terminal to handle parsing ambiguity
11092         for variant records.
11093         (optlabellist): Changed to preserve CONST_DECLs when they are
11094         parsed.
11096         * ch-tree.h (TYPE_TAGFIELD): New macro.
11097         (TYPE_TAG_VALUES): Ditto.
11099 Mon Feb 15 00:49:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11101         * ch-grant.c (decode_mode):  Fix output for powerset modes.
11102         * ch-grant.c (decode_constant):  Support grant output of
11103         powerset literals.
11104         * ch-actions.c (build_chill_binary_op):  IN_EXPR fix.
11105         * expr.c (expand_expr):  Add Chill-specific kludge for
11106         BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
11107         * ch-expr.c (chill_expand_assignment):  Remove no-longer-needed
11108         special-case support for a BIT_FIELD_REF in right-hand-side.
11109         * ch-lang.c (finish_chill_enum):  Patch up enum elements to
11110         have the correct type (instead of integers, as in C).
11112         * ch-lex.l, ch-parse.y:  Add disgusting hack (involving
11113         context-dependent look-ahead) so we can parse exception
11114         handlers correctly.
11115         * c-typeck.c (digest_init):  Set output type for SET_TYPEs.
11116         * varasm.c (unpack_set_constructor):  Add support for
11117         (power-)set ranges (i.e. low_element:high_element).
11119 Sun Feb 14 13:37:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11121         * ch-inout.c: delete unused #include
11122         * ch-typeck.c (build_chill_slice): turn abort call into error msg.
11124 Sat Feb 13 13:13:31 1993  Bill Cox  (bill@rtl.cygnus.com)
11126         * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
11128 Sat Feb 13 12:17:41 1993  Bill Cox  (bill@rtl.cygnus.com)
11130         * Makefile.in: add lots of header files to the CHILL dependencies
11132 Fri Feb 12 15:48:27 1993  Per Bothner  (bothner@rtl.cygnus.com)
11134         * ch-actions.c (build_chill_function_call):  Don't return
11135         error_mark_node on empty parameter-list.
11137 Fri Feb 12 12:54:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11139         * ch-actions.c (build_chill_function_call): fix start_decl parms.
11140         * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
11142 Fri Feb 12 10:32:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11144         * ch-actions.c (build_chill_function_call): create temps, do
11145           assignments to handle INOUT and OUT parameters.
11146         * ch-decl.c (build_chill_function_type): better parameter name.
11147         * ch-parse.y (action): keep rules in alpha order.
11148           (pmodearg): turn INOUT, OUT parameter types into reference types.
11149         * ch-typeck.c (build_tree_slice): indentation change.
11151 Thu Feb 11 23:16:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11153         * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
11154         take a list of elements which are in the set.  This corresponds
11155         better to the tuple input form in Chill (and Pascal).
11156         * varasm.c (unpack_set_constructor, pack_set_constructor):
11157         New functions, to expand SET_TYPE CONSTRUCTORs.
11158         * varasm.c (output_constructor):  Use pack_set_constructor
11159         to assemble a SET_TYPE constant from a CONSTRUCTOR.
11161         * ch-grant.c (decode_constant):  Better grant for strings,
11162         enumeral, and bitstring constants.
11163         * ch-grant.c:  Fixes in seize to avoid duplicates, and emit
11164         things in the correct order.
11165         * c-typeck.c (chill_initializer_constant_valid_p):  Kludge
11166         needed to export a static function.
11167         * ch-typeck.c (convert):  Avoid needlessly (and lossingly) calling
11168         chill_expand_tuple to convert fix string to varying.
11169         * ch-actions.c (build_chill_binary_op):  Promote short
11170         integer operands if needed (otherwise emit routines barf).
11171         * ch-tree.h (SET_WORD_SIZE):  New macro.
11172         * ch-parse.y:  Fix syntax for RECEIVE CASE.
11173         * ch-parse.y (location):  If IDENTIFIER is a CONST_DECL
11174         return its value instead.
11176 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11178         * ch-actions.c (build_chill_max, build_chill_min): clean up
11179         * ch-typeck.c (chill_expand_tuple): correct set initialization from
11180           an enumeration tuple.  Add sort_constructor function.
11182 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11184         * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
11185           BOOLEAN_TYPE w/out an abort.
11187 Wed Feb 10 14:59:53 1993  Bill Cox  (bill@rtl.cygnus.com)
11189         * ch-actions.c: change most integer_type_node references to
11190           chill_integer_type_node.  Rewrite _max and _min routines,
11191           redefine the signatures for those runtime routines.  Move
11192           empty-set check into runtime.
11193         * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
11194           most integer_type_node references to chill_integer_type_node.
11196 Tue Feb  9 16:00:05 1993  Per Bothner  (bothner@rtl.cygnus.com)
11198         * ch-except.c:  New file.  Stuff for exception handling.
11199         * ch-parse.y:  Add working exception handling support.
11200         * ch-lex.l, ch-parse.y:  Prefer standard type terminology
11201         (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
11202         * ch-grant.c:  Fix various problems related to granting
11203         types such as bitsets.
11204         * ch-tree.c (build_bitstring_type):  Set TYPE_MIN_VALUE
11205         to distinguish bitstrings from powersets (in the same way
11206         we distinguish char strings from char arrays).
11207         * ch-tree.h:  New macro CH_BOOL_TYPE_P.
11208         * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
11209         Undo kludge where integer_type_node was hardwired to 16 bits.
11210         Make integer_type_node etc have the same size as in cc1.
11211         New types chill_integer_type_node and chill_unsigned_type_node
11212         that correspond to the Chill source types INT and UINT.
11213         For now, these match the C 'short' types, but that should
11214         become a configuration option later,
11216 Tue Feb  9 11:41:25 1993  Bill Cox  (bill@rtl.cygnus.com)
11218         * ch-actions.c (build_chill_unary_op): allow NOT of a set.
11220 Tue Feb  9 08:27:18 1993  Bill Cox  (bill@rtl.cygnus.com)
11222         * ch-actions.c (build_chill_function_call): add test for
11223           too many/few actual parameters (and avoid seg fault).
11224         * ch-decl.c (do_decls): code cleanup for readability.
11225         * ch-loop.c (begin_chill_loop, end_chill_loop): remove
11226           emit_nop() calls - they now (since exceptions) cause seg faults.
11227           Make derogation on poor CHILL compiler non-specific.
11228         * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
11229         * ch-tree.h: remove prototypes added to c-tree.h.
11230         * ch-typeck.c (build_chill_array_ref): correct getting domain
11231           subtree for a PARM_DECL.  Subscripting a SET_TYPE is turned into
11232           an IN_EXPR.
11234 Sun Feb  7 18:20:49 1993  Bill Cox  (bill@rtl.cygnus.com)
11236         * ch-tree.def: add a new tree type - just for varying array
11237           references.  We were using ARRAY_REF, but the underlying C
11238           code also generates that one.
11239         * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
11241 Sun Feb  7 17:33:17 1993  Bill Cox  (bill@rtl.cygnus.com)
11243         * ch-convert.c: test given type against type of expr before
11244           calling chill_expand_tuple.  We were getting lots of spurious
11245           calls...
11247 Fri Feb  5 15:24:01 1993  Per Bothner  (bothner@rtl.cygnus.com)
11249         * cccp.c:  Merge in various Chill-specific changes.
11250         * gcc.c (default_compilers array):  Pass -lang-chill
11251         to cpp, not -lang-ch.
11253 Fri Jan 29 17:18:22 1993  Per Bothner  (bothner@rtl.cygnus.com)
11255         * Makefile.in (install-libchill, install-librmt):  Removed.
11256         * ch-actions.c (build_chill_exception_decl):  Change decl
11257         to initialized char array, rather than uninitialized common.
11258         (Simplifies extracting string name of exception.)
11259         * ch-actions.c:  Adjust interface to cause_exception accordingly.
11260         * ch-typeck.c (build_chill_array_ref):  Cause rangefail if
11261         index > limit, not >= limit.
11263         * ch-actions.c (build_chill_function_call):  Rename misleading
11264         formal parameter.
11265         * ch-decl.c (do_decls):  Allow (again) general initializer exprs.
11266         * ch-parse.y (call):  Test for function call needs to test for
11267         FUNCTION_TYPE, not FUNCTION_DECL.
11268         nreverse arg list to build_chill_array_ref.
11269         * ch-typeck.c (build_chill_array_ref):  Do recursive call at end
11270         and only if multiple indexes.
11271         * ch-typeck.c:  Cleanups.
11273 Fri Jan 29 11:05:58 1993  Bill Cox  (bill@rtl.cygnus.com)
11275         * ch-decl.c (do_decls): handle set initializations better, more to do.
11276         * ch-loop.c (begin_for_range): correct interface to expand_start_cond
11277           and build_binary_op.
11278         * ch-tree.h: lots more prototypes
11279         * ch-typeck.c (build_array_from_set): added function.
11280         * ch-typeck.c (chill_expand_tuple): handle set initializations better.
11282 Thu Jan 28 17:41:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
11284         * ch-grant.c (set_default_grant_file):  Change default.
11285         Normally, grant file should end up in cwd.
11286         * ch-lang.c (build_chill_struct_type):  Call pushtag,
11287         for the sake of debugging.
11288         * ch-lex.l:  Improve comment parsing.
11289         * ch-lex.l (readstring):  Some improvements.
11290         Initial support for control sequences in string literals.a
11292 Thu Jan 28 16:16:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11294         * ch-convert.c (convert): correct fixed->varying conversion.
11295         * ch-parse.y (mode2): delete unesthetic newline.
11297 Thu Jan 28 10:32:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11299         * ch-actions.c: delete maybe_array_ref()
11300         * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
11301           calling convert().
11302         * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
11303           supervision actions & builtins
11304         * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
11305           smaller actions directly (maybe_array_ref() used to call them).
11306         * ch-tree.h: add build_chill_function_call, build_chill_slice
11307         * ch-typeck.c: add build_chill_slice()
11309 Thu Jan 28 08:44:28 1993  Bill Cox  (bill@rtl.cygnus.com)
11311         * ch-tree.h: bring up to date with ch-actions.c changes.
11313 Wed Jan 27 23:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11315         * ch-expr.c (chill_expand_assignment): handle an RHS varying array
11316           reference.
11318 Wed Jan 27 22:28:36 1993  Per Bothner  (bothner@rtl.cygnus.com)
11320         * ch-grant.c (decode_constant):  Add REAL_TYPE support.
11321         * ch-actions.c (build_chill_exception_decl):  New function.
11322         * ch-actions (build_chill_cause_exception, cond_exceptions):
11323         Convert to take a (char*) parameter (the exception name).
11324         * ch-actions.c, ch-expr.c, ch-typeck.c:  Convert calls to
11325         cond_exception.
11326         * ch-parse.y (check_end_label):  New function, to check if
11327         and end label matches start label.
11328         * ch-parse.y:  Fix syntax to properly recognize and
11329         test optional end labels (using check_end_label).
11330         * ch-decl.c (finish_chill_function):  Simplify, since
11331         we assume check_end_label has already been called.
11332         * ch-parse.y:  Put in infrastructure for exception handling.
11334 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11336         * ch-actions.c: delete convert_chill_parameter, replace call with
11337           call to convert().
11338         * ch-convert.c (convert): combine chill_give_type_to_expr in here.
11339         * ch-decl.c: call convert rather than chill_give_type_to_expr.
11340         * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
11341         * ch-expr.c (chill_expand_assignment): just call convert.
11342         * ch-loop.c (end_chill_loop): expand the end of the loop for a
11343           do while.
11344         * ch-parse.y: call convert rather than chill_give_type_to_expr.
11345         * ch-process.c: checkpoint.
11346         * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
11348 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11350         * ch-grant.c (grant_array_type): new function to allow handling of
11351           VARYING array types.
11353 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11355         * ch-typeck.c (chill_give_type_to_expr): fix typo.  Reorder to
11356           avoid checking types on CONSTRUCTORs.  Correct typo.
11357         * ch-expr.c (expand_assignment_to_varying_array): use proper
11358           expansion function expand_expr_stmt.
11359         * ch-expr.c (expand_chill_assignment): only convert VARYING
11360           array refs or RHS.
11362 Wed Jan 27 15:32:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11364         * ch-actions.c (build_chill_length, build_chill_lower,
11365                         build_chill_upper): accept parameters, too.
11366         * ch-expr.c (chill_expand_assignment):  decipher ARRAY_REF on RHS.
11367         * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
11368           assign proper type to ARRAY_REF expression.
11370 Wed Jan 27 09:51:46 1993  Bill Cox  (bill@rtl.cygnus.com)
11372         * ch-actions.c (build_chill_binary_op): delete unused variable,
11373           get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
11374         * ch-actions.c (build_chill_repetition_op): handle differently-built
11375           declaration trees.
11376         * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
11377         * ch-typeck.c (chill_give_type_to_expr): give type to constructor
11379 Tue Jan 26 11:32:38 1993  Bill Cox  (bill@rtl.cygnus.com)
11381         * ch-parse.y (ifaction): re-add lost call to expand_end_code().
11382         * ch-parse.y (siezelist, grantlist): use 'name' rather than
11383           'checked_name'.  It makes no sense to check sieze/grant names
11384           for WITH expansion.
11385         * ch-expr.c (chill_expand_expr): delete unnecessary (and
11386           seg-fault-causing) code.
11387         * ch-expr.c (chill_expand_assignment): make test for varying array
11388           on the LHS more specific.
11389         * ch-actions.c (invalid_left_operand, invalid_right_operand): error
11390           for use of MOD, REM operators.
11391         * ch-actions.c (build_chill_repetition_op): error for bit-field
11392           initializers (which will get handled in the lexer).
11394 Mon Jan 25 17:26:47 1993  Bill Cox  (bill@rtl.cygnus.com)
11396         * ch-typeck.c (build_chill_array_ref),
11397         * ch-expr.c (chill_expand_expr, chill_expand_assignment):
11398           translate varying array ref into ARRAY_REF, defer processing
11399           until chill_expand_expr.  Update array's length field in
11400           new function expand_assignment_to_varying_array.
11402 Mon Jan 25 14:57:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11404         * ch-parse.y (mode2): eliminate old method to mark varying arrays.
11405         * ch-expr.c (expand_varying_length_assignment): repair scaling of
11406           RHS expression.
11408 Mon Jan 25 11:44:21 1993  Per Bothner  (bothner@cygnus.com)
11410         * ch-parse.y:  Allow character and bitstring literals
11411         in string repetition operator.
11413 Sat Jan 23 14:18:11 1993  Per Bothner  (bothner@cygnus.com)
11415         * ch-parse.y (primval):  Re-recognize '(' expr ')'.
11416         * ch-parse.y (name):  Remove call to check_identifier -
11417         this is not appropriate in certain contexts.
11418         * ch-parse.y (checked_name):  Same as <name>, but *with* the
11419         call to check_identifier.  Use where appropriate.
11420         * ch-parse.y (operand5):  Only allow string repetition of
11421         string literals, because otherwise you get a conflict.
11423 Thu Jan 21 16:32:39 1993  Bill Cox  (bill@rtl.cygnus.com)
11425         * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
11426           continue start_process development.
11428 Thu Jan 21 13:51:06 1993  Bill Cox  (bill@rtl.cygnus.com)
11430         * ch-decl.c (do_decl): fix handling of multi-char initializer.
11432 Thu Jan 21 13:14:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11434         * .cvsignore: add CHILL files to be ignored
11436 Thu Jan 21 07:38:57 1993  Bill Cox  (bill@cygnus.com)
11438         * ch-parse.y: rough draft of start_process handling.
11440 Wed Jan 20 17:11:05 1993  Bill Cox  (bill@rtl.cygnus.com)
11442         * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
11444 Wed Jan 20 16:48:13 1993  Bill Cox  (bill@rtl.cygnus.com)
11446         * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
11447           create new modules for I/O and process-related stuff.
11448         * ch-actions.c: move routines to new modules.
11449           call xmalloc, not malloc.
11450         * ch-lang.c (build_chill_struct_type): add parameter checking.
11451         * ch-lex.l (init_lex): remove redundant cast.
11453 Tue Jan 19 16:33:56 1993  Bill Cox  (bill@rtl.cygnus.com)
11455         * ch-parse.y (operand5): delete unnecessary argument to
11456           build_chill_unary_op.  Add rule for string repetition.
11457         * ch-parse.y (primval): delete string repetition attempt.
11458         * ch-parse.y (start_process): rough draft of action.
11459         * ch-actions.c (build_repetition_op): add it
11460         * ch-actions.c (build_chill_binary_op): handle constant arguments
11461           of CONCAT_EXPR, combine into a single string if possible.
11462         * ch-actions.c (invalid_left_operand, invalid_right_operand):
11463           allow single character arguments to CONCAT_EXPR.
11464         * ch-tree.h: add prototype for build_repetition_op
11466 Tue Jan 19 15:03:29 1993  Fred Fish  (fnf@cygnus.com)
11468         * dwarfout.c (output_type):  Add hack that matches the one in the
11469         chill front end to distinquish between true string types and
11470         arrays of char, since it uses ARRAY_TYPE for both, rather than
11471         trying to use the existing support for STRING_TYPE.
11473 Tue Jan 19 13:54:27 1993  Bill Cox  (bill@rtl.cygnus.com)
11475         * ch-tree.h: added prototypes for all non-static CHILL functions.
11476         * ch-actions.c (lang_init): declare builtin type for start_process
11477         * ch-actions.c (build_chill_binary_op): combine string literals when
11478           concatenated.
11479         * ch-actions.c (formpars2struct): added for later start_process
11480           implementation.
11481         * ch-actions.h: remove un-needed function declarations.
11482         * ch-decl.c: extern cleanup.
11483         * ch-expr.c (chill_expand_array_assignment): add missing first
11484           parameter to cond_exception call.
11485         * ch-lex.l: make build_chill_string non-static.
11487 Mon Jan 18 19:15:08 1993  Bill Cox  (bill@rtl.cygnus.com)
11489         * ch-decl.c (do_decls): get varying array length initialized.
11491 Mon Jan 18 09:51:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11493         * ch-expr.c (chill_expand_array_assignment): fix the copy length
11494         in the memcpy call (it was just 4 bytes always).   Simplify some
11495         code, also.
11497 Mon Jan 18 08:24:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11499         * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
11501 Mon Jan 18 08:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
11503         * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
11504         CHARS synonymous with CHAR, in the lexer.  Delete unnecessary
11505         'bools' non-terminal.
11506         * ch-parse.y (assignaction): add lhs version of length() function
11507         * ch-actions.c: add builtin_concat function, lots of support for
11508         CONCAT_EXPR.
11509         * ch-actions.c, ch-tree.h: make a function out of former
11510         macro CH_VARYING_TYPE_P
11511         * ch-expr.c: add expand_varying_length_assignment ().
11512         * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11513         * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11514         rather than build_rts_call, to eliminate a recursion problem.
11515         * ch-lang.c: eliminate 'sorry' about varying arrays.
11516         * ch-typeck.c (validate_varying_array_ref): re-enable constant
11517         index validation.
11519 Sun Jan 17 18:20:04 1993  Per Bothner  (bothner@cygnus.com)
11521         * ch-grant.c, ch-lex.l:  Major simplification of how
11522         seizes are done and how seizefiles are read.
11523         * ch-actions.h:  Remove declaration of check_seize().
11524         * ch-decl.c (do_decls):  Handle READONLY types.
11525         * ch-parse.y (mode2):  Allow REF to be followed by any mode.
11526         * ch-parse.y (mode2):  Allow literal expressions in string length.
11527         * ch-parse.y (tupleelement):  Allow elemenst to be untyped_expr.
11528         * ch-parse.y (seizestatement, etc):  Call chill_seize each
11529         time something is seized, rather than building a list first.
11531 Sat Jan 16 12:24:44 1993  Bill Cox  (bill@rtl.cygnus.com)
11533         * chill.gperf, ch-hash.h: add Wilfried's tokens
11534         * ch-lex.l: fold in Wilfried's changes.  Some tokens
11535         weren't getting recognized, and INSTANCE wasn't correctly
11536         reported to ch-parse.y as a PREDEF_MODEDCL.
11538 Thu Jan 14 15:02:39 1993  Per Bothner  (bothner@cygnus.com)
11540         * ch-tree.h (CH_CHARS_TYPE_P):  New macro.  Add comment
11541         explaining difference between char strings and char arrays.
11542         * ch-tree.h (CH_STRING_TYPE_P):  Add FIXME re bitstrings.
11543         * ch-tree.c (build_string_type):  Add comment.
11545 Wed Jan 13 15:19:15 1993  Per Bothner  (bothner@cygnus.com)
11547         * calls.c, expr.c, function.c, stmt.c, varasm.c:  Set
11548         MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11549         * expmed.c (store_bit_field, extract_field_field):  Undo
11550         yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11552         * ch-decl.c (do_decls):  Put back support for initializing.
11553         (Was accidentally removed in Jan 8 change.)
11555 Wed Jan 13 14:13:11 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
11557         * ch-lex.l (convert_bitstring): Correct typo in cast.
11559 Tue Jan 12 20:29:08 1993  Per Bothner  (bothner@cygnus.com)
11561         * ch-lex.l (convert_bitstring):  Change to pack bits
11562         within words, not bytes, and to use machine bit-order
11563         (not always little-endian).
11564         * ch-parse.y:  Allow BOOLS(n) as well as BITS(n).
11565         Use build_bitstring_type, not build_string_type.
11566         * expmed.c (store_bit_field, extract_field_field):  Remove
11567         "sanity test" that prevents use with SET_TYPE.
11568         * tree.c (build_bitstring_type, build_powerset_type,
11569         build_string_type):  Move (so far) Chill-specific functions to ...
11570         * ch-tree.c:  ... new file.
11571         * ch-tree.c (build_powerset_type, build_bitstring_type):  Re-write.
11572         * ch-typeck.c (build_chill_array_ref):  Handle bit strings better.
11573         * ch-typeck.c (chill_expand_tuple):  Kludge to handle SET_TYPE.
11574         * Makefile.in (CHILL_OBJS):  Add ch-tree.o.
11575         * ch-decl.c (do_decls):  Call expand_decl.
11576         * stor-layout.c (layout_type):  Handle SET_TYPE.
11577         * expr.c (expand_expr):  Add FIXMEs about IN_EXPR.
11578         * ch-actions.c (lang_init):  Add type and decl for new
11579         function __builtin_setbitinstring.
11580         * ch-expr.c (chill_expand_assignmment):  Special-case handling
11581         for BIT_FIELD_REF with non-constant bit position (which is
11582         not yet handled by expand_expr).
11583         * ch-convert.c (convert):  Handle SET_TYPE.
11585 Tue Jan 12 12:49:13 1993  Fred Fish  (fnf@cygnus.com)
11587         * chill:  If -B arg is given, use to find gcc.
11589 Fri Jan  8 20:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11591         * ch-decl.c: revert to avoid seg fault
11593 Fri Jan  8 14:20:42 1993  Bill Cox  (bill@rtl.cygnus.com)
11595         * ch-decl.c: fix storage into correct offset in varying array.
11596         * ch-actions.c: define sizetype for everyone, use it to build
11597         varying structure.
11598         * ch-parse.y: tiny cleanup.
11600 Wed Jan  6 13:25:33 1993  Bill Cox  (bill@cygnus.com)
11602         * modules: use gdb rather than naked-gdb, to get opcodes
11603         in chill definition.
11605 Wed Jan  6 09:48:35 1993  Bill Cox  (bill@cygnus.com)
11607         * ch-typeck.c: add code to handle references to elements of VARYING
11608         arrays.  Simplify chill_give_type_to_expr.  Add rough draft of run-
11609         time index checking for VARYING arrays (under #if 0).
11610         * ch-actions.c: new function cond_type_range_exception & calls.
11611         New function cond_range_exception, for more general range-checking.
11612         New function build_varying_struct, to do just that.  Use the macros
11613         for the special varying field names.
11614         * ch-tree.h: define macros for varying field names.
11615         * ch-expr.c: use macros for varying struct names.  Simplify
11616         chill_expand_array_assignment.
11617         * ch-parse.y: assure that build_varying_struct is called everywhere
11618         that it applies.  Add a line-number note before the body of a DO
11619         loop.
11620         * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11622 Tue Jan  5 17:26:14 1993  Bill Cox  (bill@cygnus.com)
11624         * c-decl.c: correct order of declaration of start_decl params,
11625         for readability.
11627 Tue Jan  5 15:59:36 1993  Per Bothner  (bothner@cygnus.com)
11629         * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11630         Move shared code into ...
11631         * ch-decl.c (start_chill_function): ... here.
11632         * ch-decl.c (start_chill_function):  Add missing call to
11633         expand_start_bindings.
11634         * ch-decl.c (finish_chill_function): Add missing call to
11635         expand_end_bindings.
11637 Tue Jan  5 01:00:47 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
11639         * Makefile.in: took out the rest of the runtime support
11641 Mon Jan  4 18:02:06 1993  Bill Cox  (bill@cygnus.com)
11643         * ch-expr.c: make chill_expand_array_assignment not static.
11645 Mon Jan  4 17:57:48 1993  Per Bothner  (bothner@cygnus.com)
11647         * ch-grant.c, ch-parse.y:  Remove all code for explicitly
11648         calling initializer functions.  This is not needed, since we
11649         use the same mechanism used for C++ static constructors.
11650         * ch-grant.c (chill_start_module_code):  Make sure the
11651         init_name starts with the magic string also used for C++
11652         initializers.  Also, don't embed the file name in the name,
11653         just use the module name.
11654         * ch-grant.c (chill_finish_module_code):  Now that the
11655         initializer name follows the standard 'collect' convention,
11656         don't need to call assembler_constructor_alias, but can
11657         use the standard assemble_constructor instead.
11658         * varasm.c (assemble_constructor_alias):  Remove no-longer-
11659         needed function.
11660         * ch-parse.y:  Move code that is common to the beginning of
11661         all functions to a new macro INIT_ACTION.
11662         Make sure INIT_ACTION is also done for callaction, fixing a bug.
11663         * ch-parse.y (INIT_ACTION):  Do chill_start_module_code()
11664         before emit_line_note(), not after.
11666 Mon Jan  4 11:43:12 1993  Bill Cox  (bill@cygnus.com)
11668         * ch-parse.y: restore requirement for :upper-bound in array decl.
11669         * ch-actions.c: enhance upper, lower, length functions for VARYING.
11671 Mon Jan  4 09:28:44 1993  Bill Cox  (bill@cygnus.com)
11673         * ch-actions.c: fix NOT of boolean expr.
11675 Mon Jan  4 08:42:57 1993  Bill Cox  (bill@cygnus.com)
11677         * ch-actions.c: provide range-checking function
11678         * ch-lex.l: better compiler-directive error messages,
11679         allow underscores in exponents
11680         * ch-loop.c: prevent passing NULL ptr to printf
11682 Sun Jan  3 11:57:13 1993  Bill Cox  (bill@cygnus.com)
11684         * ch-typeck.c: correct & enable array index range-checking
11686 Sun Jan  3 11:36:39 1993  Bill Cox  (bill@cygnus.com)
11688         * ch-parse.y: define IGNORED_DIRECTIVE
11689         * ch-typeck.c: subtract array's lower domain value, even if
11690         index expression is constant.
11692 Sat Jan  2 23:05:14 1993  Fred Fish  (fnf@cygnus.com)
11694         * ch-lex.l (convert_float):  Fix misspelling in error message.
11696 Sat Jan  2 16:02:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
11698         * Makefile.in:  Took out chill-runtime support.
11699         Chill run times are now in ../chillrt, not ./chillrt.p
11701 Sat Jan  2 15:04:13 1993  Bill Cox  (bill@cygnus.com)
11703         * ch-hash.h, chill.gperf: cleanup.  fewer keywords seen by ch-parse.y.
11705 Sat Jan  2 13:27:49 1993  Per Bothner  (bothner@rtl.cygnus.com)
11707         * ch-lex.l (check_newline):  Use the orginal versions (derived
11708         from the C code, not the simplified, special-case version).
11709         Also, fix that version of check_newline to not call yylex()
11710         recursively.
11711         * ch-lex.l (yy_input):  Call check_newline to handle
11712         newlines and check for # directives.
11713         * ch-lex.l (syntax):  Don't recognize #-directives; these
11714         are now handled by check_newline.
11715         * ch-actions.c (lang_init):  Call the modified version of
11716         check_newline().  Do this at the *after* we've initialized
11717         standard types, so this can be done while lineno is still 0.
11719 Sat Jan  2 10:57:20 1993  Bill Cox  (bill@cygnus.com)
11721         * ch-hash.h, chill.gperf: add remaining reserved words.
11723 Sat Jan  2 09:59:55 1993  Bill Cox  (bill@cygnus.com)
11725         * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11726         names for exceptions
11728 Fri Jan  1 12:30:31 1993  Fred Fish  (fnf@cygnus.com)
11730         * ch-tree.h (JOINER):  Define joiner character the same way
11731         C++ defines it.
11732         * ch-grant.c (chill_start_module_code):  Use JOINER character
11733         to implement name mangling for the initializer function name.
11734         Algorithm is designed to be simple, distinct from C++ mangled
11735         symbols, and easy to convert to demangled form.
11737 Thu Dec 31 10:30:51 1992  Bill Cox  (bill@rtl.cygnus.com)
11739         * ch-expr.c: make array assignments work with indirect refs.
11740         * ch-actions.c: prepare for array parameter handling.
11741         * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11743 Thu Dec 31 15:29:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
11745         * ch-lex.l (yy_input):  Re-write to return more than one
11746         character at a time (execpt when reading seize-files).
11747         Don't increment lineno until we start reading the next line.
11748         This fixes some off-by-one errors in lineno.
11750 Wed Dec 30 16:15:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
11752         * ch-convert.c:  Assume use of new common.c.
11753         * ch-convert.c (convert_to_reference, convert_from_reference):
11754         New routines, to handle loc-identity declared variables and
11755         LOC parameters (both of which are implemented as references).
11756         * ch-lang.c (convert_to_boolean, convert_to_char):  Move to
11757         ch-convert.c, where they would seem to belong.
11758         * ch-convert.c (convert):  New function, since we no longer
11759         link in c-convert.c.
11760         * ch-expr.c (chill_expand_assignment):  Handle by calling
11761         convert() instead of chill_comptypes().
11762         Also handle the LHS being a reference.
11763         * ch-parse.y:  Add a procedure call as an action.
11764         * ch-parse.y (locdec, optlocinit):  Move handling of
11765         loc-identity declarations from optlocinit to locdec
11766         - and add working semantics for it.
11767         * ch-parse.y (seizestatement, visibilty_stmt):  Simplify.
11768         * ch-parse.y (grantstatement etc):  Don't bother making list.
11769         * ch-lex.l:  #include <sys/types.h> before <sys/stat.h>.
11771 Wed Dec 30 16:06:55 1992  Bill Cox  (bill@rtl.cygnus.com)
11773         * ch-parse.y, ch-expr.c: add support for declaring & assigning
11774         VARYING arrays.
11775         * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11777 Tue Dec 29 15:28:48 1992  Bill Cox  (bill@cygnus.com)
11779         * ch-actions.c: implement expressions of arrays of char,
11780         ( concatenation, relationals ), correct type of code parameters
11781         * ch-expr.c: correct type of code parameters
11783 Tue Dec 29 11:16:19 1992  Bill Cox  (bill@cygnus.com)
11785         * ch-decl.c: cleanup.
11786         * ch-parse.y: put emit_line_note() calls in lotsa places,
11787         per Fred's request; be sure that statements get counted also.
11788         * ch-lex.l: standardize function headers.
11790 Tue Dec 29 10:41:56 1992  Fred Fish  (fnf@cygnus.com)
11792         * ch-decl.c (start_chill_function):  Always return 1, rather
11793         than a random value.
11794         * ch-lex.l (check_newline):  Add a version for chill that
11795         just snarfs the right value for main_input_filename out of
11796         the first line of the input file, without disturbing the
11797         lexer state or requiring it's assistance.
11798         * ch-actions.c (lang_init):  Call check_newline, like the
11799         other language frontends, to get main_input_filename set
11800         from first line of input file.
11802 Mon Dec 28 18:49:01 1992  Bill Cox  (bill@cygnus.com)
11804         * ch-parse.y: clean up conflicts.  The remaining one is
11805         harmless.
11807 Mon Dec 28 17:28:40 1992  Bill Cox  (bill@cygnus.com)
11809         * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11810         clean up some parser conflicts.
11812 Mon Dec 28 15:00:20 1992  Bill Cox  (bill@cygnus.com)
11814         * ch-parse.y, ch-lex.l:  add keywords and parsing for most of
11815         CHILL I/O
11817 Sat Dec 26 20:48:23 1992  Fred Fish  (fnf@cygnus.com)
11819         * chillrt/chillrt0.c:  Oops, SVR4 doesn't need leading '_'
11820         on build_exceptions.
11822 Sat Dec 26 11:00:36 1992  Fred Fish  (fnf@cygnus.com)
11824         * ch-grant.c (chill_finish_module_code):  Call
11825         assemble_constructor_alias rather than assemble_constructor.
11826         * varasm.c (assemble_constructor_alias):  New function,
11827         like assemble_constructor, but also handles the case where
11828         ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11829         being used.  Emits a symbol table alias name with the correct
11830         prefix for collect to find and add to the __CTOR_LIST__.
11831         * chillrt/chillrt0.c:  Build on previous hack that gets
11832         _build_exceptions into the __CTOR_LIST__, to make it work
11833         for both the non GNU-ld case and for the SVR4 case.
11835 Tue Dec 22 18:24:55 1992  Bill Cox  (bill@cygnus.com)
11837         * ch-loop.c: clean up location enumeration - one more
11838         pass to do.
11840 Tue Dec 22 16:31:48 1992  Bill Cox  (bill@cygnus.com)
11842         * ch-loop.c: Working version of location enumeration loop
11844 Tue Dec 22 14:42:14 1992  Bill Cox  (bill@cygnus.com)
11846         * ch-lex.l: readability cleanup
11848 Mon Dec 21 14:58:39 1992  Bill Cox  (bill@cygnus.com)
11850         * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11851         ch-loop.c: rough draft of location enumeration
11852         ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11853         ch-actions.c: finish making pred() and succ() work.
11855 Mon Dec 21 10:04:35 1992  Bill Cox  (bill@cygnus.com)
11857         * ch-actions.c: allow pred(char) and succ(char).
11859 Sun Dec 20 16:04:28 1992  Bill Cox  (bill@cygnus.com)
11861         * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11862         c-expr.c: make DO WITH work.
11864 Sun Dec 20 12:22:53 1992  Bill Cox  (bill@cygnus.com)
11866         * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11867         now work
11869 Sat Dec 19 14:20:23 1992  Per Bothner  (bothner@cygnus.com)
11871         * c-typeck.c (process_init_constructor):  Add warning if
11872         there is a duplicate default initializer element.
11873         * ch-typeck.c (chill_give_type_to_expr):  New function,
11874         to handle coercion of an expression to context-given type,
11875         Takes care of untyped tuples, and case expressions.
11876         * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11877         chill_expand_result), ch-parse.y <assignaction>:
11878         Use chill_give_type_to_expr().
11879         * ch-typeck.c (chill_handle_case_label):  New parameter list,
11880         to handle the (new) conventions for <case_label>, including
11881         default elements and ranges.
11882         * ch-parse.y <expanded_case_label>, ch-typeck.c
11883         (expand_case_expr):  Use new version of chill_handle_case_label.
11884         * ch-decl.c (push_syndecls):  Change parameters:  Instead of
11885         TREE_LIST representing a compete <synonym definition statement>,
11886         just pass the parts of a single <synonym definition> as 3
11887         different parameters.  Also, use chill_give_type_to_expr(),
11888         to handle untyped tuples in the RHS.
11889         * ch-parse.y <syndeclist, syndef>:  Don't bother trying to construct
11890         a tree - just call push_syndecls() on each <synonum_definition>
11891         as we see it.
11892         * ch-parse.y (exprlist_get_single):  Remove; no longer needed.
11893         * ch-parse.y:  Handle <tuple> without mode name diferently from
11894         <tuple> with mode name.  The latter is a <primval> that can be
11895         in most contexts, but if the <mode name> is missing, the <tuple>
11896         is only allowed in certain contexts.  Use the new non-terminal
11897         <untyped_expr> to indicate those contexts where untyped tuples
11898         (and case expressions) are valid because the expression gets a
11899         type from its context (such as the RHS of an assignment).
11900         Use chill_give_type_to_expr in those contexts.
11902 Sat Dec 19 14:01:26 1992  Bill Cox  (bill@cygnus.com)
11904         * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11906 Sat Dec 19 10:16:20 1992  Bill Cox  (bill@cygnus.com)
11908         * ch-parse.y: clean up warning messages from byacc.  bison
11909         still complains thrice.
11911 Fri Dec 18 12:33:29 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11913         * ch-actions.c (maybe_chill_comptypes): Delete unused
11914         function.
11915         (chill_comptypes): Add new parameter ERRSTR.  All callers
11916         changed.
11917         (build_chill_binary_op): Fix indentation to match GNU coding
11918         style.
11920 Fri Dec 18 08:18:13 1992  Bill Cox  (bill@rtl.cygnus.com)
11922         * ch-parse.y, ch-expr.c, ch-actions.c, expr.c:  major
11923         cleanup of expression and assignment handling.
11925 Thu Dec 17 10:16:32 1992  Bill Cox  (bill@cygnus.com)
11927         * ch-parse.y: standardize indentation after c-parse.y
11929 Wed Dec 16 15:22:12 1992  Per Bothner  (bothner@cygnus.com)
11931         * c-typeck.c (process_init_constructor):  Add support for
11932         a default initializer element.
11933         * ch-parse.y: Implement default elements for tuples
11934         (as in '(else):' and '(*):' ).
11936         * ch-parse.y:  Previous change to dis-ambiguate case-labels
11937         seems to have allowed getting rid of all of the expr_or_list hair.
11938         * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11939         initialization of multiple variables by a tuple" - the
11940         idea is bogus.
11942 Wed Dec 16 11:17:53 1992  Bill Cox  (bill@cygnus.com)
11944         * ch-parse.y: complete re-write of DO statement handling.
11945         now operational, except WITH is stubbed out.  Improved
11946         syntax error message.
11947         * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11948         * ch-expr.c: fixes to IN_EXPR handling.
11950 Tue Dec 15 17:15:13 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
11952         * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11953         * ch-lex.c: Likewise.
11955         * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11956         by flex to avoid compiler error.
11958 Tue Dec 15 08:41:08 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11960         * ch-decl.c (do_decls): Handle initialization of multiple
11961         variables by a tuple.
11963         * ch-decl.c (do_decls,start_chill_function): Make DECL public
11964         if we're doing a GRANT ALL at top level.
11966         * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11967         range expression.
11969         * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11970         BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11972 Mon Dec 14 14:58:32 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11974         * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11975         (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11977 Mon Dec 14 13:36:44 1992  Bill Cox  (bill@cygnus.com)
11979         * expr.c: install and test newer Pascal IN_EXPR code,
11980         but don't activate it - it's very verbose.
11982 Mon Dec 14 00:22:49 1992  Fred Fish  (fnf@cygnus.com)
11984         * Makefile.in (LANGUAGES):  Add chill.
11985         * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11986         New macros for chill native and cross installation names.
11987         * Makefile.in (COMPILERS):  Add cc1chill.
11988         * Makefile.in (CHILL_OBJS):  New macro, chill objects.
11989         * Makefile.in (CHILL_TREE_H):  New macro, chill headers.
11990         * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11991         sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11992         install-librmt):  New targets.
11993         * Makefile.in (install-native):  Add install-libchill,
11994         install-librmt.
11996 Sun Dec 13 15:21:06 1992  Bill Cox  (bill@cygnus.com)
11998         * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
12000 Sun Dec 13 14:07:32 1992  Bill Cox  (bill@cygnus.com)
12002         * ch-actions.c: fix unary operations, modulus ops,
12003         (discovered after extending regression tests).
12005 Sun Dec 13 12:16:32 1992  Bill Cox  (bill@cygnus.com)
12007         * resync with Michael and Wilfried
12009 Sun Dec 13 09:11:25 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12011         * ch-parse.y (output_constant): Fixed some whitespace
12012         problems.
12013         * ch-tree.h: Add declarations for new chill functions that
12014         have been implemented but not (yet) declared.
12016 Sat Dec 12 00:17:23 1992  Per Bothner  (bothner@cygnus.com)
12018         * c-typeck.c (process_init_constructor):  Warn about duplicate
12019         labels for labelled initializer elements.
12020         * ch-lex.l (various operator tokens, such as "+"):  Don't
12021         set yylval.code to a TREE_CODE; this is better done in parser.
12022         * ch-parse.y:  Some work with case labels and tuples.
12023         Get literal range as tuple (and case) labels working.
12024         Fix some problems introduced by recent grammar overhaul.
12026 Fri Dec 11 13:28:48 1992  Bill Cox  (bill@cygnus.com)
12028         * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
12029         got long, real expressions working.  We can also call a func-
12030         tion and use its return value.
12032 Thu Dec 10 14:45:17 1992  Per Bothner  (bothner@cygnus.com)
12034         * ch-parse.y:  Major change to remove or at least identify
12035         parser ambiguities.  One result:  We now allow actions that
12036         start with '(', as required by teh Blue Book.  This does break
12037         some things; look for FIXME for things that need work.
12038         * ch-typeck.c (chill_expand_case_expr):  We need an extra
12039         level of looping to (in the future) support <case label
12040         specification>s with more than one <case label list>.
12042 Thu Dec 10 09:21:41 1992  Bill Cox  (bill@cygnus.com)
12044         * ch-actions.c, ch-expr.c: Implement string assignments
12045         and relationals.
12047 Thu Dec 10 07:17:35 1992  Bill Cox  (bill@cygnus.com)
12049         * ch-decl.c, ch-typeck.c: rest of previous commit.
12051 Wed Dec  9 18:26:29 1992  Bill Cox  (bill@cygnus.com)
12053         * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
12054         regression test and fix bit arrays and set ops.
12056 Mon Dec  7 14:57:46 1992  Bill Cox  (bill@cygnus.com)
12058         * ch-actions.c: implement crude relationals between
12059         non-exotic operands, such as integers.
12061 Mon Dec  7 10:42:35 1992  Bill Cox  (bill@cygnus.com)
12063         * ch-actions.c: implement relational, logic operations
12064         on arrays of BOOLs.
12066 Mon Dec  7 08:55:20 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12068         * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
12069         indicate we are done with initialization.
12071         * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
12072         `grant all'.
12073         (start_chill_function): Ditto.
12075         * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
12076         (compiler_directive): Don't confuse compiler directives with
12077         equality comparison operators.
12079         * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
12081 Sun Dec  6 13:12:32 1992  Bill Cox  (bill@cygnus.com)
12083         * ch-actions.c: repair set inequality code.
12085 Sun Dec  6 11:15:59 1992  Bill Cox  (bill@cygnus.com)
12087         * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
12088         relational expressions, including (<, <=, =, /=, >, >=, IN).
12090 Fri Dec  4 13:54:58 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
12092         * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
12093         Pascal-required ones, since C++ no longer needs them.  When
12094         Chill's public, a comment can be added to the effect that
12095         SET_LE_EXPR is also used by Chill.
12097 Fri Dec  4 12:05:01 1992  Bill Cox  (bill@cygnus.com)
12099         * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
12101 Fri Dec  4 10:23:10 1992  Bill Cox  (bill@cygnus.com)
12102         * Get *.def and *.c in sync.
12104 Fri Dec  4 06:48:41 1992  Fred Fish  (fnf@cygnus.com)
12106         * ch-actions.c (lang_init):  Change types "long" and
12107         "ulong" from 16 bits to 32.
12108         * dwarfout.c (fundamental_type_code):  Use FT_signed_char
12109         for type "byte" and FT_unsigned_char for type "ubyte".
12111 Thu Dec  3 15:13:24 1992  Bill Cox  (bill@cygnus.com)
12112         * ch-actions.c, ch-tree.def, ch-parse.y:  preparation
12113         for powerset expressions.
12115 Tue Dec  2 17:02:30 1992  Bill Cox  (bill@cygnus.com)
12116         * ch-actions.c: sketch code for exceptions generated
12117         by builtin routines.
12119 Tue Dec  2 12:49:50 1992  Bill Cox  (bill@cygnus.com)
12120         * ch-actions.c, ch-parse.y: add support for lower()
12121         upper() builtin functions.
12123 Wed Dec  2 12:03:30 1992  Fred Fish  (fnf@cygnus.com)
12125         * Makefile.in (chillrt0.o, install-chillrt0):  Remove.
12126         * chill (library):  Remove chillrt0.o.
12127         * chillrt/Makefile:  Remove maintenance of chillrt0.o as a
12128         separate file.  Now gets put in libchill.a.
12130 Tue Dec  2 10:100:20 1992  Bill Cox  (bill@cygnus.com)
12132         * ch-parse.y, ch-actions.c: add support for num()
12133         builtin function.
12135 Wed Dec  2 09:52:06 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12137         * ch-decl.c (fixup_unknown_type): New function.
12138         (push_newmode,push_synmode): Call `fixup_unknown_type' when we
12139         see a declaration that uses `unknown_type_node'.  FIXME.
12141         * ch-grant.c (decode_constant): New function.
12142         (decode_decl): Call `decode_constant' for CONST_DECLs.
12144         * ch-lex.l (char action): Use ridpointers instead of
12145         lookup_name to get "char"'s declaration.
12147         * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
12148         when we need to build a TYPE_DECL.
12150 Tue Dec  2 09:44:05 1992  Bill Cox  (bill@cygnus.com)
12152         * ch-typeck.c: clean up a gcc warning with a forward
12153         declaration of build_string_type.
12155 Tue Dec  1 16:51:05 1992  Bill Cox  (bill@cygnus.com)
12157         * ch-actions.c: completely remove those builtin calls
12158         that are duplicated in c-decl.c
12160 Tue Dec  1 16:38:51 1992  Fred Fish  (fnf@cygnus.com)
12162         * ch-actions.c (lang_init):  Ifdef out initializations for
12163         __builtin_abs and __builtin_fabs, since they are duplicates of
12164         initializations in c-decl.c, and trigger spurious warnings.
12166 Tue Dec  1 16:35:18 1992  Bill Cox  (bill@cygnus.com)
12168         * ch-parse.y: make size() work with a typename argument.
12170 Tue Dec  1 16:15:56 1992  Bill Cox  (bill@cygnus.com)
12172         * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
12173         functions min, max, card.
12175 Tue Dec  1 12:35:56 1992  Bill Cox  (bill@cygnus.com)
12177         * ch-lex.l: fix char-type
12179 Tue Dec  1 11:10:56 1992  Bill Cox  (bill@cygnus.com)
12181         * ch-parse.y, ch-actions: added parsing and processing
12182         for upper, lower, and length built-ins.
12184 Tue Dec  1 09:40:49 1992  Fred Fish  (fnf@cygnus.com)
12186         * dwarf.h (LANG_CHILL):  Add as GNU extension.
12187         * dwarfout.c (output_compile_unit_die):  Test language_string and
12188         set LANG_CHILL if appropriate.
12189         * ch-parse.y (language_string):  New for chill.
12190         * chillrt:  Renamed directory chill to chillrt.
12191         * chill:  Renamed chillsh to chill.
12192         * Makefile.in:  Adjust for renamings.
12193         * chillrt/Makefile:  Adjust for directory renaming.
12195 Mon Nov 30 17:35:33 1992  Fred Fish  (fnf@cygnus.com)
12197         * chillsh:  New script frontend (ala g++), installed as "chill".
12198         Can't be called "chill.sh" because make tries to cat it into the
12199         "chill" directory.  Can't be called just "chill" cause that's
12200         already there as a directory.
12201         * Makefile.in:  Add rules to install chillsh as "chill".
12202         * chill/libchill.c:  Temporarily ifdef out stuff that wants
12203         to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
12204         which itself causes linkage to fail.
12206 Mon Nov 30 16:28:19 1992  Bill Cox  (bill@cygnus.com)
12208         * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
12209         conversion routines.
12210         * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
12211         Added production for SIZE(expr).
12212         * ch-actions.c: Add semantic routine chill_sizeof ().
12214 Mon Nov 30 16:20:40 1992  Per Bothner  (bothner@cygnus.com)
12216         * ch-lex.l, ch-parse.y:  Translate token PFEIL into English ARROW.
12217         * ch-parse.y (op6):  Remove handling of string repetition operator,
12218         until we can figure out a way to parse it correctly.
12219         * ch-parse.y (optmodename):  New non-terminal.
12220         * ch-parse.y (tuple):  Merge the two variants using optmodename.
12221         * ch-parse.y (location):  Add semantic actions for
12222         dereferencing operator ->.
12224 Mon Nov 30 08:01:29 1992  Bill Cox  (bill@cygnus.com)
12226         * ch-actions.c: removed compile warning, better code for abs.
12228         * ch-parse.y: add productions for builtin functions succ, pred,
12229         abs, and size.  Add %tokens also.  Sort %tokens alphabetically.
12231         * ch-lex.l: add parsing for builtin function names, such as abs,
12232         pred, succ, etc.  Put flex -a option into Makefile.in, so we can
12233         clean up the lexer soon.
12235 Tue Nov 24 14:18:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
12237         * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
12238         New functions, for code common to CASE actions and expressions.
12239         * chill.y:  Replace some code by calls to chill_handle_case_label
12240         and chill_handle_case_default.
12241         * ch-typeck.c (chill_expand_case_expr):  Add semantics.
12243         * tree.c:  Change doing_chill_thang from extern to common.
12245 Mon Nov 23 18:34:22 1992  Per Bothner  (bothner@rtl.cygnus.com)
12247         * ch-tree.def:  New CASE_EXPR type, for case expressions.
12248         * ch-expr.c (chill_expand_expr):  Hook for CASE_EXPR.
12249         * ch-typeck.c (chill_expand_case_expr):  New function.
12250         Placeholder to implement case expressions.
12251         * ch-typeck.c (chill_expand_result, chill_expand_return):
12252         Handle mode-unspecified tuples and case expressions in
12253         the context of RETURN and RESULT actions.
12254         * chill.y (assignaction):  Handle case expressions in the
12255         context of the RHS of an assignment action.
12256         * chill.y (caseaction): Remove spurious duplicate OF in grammar.
12257         * chill.y:  Handle labeled structure tuples.
12258         * chill.y:  New rules to parse CASE expressions.
12259         * tree.c (build_function_types):  Allow Chill functions
12260         to return arrays and functions.
12262 Wed Nov 18 13:50:28 1992  Per Bothner  (bothner@rtl.cygnus.com)
12264         * ch-typeck.c (chill_expand_tuple):  New function. Expand a
12265         tuple (constructor) given an expected (context) type.
12266         * chill.y:  Implement 'LHS := TUPLE' using expand_chill_tuple,
12267         using the mode of the LHS and the expected type of the TUPLE.
12268         * chill.y:  Implement initialization.
12269         * chill.y:  Fix some syntax bugs (forbidlist must be surrounded
12270         by parentheses), and remove or note ambiguities.
12271         * chill.y:  Started converting layout style to be like c-parse.in.
12272         * chill.y:  Implement IF expressions.
12273         * chill.y:  Added syntax rules for tuples.  Labelled and unlabelled
12274         array tuples should now work (in some contexts).
12275         * ch-actions.c:  Initialize doing_chill_thang to 1.
12276         * ch-decl.c (do_decls):  Set DECL_INITIAL if there is an
12277         initializer, to make pushdecl and finish_decl work.
12278         * c-decl.c (convert_for_assignment):  If Chill, don't convert
12279         function and arrays into pointers.  (Maybe functions should
12280         still be converted?)
12281         * c-typeck.c (grokdeclarator):  Allow functions in Chill
12282         to return arrays and functions.
12284 Mon Nov 16 15:40:47 1992  Per Bothner  (bothner@rtl.cygnus.com)
12286         * chill.y (exprlist_get_single):  New function, used when
12287         parsing tuples.
12288         * chill.y:  Re-did parsing of tuples to remove ambiguities.
12289         This was a bitch.
12291 Tue Nov 10 16:30:55 1992  Per Bothner  (bothner@rtl.cygnus.com)
12293         * ch-typeck.c (chill_expand_result);  Set TREE_SIDE_EFEFCTS
12294         flags on assignment to result.
12295         * ch-typeck.c (build_chill_array_ref):  Subtract lower
12296         bound of domain if non-zero.  Preliminary hook for range checking.
12297         * ch-tree.h, chill.l:  Combine variables range_check and
12298         range_check_disabled into global variable range_checking.
12299         * ch-tree.h:  Better definitions of CH_CLASS_IS_VALUE
12300         CH_CLASS_IS_DERIVED.