* config/alpha/x-vms (USE_COLLECT2): Set to empty.
[official-gcc.git] / gcc / ch / ChangeLog
blob64d271daf9e9de126c90df7a51591e2ed75baef9
1 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3         PR other/5299
4         * decl.c (layout_enum): Fix spelling mistake of "than".
5         * inout.c (check_text_length): Same.
7 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9         * config-lang.in (diff_excludes): Remove.
11 2001-12-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13         * expr.c: Use "built-in" spelling in messages.
15 2001-12-15  Joseph S. Myers  <jsm28@cam.ac.uk>
17         * decl.c, parse.c, typeck.c: Use American spelling in messages.
19 2001-12-10  Joseph S. Myers  <jsm28@cam.ac.uk>
21         * chill.texi: Don't condition menus on @ifinfo.
23 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
25         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
26         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
27         is now @CROSS@ -DIN_GCC; update comment.
29 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
31         * actions.c: Remove leading capital from diagnostic messages, as
32         per GNU coding standards.
33         * decl.c: Similarly.
34         * expr.c: Similarly.
35         * inout.c: Similarly.
36         * lang.c: Similarly.
37         * loop.c: Similarly.
38         * nloop.c: Similarly.
39         * parse.c: Similarly.
40         * satisfy.c: Similarly.
41         * tasking.c: Similarly.
42         * tree.c: Similarly.
43         * typeck.c: Similarly.
45 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
47         * Make-lang.in (CHILL.generated-manpages): New dummy target.
49 2001-10-31  Joseph S. Myers  <jsm28@cam.ac.uk>
51         * ChangeLog, actions.c, ch-tree.def, decl.c, except.c, inout.c,
52         tasking.c, typeck.c: Fix spelling errors.
54 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
56         * convert.c, inout.c, loop.c, nloop.c, tasking.c, timing.c,
57         typeck.c: Use /* */ for all commentary, not #if 0 ... #endif.
58         Change the nested comments this creates to // notation.
59         Un-double apostrophes.
61 Sat Sep 22 09:15:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
63         * Make-lang.in (cc1chill): Add attribs.o.
65 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
67         * tree.c (TYPE_HASH): Moved to ../tree.h.
69 2001-08-11  Zack Weinberg  <zackw@panix.com>
71         * lex.c: Don't include setjmp.h.
73 2001-08-09  Richard Henderson  <rth@redhat.com>
75         * grant.c (chill_finish_compile): Use target hooks instead of
76         assemble_constructor.
78 2001-08-06  Richard Henderson  <rth@redhat.com>
80         * grant.c (chill_finish_compile): Pass a symbol_ref and priority
81         to assemble_constructor.
83 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
85         * Makefile.in (lex.o): No dependence on dwarfout.h.
86         * lex.c: Don't include dwarfout.h.
88 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
90         * ch-tree.h: Remove prototype for combine_parm_decls, unused
91         function.
93 2001-06-28  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
95         * lang.c: #include diagnostic.h
96         (chill_print_error_function): Add a dummy `diagnostic_context *'.
97         * Makefile.in (lang.o): Depend on diagnostic.h
99 2001-06-10  Gabriel Dos Reis  <gdr@codesourcery.com>
101         * decl.c: #include diagnostic.h
102         * actions.c: #include diagnostic.h
103         * Makefile.in (actions.o): Depend on diagnostic.h
104         (decl.o): Depend on diagnostic.h
106 2001-06-02  Joseph S. Myers  <jsm28@cam.ac.uk>
108         * chill.texi: Move contents to just after title page.
110 2001-05-23  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
112         * Make-lang.in (dvi): Use ch/chill.dvi not chill.dvi.
113         (ch/chill.dvi): Use TEXI2DVI instead of custom tex calls.  Create
114         the dvi file in the ch directory.
116 2001-05-26  Zack Weinberg  <zackw@stanford.edu>
118         * configure: Remove obsolete file.
120 2001-05-25  Sam TH  <sam@uchicago.edu>
122         * ch-tree.h tasking.h: Fix header include guards.
124 2001-05-20  Joseph S. Myers  <jsm28@cam.ac.uk>
126         * Make-lang.in (chill.dvi): Remove bogus dependencies.  Don't cd
127         to ch; include both $(srcdir)/ch and $(srcdir) in TEXINPUTS.
128         Don't move chill.dvi after creating it.  Fixes PR other/567 and
129         PR other/1018.
131 Fri Feb 23 15:28:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
133         * decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
135 2001-02-15  Jim Meyering  <meyering@lucent.com>
137         * Make-lang.in (CHILL.install-common): Depend on `installdirs'.
138         (CHILL.install-info): Likewise.
140 Sun Feb  4 15:52:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
142         * convert.c (convert): Call abort instead of fatal.
143         * except.c (pop_handler, chill_check_no_handlers): Likewise.
144         * expr.c (chill_expand_expr): Likewise.
145         * parse.c (peek_token_, pushback_token, require): Likewise.
146         * grant.c (write_grant_file): Call fatal_io_error instead of
147         pfatal_with_name.
148         * lex.c (init_parse, same_file, yywrap): Likewise.
149         * lang.c (GNU_xref_begin, GNU_xref_end): Deleted.
150         * lex.c (convert_bitstring): Delete check for alloca failure.
152 2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
154         * ch-tree.h (integer_minus_one_node): Moved to top level gcc
155         directory.
157         * decl.c (integer_minus_one_node): Likewise.
158         (init_decl_processing): Don't set integer_minus_one_node.
160 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
162         * Makefile.in: Remove all dependencies on defaults.h.
163         * decl.c: Don't include defaults.h.
164         * timing.c: Likewise.
166 2000-12-08  Joseph S. Myers  <jsm28@cam.ac.uk>
168         * Make-lang.in (CHILL.info): Depend on info files in source
169         directory.
170         (ch/chill.info): Build info files in source directory.
171         (CHILL.install-info): Install info files from source directory.
173 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
175         * lex.c: Don't bother checking whether ISUPPER(c) before
176         calling TOLOWER(c).  Don't bother checking whether isascii(c)
177         before testing ISSPACE(c); ISSPACE(c) includes '\n'.
179 2000-12-06  Rodney Brown  <RodneyBrown@mynd.com>
181         * actions.h: Standarize copyright statement.
182         * except.c inout.c lang.c lex.c lex.h loop.c nloop.c: Likewise.
183         * parse.c tasking.c tasking.h timing.c xtypeck.c: Likewise.
185 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
187         * actions.c (check_missing_cases), typeck.c (build_chill_slice,
188         build_chill_cast): Use memset () instead of bzero ().
190 2000-11-05  Joseph S. Myers  <jsm28@cam.ac.uk>
192         * Make-lang.in (CHILL.distdir): Remove.
194 2000-11-02  Geoffrey Keating  <geoffk@cygnus.com>
196         * Make-lang.in: Remove 'CYGNUS LOCAL' markers.
197         * Makefile.in: Likewise.
198         * configure: Likewise.
200 2000-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
202         * Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for
203         updated gperf.
205 2000-10-05  Richard Henderson  <rth@cygnus.com>
207         * decl.c (finish_chill_function): Don't init can_reach_end.
209 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
211         * decl.c, timing.c: Include defaults.h if not already included.
212         Don't define the *_TYPE_SIZE macros.
213         * Makefile.in: Update dependencies.
215 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
217         * inout.c (add_enum_to_list): Use DECL_NAME directly, don't get
218         its IDENTIFIER_POINTER and immediately call get_identifier on it.
219         * lex.c (yywrap): Constify a char *.
221 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
223         * Make-lang.in (cc1chill): Don't depend on c-iterate.o.
225 2000-08-21  Nix  <nix@esperi.demon.co.uk>
227         * lang-specs.h: Do not process -o or run the assembler if
228         -fsyntax-only.
230 2000-08-07  Kazu Hirata  <kazu@hxi.com>
232         * decl.c: Fix a comment typo.
234 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
236         * Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
237         * Makefile.in (cc1chill): Link with $(BACKEND).  Define BACKEND,
238         eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
240 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
242         * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
244 Mon Jul 31 07:58:31 2000  Casper Dik <Casper.Dik@holland.sun.com>
246         * Makefile.in: Remove naked "^L".
248 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
250         * lang-specs.h: Use the new named specs.  Remove unnecessary braces.
252 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
254         * decl.c (init_decl_processing): Set TYPE_USER_ALIGN.
255         (layout_enum): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
256         * typeck.c (layout_chill_range_type): Set TYPE_USER_ALIGN.
257         (apply_chill_field_layout): Set DECL_USER_ALIGN.
258         (layout_chill_struct_type): Set TYPE_USER_ALIGN.
260 Tue Jun 13 15:30:46 2000  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
262         * Make-lang.in (CHILL.install-common): Use $(INSTALL_SCRIPT), not
263         $(INSTALL_PROGRAM) for chill.install.
265 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
267         * Makefile.in (EXPR_H): New dependency variable.
268         (actions.o, expr.o): Use EXPR_H.
269         (lang.o): Depend on RTL_H and EXPR_H.
271         * lang.c: Include rtl.h and expr.h.
272         (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.
274 2000-06-04  Philipp Thomas  <pthomas@suse.de>
276         * Makefile.in(INTLLIBS): New macro.
277         (LIBS): Add INTLLIBS.
278         (DEPLIBS): Likewise.
279         * config-lang(outputs): Specify ch/Makefile.
281 Sat Jun  3 15:31:07 2000  Jeffrey A Law  (law@cygnus.com)
283         * chill.texi (INFO-DIR-ENTRY): Fix chill entry.
285 2000-06-02  Richard Henderson  <rth@cygnus.com>
287         * lang.c (lang_get_alias_set): New.
289 Sat May 27 11:24:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
291         * lang.c (deep_const_expr): Use first_rtl_op.
292         * satisfy.c (satisfy): Use TREE_CODE_LENGTH.
294 2000-05-18  Chris Demetriou  <cgd@netbsd.org>
296         * Makefile.in (hash.h): Delete a redundant use of gawk and sed.
298 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
300         * decl.c (c_decode_option): Update -Wall unused flags by
301         calling set_Wunused.
302         (poplevel): Replace warn_unused with warn_unused_label.
304 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
306         * ch-tree.h: Update prototypes.  Remove prototypes for
307         functions declared elsewhere.
308         * decl.c (define_label): Constify filename parameter.
309         * grant.c (globalize_decl, set_default_grant_file): Constify
310         local char * variables.  Don't declare
311         first_global_object_name or asm_out_file.
312         * lang.c (chill_real_input_filename): Constify.
313         * lex.c (init_parse): Constify parameter and return value.
314         * parse.c: Don't declare input_filename.
315         (ch_expand_asm_operands): Constify filename parameter.
316         (parse_multi_dimension_case_action): Constify local char *.
317         * satisfy.c (safe_satisfy_decl): Constify local char *.
319 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
321         * ch-tree.h (init_function_start): Constify.
323 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
325         * ch/lex.c: Remove references to cccp.c.
327 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
329         * lang-specs.h: Pass -fno-show-column to the preprocessor.
331 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
333         * expr.c (chill_expand_expr): Pass bit alignment to emit_block_move.
335 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
337         * actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT.
338         * typeck.c (expand_constant_to_buffer): Use int_byte_position.
339         (extract_constant_from_buffer): Likewise.
341 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
343         * typeck.c (min_precision): New function.
344         (build_chill_slice): Use host_integerp and tree_low_cst.
345         (expand_constant_to_buffer): Likewise and also int_bit_position.
346         LO is unsigned HOST_WIDE_INT
347         (build_chill_array_ref_1): Make `i' be HOST_WIDE_INT; use tree_low_cst.
348         (extract_constant_from_buffer): Sizes are now HOST_WIDE_INT.
349         Use host_integerp and tree_low_cst.
350         (build_chill_bin_type): Use host_integerp and tree_low_cst.
351         (layout_chill_range_type): Use tree_int_cst_sgn, compare_tree_int,
352         tree_low_cst, and min_precision.
353         (apply_chill_array_layout): Cleanups for types of variables
354         and use tree_int_cst_sgn, compare_tree_int, and tree_low_cst.
355         (apply_chill_field_layout): Likewise.
357 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
359         * grant.c (globalize_decl): Constify a char*.
361 Mon Mar  6 17:52:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
363         * actions.c (chill_convert_for_assignment): INDEX is unsigned
364         HOST_WIDE_INT.
365         * ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH since unsigned.
366         * except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
367         Use compare_tree_int.
368         (expand_goto_except_cleanup): Likewise.
370 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
372         * decl.c (current_function_decl): Move to toplev.c.
374 Mon Feb 28 08:12:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
376         * ch-tree.h (DECL_ACTION_NESTING_LEVEL): Use new tree union name.
377         * decl.c (finish_struct): Don't clear DECL_FIELD_SIZE.
378         * typeck.c (make_chill_struct_type): Likewise.
379         (apply_decl_field_layout): General cleanup.
380         Set DECL_SIZE instead of DECL_FIELD_SIZE.
382 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
384         * actions.c (chill_convert_for_assignment): Don't use size_binop
385         for things that aren't sizes.
386         (expand_varying_length_assignment): Likewise.
387         * convert.c (digest_array_tuple, convert): Likewise.
388         * typeck.c (build_chill_slice, smash_dummy_type): Likewise.
389         (build_chill_slice_with_range): Likewise.
390         (build_chill_slice_with_length): Likewise.
391         (build_array_from_set): Adjust types for size_binop.
392         * expr.c (build_concat_expr, build_chill_repetition_op): Likewise.
393         (build_chill_sizeof): Use TYPE_SIZE_UNIT.
394         * tree.c (build_string_type): Pass proper type to size_binop.
396 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
398         * decl.c (layout_enum): Set DECL_SIZE_UNIT.
399         * satisfy.c (safe_satisfy_decl): Likewise.
401 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
403         * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
405 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
407         * grant.c: Don't declare `version_string'.
409 2000-02-11  Nathan Sidwell  <nathan@acm.org>
411         * decl.c (init_decl_processing): Remove duplicate decl of
412         set_alignment.
414 2000-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
416         * expr.c (compare_records): Delete maximum_field_alignment declaration.
417         * inout.c (inout_init): Likewise.
418         (build_chill_gettextaccess): Likewise.
419         (build_enum_tables): Likewise.
420         * lang.c: Likewise.
421         * satisfy.c (satisfy): Likewise.
422         * tasking.c (build_tasking_struct): Likewise.
423         (build_tasking_message_type): Likewise.
424         * typeck.c (build_init_struct): Likewise.
426         * except.c (emit_setup_handler): Make save_maximum_field_alignment
427         unsigned int to match maximum_field_alignment.
428         * inout.c (inout_init): Likewise.
429         (build_chill_gettextaccess): Likewise.
430         (build_enum_tables): Likewise.
431         * tasking.c (build_tasking_struct): Likewise.
432         (build_tasking_message_type): Likewise.
433         * typeck.c (build_init_struct): Likewise.
435 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
437         * except.c (maximum_field_alignment): Remove duplicate declaration.
439 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
441         * All files: PROTO -> PARAMS.
443 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
445         * lex.c: Include tm_p.h.
447 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
449         * actions.c (update_else_range_for_int_const): Initialize
450         variables `lowval' and `highval'.
451         (update_else_range_for_range): Likewise for `low_range_val' and
452         `high_range_val'.
454 1999-12-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
456         * typeck.c (apply_chill_array_layout, apply_chill_field_layout):
457         Avoid the use of ANSI string concatenation.
459         * expr.c (chill_expand_case_expr): Likewise.
461 1999-11-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
463         * expr.c (build_chill_function_call): Don't call a variadic
464         function with a non-literal format string.
466         * grant.c (write_spec_module): Likewise.
468         * parse.c (require, expect): Likewise.
470         * tasking.c (get_struct_type_name, get_struct_debug_type_name,
471         get_tasking_code_name, get_struct_variable_name,
472         get_process_wrapper_name, build_start_process): Likewise.
474         * typeck.c (valid_array_index_p): Likewise.
476 Sun Oct 31 22:33:33 1999  Jeffrey A Law  (law@cygnus.com)
478         * Makefile.in (convert.o, typeck.o): Depend on output.h
479         * convert.c: Include output.h.
480         * typeck.c: Include output.h.
481         (initializer_constant_valid_p): Delete fucntion.
482         * ch-tree.h (initializer_constant_valid_p): Delete prototype.
484 1999-10-26  Mark Mitchell  <mark@codesourcery.com>
486         * ch-tree.h (remember_end_note): Remove prototype.
487         * decl.c (poplevel): Don't call remember_end_note.
489 Fri Sep 24 10:48:10 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
491         * ch-tree.h (builtin_function): Don't declare.
492         * decl.c (builtin_function): New arg CLASS.  Arg FUNCTION_CODE now of
493         type int.  All callers changed.
494         Set the builtin's DECL_BUILT_IN_CLASS.
496 1999-09-20  Nick Clifton  <nickc@cygnus.com>
498         * lang.c (lang_decode_option): Extend comment.
500 1999-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
502         * lex.c (maybe_downcase, getlc, handle_generic_pragma,
503         check_newline): Use uppercase ctype macro from system.h.
505 1999-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
507         * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
509 Fri Sep 10 10:32:32 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
511         * ch-tree.h: Delete declarations for all tree nodes now moved to
512         global_trees.
513         * expr.c: Likewise.
514         * typeck.c: Likewise.
515         * decl.c: Delete their definitions.
516         (init_decl_processing): Call build_common_tree_nodes and
517         build_common_tree_nodes_2 instead of building their nodes here.
518         Use set_sizetype instead of assigning sizetype.
520 1999-09-08  Bruce Korb  autogen@linuxbox.com
522         * Makefile.in: Give the gperf user a hint about why "gperf -F" fails.
524 Tue Sep  7 15:59:56 1999  Dave Brolley  <brolley@cygnus.com>
526         * parse.h: Undefine DELAY if it's defined.
527         (PACK,NOPACK,POS): Remove erroneous comments regarding these tokens.
528         Also, move them to their proper place alphabetically.
530 1999-09-04  Mark Mitchell  <mark@codesourcery.com>
532         * Make-lang.in (cc1chill): Depend on ggc-callbacks.o.
533         * Makefile.in (CHILL_OBJS): Add ggc-callbacks.o.
535 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
537         * parse.c (language_string): Constify.
539 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
541         * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
542         Remove hacks for stuff which now comes from libiberty.
544 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
546         * lang.c (chill_print_error_function): Constify a char*.
548 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
550         * Makefile.in (ch-version.c): Constify a char*.
552         * actions.c (id_cmp, warn_unhandled, adjust_return_value,
553         update_else_range_for_int_const, update_else_range_for_range,
554         update_else_range_for_range_expr, update_else_range_for_type,
555         compute_else_range, check_case_value,
556         chill_handle_case_label_range,
557         chill_handle_multi_case_label_range,
558         chill_handle_multi_case_else_label, chill_handle_multi_case_label,
559         chill_handle_multi_case_label_list print_missing_cases): Add
560         static prototypes.
561         (build_exception_variant): Cast the function argument of qsort.
562         (build_rts_call, warn_unhandled, chill_convert_for_assignment,
563         adjust_return_value, chill_expand_result,
564         build_multi_case_selector_expression, print_missing_cases):
565         Constify a char*.
566         (print_missing_cases): Introduce an intermediary non-const ptr.
567         Add brackets and indent.
569         * ch-tree.h (maybe_building_objc_message_expr,
570         maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
571         (push_handler, pop_handler): Add prototypes.
572         (builtin_function, valid_array_index_p,
573         build_chill_exception_decl, build_rts_call,
574         chill_convert_for_assignment, display_int_cst,
575         build_chill_addr_expr, check_have_mode, get_identifier3,
576         build_chill_string, register_seize_path, get_unique_identifier,
577         add_taskstuff_to_list, gnuchill_version): Constify a char*.
578         (finish_chill_function): Add void prototype argument.
580         * convert.c (convert_to_reference, convert_to_boolean,
581         convert_to_char, base_type_size_in_bytes, remove_tree_element,
582         check_ps_range, digest_powerset_tuple, digest_structure_tuple,
583         digest_array_tuple, convert1): Add static prototypes.
584         (base_type_size_in_bytes): Hide unused function.
585         (display_int_cst, digest_array_tuple): Constify a char*.
587         * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
588         proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
589         build_implied_names, bind_sub_modules, layout_array_type,
590         do_based_decl, handle_one_level, label_value_cmp,
591         find_implied_types): Add static prototypes.
592         (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
593         Constify a char*.
594         (layout_chill_variants): Cast the function argument of qsort.
595         (start_chill_function, fix_identifier, init_decl_processing):
596         Constify a char*.
597         (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
598         Use xcalloc instead of xmalloc/bzero.
599         (builtin_function, build_chill_exception_decl,
600         finish_outer_function): Constify a char*.
602         * except.c (start_handler_array, finish_handler_array): Add static
603         prototypes.
605         * expr.c (chill_expand_expr, chill_expand_case_expr,
606         check_arglist_length, internal_build_compound_expr,
607         is_really_instance, invalid_operand, invalid_right_operand,
608         build_chill_abstime, build_allocate_memory_call,
609         build_allocate_global_memory_call, build_return_memory,
610         build_chill_duration, build_chill_floatcall,
611         build_allocate_getstack, build_chill_allocate,
612         build_chill_getstack, build_chill_terminate, build_chill_inttime,
613         build_chill_lower_or_upper, build_max_min,
614         build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
615         build_compare_set_expr, scalar_to_string, build_concat_expr,
616         build_compare_string_expr, compare_records, string_char_rep,
617         build_boring_bitstring): Add static prototypes.
618         (check_have_mode, chill_expand_expr, build_chill_floatcall,
619         build_allocate_getstack, build_max_min, build_chill_function_call,
620         expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
621         string_char_rep): Constify a char*.
623         * gperf (hash, in_word_set): Add prototypes.
625         * grant.c (newstring, strfree, append, prepend,
626         grant_use_seizefile, decode_layout, grant_array_type,
627         grant_array_type_selective, get_tag_value,
628         get_tag_value_selective, print_enumeral, print_enumeral_selective,
629         print_integer_type, find_enum_parent, print_integer_selective,
630         print_struct, print_struct_selective, print_proc_exceptions,
631         print_proc_tail, print_proc_tail_selective, find_in_decls,
632         in_ridpointers, grant_seized_identifier, globalize_decl,
633         grant_one_decl_selective, compare_memory_file, search_in_list,
634         really_grant_this): Add static prototypes.
635         (newstring, append, prepend, grant_use_seizefile,
636         print_integer_type, decode_constant, grant_one_decl_selective,
637         header_template): Constify a char *.
639         * inout.c (add_enum_to_list, build_chill_io_list_type,
640         build_io_types, declare_predefined_file, build_access_part,
641         textlocation_mode, check_assoc, assoc_call, check_transfer,
642         connect_process_optionals, connect_text, connect_access,
643         check_access, check_text, get_final_type_and_range,
644         process_io_list, check_format_string, get_max_size,
645         check_exprlist): Add static prototypes.
646         (declare_predefined_file, check_assoc, assoc_call, check_transfer,
647         check_access, check_text, process_io_list): Constify a char*.
649         * lang.c (deep_const_expr, chill_print_error_function): Add static
650         prototypes.
652         * lex.c (close_input_file, maybe_number, string_or_char): Constify
653         a char*.
654         (ch_lex_init, skip_directive, same_file, getlc, yywrap,
655         yy_refill): Add static prototypes.
656         (build_chill_string, same_file, register_seize_path): Constify a
657         char*.
659         * lex.h (finish_chill_seizes): Remove unused prototypes.
661         * loop.c (build_temporary_variable, maybe_make_for_temp,
662         get_unique_identifier): Constify a char*.
664         * parse.c (ch_parse_init, check_end_label, end_function,
665         build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
666         forward_token_, require, check_token, expect, define__PROCNAME__):
667         Add static prototypes.
668         (build_prefix_clause, expect): Constify a char*.
669         (parse_expression, parse_primval, parse_untyped_expr,
670         parse_opt_untyped_expr, parse_opt_actions): Add void prototype
671         argument.
672         (parse_opt_name_string, parse_simple_name_string,
673         parse_name_string, parse_defining_occurrence, parse_name,
674         parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
675         parse_spec_module, parse_semi_colon,
676         parse_defining_occurrence_list, parse_mode_definition,
677         parse_mode_definition_statement, parse_synonym_definition,
678         parse_synonym_definition_statement, parse_on_exception_list,
679         parse_on_alternatives, parse_loc_declaration,
680         parse_declaration_statement, parse_optforbid, parse_postfix,
681         parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
682         parse_grant_statement, parse_seize_statement,
683         parse_param_name_list, parse_param_attr, parse_formpar,
684         parse_formparlist, parse_opt_result_spec, parse_opt_except,
685         parse_opt_recursive, parse_procedureattr, parse_proc_body,
686         parse_procedure_definition, parse_processpar,
687         parse_processparlist, parse_process_definition,
688         parse_signal_definition, parse_signal_definition_statement,
689         parse_then_clause, parse_opt_else_clause, parse_expr_list,
690         parse_range_list_clause, pushback_paren_expr, parse_case_label,
691         parse_case_label_list, parse_case_label_specification,
692         parse_single_dimension_case_action,
693         parse_multi_dimension_case_action, parse_case_action,
694         parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
695         parse_asm_action, parse_begin_end_block, parse_if_action,
696         parse_iteration, parse_delay_case_event_list,
697         parse_delay_case_action, parse_do_action, parse_receive_spec,
698         parse_receive_case_action, parse_send_action, parse_start_action,
699         parse_call, parse_tuple_fieldname_list, parse_tuple_element,
700         parse_opt_element_list, parse_tuple, parse_operand6,
701         parse_operand5, parse_operand4, parse_operand3, parse_operand2,
702         parse_operand1, parse_operand0, parse_case_expression,
703         parse_then_alternative, parse_else_alternative,
704         parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
705         parse_step, parse_opt_layout, parse_field_name_list,
706         parse_fixed_field, parse_variant_field_list,
707         parse_variant_alternative, parse_field, parse_structure_mode,
708         parse_opt_queue_size, parse_procedure_mode, parse_program,
709         parse_pass_1_2): Add static prototypes.
710         (parse_process_definition): Remove extra argument in function call.
711         (parse_range_list_clause): Likewise.
713         * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
714         satisfy_list, satisfy_list_values): Add static prototype.
715         (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
717         * tasking.c (make_process_struct): Remove unused prototype.
718         (validate_process_parameters, get_struct_variable_name,
719         decl_tasking_code_variable, get_struct_debug_type_name,
720         get_process_wrapper_name, build_tasking_enum,
721         build_tasking_message_type, build_receive_signal_case_label,
722         build_receive_buffer_case_label, build_receive_buffer_case_end,
723         build_receive_signal_case_end): Add static prototypes.
724         (struct_name, struct_debug_name, data_name, wrapper_name,
725         get_struct_type_name, get_struct_debug_type_name,
726         get_tasking_code_name, get_struct_variable_name,
727         get_process_wrapper_name): Constify a char*.
728         (validate_process_parameters, get_struct_variable_name,
729         decl_tasking_code_variable): Hide unused functions.
730         (build_start_process, add_taskstuff_to_list, build_queue_length):
731         Constify a char*.
733         * tree.c (make_powerset_type): Add static prototype.
734         (get_identifier3, build_alias_decl, decl_check_rename): Constify a
735         char*.
737         * typeck.c (extract_constant_from_buffer,
738         expand_constant_to_buffer, build_empty_string,
739         make_chill_pointer_type, make_chill_range_type,
740         apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
741         apply_chill_field_layout): Add static prototype.
742         (valid_array_index_p, extract_constant_from_buffer,
743         chill_expand_tuple): Constify a char*.
744         (layout_chill_struct_type): Cast the function argument of qsort.
746 1999-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
748         * actions.c (lang_identify): Constify a char*.
750         * lang.c (chill_print_error_function): Likewise.
751         (lang_init): Remove redundant prototype for `print_error_function'.
753 1999-07-25  Richard Henderson  <rth@cygnus.com>
755         * decl.c (va_list_type_node): New.
757 1999-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
759         * Make-lang.in (CHILL.stage1): Depend on stage1-start.
760         (CHILL.stage2): Likewise for stage2-start.
761         (CHILL.stage3): Likewise for stage3-start.
762         (CHILL.stage4): Likewise for stage4-start.
764 Tue May 18 00:21:34 1999  Zack Weinberg  <zack@rabi.phys.columbia.edu>
766         * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
767         was not given.
769 1999-05-10 18:21 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
771         * lang-specs.h: Pass -$ to the preprocessor.
773 Tue May  4 14:52:53 1999  Dave Brolley  <brolley@cygnus.com>
775         * actions.c (chill_expand_assignment): Use powersetlen to calculate the
776         length of an array of packed bits.
778 Tue Apr 20 23:37:01 1999   Nathan Sidwell  <nathan@acm.org>
780         * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
781         order.
783 Wed Apr 14 21:07:30 1999  Mumit Khan  <khan@xraylith.wisc.edu>
785         * config-lang.in (compilers): Add exeext.
786         (stagestuff): Likewise.
788 Fri Apr  2 15:49:44 1999  Jeffrey A Law  (law@cygnus.com)
790         * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
792 Wed Mar 31 10:44:47 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
794         * Makefile.in (hash.h): Generate using gperf language 'C', not
795         'KR-C', so gperf uses the `const' keyword on strings.
797         * gperf (resword): Const-ify a char*.
799 Sun Mar 28 00:30:36 1999  Jeffrey A Law  (law@cygnus.com)
801         * Make-lang.in (CHILL.dvi): New target.
802         (CHILL.mostlyclean): Remove remnants of old runtime library structure.
804 1999-02-20  Craig Burley  <craig@jcb-sc.com>
806         * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
807         target instead of the chill.texi file.
808         (ch/chill.info): New target, depends on the chill.texi source file.
809         Its command writes ch/chill.info instead of chill.info.
810         (CHILL.install-info): Install from ch/chill.info instead of
811         chill.info.
812         If any ch/chill.info* files exist, delete *all* chill.info* files
813         in $infodir first, not just the ones corresponding to the
814         files to be installed (just in case the docs get smaller).
816 Sun Jan 31 20:34:29 1999  Zack Weinberg  <zack@rabi.columbia.edu>
818         * decl2.c: Don't define flag_no_ident here.  Don't process
819         -f(no-)ident here.
820         * ch-tree.h: Don't declare flag_no_ident here.
821         * lang-specs.h: Map -Qn to -fno-ident.
823 Tue Jan 19 23:24:36 1999  Jeffrey A Law  (law@cygnus.com)
825         * Makefile.in (typeck.o): Depend on insn-codes.h.
826         * actions.c (chill_handle_multi_case_label): Initialize "expr".
827         * decl.c (poplevel): Initialize "block_previously_created".
828         * expr.c (chill_expand_expr): Initialize "size0" and "size1".
829         (fold_set_expr): Initialize "buffer1".
830         * inout.c (process_io_list): Initialize "to_assign".
831         (check_exprlist): Initialize "result".
832         * parse.c (expand_expr): Declare.
833         (parse_multi_dimension_case_action): Initialize "end_case_label".
834         * tasking.c (build_start_process): Initialize "struct_type_node".
835         * typeck.c (apply_chill_field_layout): Initialize "word".
836         (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
837         signed/unsigned comparison warning.
839 Mon Jan 18 11:55:06 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
841         * ch-tree.h: Remove conflicting prototypes for pedwarn,
842         warning_with_decl, and make_dcl_rtl.
844 Sun Jan 17 21:53:23 1999  Jeffrey A Law  (law@cygnus.com)
846         * Makefile.in: Do not put ^Ls at the start of a line.
848 Wed Jan  6 02:53:38 1999  Jeffrey A Law  (law@cygnus.com)
850         * Makefile.in: Add some missing $(exeext).  Remove some obsolete
851         runtime stuff.
852         * Make-lang.in: Similarly.
854 Tue Nov 24 09:57:34 1998  Jeffrey A Law  (law@cygnus.com)
856         * Makefile.in (lex.c): Do not depend on hash.h.
857         (lex.o): Depend on hash.h.
859 Mon Oct 19 12:13:47 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
861         * Makefile.in (lex.o): Depend on dwarfout.h.
863         * lang-specs.h: Add missing braces in initializer.
865         * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
867 Thu Oct 15 09:25:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
869         * expr.c (build_chill_card): Use &&, not &, when comparing truth
870         values.
872         * parse.c (parse_spec_module): Remove unused variable
873         `module_name', but preserve function call from initialization.
874         (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
876         * inout.c (init_text_location): Remove unused variable `textlength'.
878 Wed Oct 14 22:19:48 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
880         * typeck.c (build_chill_cast): Fix typo in assignment statement.
882         * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
883         when printing a `tree'.
885 Fri Oct  9 13:01:23 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
887         * ch-tree.h (build_delay_case_end): Remove unused parameter.
888         (build_receive_case_end): Likewise.
889         (check_queue_size): Likewise.
891         * parse.c: Callers changed.
893         * satisfy.c: Likewise.
895         * tasking.c (build_receive_buffer_case_end): Remove unused
896         parameter `label_cnt'.
897         (build_receive_signal_case_end): Likewise.
898         (build_receive_case_end): Likewise.
899         (build_delay_case_end): Likewise.
900         (check_queue_size): Likewise for parameter `type'.
901         All callers changed.
903 Thu Oct  8 05:57:41 1998  Jeffrey A Law  (law@cygnus.com)
905         * typeck (type_for_mode): Only return TItype nodes when
906         HOST_BITS_PER_WIDE_INT is >= 64 bits.
907         (type_for_size): Similarly.
908         * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
909         when HOST_BITS_PER_WIDE_INT is >= 64 bits.
910         (init_decl_processing): Only create TItype nodes when
911         HOST_BITS_PER_WIDE_INT is >= 64 bits.
913 Wed Oct  7 12:19:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
915         * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
916         (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
918 Thu Oct  1 10:43:45 1998  Nick Clifton  <nickc@cygnus.com>
920         * lex.c: Replace occurrences of HANDLE_SYSV_PRAGMA with
921         HANDLE_GENERIC_PRAGMAS.
922         (handle_generic_pragma): New function: Parse generic pragmas.
924 Wed Sep 30 20:22:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
926         * parse.c (emit_label): Fix return-type of prototype.
928 Wed Sep 30 19:41:36 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
930         * actions.c (chill_handle_multi_case_label): Always return a value
931         in function returning non-void.
933         * except.c: Include OS headers before any local ones.
935         * typeck.c (layout_chill_range_type): Change type of variable
936         `negprecision' to int.
937         (apply_chill_array_layout): Initialize variables `stepsize' and
938         `start_bit'.
939         (layout_chill_struct_type): Change type of variable `min_align' to
940         unsigned int.
941         (smash_dummy_type): Change name of variable `main' to `main_tree'.
943 Wed Sep 30 19:24:41 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
945         * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
946         ensure enough bits for calculation.
948         * ch-tree.h (check_text_length): Remove unused parameter.
950         * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
951         function sprintf into the appropriate type for printing.
953         * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
954         format specifier.
955         (print_mode): Likewise.
956         (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
958         * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
959         the format specifier.
961         * inout.c (check_text_length): Remove unused parameter `type'.
962         (build_chill_associate): Initialize variables `arg1', `arg2',
963         `arg3', `arg4' and `arg5'.
964         (build_chill_modify): Likewise.
965         (scanformcont): Change type of variable `curr' to `unsigned char'.
967         * lex.c (maybe_downcase): Cast the argument of `tolower' to
968         `unsigned char'.
970         * satisfy.c (satisfy): Remove unused parameter in call to
971         `check_text_length'.
973         * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
974         as a `long' in call to function `error'.
975         (decl_tasking_code_variable): Likewise.
977 Wed Sep 30 19:03:02 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
979         * grant.c (decode_decl_selective): Cast switch's enum argument to
980         an int.
981         (really_grant_this): Add default case in switch.
983         * typeck.c (chill_resulting_class): Add default cases in switch.
984         Also add `break' statements after each case.
986 Tue Sep 29 21:37:33 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
988         * ch-tree.h (build_compare_expr): Change first argument's type
989         from `enum chill_tree_code' to `enum tree_code'.
990         (build_compare_discrete_expr): Likewise.
992         * expr.c (build_compare_set_expr): Likewise.
993         (build_compare_string_expr): Likewise.
994         (build_compare_expr): Likewise.
995         (build_compare_discrete_expr): Likewise.  Also add default case in
996         switch statement.
997         (compare_int_csts): Add default case in switch statement.
999 Sun Sep 20 11:02:55 1998  Robert Lipe  <robertl@dgii.com>
1001         * except.c: Include system.h.
1003         * Makefile.in (except.o): Depend on system.h.
1005 Sun Sep 20 09:25:13 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1007         * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
1008         lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
1009         typeck.o): Depend on system.h and toplev.h.
1010         (except.o): Depend on toplev.h.
1011         (grant.o): Depend on system.h, toplev.h and output.h.
1013         * actions.c: Include system.h and toplev.h.  Remove redundant
1014         prototypes.
1015         (build_cause_exception): Add default case in switch.
1016         (update_else_range_for_range): Add parentheses around && within ||.
1017         (chill_handle_multi_case_label_list): Remove unused variable
1018         `selector_value'.
1019         (print_missing_cases): Reconcile format specifiers vs arguments in
1020         calls to sprintf.
1022         * ch-tree.h: Don't include stdio.h.  Wrap prototypes using FILE*
1023         with macro BUFSIZ.  Add missing prototypes.
1025         * convert.c: Include system.h and toplev.h.  Remove redundant
1026         prototypes.
1027         (convert): Remove unused variable `errstr'.
1029         * decl.c: Include system.h and toplev.h.  Remove redundant
1030         prototypes.
1031         (builtin_scope): Add missing initializers.
1032         (clear_scope): Likewise.
1033         (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
1034         (copy_lang_decl): Likewise for parameter `node'.
1035         (c_decode_option): Likewise for parameter `argc'.
1036         (push_extern_function): Likewise for parameter `granting'.
1037         (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
1038         (pushdecl): Remove unused variable `t'.
1039         (lookup_name_current_level): Make static and hide.
1040         (lookup_name_for_seizing): Make static.
1041         (finish_decl): Remove unused variable `type'.
1042         (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
1043         (complete_array_type): Mark parameters `type', `initial_value' and
1044         `do_default' with ATTRIBUTE_UNUSED.
1045         (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
1046         (start_enum): Likewise.
1047         (shadow_record_fields): Remove unused variables `type' and `parent'.
1049         * except.c: Include toplev.h.  Remove redundant prototypes.
1051         * expr.c: Include system.h and toplev.h.  Don't define NULL.
1052         Remove redundant prototypes.
1053         (internal_build_compound_expr): Mark parameter `first_p' with
1054         ATTRIBUTE_UNUSED.
1055         (build_allocate_getstack): Remove unused variable `init'.
1056         (build_chill_pred_or_succ): Likewise for variable `limit'.
1057         (varying_to_slice): Likewise for variable `doamin' [sic].
1058         (finish_chill_binary_op): Likewise for variables `code0' and
1059         `code1'.  Remove unused label `finish'.  Add explicit braces to
1060         avoid ambiguous `else'.
1061         (build_chill_addr_expr): Remove extra parameter in call to `error'.
1062         (build_chill_unary_op): Remove unused variables `class' and `type0'.
1063         (powersetlen): Remove unused variables `domain' and `temp'.
1065         * grant.c: Include system.h, toplev.h and output.h.  Don't handle
1066         strchr/strrchr.  Remove redundant prototypes.
1067         (decode_constant_selective): Remove unused variables `op' and `wrk'.
1068         (push_granted): Mark parameters `name' and `decl' with
1069         ATTRIBUTE_UNUSED.
1071         * inout.c: Include system.h and toplev.h.  Remove redundant
1072         prototypes.
1073         (textlocation_mode): Use &&, not &, when comparing two truth
1074         values.
1075         (scanformcont): Remove unused label `do_the_action'.
1077         * lang.c: Include system.h and toplev.h.  Remove redundant
1078         prototypes.
1079         (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
1080         (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
1081         (lang_print_xnode): Likewise for parameters `file', `node' and
1082         `indent'.
1083         (lang_decode_option): Explicitly declare `explicit_ignore_case'.
1084         (incomplete_type_error): Mark parameters `value' and `type' with
1085         ATTRIBUTE_UNUSED.
1087         * lex.c: Include system.h and toplev.h.  Remove redundant
1088         prototypes.  Don't handle strchr/strrchr.  Use CAPITALIZED
1089         versions of ctype macros from system.h.  Cast ctype arguments to
1090         unsigned char when necessary.
1091         (last_token, RETURN_TOKEN): Hide definition.
1092         (push_back): Remove unused function.
1093         (readstring): Change variable `i' to unsigned.
1094         (yywrap): Remove unused variable `node'.
1096         * loop.c: Include system.h and toplev.h.  Remove redundant
1097         prototypes.
1098         (chill_unsigned_type): Hide prototype and definition.
1099         (begin_loop_scope): Remove unused variable `firstp'.
1100         (nonvalue_begin_loop_scope): Likewise.
1102         * parse.c: Include system.h and toplev.h.  Remove redundant
1103         prototypes.
1104         (quasi_signal): Hide.
1105         (PEEK_TOKEN): Change return type to `enum terminal'.
1106         (parse_mode_definition_statement): Remove unused variable `names'.
1107         (parse_formpar): Remove unused parameter `in_spec_module'.  All
1108         callers changed.
1109         (parse_formparlist): Likewise.
1110         (parse_processpar): Remove unused variable `parms'.
1111         (parse_definition): Add explicit braces to avoid ambiguous `else'.
1112         (parse_multi_dimension_case_action): Initialize variable
1113         `begin_test_label'.  Remove unused variable `new_test'.
1114         (parse_case_action): Remove unused variable `caseaction_flag'.
1115         (parse_asm_clobbers): Remove unused variable `expr'.
1116         (parse_delay_case_action): Initialize variable `label_cnt'.
1117         (parse_action): Make function static.
1118         (parse_tuple_element): Remove unused variable `list'.
1119         (parse_primval): Add default case in switch.
1120         (parse_variant_alternative): Remove unused variables `x' and
1121         `variant_fields'.
1123         * satisfy.c: Include system.h and toplev.h.  Remove redundant
1124         prototypes.
1126         * tasking.c Include system.h and toplev.h.  Remove redundant
1127         prototypes.
1128         (data_name): Hide.
1129         (get_struct_variable_name): Likewise.
1130         (validate_process_parameters): Mark parameter `parms' with
1131         ATTRIBUTE_UNUSED.
1132         (build_start_process): Initialize variable `tuple'.
1133         (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
1135         * timing.c: Include system.h and toplev.h.
1136         (build_after_timeout_start): Remove unused variable `goto_where'.
1138         * tree.c: Include system.h and toplev.h.  Remove redundant
1139         prototypes.
1141         * typeck.c: Include system.h and toplev.h.  Remove redundant
1142         prototypes.
1143         (extract_constant_from_buffer): Make function static.  Add
1144         explicit braces to avoid ambiguous `else'.
1145         (expand_constant_to_buffer): Likewise.
1146         (build_chill_slice): remove unused variable `is_static'.
1147         (chill_compatible): Add explicit braces to avoid ambiguous `else'.
1148         (apply_chill_array_layout): Remove unused variable `offset'.
1149         (smash_dummy_type): Remove unused variable `save_lang_specific'.
1150         (initializer_constant_valid_p): Add default case in switch.
1152 Mon Sep 14 16:46:36 1998  Dave Brolley  <brolley@cygnus.com>
1154         * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
1155         domain type of the array.
1157         * expr.c (build_chill_function_call): Remove redundant call to
1158         chill_convert_to_assignment
1160 Thu Sep 10 17:52:36 1998  Dave Brolley  <brolley@cygnus.com>
1162         * actions.c (chill_convert_for_assignment): Make a copy of the result
1163         node before modifying it.
1165 Sat Sep  5 16:55:37 1998  John Carr  <jfc@mit.edu>
1167         * Make-lang.in: Comment ^L characters.  Sun make doesn't like them.
1169 Sat Sep  5 23:49:50 1998  Jeffrey A Law  (law@cygnus.com)
1171         * Makefile.in (INCLUDES): Update after recent reorganization at the
1172         toplevel gcc directory.
1174 Sat Sep  5 22:25:51 1998  Richard Henderson  <rth@cygnus.com>
1176         * Makefile.in: Update dependencies for top-level gcc files that moved.
1178 Sat Sep  5 02:21:08 1998  Jeffrey A Law  (law@cygnus.com)
1180         * Makefile.in: Tweak to avoid building runtime.  It's built
1181         elsewhere now.
1183 Thu Sep  3 15:32:03 1998  Dave Brolley  <brolley@cygnus.com>
1185         * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
1187 Wed Sep 02 09:25:29 1998  Nick Clifton  <nickc@cygnus.com>
1189         * lex.c (check_newline):  Change how HANDLE_PRAGMA is called.
1190         Generate warning messages if unknown pragmas are encountered.
1191         (pragma_getc): New function: retrieves characters from the
1192         input stream.  Defined when HANDLE_PRAGMA is defined.
1193         (pragma_ungetc): New function: replaces characters back into the
1194         input stream.  Defined when HANDLE_PRAGMA is defined.
1196 Mon Aug 31 15:35:16 1998  Dave Brolley  <brolley@cygnus.com>
1198         * decl.c (layout_chill_variants): Calculate nlables properly.
1200 Mon Jul 27 17:21:01 1998  Dave Brolley  <brolley@cygnus.com>
1202         * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
1203         element type.
1205 Mon Jul 13 14:20:12 1998  Nick Clifton  <nickc@cygnus.com>
1207         * lang-options.h: Format changed to match changes in gcc/toplev.c
1208         to implement a --help option.
1210 Wed Jul  8 02:58:35 1998  Jeffrey A Law  (law@cygnus.com)
1212         * lang.c (lang_init_options): New function.
1214 Wed Jun 10 12:08:09 1998  Dave Brolley  <brolley@cygnus.com>
1216         * lang-options.h: Remove -I.
1217         * ch-tree.h (c_decode_option): New argc/argv interface.
1218         * decl.c (c_decode_option): New argc/argv interface.
1219         * lang.c (lang_decode_option):  New argc/argv interface.
1221 Wed May 27 10:33:41 1998  Dave Brolley  <brolley@cygnus.com>
1223         * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
1224         chill_handle_multi_case_label_range were reversed.
1226         * Make-lang.in (chill): Use the correct gcc in the driver script.
1228 Thu May 21 14:40:44 1998  Dave Brolley  <brolley@cygnus.com>
1230         * convert.c (digest_array_tuple): Move conversion to
1231         chill_convert_for_assignment.
1233         * actions.c (chill_convert_for_assignment): Allow conversion of array
1234         constructor to bitstring constructor for assignment to array of packed bits.
1236 Thu May 14 13:57:51 1998  Dave Brolley  <brolley@cygnus.com>
1238         * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
1240 Wed May 13 14:07:51 1998  Dave Brolley  <brolley@cygnus.com>
1242         * typeck.c (build_chill_slice): Adjust slice index to account for the
1243         lower bound of the array.
1245         * actions.c (chill_expand_assignment): Convert function arguments to the
1246         correct types.
1247         (chill_expand_assignment): Ditto.
1249 Mon May 11 16:20:57 1998  Dave Brolley  <brolley@cygnus.com>
1251         * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
1252         of the array_type to the slice_type.
1253         (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
1254         of bits.
1256         * loop.c (build_loop_iterator): Disallow location enumeration for
1257         bit-packed arrays.
1259         * convert.c (digest_array_tuple): Allow conversion of an array tuple
1260         to a bitstring for assignment to a packed array of bits.
1262 Mon May  4 16:28:58 1998  Dave Brolley  <brolley@cygnus.com>
1264         * ch-tree.def (PACKED_ARRAY_REF): New tree code.
1265         * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
1266         (chill_location): Handle PACKED_ARRAY_REF.
1267         (apply_chill_array_layout): Allow PACK for arrays of single bits.
1268         * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
1269         (invalid_operand): Check PACKED_ARRAY_REF operands.
1270         * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
1272 Thu Apr 23 15:33:20 1998  Dave Brolley  <brolley@cygnus.com>
1274         * typeck.c (apply_chill_field_layout): Only integral fields can be packed
1275         to the bit level.
1277 Tue Apr 21 14:30:10 1998  Jeffrey A Law  (law@cygnus.com)
1279         * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
1280         (init_decl_processing): Handle TI types.
1281         * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
1282         (type_for_size): Handle TI types.
1283         (type_for_mode): Handle TI types.
1285 Mon Apr 20 13:12:26 1998  Dave Brolley  <brolley@cygnus.com>
1287         * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
1288         int.
1290         * actions.c (chill_convert_for_assignment): Check that the rhs is not
1291         a type declaration.
1293 Tue Apr 14 13:17:44 1998  Dave Brolley  <brolley@cygnus.com>
1295         * lex.c (init_parse): Now returns char* containing the filename.
1297         * typeck.c (get_type_precision): Declare.
1298         (apply_chill_field_layout): Use the minimum number of bits necessary to
1299         represent discrete types as the natural length of the field.
1301 Thu Apr  9 12:46:55 1998  Dave Brolley  <brolley@cygnus.com>
1303         * lex.c (finput): Move definition here from toplev.c
1304         (init_parse): New function replaces init_lex.
1305         (init_parse): Add code to open source file.
1306         (finish_parse): New function.
1307         (close_input_file): File was being closed more than once.
1309         * lang.c (finput): Declare.
1310         * ch-tree.h (init_lex): Remove.
1313 Wed Apr  8 14:47:33 1998  Dave Brolley  <brolley@cygnus.com>
1315         * actions.c (compute_else_range): Fix loop index error.
1316         (chill_handle_multi_case_label_range): Move error checking to
1317         chill_handle_multi_case_label.
1318         (chill_handle_multi_case_else_label): Convert ELSE range values to
1319         the type of the corrersponding CASE selector.
1321 Wed Apr  8 13:02:50 1998  Jeffrey A Law  (law@cygnus.com)
1323         * actions.c (sizetype_tab): Do not declare.
1324         * lang.c (lang_print_xnode): New function.
1326 Mon Mar 23 14:43:06 1998  Dave Brolley  <brolley@cygnus.com>
1328         * grant.c (decode_layout): New function.
1329         (grant_array_type): Call decode_layout to export layout information to
1330         the grant file.
1331         (decode_decl): Ditto
1333 Fri Mar 20 16:06:41 1998  Dave Brolley  <brolley@cygnus.com>
1335         * parse.c (parse_tuple_element): Call had arguments in wrong order.
1337 Thu Mar 19 13:42:33 1998  Dave Brolley  <brolley@cygnus.com>
1339         * typeck.c (apply_chill_array_layout): Use
1340         TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
1341         the word size.
1343 Wed Mar 18 16:25:48 1998  Dave Brolley  <brolley@cygnus.com>
1345         * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
1346         fields.
1348         * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
1349         proper places.
1351 Tue Mar 17 14:16:08 1998  Dave Brolley  <brolley@cygnus.com>
1353         * parse.c (gen_label_rtx): Declare before use.
1354         (emit_jump): Declare before use.
1355         (emit_label): Declare before use.
1356         (parse_case_label_list): Pass in CASE selector so we can mark it as having
1357         an (ELSE) label if necessary.
1358         (parse_case_label_specification): Pass in the CASE selector list so that
1359         the CASE selectors can be passed to parse_case_label_list.
1360         (parse_multi_dimension_case_action): Modify to generate branching code in
1361         one pass.
1362         (parse_case_expression): Compute (ELSE) range before generating CASE expression.
1363         (parse_variant_alternative): Remove error for (ELSE) specified.
1365         * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
1367         * decl.c (layout_chill_variants): Add code to check compatibility of ranges
1368         and discrete mode names.
1370         * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
1372         * actions.h (build_multi_case_selector_expression): Make it extern.
1373         (chill_handle_multi_dimension_case_label): Remove.
1374         (compute_else_ranges): New function.
1376         * actions.c (update_else_range_for_int_const): New function.
1377         (update_else_range_for_range): New function.
1378         (update_else_range_for_range_expr): New function.
1379         (update_else_range_for_type): New function.
1380         (compute_else_range): New function.
1381         (compute_else_ranges): New function.
1382         (chill_handle_multi_case_else_label): New function
1383         (chill_handle_multi_case_label_range): Don't generate tests for conditions
1384         which are always true or false.
1385         (chill_handle_multi_case_label): Ditto.
1386         (chill_handle_multi_case_label): Implement (ELSE) label support.
1387         (chill_handle_multi_case_label): First argument is now the selector tree not
1388         its VALUE.
1389         (chill_handle_multi_dimension_case_label): Removed.
1390         (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
1391         reversed on entry, so reverse it here.
1393 Tue Mar 10 15:02:26 1998  Dave Brolley  <brolley@cygnus.com>
1395         * actions.c (chill_handle_multi_case_label_range): Add more error checking.
1396         (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
1397         (chill_handle_multi_case_label): Improve Error handling.
1399 Mon Mar  9 12:39:00 1998  Dave Brolley  <brolley@cygnus.com>
1401         * actions.c (chill_handle_multi_case_label_range): Added.
1402         (chill_handle_multi_case_label): Add support for discrete ranges and
1403         discrete modes.
1405         * typeck.c (apply_chill_array_layout): Added more error checking.
1406         (apply_chill_field_layout): Added more error checking.
1408 Wed Mar  4 16:08:26 1998  Dave Brolley  <brolley@cygnus.com>
1410         * convert.c (convert): Call build_simple_array_type with new argument.
1412         * ch-tree.h(build_simple_array_type): Add argument for array layout.
1414         * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
1415         (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
1416         (apply_chill_array_layout): New function to implement array layout.
1417         (layout_chill_array_type): Call apply_chill_array_layout and reset
1418         TYPE_ATTRIBUTES to NULL_TREE.
1419         (build_chill_array_type): Extend to handle one array layout per index mode.
1420         (smash_dummy_type): Call build_simple_array_type with new argument.
1422         * satisfy.c (satisfy): Call SATISFY on array layout tree.
1424 Wed Feb 25 14:36:41 1998  Dave Brolley  <brolley@cygnus.com>
1426         * typeck.c (next_struct_offset): Added.
1427         (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
1428         or POS layout to a structure field.
1429         (layout_chill_struct_type): Add call to apply_chill_field_layout.
1431         * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
1432         in the field layout tree.
1434         * parse.c (pack_warn_printed): Remove.
1435         (nopack_warn_printed): Remove.
1436         (step_warn_printed): Remove.
1437         (pos_warn_printed): Remove.
1438         (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
1440         * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
1441         field declarations.
1443 Thu Feb 19 17:33:06 1998  Dave Brolley  <brolley@cygnus.com>
1445         * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
1446         (parse_opt_mode): Removed incorrect comment about association of array
1447         layouts with nested array elements.
1448         (parse_opt_mode): Allow for one layout per index mode specified.
1450 Wed Feb 18 23:48:57 1998  Richard Henderson  <rth@cygnus.com>
1452         * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependency.
1454 Wed Feb 18 17:35:05 1998  Dave Brolley  <brolley@cygnus.com>
1456         * parse.c (parse_field): Get rid of warning for multiple case selectors.
1458         * decl.c (layout_chill_variants): Fix loop indexing error.
1460 Mon Feb 16 15:54:47 1998  Dave Brolley  <brolley@cygnus.com>
1462         * parse.c (parse_case_expression): Remove code which checked for
1463         unimplemented (ELSE) label.
1464         (parse_case_expression): Add code to handle multi dimensional case
1465         expression.
1467         * expr.c (check_case_selector_list): Fixed to return a list of the
1468         selectors which were checked.
1469         (chill_expand_case_expr): Remove "sorry" message for multi dimension
1470         case.
1471         (chill_expand_case_expr): Reverse order of case alternatives.
1472         (chill_expand_case_expr): Add "error" message for multiple case
1473         selectors.
1475         * actions.h (build_chill_multi_dimension_case_expr): Added.
1477         * actions.c (build_multi_case_selector_expression): Renamed from
1478         build_multi_case_expression.
1479         (chill_handle_multi_dimension_case_label): Call above function by its
1480         new name.
1481         (build_chill_case_expr): Don't reverse the list elements here. It may
1482         not be necessary.
1483         (build_chill_multi_dimension_case_expr): New function implements multi
1484         dimensional case expression.
1486 Thu Feb 12 15:44:50 1998  Dave Brolley  <brolley@cygnus.com>
1488         * parse.c (parse_case_action): Implement multi-dimension CASE action.
1489         (parse_multi_dimension_case_action): Added.
1490         (parse_single_dimension_case_action): Added based on code moved from
1491         parse_case_action.
1493         * expr.c (check_case_selector_list): Added.
1495         * ch-tree.h (check_case_selector_list): Added.
1497         * actions.h (chill_handle_single_dimension_case_label): Added.
1498         (chill_handle_multi_dimension_case_label): Added.
1500         * actions.c (chill_handle_single_dimension_case_label): Added.
1501         (chill_handle_multi_case_label): Added.
1502         (chill_handle_multi_case_label_list): Added.
1503         (build_multi_case_expression): Added.
1504         (chill_handle_multi_dimension_case_label): Added
1506 Fri Feb  6 16:43:41 1998  Dave Brolley  <brolley@cygnus.com>
1508         * actions.c (sizetype_tab): Fix declaration to match gcc changes.
1510 Thu Feb  5 14:03:00 1998  Dave Brolley  <brolley@cygnus.com>
1512         * decl.c (chill_tree_code_type):  Change this to be an array of char like
1513         the tree_code_type in the rest of gcc.
1515         * ch-tree.def (chill_tree_code_type): See decl.c.
1517 Thu Jan 29 15:34:18 1998  Dave Brolley  <brolley@cygnus.com>
1519         * tasking.c (error_with_decl): Correct prototype.
1520         (build_gen_ptype): Reverse arguments.
1522         * lang.c (chill_real_input_filename): Add definition.
1523         (chill_print_error_function): Correct second argument.
1524         (lang_init): Set chill_real_input_filename.
1526         * expr.c (NULL): Protect definition with #ifndef.
1528         * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
1529         (init_decl_processing): Change last argument to 'sizeof(char)'.
1532 Tue Nov 25 10:44:19 1997  Nick Clifton  <nickc@cygnus.com>
1534         * Make-lang.in (mostlyclean): Use && to separate commands, so that
1535         if the directory change fails, the rule will not loop.
1537 Mon Mar  3 12:08:19 1997  Fred Fish  <fnf@cygnus.com>
1539         * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1540         spaces and use single tab character on some lines.
1541         (cc1chill): Ditto.
1543 Tue Nov 26 05:12:40 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1545         * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1546         that the buffer location gets evaluated only once, in
1547         build_receive_buffer_case_end.
1549         * typeck.c (build_chill_bin_type): Rework.
1550         (layout_chill_range_type): Process BIN mode.
1551         (build_chill_array_type): Remove checking of layout. This is done
1552         at the parse.
1554         * parse.c (parse_on_exception_list): Don't allow ON name:.
1555         (parse_opt_layout): Parse POS and STEP and return a tree instead
1556         of int.
1558         * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1560         * grant.c (print_integer_type): Take care of BIN.
1562         * expr.c (build_chill_descr): Make descr static if requested
1563         location is static.
1564         (build_chill_length): Process text mode name and text location as
1565         described in Z.200/1992.
1566         (build_compare_expr): Don't allow < <= > >= for composite modes.
1568         * decl.c (grok_chill_fixedfields): Remove checking of
1569         layout. This is done at the parser.
1571         * convert.c (digest_structure_tuple): Take care of wrong (probably
1572         array) tuple. Printing error may cause sigsegv.
1574         * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1575         build_chill_array_type (layout is passed now as a tree instead of
1576         int).
1578 Fri Nov 15 15:17:44 1996  Per Bothner  <bothner@deneb.cygnus.com>
1580         * convert.c (display_int_cst):  Check that val is INTEGER_CST.
1581         (digest_array_tuple):  Some extra error checks (i.e. that indexes
1582         are constant).  If dynamic mode, result is not constant.
1584 Mon Oct 28 12:48:06 1996  Jeffrey A Law  (law@cygnus.com)
1586         * typeck.c (signed_or_unsigned_type): If the given type already
1587         as the correct signedness, then just return it.
1589         * typeck.c ({un,}signed_type): If can't do anything, call
1590         signed_or_unsigned_type.
1592 Fri Sep  6 02:50:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1594         * typeck.c (build_chill_cast): In case of rangecheck, take care of
1595         constant expression (when defining a SYN).
1597 Thu Sep  5 04:30:32 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1599         * parse.c (define__PROCNAME__): New function to define a SYNONYM
1600         __PROCNAME__ (__procname__) which is a character string containing
1601         the name of the current procedure. This is quit the same as
1602         __FUNCTION__ in C.
1603         (parse_proc_body): Add call to define__PROCNAME__.
1605         * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1606         modes on one side and procedures on the other side..
1608 Wed Jul 24 01:13:51 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1610         * typeck.c: Replace all local variables and arguments named `index'
1611         with `idx', `index' gets replaced by `strchr' which makes debugging
1612         somehow difficult.
1613         (valid_array_index_p): New argument to indicate that we are processing
1614         LENGTH (varying string) on the lefthand side of an assignment. The
1615         index check is different in this case.
1616         (build_chill_cast): In case of expression conversion do an OVERFLOW
1617         check with the limits of the target mode.
1619         * ch-tree.h: New prototype for valid_array_index_p.
1621         * actions.c (expand_varying_length_assignment): Add new argument to
1622         call to valid_array_index_p to indicate we are processing
1623         LENGTH on the lefthand side of an assignment.
1625         * loop.c: Rename loop_stack to loopstack to avoid clashes with
1626         global variable ../stmt.c:loop_stack.
1628 Tue Jun 18 23:04:06 1996  Per Bothner  <bothner@deneb.cygnus.com>
1630         * expr.c (resolve_component_ref):  Set TREE_SIDE_EFFECTS properly.
1632 Mon Jun 10 15:01:51 1996  Per Bothner  <bothner@deneb.cygnus.com>
1634         * typeck.c (build_chill_reference_type):  Copy novelty for reference.
1635         * satisfy.c (satisfy):  If REFERENCE_TYPE, copy novelty.
1637 Thu May 30 04:55:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1639         * typeck.c (valid_array_index_p): For varying character strings
1640         we must check if the index is less then the actual length instead
1641         of less equal.
1643 Wed May 15 06:07:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1645         * ch-tree.h: Add prototype for test_range.
1647         * inout.c (process_io_list): Fix duplicate function call if
1648         writetext argument is a function returning a varying string.
1650 Tue May 14 21:08:47 1996  Per Bothner  <bothner@deneb.cygnus.com>
1652         Re-do string comparisons.  Old way could re-use temporary
1653         (SAVE_EXPR created for an argumnet is variable) prematurely.
1654         * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR):  New codes.
1655         * decl.c (init_decl_processing):  Remove __eqstring, __gestring,
1656         __gtstring, __lestring, __ltstring, __nestring declarations.
1657         * expr.c (build_char_array_expr):  Rename to build_compare_string_expr.
1658         Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1659         (chill_expand_expr):    Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1660         (build_compare_expr):  Use new build_char_array_expr name.
1662 Mon Apr  8 14:08:30 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1664         Cleanup of April 5 fix:
1665         * actions.c (test_range):  New function.
1666         (check_range):  Simplify to use test_range.
1667         * convert.c (digest_powerset_tuple):  Move error message from here ...
1668         (check_ps_range):  ... to here.  Also, simplify to use test_range.
1670 Fri Apr  5 03:41:05 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1672         * convert.c (check_ps_range): New function to perform range check
1673         of powerset tuple elements. This is quite the same as check_range,
1674         however, the actions on rangefail are different.
1675         (digest_powerset_tuple): Call check_ps_range.
1677         * loop.c (build_loop_iterator): Chaeck if location enumeration
1678         is requested for BOOLS(n) and print an error message.
1680 Wed Mar  6 17:46:48 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1682         * parse.c (parse_primval):  Emit error if !ignore (before: pass==2).
1684         Implement parameterised array and string modes (using LANG_TYPE).
1685         * parse.c (parse_opt_mode):  Handle parameterized arrays and strings.
1686         * grant.c (decode_mode):  Support extended use of LANG_TYPE.
1687         * satisfy.c (cycle_error_print):  Ignore non-decls in chain.
1688         (safe_satisfy_decl):  No error if non-decl (pointer type) in cycle.
1689         (satisfy):  Return immediately if laid out non-pointer type.
1690         (satisfy case LANG_TYPE):  Handle paramertised mode.
1691         (satisfy case POINTER_TYPE/REFERENCE_TYPE):  Push type on chain;
1692         return immediately if already in chain.
1693         * typeck.c (smash_dummy_type):  Handle parameterized modes and CHAR(N).
1694         Change return type (can now return error_mark_node).
1695         (build_readonly_type):  Return return value from smash_dummy_type.
1696         * ch-tree.h:  Change smash_dummy_type return type.
1698 Tue Mar  5 22:31:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1700         * typeck.c (build_chill_slice):  Re-do index_type calculation.
1701         * typeck.c (layout_chill_range_type):  Use compare_int_csts rather
1702         than tree_int_cst_lt to avoid signed/unsigned problems.
1704         * typeck.c (copy_novelty):  Use copy_node rather than build_type_node.
1705         * typeck.c (smash_dummy_type):  Use copy_novelty for NEWMODE of range.
1707         * decl.c (init_decl_processing): More portable sizetype initialization.
1709         * tree.c (build_string_type):  Generalize to also create bitstrings.
1710         Return error_mark_node if an argument is an ERROR_MARK.
1711         (build_bitstring_type):  Simplify - just call build_string_type.
1713 Tue Mar  5 03:48:32 1996  Wilfried Moser  <moser@blues.cygnus.com>
1715         * actions.c (warn_unhandled): Add missing assignment.
1717         * loop.c (build_loop_iterator): In case of IN, check if
1718         expression has a mode, otherwise make an error.
1720 Mon Mar  4 23:12:03 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1722         *  convert.c (digest_powerset_tuple):  Check tuple elements
1723         for compatibility;  if compatible, call convert.
1725 Thu Feb 29 23:39:54 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1727         Simplify NOVELTY representation.
1728         * ch-tree.h (CH_NOVELTY):  Re-implement as plain TYPE_CONTEXT.
1729         (CH_NOVELTY_FLAG):  Removed.  (Just use CH_NOVELTY.)
1730         * decl.c (push_modedef):  Make copy even for SYNMODE.
1731         but not for internal typedefs (indicated by make_newmode==-1).
1732         * tasking.c:  Call push_modedef with make_newmode==-1.
1733         * typeck.c (chill_novelty):  Remove.
1734         (smash_dummy_type):  Removed unused event/buffer stuff.  Update.
1735         * grant.c (decode_decl), inout.c (build_io_types),
1736         expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1737         tasking.c (build_instance_type):  Simplify using new CH_NOVELTY.
1739         Solidify READ mode handling.
1740         * decl.c (do_decl, push_syndecl, start_chill_function):
1741         Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1742         * typeck.c (build_chill_slice):  Set TREE_READONLY appropriately.
1743         (build_chill_array_ref_1, build_chill_bitref):  Likewise.
1744         (build_chill_cast):  Set TREE_READONLY depending on result type (only).
1745         * convert (convert_from_reference, convert):  Likewise.
1746         * expr.c (resolve_component_ref):  Set TREE_READONLY appropriately.
1747         (build_chill_function_call):  Error if OUT/INOUT arg is TREE_READONLY.
1748         * actions.c (chill_expand_assignment):  Also error if TREE_READONLY.
1749         Use convert_from_reference.
1751 Thu Feb 29 11:14:09 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1753         * parse.c (parse_do_action):  DO WITH expressions are evaluated in
1754         outer scope.  Also call save_if_needed.
1755         * decl.c (shadow_record_fields);  Fix and simplify.
1757 Tue Feb 27 22:19:40 1996  Per Bothner  <bothner@cygnus.com>
1759         * convert.c (display_int_cst):  Gereralize to wider range of ints.
1761 Thu Feb 22 06:12:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1763         * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1765         * decl.c (do_decl): In case of chill_varying_type_p, check if
1766         type of fixed part is error mark and do nothing in this case.
1768         * lex.c (convert_bitstring): Don't complain when length of
1769         bitstring is 0 (BOOLS(0) is a valid mode).
1771         * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1772         (domain) is error mark.
1774         * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1775         error_mark_node, just return.
1777 Tue Feb 20 00:01:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1779         * parse.c (parse_variant_alternative): When checking for ELSE take
1780         care of tagless variants.
1782 Mon Feb 19 05:54:45 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1784         * parse.c (parse_case_action): Check if ELSE was specified
1785         in a case label list (this is only valid for array tuples).
1786         (parse_case_expression): Deto.
1787         (parse_variant_alternative): Deto.
1789 Tue Feb 13 17:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1791         * typeck.c (chill_location):  Cleanup.  Neither SLICE_EXPR nor
1792         BIT_FIELD_REF are referable, even if their base strings are.
1794 Fri Feb  9 02:25:33 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1796         * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1797         checking the expression.
1799         * convert.c (convert): Set TREE_CONSTANT when taking the
1800         address of a function.
1802         * decl.c (start_chill_function): Check if the mode is really
1803         a mode to avoid subsequent segfaults.
1805         * typeck.c (string_assignment_condition): Add checking of
1806         bitstring length.
1808 Thu Feb  8 01:37:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1810         * actions.c (build_cause_exception): Print warning of unhandled
1811         exception only once for each exception.
1813 Mon Feb  5 22:17:13 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1815         * tree.c (discrete_count), ch-tree.h:  New function.
1816         * expr.c (build_concate_expr, build_chill_repetition_op,
1817         chill_expand_expr):  Use discrete_count;  make sure arguments
1818         to size_binop are sizetype.
1819         (powersetlen):  Trvialize using discrete_count.
1821         * inout.c (process_io_list):  Use new assign_temp function.
1822         * inout.c (build_enum_tables):  Avoid taking address of array_ref,
1823         which sometimes gets optimized to a constant.
1825         * expr.c (finish_chill_unary_op):  Call convert_to_class on argument.
1826         Remove some obsolete TREE_UNSIGNED stuff.
1827         * lex.c (convert_integer):  Removed more TREE_UNSIGNED stuff.
1829 Thu Feb  1 15:11:20 1996  Doug Evans  <dje@charmed.cygnus.com>
1831         * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1833 Wed Jan 31 17:13:25 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1835         * decl.c (char_array_type_node, wchar_array_type_node):  Removed.
1836         (init_decl_processing):  Remove array_domain_type;  don't set
1837         char_array_type_node or wchar_array_type_node.
1838         * decl.c (init_decl_processing):  Use fixup_unsigned_type to
1839         simplify code to create boolean_type_node and char_type_node.
1841 Mon Jan 29 14:20:10 1996  Doug Evans  <dje@charmed.cygnus.com>
1843         * lex.c (check_newline): Pass character after `#pragma' to
1844         HANDLE_PRAGMA.  Don't call get_directive_line if at end of line.
1846 Fri Jan 26 05:56:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1848         * expr.c (build_chill_function_call): Add check and error for
1849         actual argument is a TYPE_DECL.
1851         * parse.c (parse_set_mode): Print a warning if the set mode contains
1852         numbered and unnumbered set elements.
1854 Wed Jan 24 05:10:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1856         * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1858         * decl.c (layout_enum): Add check for negative values if
1859         enum is numbered and duplicate values in an enum.
1861 Mon Jan 15 06:21:52 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1863         * actions.c (chill_expand_assignment): Add check for lefthand side
1864         of an assignment is a location.
1866         * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1867         not "concat_expr".
1869         * expr.c (is_really_instance): New function to check if a datum
1870         is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1871         for this case.
1872         (build_chill_component_ref): call is_really_instance.
1874 Wed Jan 10 13:47:14 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1876         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  Removed;  now in ../tree.h.
1878 Mon Jan  8 15:29:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1880         * expr.c (build_char_array_expr):  Add save_if_needed's if varying.
1881         Also, remove unused len0 and len1.
1883 Mon Dec 11 17:36:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1885         * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1886         build_chill_getassociation, build_chill_getusage,
1887         build_chill_gettextrecord,  build_chill_gettextaccess:  Simplify
1888         - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1890         * parse.c (parse_action):  Minor simplification.
1892 Thu Dec  7 00:02:47 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1894         * parse.c (parse_action): In case of CALL, do a check if there
1895         is really a function call.
1897 Tue Dec  5 05:06:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1899         * convert.c (display_int_cst): Fix printing of control sequence.
1901 Thu Nov 30 21:07:57 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1903         * grant.c (decode_constant, decode_constant_selective):  Make work
1904         for REAL_IS_NOT_DOUBLE case.
1906         * decl.c (CHILL_INT_IS_SHORT):  New macro.
1907         (init_decl_processing):  Use CHILL_INT_IS_SHORT.
1908         Change name of integer_type_node from _cint to long.
1910 Mon Nov 27 17:07:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1912         * loop.c (top_loop_end_check):  Check while condition *after*
1913         getting next powerset element.
1915 Mon Nov 27 05:29:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1917         * parse.c (parse_receive_case_action): Fix typo in error message.
1919         * convert.c (display_int_cst): Format characters like strings in
1920         grant.c(decode_constant).
1922         * grant.c: Remove the old forbid stuff.
1924         * lex.c (readstring): Fix reading of '^^'.
1926         * parse.c (parse_procedure_mode): nreverse param_types.
1928 Thu Nov 23 05:39:57 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1930         * actions.c (chill_expand_assignment): Check for assigning to
1931         location with non-value mode.
1933         * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1934         Add new and change some prototypes.
1936         * decl.c (init_nonvalue_struct): New function to generate
1937         initialisation code for non-value structs.
1938         (init_nonvalue_array): New function to generate initialisation
1939         code for non-value array's.
1940         (do_decl): Call one of the above mentioned functions in case
1941         we have a mode with the non-value property.
1942         (start_chill_function): Print error message if a non-value mode
1943         gets returned without LOC and check for arguments of non-value
1944         modes only gets passed by LOC.
1946         * grant.c (print_proc_tail): Fix for procedure returning LOC.
1948         * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1949         association_type_node.
1950         (invalidate_access_recordmode): New function to set the
1951         record mode of an ACCESS to error_mark_node in case of
1952         record mode has the non-value property.
1953         (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1954         (build_access_mode, build_chill_gettextaccess): Deto.
1955         (check_exprlist): Correct processing of repetition factor.
1957         * lex.c (readstring): Correct processing of control
1958         sequences of the form '^([H | D | O | B]'xx)'.
1960         * loop.c: Cleanup iterator handling (done by Per).
1961         (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1962         functions for starting and ending a loop scope in case
1963         of initialising an array with non-value property.
1965         * parse.c (check_end_label): Remove '\n' from error message.
1966         (parse_loc_declaration): Print error in case of loc-identity
1967         declaration without initialisation or with keyword INIT.
1968         (parse_do_action): Clean up iterator handling (done by Per).
1970         * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1971         message in case of TYPE_DECL is a signal and the mode has the
1972         non-value property.
1973         (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1974         the array type if the array element mode has the non-value
1975         property.
1976         (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1977         type if one of the fields have the non-value property. If the
1978         record is a buffer mode and the element mode of the buffer has
1979         the non-value-p., invalidate it (see
1980         tasking.c (invalidate_buffer_element_mode). Same for access modes.
1982         * tasking.c (build_signal_descriptor): If the signal type have
1983         the non-value property, do nothing.
1984         (build_receive_signal_case_label): Don't do an assignment if the
1985         signal type have the non-value property.
1986         (build_receive_buffer_case_label): Add check for buffer element
1987         mode is ERROR_MARK.
1988         (expand_send_buffer): Deto.
1989         (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1990         (invalidate_buffer_element_mode): New function to set type of
1991         buffer element mode to error_mark_node.
1992         (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1994 Wed Nov 15 13:26:20 1995  Jeffrey A Law  (law@cygnus.com)
1996         * inout.c (intsize_of_charsexpr): Move declaration to top
1997         of file to avoid error from solaris2.5 cc.
1999 Thu Nov  9 02:50:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2001         * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
2002         mode, temporarily reset maximum_field_alignment to 0 before
2003         layouting it to be compatible with the runtime library.
2005         * inout.c (build_chill_gettextaccess): Deto.
2007 Mon Nov  6 04:12:06 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2009         * decl.c (do_decl): If type is READonly, add check if an
2010         ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
2011         and print an error if this is true. Variables of this modes
2012         may not be declared READonly.
2013         Add check for mode is one of the above and an init value was
2014         given. This is also not allowed.
2015         Add initialisation of variables of the above modes during
2016         runtime. This influence the mechanism for detecting to
2017         build a constructor.
2018         (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
2019         BUFFER, and EVENT mode must not be READonly.
2020         (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
2021         TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
2022         (declare_predefined_file): Move to inout.c.
2023         (init_decl_processing): Add definitions for new built-in's.
2024         (finish_outer_function): Build a constructor only if
2025         build_constructor is set.
2027         * except.c: On Linux native, setjmp is __setjmp.
2029         * expr.c (build_chill_component_ref): New function. It gets called
2030         from parse.c instead of build_component_ref. Functions checks if the
2031         user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
2032         EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
2033         (build_chill_floatcall): New function to resolve CHILL's floating
2034         point builtin calls (SIN, COS, TAN, etc.).
2035         (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
2036         build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
2037         GETSTACK, and TERMINATE built-in's.
2038         (build_generalized_call): Process new built-in's.
2040         * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
2041         (decode_mode_selective): deto.
2043         * inout.c: Completely rewritten for implementing Chapter 7 of
2044         Z.200 (input and output).
2046         * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
2047         parsing numbers.
2049         * lex.h (enum rid): Add RID_ASSOCIATION.
2051         * parse.c: New flag build_constructor to indicate if a constructor
2052         should be generated at the end of compilation or not. See
2053         decl.c(do_decl).
2054         (parse_begin_end_block): Don't emit a line note.
2055         (parse_primval): Call build_chill_component_ref instead of
2056         build_component_ref.
2057         (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
2058         modes, USAGE modes, WHERE modes.
2060         * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
2061         ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
2062         (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
2064         * typeck.c (extract_constant_from_buffer): Fix thinko in case
2065         of ! BYTES_BIG_ENDIAN.
2066         (build_chill_cast): Implement representation conversion between
2067         INT's and REAL's.
2068         (chill_similar): Add check of ACCESSes.
2069         (layout_chill_range_type): Check for real ranges and print
2070         sorry message.
2072         * Make-lang.in: Change compiler version.
2073         chill also depends on Makefile.
2075         * chill.in: Process command line option -Xlinker like -Tdata.
2077         * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
2078         CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
2079         Add some prototypes.
2080         (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
2081         BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
2082         Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
2084         * gperf, hash.h: Remove definition of WHERE.
2086 Thu Oct  5 06:22:19 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2088         * grant.c (decode_constant_selective): Add some newlines
2089         to generated SPEC MODULE.
2091 Wed Oct  4 18:16:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2093         * decl.c (pop_chill_function_context):  Remove some bogosity.
2095 Wed Oct  4 05:14:00 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2097         * grant.c (print_integer_selective): In case of a RANGE of
2098         a SET mode, try to find and grant the parent mode.
2099         (grant_seized_identifier): Don't write it out, if the identifier
2100         doesn't have a seize file (it may come from a SPEC MODULE
2101         defined in the compilation unit).
2103 Fri Sep 22 14:04:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2105         * actions.c (check_non_null):  Wrap expr in SAVE_EXPR if needed.
2107 Wed Sep 20 13:51:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2109         * expr.c (force_addr_of):  Optimize an INDIRECT_REF using
2110         convert_to_pointer rather than convert (which in case of
2111         a REFERENCE_TYPE would losingly call convert_from_reference).
2113 Wed Sep 20 04:03:58 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2115         * inout.c (build_chill_writetext): In case of character string:
2116         Add processing of a concatenation including varying character
2117         strings.
2118         (intsize_of_charsexpr, get_max_size): New functions to determine
2119         the maximum size of varying character strings.
2121         * grant.c (decode_constant, decode_constant_selective): Add
2122         processing of COMPONENT_REF.
2124         * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
2125         for SYNONYM's with STRUCT mode.
2127 Mon Sep 18 17:25:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2129         * expr.c (force_addr_of):  Optimize of value is INDIRECT_REF.
2130         * typeck.c (build_chill_slice):  Call mark_addressable.
2132 Mon Sep 18 14:38:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2134         * expr.c (chill_expand_expr):  Make a copy before calling __psslice
2135         if the array is neither referable nor BLKmode.
2136         (build_set_expr):  Renamed to ...
2137         (build_compare_set_expr):  Allow one opperand to be boolean.
2138         (build_compare_expr):  Check both operands for SET_EXPR,
2139         before checking for discrete types (for -fold-strings).
2141 Fri Sep 15 11:35:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2143         * satisfy.c (safe_satisfy_decl):  For a CONST_DECL, set TREE_TYPE
2144         to error_mark_node or error.
2146 Fri Sep 15 00:26:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2148         * grant.c (decode_constant_selective): Add processing of
2149         TREE_OPERAND (val, 0).
2151 Wed Sep 13 14:24:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2153         * ch-tree.h (CH_IS_INSTANCE_MODE):  Redefine to use CH_SIMILAR.
2154         * convert.c (convert):  Use CH_IS_INSTANCE_MODE.
2155         * inout.c (build_chill_writetext):  Likewise.
2156         * tasking.c (build_receive_case_start, build_delay_case_start):  Ditto.
2157         * parse.c (parse_start_action):  Remove redundant tests.
2158         * tasking.c (build_start_process):  Also test that optset is instance.
2159         (build_copy_number, build_proc_type, expand_send_signal):  Use
2160         CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
2161         * actions.c, convert.c (instance_type_node):  Remove redundant
2162         extern declaration.
2164 Wed Sep 13 14:19:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2166         * regression.awk2:  Use \ line-continuation-markers
2167         to remove gratuitous gawk dependency.
2169 Mon Sep 11 17:26:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2171         * typeck.c (build_chill_modify_expr):  Use force_addr_of.
2172         (mark_addressable):  Handle INDIRECT_REF of ADDR_EXPR.
2174         * typeck.c (check_case_value), ch-tree.h:  Moved to ...
2175         * actions.c (check_case_value):  ... here.  Also check for
2176         compatibility with selector (which is passed as extra argument).
2177         (chill_handle_case_label_range):  Take selector argument,
2178         and use it to call check_case_value.
2179         (chill_handle_case_label):  Take extra selector argument.
2180         * ch-tree.h (chill_handle_case_labe):  Add prototype.
2181         * except.c expr.c, parse.c:  Remove chill_handle_case_label prototypes.
2182         * actions.c, except.c, expr.c, parse.c: Pass extra selector
2183         argument to function calls as needed.
2185 Mon Aug 28 02:47:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2187         * grant.c (decode_constant_selective): Fix a bug in writing items
2188         to grant file.
2190 Thu Aug 24 04:52:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2192         * parse.c (parse_case_expression): Print warning only in
2193         pass 1.
2195         * actions.c (print_missing_cases): Correct printing of
2196         character ranges.
2198 Wed Aug 23 15:26:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2200         * parse.c (parse_case_label_list):  Take extra parameter to
2201         indicate if we're parsing a tuple or a case-label-spec.
2202         If former, don't allow '(' EXPR ')' ',' but backup instead.
2203         (parse_case_label_specification, parse_tuple_element):
2204         Pass appropriate new argument to parse_case_label_list.
2206 Wed Aug 23 06:08:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2208         * inout.c (build_chill_readtext): Add processing of BOOL's and
2209         CHARS(n).
2211         * grant.c (decode_constant): Process nonprintable characters
2212         in a STRING_CST.
2214 Fri Aug 11 15:26:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2216         * except.c (initialize_exceptions):  Name setjmp "setjmp" and not
2217         "__builtin_setjmp" (which is not recognized by expand_call).
2219 Wed Aug  9 23:35:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2221         * loop.c (end_loop_scope):  Need to call kept_level_p,
2222         in argument to poplevel.
2224 Wed Aug  9 05:48:30 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2226         * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
2227         file might be empty). Install chill.install instead.
2229 Tue Aug  8 21:46:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2231         * loop.c (end_loop_scope):  Do poplevel *after* expand_end_bindings.
2233 Tue Aug  8 00:51:09 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2235         * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
2236         of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
2238         * decl.c (start_chill_function): Likewise ...
2240 Mon Aug  7 18:35:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2242         * tasking.c (build_process_wrapper):  Also set DECL_ASSEMBLER_NAME
2243         of PARM_DECL, since otherwise dbxout_symbol_name may barf.
2245 Mon Jul 31 14:32:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2247         * loop.c:  Re-written implementation of powerset iteration.
2248         (declare_temps):  iter_var is now integer index into bitstring,
2249         and powerset_temp just uses save_expr (normally needs no temp).
2250         (top_loop_end_check):  Pass index to start searching (from iter_var)
2251         to library function, instead of dependning on latter to clear old bits.
2252         (increment_temps):  UNless DOWN, increment iter_var.
2253         * decl.c (init_decl_processing):  Declare new types for
2254         __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
2256 Mon Jul 31 12:47:28 1995  Per Bothner  <bothner@cygnus.com>
2258         * convert.c (digest_array_tuple):  Set TREE_STATIC if possible.
2260 Fri Jul 28 05:11:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2262         * lex.c (readstring): Process integer literals starting with
2263         H', D', or B' within a control sequence.
2265 Thu Jul 27 23:08:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2267         * parse.c (parse_do_action):  Don't call push_action, but defer
2268         push_handler until begin_loop_scope.
2269         Call parse_opt_handler here, to move handler scope inside loop block.
2270         (parse_action):  After do_action, nothing to do now.
2271         * loop.c (begin_loop_scope):  Also call push_handler here.
2272         (declare_temps):  Copy derived flag to user_var.
2273         (declare_temps):  For POWERSET, always copy to temporary (even if
2274         constant), since the runtime clears bits from it.
2276         * expr.c (build_chill_sizeof):  Use convert_to_class.
2277         * satisfy.c (safe_satisfy_decl):  Cleanup handling of CONST_DECL -
2278         set proper value of CH_DECL_FLAG on both the decl and its value.
2280         * convert.c (digest_array_tuple); Slightly better errors.
2282 Wed Jul 26 22:13:39 1995  Per Bothner  <bothner@cygnus.com>
2284         * expr.c (expand_packed_set):  Also allocate the CONSTRUCTOR itself.
2285         (fold_set_expr):  Simplify accordingly.
2286         (build_concat_expr):  Constant fold bitstring CONCAT_EXPRs.
2288 Thu Jul 13 12:21:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2290         * typeck.c (build_chill_slice):  Use build1 instead of build.
2291         * typeck.c (xtract_constant_from_buffer):  Pass correct precision
2292         to lshift_double.
2294         * typeck.c (expand_constant_to_buffer):  Handle RANGE_EXPR index.
2295         * convert.c (digest_array_tuple):  Generate RANGE_EXPR as index
2296         for tuples with ranges.
2298 Thu Jun 29 23:41:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2300         * typeck.c (build_chill_slice):  Re-implement to use casts
2301         instead of build_chill_array_ref_1 (which doesn't always work).
2302         * convert.c (convert):  Remove old bugs code.
2304 Tue Jun 27 05:00:04 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2306         * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
2307         expression so that a possible handler at the if action will
2308         be found.
2309         (parse_proc_body): New argument to indicate if the function
2310         raises exceptions or not. In case the function will raise
2311         exception: start a handler, parse the function and generate
2312         code for reraising the exceptions (call chill_reraise_exceptions).
2314         * except.c (chill_reraise_exceptions): New function to generate
2315         code for reraising exceptions are specified at the function
2316         definition.
2318         * ch-tree.h: Add prototype for chill_reraise_exceptions.
2320         * decl.c (build_chill_function_type): When the function (type)
2321         raise an exception, generate two new arguments (additional to the
2322         formal parameters), the filename and linenumber of the caller.
2323         (start_chill_function): likewise...
2325         * expr.c (build_chill_function_call): If the called function raises
2326         exceptions, give current filename and linnumber as aditional
2327         arguments.
2329         * actions.c (build_cause_exception): Handle case when function
2330         propagates the exception.
2332         * grant.c (print_proc_tail, print_proc_tail_selective): If the
2333         function(type) raises exceptions, don't process the last to
2334         parmeters of the formal argument list, they are compiler
2335         generated.
2337         * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
2338         the exception lists are equal.
2340 Thu Jun 22 19:27:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2342         * loop.c (flag_local_loop_counter):  Change default to 1.
2343         (end_loop_scope):  Set 'keep' parameter in poplevel call.
2344         (declare)_temps):  Don't set IDENTIFIER_LOCAL_VALUE, since that
2345         is handled (correctly!) by pushdecl.
2346         (begin_loop_scope):  Call pushlevel here,
2347         * parse.c (parse_do_action):  Move pushlevel so only called for WITH.
2348         * decl.c (struct scope):  Remove n_incomplete field and its uses.
2349         (pushdecl):  Re-write to use proclaim_decl.  Remove old C-isms.
2350         (init_decl_processing):  Re-name integer_type_node as "_cint" to
2351         remove complaint from pushdecl about chill_integer_type_node as "int".
2353 Tue Jun 20 18:15:58 1995  Doug Evans  <dje@canuck.cygnus.com>
2355         * Make-lang.in (chill-runtime): Restore patch to disable building of
2356         runtime libraries for cross compilers.  This patch should remain
2357         until a build of a freshly checked out devo "just works".
2359 Mon Jun 19 06:01:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2361         * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
2363         * decl.c (init_decl_processing): Remove builtin function
2364         __cause_exception. New builtin functions __cause_ex1 and
2365         __unhandled_ex.
2367         * except.c (is_handled): Return 0 when no handler found,
2368         1, if the handler is in local scope and 2, if function
2369         may propagate the exception.
2371         * actions.c (build_cause_exception): New argument to
2372         indicate if a warning should be printed when
2373         causing an unhandled exception. Call is_handled here.
2375         * ch-tree.h: Change prototype for build_cause_exception.
2376         New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
2377         identifier already has been written to grant file.
2379         * grant.c (write_spec_module): If not GRANT ALL specified,
2380         write only this identifiers to grant file which are
2381         necessary to form a prober grant file. This will shorten
2382         grant files and speed up compilation.
2383         (decode_constant_selective, decode_mode_selective,
2384         get_type_selective, decode_decl_selective,
2385         grant_array_type_selective, get_tag_value_selective,
2386         print_enumeral_selective, print_integer_selective,
2387         print_struct_selective, print_proc_tail_selective,
2388         grant_one_decl_selective): New functions.
2390         * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
2391         directives to grant file.
2393         * parse.c (parse_on_exception_list): Fis constructing of
2394         exceptions list.
2396 Wed Jun 14 15:21:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2398         * typeck.c (valid_array_index_p):  Check for syntax error, where
2399         index is a mode, rather than a value.
2401         * expr.c (build_chill_binary_op_1):  Remove unused function.
2403 Sat Jun 10 11:36:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2405         * except.c (is_handled):  New function.
2406         Various fixes here and there to make it work.
2408         * parse.c (parse_param_name_list):  Set DECL_ASSEMBLER_NAME.
2409         (Otherwise dbxout may crash.)
2411         * satisfy.c (satisfy case FUNCTION_TYPE):  Check for non-type result.
2412         * decl.c (start_chill_function):  If result type was error_mark,
2413         kludge type chill_os result_decl to avoid extra errors.
2414         * actions.c (chill_expand_result, chill_expand_return):  If type of
2415         chill_result_decl is error_mark, do nothing.
2417         * typeck.c (chill_similar): Fix thinko in recent change.
2419         * config-lang.in (diff_exclude):  Remove ch/lex.c - now it's a
2420         true source file, and is never longer generated with [f]lex.
2422         * regression.sh:  Pass -s to make clean (to make it silent).
2423         Explicitly call gawk, instead of depending of '#!' to work.
2424         Add --objdir flags.  Never send mail to bill.
2426 Thu Jun  8 15:08:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2428         * typeck.c (chill_similar):  Add extra parameter.  Use to to prevent
2429         infinite recursion.
2430         (chill_equivalent, chill_l_equivalent):  Also add new parameter.
2431         * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT):  Modify to match.
2433 Tue Jun  6 17:14:49 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2435         * loop.c (declare_temps):  If -flocal-loop-counter, make sure to
2436         pushdecl the new variable (created with decl_temp1).
2437         And fix the type of the local variable for powerset iteration.
2439 Tue Jun  6 15:07:19 1995  Per Bothner  <bothner@cygnus.com>
2441         * typeck.c (mark_addressable):  Handle ADDR_EXPR inside
2442         NOP_EXPR inside INDIRECT_EXPR.  For TRUTH_ANDIF_EXPR,
2443         TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
2444         (which is used for range-checks and suchlike).
2446 Thu Jun  1 02:45:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2448         * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
2449         GE_EXPR (don't do invert_truthvalue, just switch operands).
2451 Wed May 31 14:00:38 1995  Doug Evans  <dje@canuck.cygnus.com>
2453         * lang-options.h: New file.
2454         * lang-specs.h: New file.
2456 Wed May 24 01:45:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2458         * actions.c (assign_stack_temp):  Remove unneeded declaration.
2460 Tue May 23 00:17:38 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2462         * parse.c (parse_on_exception_list):  Return list of exception
2463         names in pass 1, not in pass 2.  (Return non-NULL dummy if pass 2.)
2464         (parse_on_alternatives):  Call chill_handle_on_labels even if ignoring.
2465         (parse_opt_handler):  Likewise for chill_start_default_handler.
2466         * except.c (push_handler):  Clear on_alt_list only if pass 1.
2467         (chill_handle_on_labels):  Build on_alt_list in pass 1,
2468         retrieve it in pass 2.
2470         Fix so that decl_temp1 does not expand_decl_init, which calls
2471         free_temp_slots, which loses in the middle on an expression.
2472         * decl.c (finish_decl):  Don't call expand_decl_init.
2473         (do-decl):  Do initialization assignment even if stack variable.
2474         * parse.c (parse_loc_declaration):  Call free_temp_slots.
2476         * decl.c (finish_decl), ch-tree.h:  Remove last two always-NULL
2477         parameters.  Cleanup never-used code.
2478         * decl.c, except.c:  Update calls to finish_decl.
2480         * decl.c (case_else_node):  Define new variable.
2481         (init_decl_processing):  Initialize it.
2482         (make_chill_variants): If variant label is case_else_node (i.e. it
2483         is (ELSE):), treat that as an ELSE variant.
2484         * ch-tree.h (case_else_node):  Declare case_else_node.
2485         * parse.c (parse_case_label):  Use case_else_node.
2487 Mon May 22 10:18:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2489         * grant.c (print_proc_tail):  Also call print_proc_exceptions.
2490         (decode_decl):  Don't explicitly call print_proc_exceptions for
2491         FUNCTION_DECL.
2492         (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
2494         * actions.c (chill_convert_for_assignment):  Use save_if_needed,
2495         instead of save_expr, in case value is a reference.
2497         * typeck.c (build_chill_slice):  Fix old thinko (missing call to
2498         build_pointer_type).
2500         * actions.c (size_int):  Remove unused and conflicting prototype.
2502 Wed May 17 16:23:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2504         * actions.c (chill_convert_for_assignment):  Call save_expr if
2505         range_checking (twice).
2507 Tue May 16 11:33:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2509         * typeck.c (layout_chill_range_type):  Re-organize error checking.
2510         Add extra parameter to indicate if non-constant bounds are allowed.
2511         If bounds are bad, set them to the min_value of the parent.
2512         * ch-tree.h (layout_chill_range_type):  Update declaration.
2513         * satisfy.c (satisfy):    Update call of layout_chill_range_type.
2514         * typeck.c (build_chill_range_type):  Likewise.
2515         * tree.c (build_string_type):  Likewise.
2517 Tue May 16 00:37:51 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2519         * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
2521 Mon May 15 12:54:32 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2523         * satisfy.c (satisfy):  Supress error message for REF <error_mark>.
2524         * decl.c (push_modedef):  Check for TREE_CODE != ERROR_MARK, instead
2525         of against error_mark_node.  (smash_dummy_type can copy error marks.)
2526         (finish_decl):  Simplify C-derived check for incomplete type,
2527         and suppress if it is an ERROR_MARK.
2528         Don't call rest_of_decl_compilation if type is an ERROR_MARK.
2530 Sun May 14 22:52:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2532         * convert.c (convert):  Handle array types with different modes.
2534 Thu May 11 15:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2536         * loop.c (build_loop_iterator):  Handle the case of a non-local
2537         loop counter having reference type.
2539 Thu May 11 07:04:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2541         * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2542         build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2543         to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2545 Mon May  8 15:27:16 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2547         * expr.c (build_chill_card):  Do constant folding, if possible.
2548         (build_max_min):  Do constant folding for MIN/MAX of powersets.
2550 Mon May  8 06:57:21 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2552         * expr.c (build_chill_sizeof): Add corect processing of a
2553         SIGNAL definition without data.
2555 Sat May  6 16:27:10 1995  Doug Evans  <dje@canuck.cygnus.com>
2557         * Make-lang.in (maintainer-clean): Renamed from realclean.
2559 Tue May  2 06:16:23 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2561         * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2562         otherwise "handler stack" will get out of sync.
2564 Mon Apr 24 09:51:07 1995  Per Bothner  <bothner@rtl.cygnus.com>
2566         Fixes to support module-level non-static temporary variables.
2567         * parse.c (parse_loc_declaration):  If all_static_flag and not
2568         resursive, tell do_decls to make new decl static.
2569         * decl.c (do_decl):  Don't use maybe_static function to force static.
2570         (do_decl):  Don't let initialization count as "using" the variable.
2571         (maybe_static):  Removed.
2572         (finish_decl):  Call expand_decl and expand_decl_init if needed
2573         (as it will be for non-static temporaries).
2575 Fri Apr 21 21:02:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2577         * convert.c, expr,c typeck.c (expand_decl):  Remove usused declaration.
2579 Fri Apr 21 02:27:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2581         * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2582         LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2583         GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2585 Thu Apr 20 15:29:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2587         * parse.c (yytext, finput):  Remove unused declarations.
2589         * parse.c (proc_action_level):  New variable.
2590         (parse_proc_body):  New function.  Common code from
2591         parse_procedure_definition and parse_process_definition moved here.
2592         Save, set, and restore proc_action_level from action_nesting_level.
2593         (parse_action case RETURN):  Pass proc_action_level to
2594         expand_goto_except_cleanup.
2596 Thu Apr 20 06:02:20 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2598         * grant.c (really_grant_this): Add processing of LABEL_DECL's
2599         (don't grant them).
2601 Tue Apr 18 18:16:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2603         * lex.c ( convert_bitstring):  Use BYTES_BIG_ENDIAN rather
2604         than BITS_BIG_ENDIAN to layout bits within bitstring.
2605         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2606         Likewise.
2608 Sun Apr 16 19:55:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2610         * decl.c (finish_chill_function):  If currently global_function_decl,
2611         don't set outer_function to global_function_decl.
2613 Wed Apr 12 22:45:06 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2615         * decl.c (start_chill_function):  Normal functions are nested.
2616         (finish_chill_function):  No longer takes a 'nested' parameter.
2617         Normal functions are nested.
2618         Never call permanent_allocation, since it does little good (all normal
2619         functions are nested), and trashes some things we need.
2620         (finish_outer_function):  Update call to finish_chill_function.
2621         * grant.c (chill_finish_compile):  Likewise.
2622         * tasking.c (build_process_wrapper):  Likewise.
2623         * parse.c (end_function):  Likewise.
2624         * ch-tree.h (finish_chill_function):  Update declaration.
2626         * parse.c (parse_asm_clobbers):  Re-enable.
2627         (expand_asm_operands):  function.
2628         (parse_asm_action):  Re-enable.  Don't do anything in pass 1.
2630         * typeck.c (build_chill_slice):  Do constant folding.
2631         Also, work around problem where expand_expr constant folds ARRAY_REF.
2632         (sort_constructor):  Remove unused function.
2634         * expr.c (chill_expand_expr case CONCAT_EXPR):  Make sure we
2635         emit_block_move if needed with correct size.
2637         * inout.c (build_chill_io_list_type):  Simplify.
2639         * lex.c (check_newline):  Uncomment some dwarf stuff,
2640         which needs get_directive_line, which we no longer have.
2642 Wed Apr  5 16:05:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2644         * Makefile.in (C_OBJS, xcc1chill):  Removed.  We no longer
2645         link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2647         * expr.c (build_chill_component_ref):  Renamed to build_component_ref.
2648         (chill_truthvalue_conversion):  Renamed to truthvalue_conversion.
2649         * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2650         typeck.c:  Update accordingly.
2651         * typeck.c (valid_array_index_p):  We only need to save_expr (index)
2652         if we're range-checking.
2653         * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2654         mark_addressable, initializer_constant_valid_p, check_case_value,
2655         type_for_size, type_for_mode):  New functions, copied from
2656         ../c-common.c and ../c-typeck.c.
2658         * lang.c (incomplete_type_error):  New.  (Was in c-common.o.)
2659         * decl.c (constant_expression_warning):  New.  (Was in c-common.o.)
2661         * lang.c (string_index_type_dummy):  Remove definition from here.
2662         * tree.c (string_index_type_dummy):  Define here instead.
2663         * lang.c (lang_init):  Move init of string_index_type_dummy
2664         (which is too late) from here ...
2665         * decl.c (init_decl_processing): ... to here.
2667         * decl.c (signed_boolean_type_node):  New variable.
2668         (init_decl_processing):  Initialize it.
2670         * parse.c:  Comment out ASM action support, for now.
2672         * loop.c (maybe_skip_loop):  Make return void, not int.
2673         Use build_compare_discrete_expr.
2674         (increment_temps):  Use chill_expand_assignment.
2676 Thu Mar 30 23:28:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2678         * decl.c (do_decl):  If default-initializing variable-length
2679         string to "" (or []), make it lifetime_bound.
2681 Thu Mar 30 02:51:59 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2683         * parse.h, hash.h, gperf: New compiler directives
2684         EMPTY_ON and EMPTY_OFF.
2686         * lex.c: New variables empty_checking and runtime_checking_flag.
2687         (ch_lex_init): Initialize empty_checking and range_checking
2688         when switching from pass 1 to 2.
2689         (read_directive): Add processing of EMPTY_OFF/ON.
2691         * expr.c (build_chill_indirect_ref): New argument do_empty_check
2692         to indicate if null pointer checking should be done or not.
2693         It's not always necessary to do a null pointer check.
2695         * decl.c (lookup_name): Add argument to call to
2696         build_chill_indirect_ref.
2697         (shadow_record_fields): ...
2698         * parse.c (parse_primval): ...
2699         * tasking.c (build_process_wrapper): ...
2700         (build_receive_buffer_case_label): ...
2702         * ch-tree.h: Change prototype of build_chill_indirect_ref.
2703         Add declaration of runtime_checking_flag and empty_checking.
2705         * actions.c (check_non_null): Do null pointer checking only
2706         when enabled (empty_checking != 0).
2708 Wed Mar 29 15:18:23 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2710         * actions.c (chill_expand_assignment):  Add 'else' so we don't do
2711         regular assignment in addition to spacial assignment (e.g. for slices).
2713         * ch-tree.h (convert_to_discrete):  Add declaration.
2714         * typeck.c (convert_to_discrete):  New function.
2715         (valid_array_index_p):  Use convert_to_discrete.  Also simplify.
2716         (build_chill_slice):  Say sorry if variable-length bitstring.
2717         (build_chill_slice_with_length):  Re-do bounds check.
2718         * expr.c (check_case_selector):  Re-write to use convert_to_discrete.
2719         (build_chill_num, build_chill_pred_or_succ):  Use convert_to_discrete.
2721         * decl.c (do_decl):  Don't do redundant chill_convert_for_assignment.
2723 Wed Mar 29 00:00:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2725         * expr.c (build_chill_num): need_unsigned have to be set for
2726         characyer strings of length 1 too. Happens when compiling
2727         with -fold-strings and do NUM(a(i)).
2729         * parse.c (parse_loc_declaration): Print error message only
2730         in pass 1.
2731         (parse_mode): Likewise ...
2733         * tasking.c (build_tasking_message_type): Temporarily reset
2734         maximum_field_alignment to get proper aligned temp. variables
2735         gets passed to runtime system.
2737 Tue Mar 28 00:08:06 1995  Per Bothner  <bothner@cygnus.com>
2739         * typeck.c (my_build_array-ref):  Merged into build_chill_array_ref_1.
2740         But don't convert index to integer_type_node.  And we don't need to
2741         check the we're given an array.
2742         * typeck.c (valid_array_index_p):  If flag_old_strings, convert
2743         chars(1) to char and bools(1) to bool before index checking.
2745 Sun Mar 26 22:42:39 1995  Per Bothner  <bothner@cygnus.com>
2747         * ch-tree.h (struct module):  Added next module field.
2748         * decl.c (first_mdoule, next_module):  New global variables.
2749         (switch_to_pass_2):  Re-initialize next_module.
2750         (push_module):  In pass 2, reuse the same module objects from pass 1.
2752         * decl.c (declare_predefined_file):  Set DECL_IN_SYSTEM_HEADER.
2754         * typeck.c (valid_array_index_p):  Do range check on original index,
2755         before we convert to domain type.
2757 Fri Mar 24 11:43:39 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2759         * parse.c (parse_fixed_field):  New function.
2760         (parse_variant_field_list):  New function replaces parse_simple_fields.
2761         (parse_variant_alternative, parse_field):  Update to use new functions.
2762         (parse_field):  Error message if neither CASE nor NAME.
2764         * actions.c (check_non_null):  New function - checks for NULL pointers.
2765         * ch-tree.h (check_non_null):  New declaration.
2766         * tasking.c (expand_send_signal):  Call check_non_null.
2767         * expr.c (build_chill_indirect_ref, build_chill_function_call):  Same.
2768         * lex.h (enum rid):  Add RID_EMPTY.
2769         * lex.c (init_lex):  Initialize ridpointers[RID_EMPTY].
2771         * lex.c (read_directive):  Remove 2 calls of to_global_binding_level
2773 Wed Mar 22 16:36:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2775         * tasking.c (tasking_list):  Change to chain of TREE_VEcs, rather than
2776         chain of (nested) TREE_LIST nodes.
2777         (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2778         TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE):  New macros.
2779         (tasking_setup, tasking_registry, add_taskstuff_to_list):  Use them.
2781         * ch-tree.h (C_TYPE_FIELDS_READONLY):  Rename to TYPE_FIELDS_READONLY.
2782         (TYPE_READONLY_PROPERTY):  New macro, to match Z.200 concept.
2783         * typeck.c (build_chill_modify_expr):  Don't check for read-only-ness,
2784         since it is redundant for chill_expand_assignment and breaks
2785         reach-bound initialization in do_decl.
2786         (my_build_array_ref):  Simplify by using TYPE_READONLY_PROPERTY.
2787         (layout_chill_array_type):  Set TYPE_FIELDS_READONLY if appropriate.
2788         * actions.c (chill_expand_assignment):  Check TYPE_READONLY_PROPERTY
2789         instead of TREE_READONLY of the target's type.
2790         * expr.c (build_chill_function_call):  Likewise.
2791         * inout.c (build_chill_readtext):  Likewise.
2792         * decl.c (do_decl):  Likewise, to check if init is required.
2794         * typeck.c (build_chill_bitref):  Removed unused RANGE_EXPR hack.
2796 Wed Mar 22 07:52:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2798         * tasking.c (build_start_process): Get a unique identifier for
2799         the start arguments.
2801 Tue Mar 21 07:36:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2803         * expr.c (fold_set_expr): At label build_result: Add setting unused
2804         bits to 0. This is the same as the runtime library does.
2806         * parse.c (expect): Function returns now int, 0, if the expected
2807         token was not got, 1 when it was found.
2808         (parse_synonym_definition): In case of syntax error (missing =),
2809         set expr to NULL_TREE and mode to error_mark to avoid subsequent
2810         segfaults.
2812         * chill.texi: Add chapter about differences to Z.200/1988.
2814 Mon Mar 20 18:01:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2816         * lang.c (chill_print_error_function):  New function, to report
2817         module name if not inside a function.
2818         (lang_init):  Set print_error_function to chill_print_error_function.
2820         * tasking.c (max_queue_size, buffer_element_mode):  Cleanup
2821         to remove unreachable code.
2823         * grant.c (chill_finish_compile):  Avoid doing a lookup_name
2824         to find init function (which got broken by recent nesting re-org).
2826         * decl.c (poplevel):  Push and pop function context around
2827         call to output_inline_function (as done for C and C++).
2829 Thu Mar 16 17:56:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2831         * parse.c (parse_pass_1_2):  If unknown top-level token, skip pass 2.
2833 Wed Mar  8 13:54:33 1995  Doug Evans  <dje@canuck.cygnus.com>
2835         * Make-lang.in (chill-runtime): Temporarily disable building of
2836         runtime libraries for cross compilers.
2838 Mon Mar  6 23:36:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2840         * parse.c, decl.c:  Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2842         * configure:  Merge in tolerance for new flags (e.g. --x-libraries).
2844 Sat Mar  4 15:47:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2846         * expr.c (build_chill_arrow_expr):  Error if pass == 1.
2848 Thu Mar  2 19:28:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2850         * decl.c (do_decl):  Setting seen_action must be done in pass 1.
2851         (save_decl):  Don't set DECL_CONTEXT to global_function_decl.
2852         (start_chill_function):  Simplify due to above change.
2854         * parse.c (parse_case_label):  Hack to distinguish (ELSE) from (*).
2855         * grant.c (decode_constant):  Emit ELSE in case label.
2857         * parse.c (serious_errors):  New global variable.
2858         * parse.c (to_global_binding_level):  Set serious_errors.
2859         (parse_pass_1_2):  Exit after pass 1 if serious_errors > 0.
2860         * lex.c (readstring):  Recover from unterminstaed control sequence.
2862 Tue Feb 28 17:08:08 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2864         Re-write of module-level actions.  No longer generate a module
2865         function for module-level actions.  Instead, put them inside
2866         a new global dummy function.  Nest everything logically inside it.
2868         * lex.h, grant.c (chill_module_name):  Removed declaration.
2869         * grant.c (write_spec_module):  Instead use current_module->name.
2870         * grant.c (chill_start_module_code, chill_finish_module_code):
2871         Removed.
2872         * grant.c (chill_finish_compile):  Make rtl for global function.
2874         * actions,c (push_action):  Don't call chill_start_module_code.
2875         * expr.c (build_chill_function_call, build_generalized_call):
2876         Likewise.
2877         * parse.c (INIT_ACTION):  Likewise.
2879         * parse.c (seen_action):  New variable.
2880         * parse.c (end_function):  Always call pop_chill_function_context.
2881         (parse_procedure_definition):  Always call push_chill_function_context.
2882         (parse_modulion):  Parse optional handler.
2883         (parse_modulion, parse_spec_module):  Do find_granted_decls.
2884         (parse_action):  Set seen_action if global and a real action.
2885         ([arse_program):  Call start_outer_function and finish_outer_function.
2887         * ch-tree.h:  Appropriate updates.
2889         * tasking.c (generate_tasking_code_variable):  Make it lifetime-bound.
2890         (build_process_header):  Always push_chill_function_context;
2891         we are now always nested.
2892         (build_process_wrapper):  Always pop_chill_function_context.
2894         * tasking.c (build_start_process):  Only expand_start_bindings and
2895         expand_end_bindings if pass 2.
2897         * decl.c (global_function_decl):  New variable.
2898         (do_decl):  Implement reach-bound initialization of static variables.
2899         (start_chill_function):  Set DECL_CONTEXT to NULL if
2900         it would be global_function_decl (so as to not confuse gcc backend).
2901         (start_chill_function, finish_chill_function):  If compiling
2902         global_function_decl in pass 2 and !seen_action, suppress it.
2903         (set_module_name):  New function.
2904         (global_bindings_p):  Re-defined to check against global_function_decl.
2905         (start_outer_function, finish_outer_function):  New functions.
2907 Tue Feb 28 16:00:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2909         * typeck.c (build_chill_modify_expr):  Inline logic from
2910         chill_expand_array_assignment,
2911         * actions.c (chill_expand_array_assignment):  Removed.
2912         (chill_expand_assignment):  Remove call to removed function.
2914         * lex.c (reinit_parse_for_function):  Removed empty unused function.
2915         * decl.c (start_chill_function):  Don't call removed function.
2917 Tue Feb 28 00:29:51 1995  Per Bothner  <bothner@cygnus.com>
2919         * configure:  Merge in code for calculating host, build, and
2920         target and canon_{host,build,target} from ../configure.
2921         Fix calculation of mainsrcdir.  Host canon_* variables
2922         to merge in build-make (as in ../configure).
2924 Sun Feb 26 18:59:02 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2926         * typeck.c (expand_constant_to_buffer):  Use new function
2927         get_set_constructor_bytes.
2929 Tue Feb 21 01:41:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2931         * inout.c (build_chill_writetext): Add processing of
2932         conditional expressions in argument list.
2934         * parse.c (parse_opt_name_string): Print error message only
2935         in pass 1.
2937         * chill.texi: Add chapter about compiler directives.
2939 Tue Feb 14 16:45:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2941         * decl.c (start_chill_function):  Set FUNCTION_NEEDS_STATIC_CHAIN
2942         unless nested.
2944         * decl.c (decl_temp1):  Make lifetime_bound iff static.
2946 Fri Feb  3 04:30:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2948         * grant.c (really_grant_this, search_in_list): New static
2949         functions to determine if a decl should be written to
2950         grant file.
2951         (write_spec_module): Add call to really_grant_this.
2953 Fri Jan 27 00:06:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2955         * actions.c (check_expression): Apply Per's patch.
2956         (chill_expand_result): New argument to indicate if we come
2957         from a RETURN or RESULT action. Change various error messages.
2959         * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2960         New argument for chill_expand_result.
2962         * chill.in: In case of -fgrant-only, clear library, libpath and
2963         startfile to avoid warnings from gcc.
2965         * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2967         * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2969         * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2970         and subsequent SEIZEs to grant file, if the seize file is
2971         used restricted.
2973         * lex.c (read_directive): Process new compiler directive
2974         USE_SEIZE_FILE_RESTRICTED.
2975         (handle_use_seizefile_directive): Same as above.
2976         (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2977         if this seize file is used restricted.
2979         * parse.c (parse_action, case RETURN): Change RETURN expr action
2980         to RESULT expr; RETURN. This enables range checking and
2981         exception delivery in case of rangefail.
2983 Tue Jan 17 07:38:27 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2985         * decl.c (init_decl_processing): Add definition of
2986         library function __inbitstring (see expr.c).
2988         * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2989         __inpowerset fir POWERSET's and function __inbitstring for
2990         BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2991         in case of BITSTRING's we have to do one.
2992         (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2993         statement with no effect).
2995 Fri Jan 13 13:35:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2997         * actions.c (check_expression):  Simplify result.
2999         * ch-tree.h (SET_CH_NOVELTY_NONNIL):  New macro.
3000         * expr.c, timing.c, typeck.c:  Use SET_CH_NOVELTY_NONNIL.
3002         * typeck.c (valid_array_index_p), ch-tree.h:  Change interface
3003         to return modified index expression.  Call error if out-of-range.
3004         * actions.c, typeck.c:  Modify
3005         for new valid_array_index_p interface.
3007         * actions.c (build_chill_slice):  Copy novelty of index type.
3009 Fri Jan 13 13:04:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3011         * convert.c (digest_array_tuple):  Allow mode name in array
3012         tuple label.  Print error message instead of aborting.
3014         * parse.c (parse_body):  Error message only if pass 1.
3016         * decl.c (check_identifier), ch-tree.h:  Remove.  Unused.
3018 Wed Jan 11 14:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3020         * parse.c (parse_modulion):  Undo yesterday's change (to allow
3021         an ON-handler to follow) until we re-implement module.
3023 Tue Jan 10 17:23:55 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3025         * loop.c (declare_temps):  Remove bogus prohibition against
3026         iterating over BOOL arrays.
3028         * parse.c (parse_semi_colon):  Make it a pedwarn (instead of an
3029         error) if a semi-colon is missing before an END.
3030         (parse_action):  Likewise.
3031         * parse.c (parse_modulion):  Allow an ON-handler to follow.
3033         * parse.c (parse_set_mode):  Use parse_expression to get
3034         values for number set elements.
3036         * expr.c (build_compare_expr):  Make sure result has
3037         CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
3038         (finish_chill_binary_op):  Likewise for IN_EXPR.
3040 Tue Jan 10 04:46:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
3042         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
3043         checking the argument.
3044         (chill_expand_assignment): Take care of a newmoded dst_offset
3045         when calling __pscpy and a newmoded from_pos when calling
3046         __setpowersetbits.
3048         * expr.c (chill_expand_expr): When calling __psslice take care
3049         of a newmoded min_value.
3051         * parse.c (parse_name_string): Print error message only in
3052         pass 1.
3054 Tue Jan  3 19:56:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3056         * typeck.c (build_chill_array_ref_1):  Use varying_to_slice
3057         instead of building a VRAY_ARRAY_REF node.
3058         * ch-tree.def (VARY_ARRAY_REF):  Removed.
3059         * actions.c (chill_expand_assignment):  Will never call
3060         expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
3061         (expand_assignment_to_varying_array):  Removed.
3062         * convert.c (convert):  Remove unneeded VARY_ARRAY_REF support.
3063         * expr.c (chill_expand_expr):  Likewise.
3065 Tue Jan  3 19:50:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3067         * parse.c (parse_iteration):  Set step_value to NULL if missing.
3068         * loop.c (ITER_TYPE):  Remove DO_RANGE.
3069         (build_loop_iterator):  Implement old DO_RANGE in terms of DO_STEP.
3070         (begin_loop_scope):  Don't return on error.
3071         (build_loop_iterator):   Calculate loop variable type using
3072         resulting classes (as in Z200), rather than precision.
3074         * loop.c (initialzie_iter_var, bottom_loop_end_check):  For DO_STEP,
3075         make iter_var one less to avoid overflow.
3076         * loop.c (build_loop_iterator):  If !flag_local_loop_counter,
3077         declare a new variable if needed, as allowed by Z200 (1984).
3079         * ch-tree.h (ch_class):  Add typedef.
3081         * typeck.c (chill_resulting_class):  New function.
3082         (chill_root_resulting_class):  Remove.
3083         * ch-tree.h (CH_RESULTING_CLASS):  New macro.
3084         (CH_ROOT_RESULTING_CLASS):  Re-implement using CH_RESULTING_CLASS.
3086 Tue Jan  3 19:36:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3088         * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
3089         Change interface to take IDENTIFIER tree node, rather char char*.
3090         (check_expression): Change (simplify) callers appropriately.
3091         * parse.c (parse_action), typeck.c (valid_array_index_p):  Likewise.
3092         * lex.h (enum rid):  Add RID_ASSERTFAIL.
3093         * lex.c (init_lex):  Enter RID_ASSERTFAIL.
3094         * parse.c (parse_action case ASSERT):  Fix thinko TRUTH_ANDIF_EXPR
3095         to TRUTH_ORIF_EXPR.  Use RID_ASSERTFAIL.
3097         * typeck.c (discrete_type_p):  Re-implement using INTEGRAL_TYPE_P.
3099 Tue Jan  3 19:20:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3101         Move checking for modeless tuples in invalid contexts from parser
3102         to semantic function check_have_mode (for better error recovery):
3103         * expr.c (check_have_mode), ch-tree.h:  New function.
3104         * satisfy.c (safe_satisfy_decl):  Use check_have_mode.
3105         * expr.c (build_compare_expr, finish_chill_binary_op,
3106         finish_chill_unary_op):  Likewise.
3107         * parse.c (parse_primval):  Don't complain about mode-less tuple here.
3109 Tue Jan  3 17:36:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3111         * expr.c (varying_to_slice):  Support varying arrays whose
3112         lower bound is non-zero.
3114         * parse.c (parse_body):  Allow (with warning) definition to
3115         follow action.
3117         * expr.c (check_case_selector), ch-tree.h:  New function.
3118         (chill_expand_case_expr):  Use it.
3119         * parse.c (parse_case_action):  Likewise.
3121 Fri Dec 23 00:47:54 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3123         * actions.c (chill_expand_return): Change error message.
3125         * ch-tree.h: Change prototypes of do_decl and do_decls.
3127         * convert.c (convert): Add missing initialisation of
3128         variable orig_e_constant.
3130         * decl.c: Change all calls to do_decl.
3131         (maybe_static): New function to process the ALL_STATIC_ON/OFF
3132         compiler directives.
3133         (do_decls): New argument.
3134         (do_decl): New argument and process reachbound and lifetime
3135         bound initialisation.
3137         * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
3138         ALL_STATIC_OFF.
3140         * grant.c: Change all calls to do_decl.
3142         * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
3143         directive.
3145         * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
3146         do_decls.
3148         * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
3150         * tasking.c: Change all calls to do_decl.
3152 Mon Dec 19 23:13:58 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3154         * parse.c (parse_procedure_definition): Save chill_at_module_level
3155         flag, set ot to 0 and restore it at the end of function.
3156         A sequence BEGIN x: PROC () RETURN; END x; END; at module level
3157         have produced an error.
3159         * expr.c (build_chill_repetition_op): Fix typo in error message.
3161 Tue Dec 13 12:26:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3163         * actions.c (expand_assignment_to_varying_array):  Fix thinko:
3164         build_chill_array_ref -> build_chill_array_ref_1.
3166 Sun Dec 11 23:04:27 1994  Per Bothner  <bothner@rtl.cygnus.com>
3168         * actions.c (chill_expand_assignment):  Simplify the lhs if it is
3169         a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
3171 Thu Dec  8 13:45:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3173         * loop.c, ch-tree.h (build_loop_iterator):  Fix to return void.
3174         If start_exp is ERROR_MARK, return.
3175         * expr.c (build_generalized_call):  More robust on syntax errors.
3177 Tue Dec  6 02:33:23 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3179         * inout.c (build_chill_readtext): In case of reading a SET mode
3180         pass ignore_case flag to runtime library.
3182 Tue Nov 29 14:41:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3184         * parse.c (parse_receive_case_action):  Print error only if pass==1.
3185         * decl.c (push_scope_decls):  Use error_with_file_and_line
3186         to get correct line number of SEIZE.
3188 Mon Nov 28 16:59:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3190         * expr.c (resolve_component_ref):  Call fold on result.
3192         * expr.c (resolve_component_ref):  Use check_expression.
3193         * actions.c (chill_convert_for_assignment):  Likewise.
3194         * actions.c (cond_exception), ch-tree.h:  Removed.
3195         * actions.c (check_expression):  First part of COMPOUND_EXPR
3196         should be boolean_type_node;  void_type_node loses in SAVE_EXPRs.
3198         * actions.c (chill_convert_for_assignment):
3199         Check string_assignment_condition for varying strings too.
3201         * typeck.c (build_chill_cast):  If the types have different sizes,
3202         don't allow nondiscrete->discrete conversion, and only allow
3203         discrete->nondiscrete if input expression is constant.
3205         * typeck.c (chill_similar):  Don't use losing array_type_nelts.
3207         * ch-tree.h (ELSE_VARIANT_NAME):  New.
3208         * convert.c, decl.c, grant.c:  Use ELSE_VARIANT_NAME.
3209         * decl.c (handle_one_level):  Recurse on ELSE_VARIANT_NAME too.
3211         Reduce dependencies on ../c-typeck.c:
3212         * expr.c:  Fix c_expand_start_case -> expand_start_case.
3213         Fix c_expand_expr_stmt -> expand_expr_stmt.
3214         (build_chill_indirect_ref):  Call convert instead of build_c_cast.
3215         * loop.c (bottom_loop_end_check):  Don't use build_modify_statement.
3216         * expr.c, except.c, typeck.c:  Don't call default_conversion.
3217         * typeck.c (string_assignment_condition):  Fix build_component_ref ->
3218         build_chill_component_ref.
3219         * decl.c:  Fix build_indirect_ref -> build_chill_indirect_ref (twice).
3220         * decl.c:  Don't set unused constructor_no_implicit (from c-typeck.c).
3221         * decl.c:  Don't call declare_function_name.
3223         * parse.c: Don't always keep a valid token in terminal_buffer[0].
3224         The extra look-ahead may have made the parser faster, but caused
3225         some problems synchronizing with the lexer.  Specifically:
3226         (PEEK_TOKEN):  Now calls an optimized variant of peek_token_(0).
3227         (next_token_):  Don't call peek_token_.  Renamed to forward_token_.
3228         (NEXT_TOKEN):  Renamed to FORWARD_TOKEN.
3229         (parse_program):  Don't call yylex yet.
3231         * parse.c (parse_action):  Re-do case ASSERT.
3232         Fix c_expand_expr_stmt -> expand_expr_stmt.
3234         * lex.l:  Re-written to not use [f]lex, and renamed to ...
3235         * lex.c:  ... new lexer.
3236         * Makefile.in, Make-lang.in:  Remove [f]lex crud.
3238         * lex.h (enum rid), lex.c (init_lex):  Added RID_ELSE.
3240 Tue Nov 22 15:19:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3242         * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
3244 Fri Nov 18 14:27:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3246         * parse.c (parse_structure_node):  Simpler, and more robust.
3248 Wed Nov 16 14:40:52 1994  Ian Lance Taylor  (ian@cygnus.com)
3250         * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
3251         not at compile time.
3252         * typeck.c (expand_constant_to_buffer): Likewise.
3253         extract_constant_from_buffer): Likewise.
3255 Tue Nov 15 14:41:53 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3257         * convert.c (convert):  Call build_chill_range_type rather than
3258         build_index_2_type (which has obstack and canonicalization problems).
3259         * expr.c (build_chill_pred_or_succ):  Convert expr to root class
3260         before arithmetic.
3261         * loop.c (declare_temps):  If location iterated over is not
3262         a location, make a temporary variable for it.
3264 Mon Nov 14 16:33:47 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3266         * typeck.c, ch-tree.h (chill_equivalent):  Change to return
3267         a tree (a Boolean expression).  Also, add some missing tests.
3268         * ch-tree.h (CH_EQUIVALENT):  Modify accordingly.
3270         * expr.c (chill_expand_expr case CONCAT_EXPR):  When the 2nd operand
3271         is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
3272         Also, replace MEM (which is not a mode) by Pmode.
3274         * ch-tree.h, typeck.c (chill_comptypes):  Removed.
3275         * convert.c (convert):  Remove calls to chill_comptypes.
3277 Fri Nov 11 13:06:29 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3279         * grant.c (write_grant_file): Call pfatal_with_name instead
3280         of abort when something goes wrong when opening or writing
3281         the grant file.
3282         unlink grant file if something goes wrong during writing
3283         (i.e. device full).
3285         * Make-lang.in (CHILL_SRCS): Add timing.c
3287         * ch-tree.h: Add prototype for chill_tasking_type_node.
3288         * lex.l (equal_number): Use chill_tasking_type_node instead of
3289         integer_type_node for converting the result.
3290         Print error messages in pass 2, in pass 1 no error will be
3291         detected.
3292         * tasking.c: New variable chill_tasking_type_node for all
3293         generated tasking related variables.
3294         Use chill_tasking_type_node instead of chill_unsigned_type_node.
3296         * expr.c (chill_expand_expr): Apply Per's change.
3298         * expr.c (build_chill_sizeof): In case of error just
3299         return error_makr_node.
3300         Set CH_DERIVED_FLAG at the result.
3302         * timing.c (build_after_timeout_start): Clear the the timeout
3303         level to know if we are in the action part of AFTER statement
3304         or in the TIMEOUT part.
3306         * typeck.c (build_chill_slice_with_length): Convert the class
3307         of the result to class of first value in expression.
3309         * inout.c (build_chill_writetext, build_chill_readtext): Use stack
3310         temporary variables for the iolist so that they can get reused in
3311         subsequent calls. Emit code immediately instead of building a
3312         compound expr.
3314 Fri Nov  4 12:00:54 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3316         * expr.c (build_chill_function_call):  Don't set TREE_TYPE
3317         of assignment to void_type_node - it confuses save_expr.
3318         * decl.c (init_decl_processing):  Removed unused code.
3319         * parse.c:  Changes to avoid warnings.
3321         * grant.c (chill_finish_module_code):  Minor simplification.
3322         * lex.l (readstring):  Set *len to 1 on error.
3324 Thu Nov  3 01:05:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3326         * grant.c (decode_decl): Add granting of BASED declarations.
3328 Wed Nov  2 12:14:31 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3330         * expr.c (build_chill_lower_or_upper):  Take more care to
3331         ensure result has the right class.
3332         (build_chill_pred_or_succ):  Be more careful to get the right
3333         resulting class, and check bounds using *root* mode.
3335         * typeck.c (build_chill_slice_with_range):  Check that array
3336         really is an array or string.
3337         (build_chill_slice_with_length):  Likewise.
3339         * typeck.c (extract_constant_from_buffer):  Fix calculation of
3340         SET_TYPE size.  (Cannot depend on 1-byte TYPE_PRECISION field.)
3342 Wed Nov  2 05:33:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3344         * Make-lang.in: Change version of compiler.
3346         * ch-tree.h: Add new prototypes.
3348         * decl.c (init_decl_processing): Remove timing related
3349         initialisations. Add call to timing_init.
3351         * parse.c (parse_action): Process AFTER action.
3353         * tasking.c (build_receive_case_start,
3354         build_receive_signal_case_label, build_receive_buffer_case_label,
3355         build_delay_case_start, build_delay_action, expand_send_buffer):
3356         Add processing of timesupervision.
3357         (tasking_init): Change definitions of runtime   functions.
3359         * timing.c (timing_init): New function for initialisation of
3360         timing related stuff.
3361         (build_cycle_start, build_cycle_end): Changed due to
3362         implementation of timesupervision.
3363         (build_after_start, build_after_timeout_start, build_after_end):
3364         Implement the AFTER action.
3365         (build_timeout_preface, build_timesupervised_call): New functions
3366         to handle timesupervision in case of blocking system calls (i.e.
3367         SEND buffer action, RECEIVE CASE action etc.).
3369 Thu Oct 27 12:50:24 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3371         * expr.c (build_chill_repetition_op):  Fix repeating all-zero
3372         bitstring with orig_len!=1.  Also, call build_boring_bitstring
3373         if original string was all ones, using one range.  Also:
3374         Cannot use one-bit TYPE_PRECISION to get bitstring length.
3376 Tue Oct 25 14:11:07 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3378         * convert.c (convert):  When converting BOOL constant to
3379         bit-string, bit_one_node and bit_zero_node were switched.
3380         * actions.c (chill_expand_assignment):  Use force_addr_of,
3381         not build_chill_addr_expr - latter yields bogus error.
3383 Fri Oct 21 14:26:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3385         * expr.c (build_chill_indirect_ref):  Check for POINTER_TYPE (only)
3386         after converting from REFERENCE_TYPE.
3387         * expr.c (build_compare_expr):  Convert to common mode *after*
3388         we've checked compatibility.
3390 Fri Oct 21 02:29:15 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3392         * lex.l (check_newline): Use getc instead of getlc to read
3393         the filename in a # line name directive to avoid possibly
3394         downcaseing of a filename.
3396 Thu Oct 20 05:37:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3398         * expr.c (build_chill_indirect_ref): Add check for really
3399         dereferencing a pointer.
3401         * convert.c (convert): Take care of TREE_CONSTANT of a
3402         SYNONYM having mode ARRAY () VARYING something.
3404 Mon Oct 17 02:30:38 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3406         * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
3407         boolean_true_node and boolean_false_node. TRUE and FALSE have
3408         the BOOL derived class.
3410         * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
3411         of NUM. NUM delivers the INT derived class.
3413         * grant.c (write_spec_module): Add writing of
3414           <> USE_SEIZE_FILE "x.grt" <>
3415           SEIZE ALL;
3416         to generated grant file.
3418 Thu Oct 13 14:45:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3420         * convert.c (convert_from_reference):  Make non-static.
3421         * ch-tree.h (convert_from_reference):  Add prototype.
3422         * parse.c (parse_name):  If the decl is a REFERENCE_TYPE, just
3423         call convert_from_reference - and not a full-scale convert.
3425         * convert.c (convert):  Only call digest_array_tuple if ARRAY_TYPE.
3426         * typeck.c (chill_expand_tuple):  Print error if type is
3427         neither array, struct, or powerset.
3429         * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
3430         UNDEFINED_EXPR):  Call preserve_temp_slots for temp targets.
3431         If target is not MEM, make temp (even if not REG) to simplify
3432         - and don't copy original target to temp target first.  (Not needed.)
3434         * lang.c (maybe_objc_comptypes):  Just return -1.
3436 Wed Oct 12 12:24:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3438         * tasking.c (tasking_setup):  Fix breakage from previous check-in.
3440 Tue Oct 11 16:00:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3442         * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
3443         timing.c, typeck.c:  Change build1 (ADDR_EXPR, ptr_type_node, XX)
3444         to force_addr_of (XX).  Add call to mark_addressable where needed
3445         for other calls to build 1 (ADDR_EXPR, TYPE, XX).
3447 Thu Oct  6 06:36:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3449         * inout.c (build_chill_writetext): Remove processing
3450         of POWERSET's.
3452 Tue Oct  4 14:08:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3454         * convert.c (convert):  If flag_old_strings, support converting
3455         CHARS(1) and BOOLS(1) to INT.
3457 Fri Sep 30 01:44:51 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3459         * inout.c (build_chill_readtext): Add check for item is
3460         referable and not READonly. Add processing of BITSTRINGs.
3462 Mon Sep 26 16:19:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3464         * expr.c (build_chill_descr):  Add missing call to mark_addressable.
3465         * loop.c (toop_loop_end_check):  Replace build1 (ADDR_EXPR ...)
3466         with call to force_addr_of (which calls mark_addressable).
3467         * expr.c (build_chill_descr, build_chill_inttime):  Likewise.
3468         * inout.c (build_chill_writetext):  Likewise.
3470 Mon Sep 26 05:19:21 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3472         * grant.c (print_struct): Move printing of VARYING from
3473         here ...
3474         * grant.c (grant_array_type): ... to here.
3476 Mon Sep 26 00:09:08 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3478         * ch-tree.h (force_addr_of):  New prototype.
3479         * expr.c (force_addr_of):  Call mark_addressable.  Make non-static.
3480         * inout.c (build_chill_writetext):  Use force_addr_of.
3482 Sun Sep 25 23:41:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3484         * except.c (push_handler), actions.h:  Removed unused parameter.
3485         * actions.c (push_action):  Remove unused paramater.
3486         * parse.c, actions.c:  Remove no-longer-used parameter to
3487         calls to push_handler and push_action.
3489         * decl.c (push_extern_process):  Only build types in pass 1.
3490         * tasking.c (build_process_header):  Only build types in pass 1.
3491         * tasking.c (build_start_process):  Do pushdecl/popdecl etc
3492         even after an error (to maintain consistency between passes).
3494         * convert.c (convert_to_boolean):  Allow any integral input type.
3496 Sat Sep 24 22:47:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3498         * typeck.c (extract_constant_from_buffer):  Add (somewhat kludgey)
3499         support for UNION_TYPE.  (Patch from Wilfried.)
3500         Also, reverse RECORD_TYPE constructor list.
3502 Fri Sep 23 19:06:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3504         * expr.c (build_concat_expr):  Fix calculation of result_size.
3506 Wed Sep 21 00:54:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3508         Give up on trying to use the cleanup mechanism in stmt.c to
3509         make sure the exception handler get unlinked on goto/exit/return.
3510         Instead, do it ourselves.  (Much simpler.)
3511         * except.c, ch-tree.h (action_nesting_level):  New global.
3512         * ch-tree.h (DECL_ACTION_NESTING_LEVEL):  New macro.
3513         * decl.c (define_label):  Set DECL_ACTION_NESTING_LEVEL.
3514         * except.c (expand_goto_except_cleanup):  New function.
3515         (cleanup_chain):  New variable.
3516         (push_handler, pop_handler):  Adjust action_nesting_level.
3517         (emit_setup_handler):  Push cleanup.
3518         (chill_finish_on):  Pop cleanup.
3519         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
3520         Call expand_goto_except_cleanup.
3521         * parse.c (parse_action):  Before RETURN, call
3522         expand_goto_except_cleanup.
3524 Mon Sep 19 00:59:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3526         * lex.l (equal_number):  Make sure converted synonym
3527         is on permanent obstack.
3528         * typeck.c (extract_constant_from_buffer):  Fix INTEGER_TYPE
3529         loop to traverse in big-endian order.
3531 Sat Sep 17 20:48:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3533         * typeck.c (build_chill_cast):  Call mark_addressable.
3534         * expr.c (build_chill_function_call):  Call mark_addressable.
3536 Thu Sep 15 23:47:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3538         * typeck.c (expand_constant_to_buffer):  Fix an endian-ness
3539         problem for INTEGER_CST.
3540         (extract_constant_from_buffer):  Likewise.
3542 Thu Sep 15 22:59:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3544         * decl.c (pushlevel):  Do different things depending on
3545         actual parameter.
3546         * decl.c, parse.c, tasking.c:  Change argument to to pushlevel to 1.
3547         * actions.c (push_action):  Take new parameter.
3548         * except.c (push_handler):  Likewise.
3549         * parse.c:  Change calls to push_action and push_handler.
3550         * loop.c (begin_loop_scope):  Always call expand_start_bindings.
3551         * loop.c (end_loop_scope):  Always call expand_end_bindings.
3552         * except.c (emit_setup_handler):  Add a cleanup to
3553         unlink from exception stack if we return/exit/goto from here.
3554         * loop.c (begin_loop_scope):  Move pushlevel from here ...
3555         * parse.c (parse_do_action): ... to here.
3557         Clean up do-decl interface (for decl_temp1).
3558         * parse.c (parse_loc_declaration):  If global_bindings_p (),
3559         treat as static.
3560         * decl.c (do_decl):  Don't test global_bindings_p ().
3562         * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3563         Not used.  Removed.
3564         (struct scope::keep, scope::keep_if_subblocks):  Likewise.
3565         (keep_next_level):  Likewise.
3566         (kept_level_p, pushlevel, poplevel):  Simplify.
3568         * decl.c (init_decl_processing):  Don't call init_iterators.
3569         * Makefile.in (C_OBJS):  Don't get ../c-iterator.o - not needed.
3571 Thu Sep 15 05:54:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3573         * lex.l (readstring): Add processing of control sequence
3574         in character string literals. The granting mechanism writes
3575         this to grant files.
3577 Tue Sep 13 06:19:42 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3579         * expr.c (compare_records): In case of -fpack do always
3580         a memcmp instead of comparing each field of the
3581         structure. If the structure is a variant structure,
3582         issue a warning.
3584 Mon Sep 12 13:15:09 1994  Per Bothner  (bothner@cygnus.com)
3586         * grant.c (write_spec_module):  Add cast, to avoid PCC warning.
3587         * grant.c (header_template):  Don't use ANSI-specific string
3588         literal concatenation.
3590 Fri Sep  9 01:53:30 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3592         * tasking.c (get_process_wrapper_name): New function.
3593         (add_taskstuff_to_list): Add a new argument, which is
3594         the entrypoint of a process.
3595         (build_process_header): Change PROCESS arguments to be
3596         like arguments of a function. There will be a wrapper
3597         which is the real entry point for a PROCESS. This wrapper
3598         is automatically build after a PROCESS definition and gets
3599         as argument a pointer to a structure looking like the
3600         arguments of the PROCESS. This wrapper will call the
3601         PROCESS (see build_process_wrapper).
3602         (build_process_wrapper): New function (see above).
3603         (build_start_process): Change processing of arguments.
3604         (tasking_setup): Add processing of a different entry point
3605         in case of PROCESSes.
3607         * parse.c (parse_process_definition): Add call to
3608         build_process_wrapper.
3609         * parse.c (end_function): Remove the poplevel() call.
3610         build_process_header no longer makes the corresponding
3611         pushlevel().
3613         * grant.c (print_proc_tail): Remove special processing
3614         of PROCESSes, they look now like normal functions.
3616         * decl.c (init_decl_processing): Add declaration of memcmp
3617         function.
3619         * ch-tree.h: Add new prototype for build_process_wrapper,
3620         change prototypes for add_taskstuff_to_list and
3621         build_process_header.
3623         * grant.c (write_spec_module): Write GNUCHILL and gcc
3624         version into grant file.
3626         * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
3627         GNUCHILL_VERSION to ch/Makefile.
3628         * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3630         * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3631         will get generated every time a new Makefile will get
3632         generated.
3633         * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3634         Make-lang.in.
3636         * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3637         to the compiler to avoid generation of an object file.
3639 Thu Sep  8 12:07:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3641         * convert.c (display_int_cst), ch-tree.h:  New function.
3642         * convert.c (digest_array_tuple):  Use digest_int_cst to
3643         provide better error messages.  Return error_mark_node on error.
3644         * grant.c (decode_const):  Simplify by using digest_int_cst.
3645         * grant.c (format_character, find_assoc):  Removed.
3647         * decl.c (do_decl):  Add missing TREE_CHAIN.
3649         * decl.c (finish_incomplete_decl):  Removed.
3650         (init_decl_processing):  Don't set incomplete_decl_finalize_hook.
3651         (finish_decl):  Remove old C-specific code to deduce size of
3652         array from initialization.
3653         (complete_array_type):  Just make it abort.
3655         * except.c (finish_handler_array):  Avoid calling C-specific kludge
3656         complete_array_type.
3658         * convert.c (digest_constructor):  Rename, and re-write to:
3659         (digest_array_tuple, convert):  No longer use the code in
3660         ../c-typeck.c;  use a Chill-only implementation (sigh).
3662         * typeck.c (chill_expand_tuple):  Remove unneeded call to
3663         complete_array_type.
3665         * expr.c (fold_set_expr), grant.c (decode_constant),
3666         typeck.c (expand_constant_to_buffer):  Update name of called
3667         function unpack_set_constructor to get_set_constructor_bits.
3668         * expr.c (powersetlen ):  Remove redundant call to convert.
3670         * ch-tree.h (unpack_set_constructor):  Removed obsolete declaration.
3672         * inout.c (build_chill_writetext):  Handle 64-bit integer literals
3673         by trying to convert them to a smaller type.
3675         * lex.l (convert_number):  Always use long long type (possibly
3676         unsigned) to avoid problems with constant folding truncation.
3678 Mon Sep  5 08:08:22 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3680         * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3681         Add new prototype (see tasking.c).
3683         * expr.c (build_generalized_call): Add processing of
3684         BUILT_IN_QUEUE_LENGTH.
3686         * tasking.c (build_queue_length): New function.
3688         * tasking.c (tasking_init): Add new external function definition.
3690 Thu Sep  1 15:38:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3692         * lex.l (default_lex):  New function.  Progress towards
3693         getting rid of [f]lex.
3695         * lex.l (convert_number):  Use mul_double and add_double.
3696         Set result type to a reasonable type in which the literal
3697         will fit.  Give error message if literal is too big.
3699         * lex.l (equal_number):  Switch (temporarily) to permanent obstack.
3701         * typeck.c (build_chill_slice_with_range):  Check for empty
3702         slice *after* we have checked for upper/lower limit in range.
3704         * grant.c (decode_mode):  Remove unused code.  (BOOL and
3705         CHAR ranges are represented as INTEGER_TYPEs.)
3707         * tasking.c (build_process_header):  Add missing call to
3708         expand_start_bindings.
3709         * parse.c (end_function):  Add missing expand_end_bindings.
3711 Wed Aug 31 17:25:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3713         * decl.c (init_decl_processing):  Set set_alignment.
3715 Tue Aug 30 16:40:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3717         * actions.c (print_missing_cases, check_missing_cases,
3718         BITARRAY_TEST, BITARRAY_SET):  New functions and macros,
3719         to check for completeness of case actions and expressions.
3720         * decl.c (c_decode_option, init_decl_processing):
3721         Don't set warn_switch.
3722         * expr.c (chill_expand_case_expr):  Call check_missing_cases
3723         instead of check_for_full_enumeration_handling.
3724         * parse.c (parse_case_actions):  Call check_missing_cases.
3726         * expr.c (build_chill_binary_op):  Remove some dead code.
3727         * expr.c (chill_truthvalue_conversion):  Call build_chill_binary_op
3728         instead of build_binary_op.
3729         * ch-tree.h (binary_op_error, build_binary_op):  Unused.  Removed.
3731         * parse.c (end_function):  Use kept_level_p in parameter to
3732         poplevel.  This reverts a June 13 change.
3734 Fri Aug 26 11:50:19 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3736         * configure: Ignore --without, as ../configure does.
3738 Wed Aug 24 01:17:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3740         * lex.l: Change rule for decimal numbers to allow identifiers
3741         to start with an underscore (_).
3743 Fri Aug 19 16:38:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3745         * tasking.c (build_receive_signal_case_label):  Remove backwards
3746         chill_convert_for_assignment (which converted whatever garbage
3747         was in the *target* to the type of the signal argument!).
3749 Fri Aug 19 07:10:43 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3751         * inout.c (build_chill_io_list_type, build_enum_tables),
3752         tasking.c (build_tasking_struct): Temporarily reset
3753         maximum_field_alignment to 0, so that the compiler-built
3754         data structures needed by the RTS can be independent of -fpack.
3756 Thu Aug 18 13:39:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3758         * typeck.c (build_init_struct):  Temporarily reset
3759         maximum_field_alignment to 0, so that the compiler-built
3760         data structures needed by the RTS can be independent of -fpack.
3762 Wed Aug 17 23:48:33 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3764         * parse.c (parse_primval, expect, parse_on_exception_list):
3765         Print error message only in pass 2.
3767 Wed Aug 17 13:47:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3769         * decl.c (switch_to_pass_2):  Revert June 13 change,
3770         (Don't exit after pass 1 if an error was found.)
3772         * ch-tree.def (SLICE_EXPR):  New tree-code.
3773         * typeck.c (build_chill_slice):  For building a slice of a
3774         bit-string, just generate a SLICE_EXPR.
3775         * decl.c (init_decl_processing):  Declare __pscpy.
3776         * actions.c (chill_expand_assignment):  Handle a SLICE_EXPR
3777         on the LHS of assignment, by calling __pscpy.
3778         * expr.c (chill_expand_expr):  Handle SLICE_EXPR (as a RHS
3779         value) by using __psslice to copy slice to a temp.
3781 Wed Aug 17 05:52:44 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3783         * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3784         * expr.c (build_chill_length): Enable LENGTH built-in to process
3785         Buffers and Events too (Z.200/1992).
3786         * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3787         a linux system the previous version was not able to run.
3788         * tasking.c: Correct processing of infinite buffer- and event-length
3789         to avoid RANGEFAIL warning.
3791 Thu Aug 11 11:46:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3793         * parse.c (parse_if_expression_body):  Don't call the C-specific
3794         build_conditional_expr.  Just do build_nt (COND_EXPR, ...).
3795         * convert.c (convert):  Convert a COND_EXPR by converting
3796         each branch.
3798         * convert.c (convert):  Don't call convert before
3799         convert_to_reference.  It's apt to do weird and unneedful things.
3800         * convert.c (convert):  If the expression is varying, just call
3801         varying_to_slice, which simplifies quite a bit.
3803         * ch-tree.h (varying_to_slice):  Add prototype.
3804         * typeck.c (varying_to_slice):  Remove prototype.
3806         * satisfy.c (satisfy):  Move case PAREN_EXPR from type 'e'
3807         to type '1'.
3809         * except.c (emit_setup_handler):  Temporarily reset the
3810         maximum_field_alignment to zero so the compiler's exception
3811         data structures can be compatible with the run-time system,
3812         even when we're compiling with -fpack.
3814         * expr.c (compare_records):  Call saved_if_needed on operands.
3816         * expr.c (build_set_expr case NE_EXPR):  Don't use __nepowerset
3817         which has been reimplemented to just call __eqpowerset and
3818         invert the result.  Inline this new implementation by
3819         handling as EQ_EXPR, and inverting the result.
3820         * decl.c (init_decl_processing):  Don't define unused __eqpowerset.
3822         * typeck.c (valid_array_index_p):  The TRUTH_ANDIF_EXPR has
3823         type boolean_type_node, not void_type_node.  (Fixing this
3824         avoids a crash in the back-end.)
3826         * grant.c (decode_constant):  In a CALL_EXPR, if the argument
3827         list is not a TREE_LIST (as in string repetiation), don't
3828         emit parentheses.
3830 Wed Aug 10 13:13:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3832         * decl.c (proclaim_decl):  Use CH_DECL_ENUM to check that a
3833         CONST_DECL is from a SET definition.  (This is safer than
3834         checking that the type is ENUMERAL_TYPE, because synonym
3835         definitions may have a NULL TREE_TYPE.)
3836         Also, if we have duplicate enums whose types are identical,
3837         this is an error.
3838         * decl.c (proclaim_decl, pushdecllist, push_scope_decls):  Add
3839         an extra 'quiet' parameter, which is true if we're called from
3840         bind_sub_modules.  (In that case an error message about duplicated
3841         decls would be repeated later, so suppress it.)
3843         * parse.c (stmt_count):  Removed, not used.
3844         (INIT_ACTION):  Call emit_line_note only if !ignoring.
3845         (parse_begin_end_block):  Do INIT_ACTION even if ignoring.
3847 Fri Aug  5 12:39:11 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3849         * parse.c (parse_untyped_expr):  Add missing semi-colon.
3851 Thu Aug  4 17:40:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3853         * parse.c (parse_untyped_expr):  Fix various problem for the
3854         case that we see a '(':  Add missing 'case' keyword.
3855         Only recurse if '(' is followed by 'if', 'case' or '[',
3856         and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3858         * parse.c (parse_send_action):  Remove extra nreverse.
3860 Thu Jul 28 04:00:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3862         * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3863         Add new checks.
3865 Tue Jul 26 22:48:15 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
3867         * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3868         Added a missing call to `require' as well.
3870 Tue Jul 19 10:30:12 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3872         * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3873         the extern declaration in the flex skeleton.
3875 Mon Jul 18 23:06:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3877         * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3878         Check the type of the instance expr using CH_COMPATIBLE,
3879         and not just == instance_type_node.  (This allows
3880         the expression to have mode READ INSTANCE).
3881         * tasking.c (build_instance_type):  Give instance_type_node
3882         a non-null novelty (i.e. different from a struct).
3883         * tasking.c (build_receive_case_start, build_delay_case_start):
3884         Check that for a location using CH_LOCATION_P.
3886 Mon Jul 18 13:22:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3888         * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3889         to modify a tree code.
3891 Mon Jul 18 11:24:57 1994  Bill Cox  (bill@rtl.cygnus.com)
3893         * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3894           comparison.
3896 Mon Jul 18 05:40:15 1994  Doug Evans  (dje@canuck.cygnus.com)
3898         * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3900 Thu Jul 14 18:37:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3902         * parse.c (parse_send_action):  Do tree_cons *before* checking
3903         for end of loop.
3905 Mon Jul 11 15:33:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3907         * convert.c (digest_structure_tuple):  Don't use convert to
3908         coerce initial value,  use chill_convert_for_assignment instead.
3909         (Thus we also get range_checking.)
3911         * expr.c (build_chill_card):  Use force_addr_of instead of
3912         build_chill_addr_expr.
3914         * loop.c (build_temporary_variable):  Stylistic tweak.
3915         * loop.c (maybe_make_for_temp):  Initialize temp using
3916         explicitly, not using assignment.  Avoids a problem if
3917         the expression is read-only.
3918         * typeck.c (smash_dummy_type):  Always used the saved TYPE_NAME
3919         and CH_NOVELTY_FLAG.
3921 Wed Jul  6 20:12:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3923         * expr.c, ch-tree.h (finish_chill_unary_op):  New function,
3924         based on code ripped out of build_chill_unary_op.
3925         (build_chill_unary_op):  Call finish_chill_unary_op unless pass==1.
3926         * satisfy.c (satisfy):   Call finish_chill_unary_op when needed.
3928 Mon Jun 27 11:29:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3930         * tree.c (save_if_needed), ch-tree.h:  New function.
3931         * typeck.c (build_chill_slice_with_range,
3932         build_chill_slice_with_length):  Call save_if_neeed on array arg.
3933         * expr.c (varying_to_slice):  Re-write to use save_if_needed.
3935         * typeck.c (extract_constant_from_buffer):  Handle BOOLEAN_TYPE.
3937 Mon Jun 27 01:11:10 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3939         * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3940         that it is always the same, regardless if compiled with -fpack
3941         or not.
3943 Tue Jun 14 16:44:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3945         * lex.l (yywrap):  Kludge to work around mis-synchronization
3946         between lexer (which read ahead) and parser:  Don't emit
3947         (left-over) uze_seizefile directives at the end of file.
3949         * typeck.c (build_chill_array_ref):  Allow the derived
3950         array indexing syntax for arrays of bit strings.
3951         Add a comment explaining why.
3953         * typeck.c, ch-tree.h (string_assignment_condition):  Change
3954         the interface.  Return a boolean expression (which can be
3955         used in a conditional at run-time);  never expand anything.
3957         * actions.c (chill_convert_for_assignment):  Check
3958         string_assignment_condition here, rather than in callers.
3959         * actions.c (chill_expand_assignment):  Don't need to check
3960         string_assignment_condition here.
3961         * expr.c (build_chill_function_call):  Likewise.
3962         * satisfy.c (safe_satisfy_decl):  Update accordingly.
3963         * decl.c (do_decl):  Simplify testing and conversion by
3964         deferring everything to chill_convert_for_assignment.
3966         * parse.c:  Combine the two variables 'ignore_exprs' and
3967         'ignore_actions' into one variable called 'ignoring'.
3968         * ch-tree.h:  Add 'extern int ignoring'.
3969         * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3970         Rename ignore_actions and ignore_exprs to ignoring.
3971         Remove unneeded extern declarations.
3972         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3973         build_chill_arrow_expr, build_generalized_call, build_delay_action,
3974         build_buffer_type, build_event_type):  I changed my mind.  It is
3975         cleaner to check for 'ignoring' in the parser, rather than here.
3976         * parse.c (parse_action, parse_primval, parse_opt_mode):
3977         Therefore we must check for ignoring here.
3978         * parse.c (parse_loc_declaration):  Set ignoring in pass 2
3979         when parsing the mode.
3981         * tasking.c (generate_tasking_code_variable):  Do arithmetic
3982         on signal_code etc using unsigned rather than signed shorts.
3984         * grant.c (static char* current_grant_modename):  Removed.
3985         * grant.c (decode_decl case CONST_DECL):  Remove error message.
3987         * Make-lang.in (CHILL_SRCS):  Add $(srcdir)/ch/parse.c.
3988         * Makefile.in:  Fix dependencies for parse.o.
3989         Remove some duplicate dependencies for $(TREE_H).
3991 Mon Jun 13 14:25:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3993         * typeck.c (build_chill_cast):  Allow a value cast between
3994         non-discrete object of the same size, but with a pedwarn.
3995         * typeck.c (bit_string_assignment_condition,
3996         char_string_assignment_condition):  Merge near-duplicate functions
3997         and place the code in string_assignment_condition.
3999         * decl.c (parm_flag, declare_parm_level, in_param_level_p):
4000         Removed.  Not used.
4001         * decl.c (start_chill_function, finish_chill_function):  Make
4002         parameter level have same nesting level as body, as required by Z200.
4003         * decl.c (switch_to_pass_2):  Always exit if an error has been found.
4004         * decl.c (pop_module):  Copy DECL_SEIZEFILE to a new ALIAS_DECL
4005         generated from GRANT ALL.
4006         * decl.c (lookup_name_for_seizing):  Don't seize from
4007         the nesting level of builtins (predefined objects).
4008         * decl.c (lookup_name_for_seizing):  Make more robust on error.
4010         * decl.c (start_chill_function):  MAKE DECL_NAME (chill_result_decl)
4011         be 'RESULT' (or 'result').  This makes it more accessible from gdb.
4012         Also, use do_decl to declare it, so that debugging symbols are
4013         generated.  And, re-arrange so that actions that need to
4014         be done both passes (such as push_levels) use the same code.
4016         * parse.c (get_type_of):  If ignore_exprs, don't lookup name.
4017         * parse.c (end_function):  Fix poplevel params.
4018         * parse.c (expect):  Don't read forwards on an error.
4019         * parse.c (parse_field):  Don't define two tag_list locals!
4020         * parse.c (parse_pass_1_2):  Better error message.
4022         * parse.c (parse_mode, parse_opt_mode):  Have parse_mode call
4023         parse_opt_mode, rather than vice versa.  If parse_opt_mode
4024         returns NULL_EXPR, then parse_mode gives an error.
4025         Change parse_opt_mode (and any functions it calls) to only
4026         return NULL_TREE if there is no mode (even on ignore_exprs).
4027         (parse_set_mode, parse_structure_mode, parse_procedure_mode):
4028         Never return NULL_EXPR.
4029         * tasking.c (build_buffer_type, build_event_type):  Return
4030         void_type_node instead of NULL_EXPR if ignore_exprs is true.
4032         * parse.c (parse_synonym_definition):  Call parse_untyped_expr
4033         only if we have a mode.
4034         * parse.c (parse_send_action):  Parse list of untyped_expr's,
4035         rather than a list of (typed) expressions.
4036         * parse.c (parse_primval):  Emit error if '[' seen without
4037         preceding mode name.  (If this is to be allowed, call
4038         parse_untyped_expr instead.)
4040         * parse.c (parse_array_index):  Renamed to ...
4041         (parse_index_mode):  ... to match Z200 terminology.
4042         Re-write to resolve some of the nastier ambiguities,
4043         and allow things like ' CHAR(10) : CHAR(20) '.
4045         * parse.c (parse_tuple_element):  Change interface to return
4046         reversed list, so don't call nreverse.
4047         * parse.c (parse_tuple):  No longer nreverse element list here.
4048         * parse.c (parse_opt_element_list):  Do nreverse here instead.
4049         * parse.c (parse_case_label_list):  Call nreverse at end.
4051 Fri Jun 10 15:36:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4053         * typeck.c (chill_similar):  Remove bogus "else".
4055 Wed Jun  8 00:01:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4057         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  New macro (and comment)
4058         to make it clearer that we are using TYPE_MAX_VALUE in a special way.
4059         * typeck.c (build_chill_slice):  Use TYPE_ARRAY_MAX_SIZE.
4060         * expr.c (chill_expand_expr case CONCAT_EXPR):  Likewise.
4061         * convert.c (convert):  When converting a fixed string/array
4062         to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
4063         of (the type of) the padding.
4064         * convert.c (convert): If the concatenation is non-constant, use
4065         the low-level 'build' to set the type of the result (which is usually
4066         a fixed-size array) rather than depend on build_chill_binary_op
4067         to figure it out (it's unable to simplify the size to a constant).
4069 Mon Jun  6 18:16:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4071         * lang.c (lang_decode_option):  Let -fspecial_UC imply
4072         -fno-ignore-case without requiring it explicitly.
4073         * lang.c (lang_decode_option):  Support (experimentally)
4074         the -fpack and -fno-pack flags.
4076 Thu Jun  2 20:49:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4078         * configure: Add support for --program-prefix and --program-suffix.
4080 Tue May 31 18:12:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4082         * convert.c (digest_constructor):  Check that initial value
4083         is compatible with element mode before calling convert.
4084         * typeck.c (chill_compatible):  A string mode is not compatible
4085         with an untyped constructor.
4086         * decl.c (do_decl):  Clean up error messages.  Use error_with_decl.
4088         * ch-tree.h:  Fix inconsistencies: bool_true_node ->
4089         boolean_true_node, and bool_false_node -> boolean_false_node.
4090         * typeck.c (valid_array_index_):  Minor simplification.
4092 Tue May 31 04:33:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4094         * inout.c (build_chill_writetext): Add correct processing
4095         of POWERSET RANGE (setmode).
4097         * lex.l (same_file): Add searching for file(s) in
4098         seize_path_list.
4100 Fri May 27 14:22:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4102         * Make-lang.c (CHILL.mostlyclean, CHILL.distdir):  Don't list
4103         yacc/bison output files, since the grammer is no longer in yacc.
4104         * config-lang.in (diff_excludes):  Likewise.
4106 Thu May 26 16:38:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4108         * gperf, hash.h, lex.l, parse.h:  Rename PROCESS_TYPE token
4109         (in some files spelled PROCESS_TYPE_ to avoid clashes
4110         with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
4112 Thu May 26 02:18:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4114         * timing.c (build_cycle_start): Change call to __define_timeout.
4115         * decl.c (init_decl_processing): Change definitions of
4116         __define_timeout and __wait_timeout.
4118 Wed May 25 11:53:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4120         Replace yacc-based parser with a recursive-decent parser.
4121         (This may seem backwards, but Chill [like C++] is not a
4122         language that is remotely LALR(1).  Using a R-D parser
4123         allows us to use look-ahead and to back-up to resolve the
4124         difficult ambiguities.)
4125         * parse.y:  Removed.
4126         * parse.c, parse.h:  New files, containing new r-d parser.
4127         * Makefile.in:  Update accordingly.
4128         * actions.c (chill_convert_for_assignment):  Don't return
4129         NULL_EXPR if ignore_exprs is true.  It simplifies the parser
4130         if we consistently reserve NULL_EXPR for a missing expression.
4131         * expr.c (build_chill_function_call):  Likewise.
4133         * lex.l:  Tweaks for new parser.
4134         * lex.l (prepare_paren_colon, paren_paren_colon_level,
4135         paren_level):  Ugly hack no longer needed.
4137         * expr.c (build_chill_function_call):  Cleanup.
4138         Call chill_convert_for_assignment to convert IN/INOUT
4139         paramaters on both input and output.  For LOC parameters,
4140         give error if actual is a non-referable location.
4141         * actions.c (convert_for_assignment):  Add new parameter (a
4142         "place" string used in error messages).
4143         * actions.c (adjust_parm_or_field):  Removed.
4144         * actions.c (chill_expand_assignment):  Take just a single LHS,
4145         and move support for multiple assignments to ...
4146         (expand_assignment_action): ... here.  Some cleaning up.
4147         * timing.c (build_cycle_start):  Adjust accordingly.
4148         * actions.c (expand_assignment_to_varying_array):  Likewise.
4149         * tasking.c (many places): Ditto.
4150         * ch-tree.h:  Fix declarations appropriately.
4152         * parse.c (parse_defining_occurrence_list):  Return a single
4153         IDENTIFIER_NODE (instead of a singleton list) in the common
4154         case.  Minor complication to save a minor amount of space.
4155         * decl.c (do_based_decls):  Move guts of code into ...
4156         (do_based_decl):  ... this new function.
4157         * decl.c (do_decls):  Handle either IDENTIFIER_NODE or a TREE_LIST.
4158         * decl.c (push_syndecl):  Replace by ...
4159         (push_syndecl):  ... (which only supports a single name).
4160         (push_modedef):  Only handle a single name.
4161         * tasking.c (build_process_header, build_signal_struct_type):
4162         Adjust accordingly.
4164         * expr.c (build_generalized_call):  Handle string repetition.
4165         * expr.c (build_chill_repetition_op):  Change interface.
4166         * grant.c (decode_constant):  Allow parameter list to be
4167         a non-TREE_LIST.  (Used for string repetition.)
4169 Wed May 25 11:28:48 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4171         * lex.l (make_identifier):  Replaced by ...
4172         (read_identifier, handle_name): ... new functions.
4173         * lex.l: Parse an identifiers using read_identifier using
4174         read_identifier and handle_name, rather than having [f]lex
4175         do it.  (One reason is that lex uses a fixed-size buffer.)
4177         * lex.l (read_directive, skip_directive):  New functions.
4178         Use them to parse compiler-directives, instead of rather
4179         ugly and useless use of lexer start conditions.
4181 Tue May 24 22:36:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4183         * decl.c (unnamed_module_number):  Renamed to ...
4184         (module_number):  .. and make non-static.
4185         (push_module):  Always increment module_number.
4186         * lex.l (yywrap):  Print warning if no modules seen.
4188         * decl.c (pop_module):  Don't set DECL_SEIZEFILE of granted
4189         decl to current_seizefile_name (which is unreliable).
4190         * grant.c (chill_grant):  Set it here instead.
4192         * expr.c (fold_set_expr):  Use int_size_in_bytes instead of
4193         TYPE_PRECISION (which is not defined for a SET_TYPE).
4195 Fri May 20 15:21:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4197         Cleanup to remove need for variables in common storage.
4198         * decl.c:  Remove unused use of current_obstack.
4199         * actions.c (maybe_chill_check_decl):  Remove unused function.
4200         * actions.h, lang.c:  Remove uses of doing_chill_thang.
4201         * ch-tree.h (void_list_node):  Make extern (rather than common).
4202         * decl.c (void_list_node):  Add definition.
4204 Thu May 19 06:54:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4206         * configure (build): Build canon_host and canon_target
4207         to pass it to all subsequently generated Makefiles (needed
4208         for testsuite/execute in case of cross build).
4210 Wed May 18 13:27:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4212         * grant.c (decode_mode):  Remove.  It checks the TYPE_NAME of
4213         the input type, which loses with the no-longer-new 2-pass
4214         implementation, since the input "type" could be an IDENTIFIER_NODE.
4215         * grant.c (raw_decode_mode):  Rename to decode_mode.
4217 Tue May 17 13:19:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4219         * typeck.c (chill_location):  Neither a STRING_CST nor a
4220         CONSTRUCTOR is a location.
4221         * typeck.c (chill_root_mode):  Convert a function to a
4222         pointer-to-function.
4223         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
4224         build_chill_arrow_expr):  If ignore_exprs, return operand
4225         rather than NULL_EXPR.  This makes it easier for the parser to
4226         distinguish missing expressions.
4227         * expr.c (build_max_min):  Convert the lower bound of a
4228         set to a long before calling run-time routine.
4229         * expr.c (build_chill_pred_or_succ):  Use discrete_type_p
4230         to check the argument type.
4231         * expr.c (build_chill_arrow_expr):  If argument is not a location,
4232         do a predwarn if it is a STRING_CST or has function type.
4234 Tue May 17 06:05:13 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4236         * configure (build): Remove building of canon_host and canon_target.
4237         It doesn't work in any case.
4239 Mon May 16 02:10:35 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4241         * configure (build): Build canon_host and canon_target
4242         to pass it to all subsequently generated Makefiles (needed
4243         for testsuite/execute in case of cross build).
4244         * Make-lang.in (chill-runtime): Change chill to CHILL in the case
4245         statement to build chill-runtime automatically.
4247 Mon May  9 15:30:08 1994  Doug Evans  (dje@canuck.cygnus.com)
4249         * Makefile.in (FLAGS_TO_PASS): Define.
4250         (OBJDEPS): Define.
4251         (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
4252         * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
4253         (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
4255 Sun May  8 13:05:00 1994  Per Bothner  (bothner@cygnus.com)
4257         * Make-lang.in (cc1chill):  Should not depend on libgcc.a.
4259 Thu May  5 18:58:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4261         * decl.c (copy_lang_decl):  New (dummy) function.
4263 Mon May  2 14:33:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4265         * parse.y (sendaction):   Fix thinko (in sense of condition).
4266         * tasking.c (build_receive_case_label):  Another thinko.
4268         * parse.y (optsigdest):  Force ignore_exprs to 0 while parsing
4269         the (signal-)name.
4271         * decl.c (build_chill_function_type):  Don't call layout_type
4272         (since that may prevent parameter or result types being
4273         properly satisfied).
4274         * satisfy.c (satisfy):  Layout FUNCTION_TYPEs.
4275         * parse.y (procmode):  Call build_chill_pointer_type, rather
4276         than build_pointer_type (which incorrectly sets TYPE_SIZE).
4278         * parse.y (get_type_of):  Handle TYPE_DECL (again).
4279         * parse.y (optresultspec):  Call build_chill_reference_type, rather
4280         than build_reference_type (which incorrectly sets TYPE_SIZE).
4281         * parse.y (range_or_mode):  Rename to plain range, since it
4282         no longer matches modename.
4283         * actions.c (chill_handle_case_label_range):  New function, with
4284         functionality moved out of chill_handle_case_label.
4285         * actions.c (chill_handle_case_label):  Handle here the case that
4286         the label_value is a TYPE_DECL (modename).   Also clean up some.
4287         * typeck.c (build_chill_slice_with_length):  Convert max_index
4288         to the type of min_value.  (Old code broke on varying strings.)
4290 Sun May  1 13:53:36 1994  Doug Evans  (dje@canuck.cygnus.com)
4292         * Makefile.in (BC_OBJS): Delete all references
4293         (OBJS): Cat ../stamp-objlist to get language independent files.
4294         (../cc1chill): Delete dependency on $(OBJS).
4295         * Make-lang.in (cc1chill): Depend on stamp-objlist.
4297 Sat Apr 30 14:50:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4299         * lex.h, lex.c:  Remove lastiddecl.
4300         * lex.l (name_type_signal):  Simplify.  We no longer check for
4301         TYPENAME or SIGNALNAME (which was unreliable with two passes).
4302         Also rename to make_identifier.
4303         * parse.y:  Cleaned up grammar to not need SIGNALNAME or TYPENAME.
4304         * Makefile.in (stamp-parse);  One conflict fewer!
4305         * parse.y (rccase_label_flag):  Moved to tasking.c.
4306         * parse.y (rccase_label):  Move most of the logic to
4307         build_receive_case_label in tasking.c.
4308         * parse.y (sendaction):  Re-write to not depend on SIGNALNAME.
4310         * parse.y (name):  Do name lookup here (and not in location).
4311         * parse.y:  Replace most uses of NAME by higher-level non-terminals:
4312         simple_name_string, name_string, defining_occurrence, or name.
4314         * tasking.c (build_receive_signal_case_label,
4315         build_receive_buffer_case_label):  New functions, split out from
4316         build_receive_case_label.
4317         * tasking.c (build_receive_case_label):  Change parameters
4318         and return type.  Moved stuff here (from the parser).
4319         * tasking.c (struct rc_state_type):  Removed had_errors.
4320         Return error_mark_node instead.
4321         * tasking.c (build_rccase_set_error), ch-tree.h:  Removed.
4323         * expr.c (build_generalized_call):  If func is a signal type,
4324         call build_signal_descriptor.
4326         * parse.y (arrayindex):  Renamed to index_mode, to match Z.200.
4327         * parse.y (ioindexmode):  Removed;  use index_mode instead.
4328         * expr.c (build_generalized_call):  If args is a RANGE_EXPR,
4329         we have either a slice or a range mode, depending on func.
4330         * parse.y (index_mode):  If we got an 'expr', only allow a name,
4331         or a range mode.
4332         * parse.y (call):  A slice with both end points can be a range
4333         mode, so defer handling to build_generalized_call (or index_mode).
4335         * typeck.c (build_chill_slice_with_length):  Fix type-checking.
4336         * typeck.c (chill_novelty):  Undo (part of) change of April 28:
4337         The novelty of a range mode is the novlety of the parent.
4338         * typeck.c (chill_root_mode):  Don't return integer_type_node
4339         if argument has non-nil novelty.
4341         * decl.c (global_bindings_p):  Return -1 as true, for the sake
4342         of variable_size (in ../stor-layout.c).
4344 Fri Apr 29 13:42:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4346         * parse.y:  Remove TYPENAME and modename.  These are now plain
4347         NAMEs.  Modify parsing actions appropriately.
4348         * expr.c (build_generalized_call):  Handle the case that
4349         TREE_CODE (func) == TYPE_DECL (as in a cast).
4350         * lex.l (name_type_signal):  Never return TYPENAME.
4351         * parse.y (get_type_of):  If pass 1, just return the argument.
4353         * decl.c (do_decl):  If an initializer has the wrong type,
4354         replace it by NULL_TREE, to avoid subsequent errors.
4356 Thu Apr 28 15:21:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4358         * Makefile.in: Add new file timing.c to rules.
4359         * timing.c: New file. Implements the timing actions AT,
4360           CYCLE and AFTER.
4361         * decl.c (init_decl_processing): Add new builtin function
4362           descriptions.
4363         * expr.c (build_chill_indirect_ref): Change error message and
4364           add check agains an IDENTIFIER_NODE.
4365         * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
4366           They are no longer needed.
4367         * grant.c (print_integer_type): Add processing of builtin types
4368           DURATION and TIME.
4369         * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
4370         * parse.y (timingactions): split up to afteraction, ataction
4371           and cycleaction.
4372         * parse.y (afteraction): New rule.
4373         * parse.y (ataction): New rule and put actions in.
4374         * parse.y (cycleaction): New rule and put actions in.
4375         * parse.y (sendaction): Add code for SEND buffer.
4376         * parse.y (rccase_label): Change error processing.
4377         * tasking.c (build_gen_inst): More checks.
4378         * tasking.c (build_gen_code): Add checking for argument is a
4379           PROCESS or a SIGNAL.
4380         * tasking.c (struct rc_state_type): Add new fields for easier
4381           error processing.
4382         * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
4383         * tasking.c (build_rccase_set_error), ch-tree.h: New function.
4384         * tasking.c (build_receive_case_label): Add processing of BUFFER's.
4385         * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
4386           New functions to process the end of a RECEIVE CASE action in case
4387           of BUFFER's and SIGNAL's.
4388         * tasking.c (build_receive_case_end): Do only general processing and
4389           call one of the above mentioned functions.
4390         * tasking.c (build_delay_case_start, build_delay_case_label,
4391           build_delay_case_end): Rewritten due to new implementation of events.
4392         * tasking.c (build_delay_action): Rewritten due to new implementation
4393           of EVENT's.
4394         * tasking.c (expand_send_buffer), ch-tree.h: New function.
4395         * timing.c (build_at_action, build_cycle_start, build_cycle_end),
4396           ch-tree: New functions.
4398 Thu Apr 28 14:11:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4400         * typeck.c (smash_dummy_type):  Handle the special case of a
4401         NEWMODE of a range mode, as required by Z200, by creating a
4402         new parent mode with the new novelty (and casting the min
4403         and max of the range to teh new parent mode).
4404         * typeck.c (chill_novelty, chill_root_mode):  Remove special
4405         kludges for of NEWMODE ranges.
4406         * expr.c (build_chill_lower_or_upper):  New function, combining
4407         the "guts" of build_chill_lower and build_chill_upper.
4408         * expr.c (build_chill_lower_or_upper):  Simplify;  no longer
4409         need to kludge the novelties.
4411         * typeck.c (valid_array_index_p):  A string index expression
4412         need not be Compatible with the index type;  only similar.
4414         * decl.c (layout_chill_variants):  If error seen, skip stuff
4415         (rather than aborting or crashing).
4416         * decl (push_modedef):  If newdecl's type is an error mark,
4417         continue rather than aborting.
4419 Thu Apr 28 02:07:42 1994  Doug Evans  (dje@cygnus.com)
4421         * Make-lang.in: Update of directory reorg from fsf.
4422         * config-lang.in: Ditto.
4424 Mon Apr 25 13:09:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4426         * typeck.c (chill_similar):  Check RECORD_TYPEs properly,
4427         * convert.c (convert):  If all else fails, just call convert1.
4428         Thus we can now convert RECORD_TYPEs (assuming they are similar).
4430         * parse.y, lex.l:  Remove BUFFERNAME (use location/expr instead).
4431         * parse.y:  Re-do BUFFER handling (similar to previous EVENT change).
4432         * grant.c (raw_decode_mode):  Re-do BUFFER mode handling.
4433         * ch-tree (lang_type_record):  Removed max_queue_size field.
4434         * tasking.c (build_buffer_type):  Re-write.
4435         * tasking.c (max_queue_size):  Fix to support buffer modes.
4436         * tasking.c (buffer_element_mode), ch-tree.h:  New function.
4437         * tasking.c ch-tree.h (expand_send_buffer):  Now has 3 parameters.
4438         * parse.y (modename):  No longer match SIGNALNAME.  Instead, add it
4439         to name and simple_name_string.  This removes a reduce/reduce conflict.
4440         * Makefile.in (stamp-parse):  Expect fewer conlicts.
4442         * lex.l (yywrap):  Move check for circularly seizeing current
4443         grant-file from here ...
4444         * lex.l (handle_use_seizefile_directive):  ... to here.
4445         This is to avoid calling stat on a not-yet written grantfile,
4446         now that we're using same_file (which calls stat).
4447         * grant.c (set_use_this_gf):  Removed.
4448         * grant.c (set_default_grant_file):  Set grant_file_name here,
4449         because we need it earlier (due to above lexer change).
4451         * typeck.c (layout_chill_struct_type):  Remove useless code to
4452         remove zero-width bitfield (which messes up CONST_DECLs).
4454 Sat Apr 23 13:16:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4456         * Makefile.in (check): Assure that 'ld' is available before checking.
4458 Thu Apr 21 13:23:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4460         * grant.c (print_an_int):  Removed.
4461         (raw_decode_mode):  Generalized to use decode_constant
4462         instead of print_an_int.
4463         (decode_constant):  Print directly, instead of calling print_an_int.
4464         * parse.y (event_list):  Fix syntax.
4465         * parse.y (optqueuesize):  Default is NULL_TREE, not zero.
4466         * tasking.c (check_queue_size):  New function, for error checking.
4467         * ch-tree.h:  Add declaration for check_queue_size.
4468         * satisfy.c (satisfy case RECORD_TYPE):  Satisfy constant fields
4469         (used for queue size of EVENT and BUFFER), and call check_queue_size.
4471 Tue Apr 19 13:42:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4473         Re-implement EVENT modes to support general EVENT objects
4474         (and not just EVENT names), according to Z200.  (Not finished!)
4475         * tasking.c, ch-tree.h (max_queue_size):  New function.
4476         * parse.y (dcalternative, event_list, event_list_head):  New
4477         implementation of DELAY CASE, avoiding parsing ambiguities.
4478         (call, locdec, delayaction):  Remove old EVENTNAME kludges.
4479         * lex.l (name_type_signal):  Remove EVENTNAME recognition.
4480         * tasking.c (build_event_type):  Re-written.
4481         * typeck.c (chill_similar), decl.c (print_lang_type):
4482         Use new max_queue_size function.
4483         * typeck.c (layout_chill_struct_size):  Ignore CONST_DECL.
4484         * tasking.c (build_delay_action):  Preliminary changes - just to
4485         make it compile.  FIXME!
4486         * grant.c (raw_decode_mode):  Use new max_queue_size function.
4487         Move EVENT support from LANG_TYPE to RECORD_TYPE.
4488         * ch-tree.h (process_event_decls):  Removed.
4490 Tue Apr 19 11:44:01 1994  Bill Cox  (bill@rtl.cygnus.com)
4492         * regression.sh: Complete previous change - eliminate all
4493           references to objdir as a user parameter.
4495 Mon Apr 18 10:17:55 1994  Bill Cox  (bill@cygnus.com)
4497         * Makefile.in (check): Simplified regression.sh call.
4498         * regression.sh: Change command-line parsing.  Default
4499           srcdir to the script's path.  Calculate objdir
4500           internally - don't pass it in.
4502 Thu Apr 14 13:30:19 1994  Wilfried Moser  (moser@phishhead.cygnus.com)
4504         * expr.c (build_chill_duration): Add range checking.
4506         * lex.l (init_lex): Add predefined names DURATION and TIME.
4507         * lex.h (enum rid): Add RID_DURATION and RID_TIME.
4508         * ch-tree.h: Add prototypes and externals.
4509         * decl.c (init_decl_processing): Add builtin function
4510         descriptions.
4511         * expr.c (build_generalized_call): Add processing of some
4512         builtin's.
4513         * expr.c (build_chill_abstime): New function to process builtin
4514         ABSTIME.
4515         * expr.c (build_chill_inttime_type): New function to built type
4516         for the INTTIME builtin.
4517         * expr.c (build_chill_inttime): New function to process builtin
4518         INTTIME.
4519         * expr.c (build_chill_duration): New function to process builtin's
4520         MILLISECS, SECS, MINUTES, HOURS and DAYS.
4522 Tue Apr 12 11:55:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4524         * lex.l (chill_same_grant_file):  Rename to same_file.  Change to
4525         take two files names rather than two DECLs.  Also check that the
4526         filesystems (st_dev) are equal.  Finally, make static.
4527         * lex.l (handle_use_seizefile_directive):  Check for duplicate
4528         USE_SEIZE_FILE directives using same_file.
4529         * decl.c (pop_module):  Remove dubious call to chill_same_grant_file.
4531 Sun Apr 10 17:19:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4533         * decl.c, ch-tree.h (chill_result_decl):  New variable.  Used to
4534         store RESULT value.  (Cannot use DECL_RESULT;  see comment in decl.c.)
4535         * actions.c (chill_expand_result, chill_expand_return):
4536         Use chill_result_decl appropriately.
4537         * ch-tree.h, decl.c, actions.c (saved_result_rtx):  Removed.
4538         Subsumed by chill_result_decl.
4540         * expr.c (chill_expand-expr case CONCAT_EXPR):  Generate temporary
4541         using the mode of the result type, and don't assume it is BLKmode.
4543 Fri Apr  8 17:46:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4545         * actions.c (chill_expand_assignment):  Check for compatibility
4546         _after_ "expanding out" a binary operation.  This fixes
4547         the case "STRING //:= CHAR".
4549         * lex.l (equal_number):  Convert symbol to integer_type_node, to
4550         force the value to be INT-derived (and avoid novelty conflicts).
4552 Mon Apr  4 22:06:31 1994  Per Bothner  (bothner@cygnus.com)
4554         * ch-tree.h (CH_FUNCTION_SETS_RESULT):  New flag.
4555         * ch-actions.c (chill_expand_return), ch-tree.h:  Extra
4556         parameter, indicates if implicit return at end of function.
4557         * ch-parse.y:  Modify accordingly.
4558         * ch-actions.c (chill_expand_return):  Various improvements.
4560         * decl.c, ch-tree.h (result_never_set):  New variable.
4561         * actions.c (chill_expand_result, chill_expand_return):  Clear it.
4562         * ch-parse.y (end_function):  Warn if no RETURN or RESULT action.
4564         * decl.c, ch-tree.h (saved_result_rtx):  New variable.
4565         * decl.c (start_chill_function):  Use saved_result_rtx as return
4566         value if there is a RESULT in a REG that might get clobbered.
4567         * actions.c (chill_expand_result):  Save result in saved_result_rtx
4568         or assign to DECL_RESULT as appropriate.
4569         * decl.c, ch-tree.h (current_function_returns_value,
4570         current_function_returns_null, current_extern_inline):
4571         Don't use.  Only define first two to allow linking with ch-typeck.c.
4573         * typeck.c (chill_l_equivalent):  Add forward declaration.
4575 Fri Apr  1 11:02:27 1994  Wilfried Moser  (fs_moser at rcsw47)
4577         * lex.l (readstring): Handle control sequence in all cases (Z.200
4578         5.2.4.4 page 54).
4580 Fri Apr  1 13:11:27 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4582         * configure:  Simplify and fix the logic for looping through
4583         sub-directories.
4585 Thu Mar 31 18:59:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4587         * ch-tree.h (CH_L_EQUIVALENT):  Moved from typeck.c.
4588         * typeck.c (chill_similar):  Add support for checking
4589         FUNCTION_TYPEs for similarity.  Also, treat
4590         pointer-to-function-type the same as function-type.
4592 Thu Mar 31 11:22:56 1994  Wilfried Moser  (fs_moser at rcsw47)
4594         * ch-tree.h: Change prototype of function expand_send_signal.
4595         * parse.y: Change calls to expand_send_signal.
4596         * tasking.c (expand_send_signal): Change handling of optsetto
4597         argument. New argument signame to get a possible destination
4598         process for the signal.
4600 Wed Mar 30 14:54:48 1994  Wilfried Moser  (fs_moser at rcsw1j)
4602         * tasking.c (make_process_struct): Change error message in case of
4603         a process argument has other attribute then IN or LOC.
4604         * tasking.c (build_start_process): Add check that the optset is
4605         referable in case it is specified (this makes
4606         noncompile/start_.ch working).
4608 Tue Mar 29 13:24:27 1994  Wilfried Moser  (fs_moser at rcsw1h)
4610         * Makefile.in: Change version string to 1.2.1
4611         * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4612           entries.
4613         * ch-tree.h: Change prototype for build_chill_readtext.
4614         * decl.c (init_decl_processing): Add builtin_function _readstring,
4615           _readunixstd and READTEXT.
4616         * expr.c (build_generalized_call): Add processing of READTEXT.
4617           Delete handling of no longer valid builtin_functions.
4618         * gperf: Remove keyword READTEXT.
4619         * parse.y: Remove token READTEXT.
4620         * inout.c (build_chill_io_list_type): Add building type for
4621           READTEXT.
4622         * inout.c (build_chill_readtext): Implement the function
4623           (partial).
4624         * inout.c (build_chill_writetext): Do some cleanups.
4626 Tue Mar 29 12:30:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4628         * typeck.c (build_chill_cast):  Re-arrange, to support casts
4629         of const integer to type of different size, if there is
4630         an integral type of the desired size:  Go through the
4631         const conversion code.
4633         * actions.c (adjust_parm_or_field):  Move support for LOC to ...
4634         * expr.c (build_chill_function_call): ... here.
4635         Fix a number of bugs in OUT/INOUT handling.
4637         * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4638         parse.y (location), typeck.c (chill_comptypes):  Remove unused
4639         support for ENCAPSULATED_ARRAY_P.
4640         * typeck.c (build_chill_array_parm_type), ch-tree.h:  Remove; unused.
4642         * ch-tree.h, decl.c (shadow_record_fields), decl.c
4643         (shadow_record_fields), expr.c (chill_expand_case_expr,
4644         build_chill_function_call), grant.c (chill_finish_compile),
4645         typeck.c (build_empty_string, build_init_struct):  Rename magic
4646         identifiers of the form "<...>" to "__..." for better portability.
4648         * actions.c (adjust_parm_or_field):  Remove extraneous
4649         call to build_chill_repetition_op.
4650         * expr.c (build_chill_function_call):  Some simplifictions
4651         (since neither valtail nor typetail can be NULL).
4652         Clean up error message for OUT//INOUT not location to use only 1 line.
4653         Add error message for OUT/INOUT if type is READonly.
4654         * typeck.c (build_chill_modify_expr):  Simplify.
4656 Sun Mar 27 19:30:25 1994  Bill Cox  (bill@rtl.cygnus.com)
4658         * Makefile.in: Clean up generally.  Assure that
4659           runtime is built before running regressions.
4660           Build correct parameters to regression.sh.
4661           Remove a lot of 'clean' cruft.
4662         * Make-lang.in, config-lang.in: New files for
4663           subdirectory architecture.
4665 Sat Mar 26 10:39:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4667         * Makefile.in (check): Build correct parameters for regression.sh.
4669 Fri Mar 25 10:13:06 1994  Bill Cox  (bill@rtl.cygnus.com)
4671         * configure: Also mark regression.awk3 as executable.
4672         * regression.sh: Add comments about command-line options.
4673           Calculate srcdir correctly, defaulting to the script's path.
4674           Add OPT flag to pass to the Makefiles, to specify the
4675           compiler's optimization level, and -O  and -O2 options.
4676           Delete GLOBAL flag and tests.  Use a different make.log
4677           file for optimized and unoptimized test results.  Add the
4678           compiler's host and target triples to the report header.
4680 Wed Mar 23 21:41:26 1994  Bill Cox  (bill@rtl.cygnus.com)
4682         * expr.c (build_chill_function_call): Handle INOUT and OUT
4683           parameters better (for the rangefail test, at least).
4685 Wed Mar 23 14:13:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4687         * regression.sh (srcdir, objdir):  Fixed hard-wired paths.
4688         (grep args):  Changed [XYZ-] to [-XYZ] for SCO.
4690 Wed Mar 23 13:34:18 1994  Bill Cox  (bill@rtl.cygnus.com)
4692         * expr.c (build_generalized_call): Revert previous change.
4693           To do this correctly, we need a new parsing mechanism, and
4694           C++ initializer technology.
4696 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4698         * expr.c (build_generalized_call): Be sure we're inside the
4699           module-level function before calling build_gen_inst, for
4700           example.
4702 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4704         * regression.sh (dodirectory): Count the gcov and abort tests
4705           among the .dat files.
4707 Tue Mar 22 15:39:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4709         * satisfy.c (safe_satisfy_decl):  When checking that a SYN
4710         value fits in a specified discrete type, don't convert first,
4711         and use compare_int_csts instead of tree_int_cst_lt.
4713 Tue Mar 22 15:25:38 1994  Bill Cox  (bill@rtl.cygnus.com)
4715         * configure: Generate better .gdbinit files.
4717 Tue Mar 22 11:59:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4719         * actions.c (check_range):  Don't emit dynamic checks
4720         if not current_function_decl.
4722         * parse.y (arrayindex):  Allow expr (error is emitted
4723         at semantic level if not the NAME of a type).
4724         * typeck.c (build_chill_cast):  Re-enable some casts.
4725         * satisfy.c (safe_satisfy_decl):  Remove redundant CONST check.
4727 Tue Mar 22 11:46:28 1994  Bill Cox  (bill@rtl.cygnus.com)
4729         * configure: Access the utils directory correctly.
4730         * expr.c (build_compare_expr): Reenable compatibility test.
4732 Tue Mar 22 11:24:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4734         * typeck.c (valid_array_index_p):  Call
4735         build_compare_discrete_expr instead of build_compare_expr.
4736         * typeck.c (build_chill_cast):  Improve logic.
4737         * satisfy.c (safe_satisfy_decl):  Simplify test.
4739 Tue Mar 22 10:17:58 1994  Bill Cox  (bill@rtl.cygnus.com)
4741         * actions.c (chill_expand_assignment): Correct detection of
4742           string assignment case.
4743         * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4744           the actual parameters need to be converted to the unsigned long
4745           type explicitly.  Do that.
4746         * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4748 Mon Mar 21 16:25:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4750         * Makefile.in: Correct prediction of grammar conflicts.
4751         * actions.c(check_range): Fix reference to NULL_TREE pointer.
4752           And allow compile-time errors even if range_checking is off.
4753         * parse.y: Clean up some comments.
4754         * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4756 Mon Mar 21 13:29:23 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4758         * typeck.c (layout_chill_range_type):  Instead of tree_int_cst_lt
4759         use compare_int_csts (which is more robust when signedness differs).
4760         Also, convert the bounds *after* doing range checking.
4762         * ch-tree.def (SET_IN_EXPR):  New.
4763         * expr.c (chill_expand_expr):  Code to expand SET_IN_EXPR,
4764         moved from expand_expr in ../expr.c.  Also add some extra
4765         conversions (because we're now using build_chill_function-call).
4766         * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4767         Use SET_IN_EXPR in place of IN_EXPR.
4769         * expr.c (build_compare_discrete_expr), ch-tree.h:  New function,
4770         with code moved from build_compare_expr.
4771         * expr.c (build_compare_expr):  Re-enable compatibility test.
4773 Mon Mar 21 11:02:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4775         * Makefile.in: Rewrite byacc related rules.
4776         * actions.c (chill_convert_for_assignment): Use the
4777           referenced type only for generating range checks.
4778         * configure: Add 'utils' directory to SUBDIRS variable.
4780 Sun Mar 20 21:49:59 1994  Bill Cox  (bill@rtl.cygnus.com)
4782         * actions.c (check_range): Call build_compare_expr rather than
4783           build_binary_op.
4784           (adjust_parm_or_field): Call convert_for_assignment rathern than
4785           convert, to get the range-checking.
4786         * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4787           Generate a compile-time message if possible.
4788           (build_compare_expr): Comment out compatibility test - should
4789           not be needed in here.  Fix a couple of typos.  Add some types
4790           to some build calls.
4792 Sun Mar 20 11:48:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4794         * decl.c (init_decl_processing):  Clean up parameter type
4795         list for __setbitpowerset,
4797         * typeck.c (chill_compatible_classes):  Allow the M-reference
4798         to be compatible with the N-value class, with suitable M and N.
4799         * typeck.c (build_chill_slice):  Don't smash a void TREE_TYPE.
4800         (We don't need to, and it causes confusion.)
4802         * expr.c (build_compare_expr):  Fix thinko.  Add save_exprs.
4804         * expr.c (build_compare_expr):   Fix a transcription bug
4805         (for converting NULL INSTANCEs).  Also #include convert.h.
4807         * expr.c (compare_int_csts):  New.  Compare INTEGER_CSTs.
4808         Works even if their types have different TREE_UNSIGNED.
4809         * expr.c (finish_chill_binary_op):  Moved code dealing with
4810         the comparison operators from here ...
4811         * expr.c (build_compare_expr):  ... to new function here.
4812         Also, for discrete types, tries to Do The Right Thing, even for
4813         differing values of TYPE_PRECISION and TREE_UNSIGNED.
4814         the code from lay
4815         * ch-tree.h:  Declare new functions.
4816         * typeck.c (valid_array_index_p):  Various cleanups,
4817         including using new build_parse_expr.
4818         * parse.y:  Use new build_compare_expr.
4820         * inout.c (build_chill_writetext):  Handle REFERENCE_TYPE args.
4822 Sun Mar 20 08:54:27 1994  Bill Cox  (bill@rtl.cygnus.com)
4824         * actions.c (expand_assignment_to_varying_array):
4825           Call build_chill_array_ref to get index checking.
4826           (chill_convert_for_assignment): Delete unused errstr
4827           variable.
4828           (chill_expand_assignment): Call build_chill_array_ref
4829           to get runtime index checking.
4830           (expand_varying_length_assignment): Use new interface
4831           to varying_array_index_p.
4832         * ch-tree.h (varying_array_index_p): New proto.
4833         * convert.c (convert): Call build_chill_array_ref
4834           to get runtime index checking.
4835         * expr.c (build_chill_pred_or_succ): Fix cond tree
4836           to have consistent operand types.
4837         * typeck.c (valid_array_index_p): Change interface to pass
4838           validity conditions back on caller's TREE_LIST.  We
4839           cannot link the conditions to anything which a
4840           layout_type routine will expand, since that will occur
4841            before the exception handler is set up.
4842           Change calls to valid_array_index_p also.
4844 Fri Mar 18 14:40:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4846         * actions.c, except.c, loop.c, tasking.c:  Call
4847         build_chill_function_call instead of the C-specific
4848         build_function_call.
4849         * except.c (initialize_exceptions):  Fix parmtype of __builtin_setjmp.
4850         * loop.c (top_loop_end_check):  Coerce library function arg.
4851         * convert.c, expr.c:  Re-write to avoid calls to C-specific
4852         function build_unary_op (e.g. by calling build1 directly).
4854         * typeck.c (chill_equivalent):  Change to force failure
4855         for non-matching integral types (even if not ranges).
4857         * typeck.c, ch-tree.h (build_chill_slice):  Make non-static.
4858         * expr.c (varying_to_slice):  Call build_chill_slice (and not
4859         build_chill_slice_with_length, which does bunches of range
4860         checking and does not allow the length to be zero).
4861         * convert.c (convert):  Fix off-by-one error.
4862         * actions.c (chill_expand_array_assignment):  Minor cleaning up.
4864 Fri Mar 18 00:12:48 1994  Per Bothner  (bothner@deneb.cygnus.com)
4866         * decl.c (init_decl_processing):  __lepowerset and __ltpowerset
4867         take *two* pointer parameters, not one.
4868         * satisfy.c (satisfy):  Only call the appropriate layout routine
4869         if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4870         * typeck.c (build_chill_slice_with_length):  Fix Bill's previous fix.
4872 Thu Mar 17 17:29:43 1994  Bill Cox  (bill@rtl.cygnus.com)
4874         * expr.c (build_chill_function_call): Give function call the correct
4875           type tree.
4876         * typeck.c (build_chill_slice_with_length): Restore dynamic range
4877           checking, so it doesn't obscure the CONSTANTness of the length.
4879 Wed Mar 16 17:23:31 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4881         * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4882         [case CONCAT_EXPR]):  Remove kludge setting slice size upper bound
4883         in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4884         * typeck.c (build_chill_slice):  Use TYPE_MAX_VALUE of
4885         array_type if needed for size upper bound of slice_type.
4886         * expr.c (build_concat_expr):  Improve calculation of size upper bound.
4888         * typeck.c (valid_array_index_p):  Check compatibility using
4889         correct types.
4890         * typeck.c (build_chill_slice_with_length);  For now revert
4891         calling valid_array_index_p on length.  (It makes it harder
4892         to realize when the slice is constant length.)
4893         * expr.c (build_chill_indirect_expr):  Minor tweak.  (This
4894         seems to work around a weird C compiler bug. ??)
4896         * expr.c (build_chill_function_call):  Cleanup so it doesn't
4897         call build_function_call (in c-typeck.c).
4898         * typeck.c, expr.c:  Use build_chill_function_call instead of
4899         build_function_call (in c-typeck.c).
4901         * parse.y (discrete_mode):  Move some of the rules from
4902         non_array_mode into new non-terminal.
4903         (arrayindex):  Use discrete_mode (with NAME and TYPENAME) to
4904         avoid some misparses.
4905         * ch-tree.h (SLICE_PTR, SLICE_LENGTH):  Removed;  unused.
4906         * convert.c (digest_structure_tuple):  Add missing parameter.
4907         * decl.c (comptypes):  Remove unused prototype.
4908         * decl.c (build_chill_function_type):  Handle NULL return_type
4909         correctly (convert to void_type_node).
4910         * decl.c (init_decl_processing):  layout boolean_type_node *after*
4911         we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4913 Wed Mar 16 16:08:22 1994  Bill Cox  (bill@rtl.cygnus.com)
4915         * ch-tree.h: Add prototype.
4916         * convert.c (convert): Correct calculation of padding length.
4917         * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4918           parse.y where it belongs.  This permits the removal of a kludge
4919           in make_process_struct.
4920         * lex.l, parse.y: Call to_global_level for several errors.  Add
4921           code to output error in only one pass.
4922         * tasking.c (make_process_struct): Delete kludge inserted on
4923           March 8.
4924           (build_receive_case_end): Add Wilfried's check for errors.
4926 Tue Mar 15 08:42:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4928         * actions.c: Fix comment.
4929           (build_rts_call): Ifdef it out - never used.
4930           (expand_varying_length_assignment): call valid_array_index_p.
4931           rather than validate_varying_array_ref.
4932         * ch-tree.h: Fix prototype for valid_array_index_p.
4933         * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4934           index validation.
4935           (build_hill_lower, build_chill_upper): Return value now inherits
4936           the novelty of the input parameter.
4937           (varying_to_slice): Use CH_NOVELTY macro rather than calling
4938           chill_novelty directly.
4939         * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4940           to unsigned.
4941           (print_integer_type): Pass string value as APPEND's second parameter.
4942           (decode_decl): Pass a boolean expression as print_proc_tail's
4943           first parameter.
4944           (chill_finish_module_code): Make xmalloc's parameter unsigned.
4945         * lex.l: Pass sizes to xmalloc as unsigned ints.  Pass second
4946           parameter to in_word_set as unsigned.
4947         * loop.c (build_loop_start): Check top_loop_end_check return value.
4948         * parse.y: Add casts to int for third do_decls parameter, fifth
4949           build_loop_iterator parameter, etc.
4950         * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4951         * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4952           valid_array_index): Delete them.  They're now unused.
4953           (valid_array_index_p): Add function, call it everywhere that an
4954           array index is checked.
4955           (build_chill_slice): Restore old functionality where varying_to_slice
4956           is called to handle slices of varying arrays, rather than handling
4957           handling them here.
4958           (build_chill_slice_with_range, build_chill_slice_with_length):
4959           Check range limits for TREE_CONST before calling tree_int_cst_lt.
4960           Delete now-obsolete checks of constant indices.
4962 Mon Mar 14 17:26:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4964         * parse.y (modeless_expr):  New rule to allow ([...]) and (if...)
4965         to count as untyped_exprs.  (This is not really permitted by the
4966         Blue Book, but has been requested by customers.)
4968 Thu Mar 10 10:11:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4970         * chill.texi: Document new command-line options.
4971         * expr.c (build_chill_num): Set unsigned parameter for
4972           type_for_size call correctly (unsigned for enums).
4973         * lang.c (lang_decode_option): Add command-line options to
4974           enable/disable runtime range-checking.
4975         * lex.l: Eat more whitespace.
4977 Thu Mar 10 09:41:37 1994  Bill Cox  (bill@rtl.cygnus.com)
4979         * Makefile.in: Have rules to make parse.h, y.tab.c and other
4980           derived files.  This allows the gcc/configure list of CHILL
4981           files machinery to work.
4982         * ch-tree.h (permanent_allocation): Add a parameter flag.
4983         * decl.c (finish_chill_function, finish_decl): Provide the
4984           new permanent_allocation flag.
4985           (poplevel): Return early, avoid a seg fault.
4986         * lex.l (NORMAL): Replace this whole state with the predefined
4987           INITIAL state.  Force compilation state to global level after
4988           compiler directive error - prevents endless loop on error.
4989           (handle_use_seizefile_directive): Rewrite for readability.
4990           (chill_same_grant_file): Reindent.
4991           Generally handle whitespace differently.
4992         * regression.prpt: Print ten PR numbers per line.  The report's
4993           getting too long.
4995 Wed Mar  9 09:58:51 1994  Bill Cox  (bill@rtl.cygnus.com)
4997         * decl.c (do_decl): Suppress the string-assignment-condition
4998           error - it was too often seen.
4999         * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
5000           runtime-changing length (as in a slice), get the parent array's
5001           allocation size from its type tree.
5002         * typeck.c (build_chill_slice): Support VARYING arrays.  Pass
5003           parent array's static allocation size along in the slice type.
5005 Wed Mar  9 08:54:24 1994  Bill Cox  (bill@rtl.cygnus.com)
5007         * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
5009 Tue Mar  8 11:51:10 1994  Bill Cox  (bill@rtl.cygnus.com)
5011         * expr.c (build_chill_sizeof): Fix typo in error msg, add
5012           some whitespace.
5013         * lex.l (name_type_signal): Add debug output.
5014         * parse.y (call):  Allow EVENTNAME and BUFFERNAME parameters
5015           to a call, so that SIZE () works on them.
5016         * tasking.c (make_process_struct): Force ignore_exprs non-zero
5017           when processing a SEIZEd PROCESS declaration.  This prevents
5018           grox-fixed_fields from returning a NULL, and indirectly protects
5019           the chill_integer_type_node tree from corruption.
5021 Mon Mar  7 19:14:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5023         * Makefile.in: Use the 'all' target to build the runtime
5024           library and chillrt0.o.
5025         * README: Explain rules for files in this directory.
5026         * addtest, addtest.man, build-release,
5027           chill.regress.cron: Move to utils subdirectory.
5028         * expr.c (build_chill_function_call): Mark the INOUT
5029           temporary so it doesn't get optimized into a
5030           register.  Fixes the execute/inout.ch bug.
5031         * typeck.c (layout_chill_range_type): Restrict it
5032           from complaining about an empty string type's
5033           bounds (0:-1).
5035 Mon Mar  7 09:06:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5037         * Makefile.in (compiler): Restore this target.
5038           (OBJS, BC_OBJS): Delete unused variables.
5039           Add $(FLAGS_TO_PASS) to sub-make invocations.
5040         * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
5041           tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
5043 Sat Mar  5 18:37:50 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5045         * except.c (finish_handler_array): When computing address of
5046         the array ex_decl, don't call build_array_ref.
5048 Sat Mar  5 17:43:36 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5050         * loop.c (declare_temps): Force powerset temp to memory.
5052 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
5054         * typeck.c (layout_chill_range_type): Convert highval and
5055           lowval to a common type before range-checking them.
5057 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
5059         * ch-tree.h: Add loop-related prototypes.
5060         * decl.c, grant.c: Fix -Wall violations.
5061         * parse.y: Fix format of %type directives.
5063 Fri Mar  4 10:04:18 1994  Wilfried Moser  (fs_moser at rcsw1h)
5065         * Makefile.in: Update version number.
5066         * expr.c: Fix a comment.
5067         * inout.c (build_chill_writetext): Add handling of a REAL.
5068         * lex.l (INITIAL): Remove all code to discard 'header lines'.
5069           no longer needed.
5070         * parse.y (optheader): Remove - it's obsolete, as is the
5071           HEADEREL token definition.
5073 Fri Mar  4 09:41:18 1994  Bill Cox  (bill@rtl.cygnus.com)
5075         * addtest: Fix suffix removal when suffix is .c186.
5076         * regression.sh: Allow for underscores on PR filenames.
5077         * typeck.c: Check in the rewrite mentioned earlier.
5079 Thu Mar  3 09:42:10 1994  Wilfried Moser  (fs_moser at rcsw1h)
5081         * tasking.c (build_process_header): Build a debug structure
5082           for easier access to PROCESS parameters.
5084 Thu Mar  3 09:42:10 1994  Bill Cox  (bill@rtl.cygnus.com)
5086         * typeck.c (*string_assignment_condition): Complete rewrite
5087           of a verbose first draft.
5089 Wed Mar  2 16:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5091         * actions.c (adjust_return_value): Simplify.
5092           Delete references to CH_RETURNS_LOC, extra parameters to
5093           push_extern_function and start_chill_functions.
5094           (convert_for_assignment): Check whether to generate runtime
5095           range-checking code.  Handle reference_type in convert call.
5096           (chill_expand_assignment): Produce an INDIRECT_REF for a
5097           reference_type on the LHS.  Delete conversions subsumed by
5098           convert_for_assignment.
5099         * ch-tree.h: Delete parameters from prototypes.
5100         * decl.c (print_lang_decl): Print out signal flag.
5101           (push_extern_function, start_chill_function): Delete
5102           extra parameters, references to CH_RETURNS_LOC.
5103         * grant.c (chill_finish_compile): Delete extra parameter.
5104         * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
5105           push_extern_function and start_chill_functions.
5106         * regression.sh (checkprms): Skip PRMS discrepancies if we
5107           can't access PRMS for some reason.
5108         * satisfy.c: Correct indentation.
5109         * tasking.c (build_process_header): Delete extra parameters
5110           passed to push_extern_function and start_chill_functions.
5112 Wed Mar  2 10:33:50 1994  Bill Cox  (bill@rtl.cygnus.com)
5114         * addtest: Require a fill filename.  Be more careful about
5115           adding the same test twice.
5116         * expr.c: Add FIXME to comment.
5117         * regression.sh: Add configure script call.
5119 Tue Mar  1 16:24:20 1994  Wilfried Moser  (fs_moser at rcsw1h)
5121         * Makefile.in: Change version of chill to 1.1.2
5122         * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
5124 Tue Mar  1 07:34:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5126         RETURN of LOC value is only half-baked.  Stay tuned...
5127         * actions.c (adjust_parm_or_field): Add to comment.
5128           (adjust_return_value): New function for issuing errors about
5129           RETURN and RESULT expressions.  Also converts them.
5130           (chill_expand_result, chill_expand_return): Call new
5131           adjust_return_value function.
5132         * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
5133           New parameter for push_extern_function and start_chill_function.
5134         * decl.c (push_extern_function, start_chill_function): New parameter
5135           to say whether return value is a LOC.
5136         * expr.c (build_chill_indirect_ref): Further qualify the issuing
5137           of the error message.
5138         * grant.c (raw_decode_mode): Move test for instance mode under
5139           STRUCT handling.
5140           (start_chill_module_code, chill_finish_compile): Add new
5141           parameter to start_chill_function calls.
5142         * parse.y (get_type_of): Do lookup_name more often.
5143           (quasi_pdef, procedure, procmode, optresultspec): Set
5144           CH_RETURNS_LOC flag.
5145           (optresultattr): Code keywords as a bitmask.
5146         * tasking.c (build_process_header): Add new parameter to
5147           start_chill_function call.
5149 Sat Feb 26 12:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5151         * Makefile.in: Replace undefined $(RM) with rm -f.
5152         * configure: Make sure scripts are executable.
5153         * regression.sh: Make variables to invoke make
5154           and awk.  Don't process a directory if it
5155           doesn't exist.
5157 Fri Feb 25 14:48:48 1994  Bill Cox  (bill@rtl.cygnus.com)
5159         * Makefile.in (check): Force the building of ../gcov and
5160           ../xgcc before testing.  Move the printf dependency here
5161           since we don't need it until we're testing.
5162         * addtest: Strip suffix from each input filename.
5163         * decl.c (do_decl): Correct error checking.  Call
5164           string_assignment_condition for some of it.
5165         * tasking.c (build_gen_inst): Add ability to pass an integer
5166           for either the process ID or the copy number.  If a number
5167           is passed, range-check it against the CHILL unsigned type
5168           limits.
5169           (build_buffer_descriptor): Add draft code to check the buffer
5170           name for correctness.
5172 Wed Feb 23 15:07:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5174         New cleaner solution to the following problem:
5175         Chill allows an action to be followed by an ON-handler.
5176         But we don't know if an action has a handler until we've parsed
5177         its end, yet we want to generate extra code to set up an
5178         exception handling contour only if needed.  The old solution
5179         would generate code for the action into an rtl sequence, and then
5180         splice in the exception-setup code if we later found we needed it.
5181         This has a few problems (for example it confuses the management
5182         of stack temporaries), and is ugly.  Now that the compiler is 2-pass
5183         we have a cleaner solution:  In pass 1, we remember which actions
5184         were followed by ON-handlers.  In pass 2, we use this information
5185         to generate appropriate code before an action.
5186         * except.c (push_handler, pop_handler):  In pass 1, set up data
5187         structures (global_handler_list) to remember if an action has an
5188         ON-handler.  In  pass 2, digest this information, and setup
5189         handler if needed.
5190         * except.c, actions.h (pop_handler):  Take an extra int arg.
5191         * except.c (emit_setup_handler):  New function, with code (moved
5192         from chill_start_on) to emit code before an action that has a handler.
5193         * except.c (except_init_pass_2):  New function.
5194         * parse.y (pass1_2):  Call except_init_pass_2 before pass 2.
5195         * parse.y (POP_UNUSED_ON_CONTEXT):  Don't call pop_sequence.
5196         * parse.y:  Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
5197         in pass 1 as well as pass 2.
5198         * parse.y (BEGIN ... END):  Re-arrange logic to avoid block_stack
5199         (local to ../stmt.c) getting out of sync.
5200         * actions.c (push_action):  Don't need to emit a NOP,
5201         now that we're no longer moving sequences around.
5202         * actions.c (push_action):  Call push_handler even in pass one.
5204 Wed Feb 23 11:06:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5206         * decl.c (do_decl): Check for possible overflow in initializing
5207           a declared variable.
5208         * expr.c (build-chill_indirect_ref): Add error message for
5209           a syntax error that C programmers converting to CHILL are
5210           quite likely to make.
5211         * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
5212           seg-faulting.
5214 Tue Feb 22 17:54:43 1994  Bill Cox  (bill@rtl.cygnus.com)
5216         * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
5217           defined.  Build chill script differently, and build an install script.
5218           Add an action to run the regression test.
5219         * actions.c (chill_expand_assignment): Change
5220           string_assignment_condition call.
5221         * ch-tree.h: Add prototype.
5222         * expr.c (build_chill_function_call): Change
5223           string_assignment_condition call.
5224         * satisfy.c (safe_satisfy_decl): Add check that string INIT value
5225           will fit in the declared mode.
5226         * typeck.c (string_assignment_condition): Add flag to disable
5227           runtime code generation.  Add code to generate runtime test.
5229 Mon Feb 21 14:04:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5231         * Makefile.in (check): Add target to trigger a regression test.
5233 Mon Feb 21 13:54:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5235         * decl.c (do _based_decls): Add error check for
5236           decls BASED on a PROC or PROCESS name.
5238 Mon Feb 21 13:24:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5240         * grant.c (chill_finish_compile): Bypass handling
5241           module-level code if an earlier error has made
5242           is useless.
5243         * tasking.c (build_start_process): Generate error,
5244           return if process name unknown.
5246 Mon Feb 21 14:29:41 1994  Wilfried Moser  (fs_moser at rcsw47)
5248         * expr.c (build_generalized_call): Use
5249           build_arrow_expr semantics for ADDR () builtin.
5251 Mon Feb 21 12:49:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5253         * tasking.c (build_gen_inst): Output correct
5254           constructor for GEN_INST.
5256 Mon Feb 21 08:14:59 1994  Wilfried Moser  (fs_moser at rcsw47)
5258         * lex.l (yywrap): Fix punctuation error.
5260 Sun Feb 20 19:58:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5262         * regression.sh: Fix cvs update-related commands.
5263           Have cron job always perform the update, so it's
5264           always reporting on the current state of the
5265           sources.
5266         * typeck.c (string_assignment_condition): Allow a
5267           mis-match if the LHS is varying.
5269 Fri Feb 18 18:10:04 1994  Bill Cox  (bill@rtl.cygnus.com)
5271         * actions.c (expand_chill_assignment): Add call to test the
5272           string assignment condition.
5273         * expr.c (build_chill_function_call):  Add call to test the
5274           string assignment condition.
5275         * regression.awk2: Report WITHDRAWN PRs as well.
5276         * regression.sh: Delete extra commentary about FEEDBACK PRs.
5277         * typeck.c (string_assignment_condition): Add function to
5278           perform the check.
5280 Fri Feb 18 16:30:40 1994  Bill Cox  (bill@rtl.cygnus.com)
5282         * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
5283           and exclude them from the regression test report.  Mark them
5284           in the list of PRs as 'W' status.
5286 Thu Feb 17 09:13:42 1994  Wilfried Moser  (fs_moser at rcsw47)
5288         * Makefile.in: Define a version number.  Build chill script
5289           differently.  Makefile depends upon ../configure, not configure.
5290         * chill.in: Define some new flags.
5292 Wed Feb 16 19:44:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5294         * grant.c (decode_constant): Restore a 'return result' statement
5295           that seems to have gotten lost.
5297 Wed Feb 16 12:37:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5299         * ch-tree.h (various STRING-type macros):  Use new TYPE_STRING_FLAG.
5301         * typeck.c (make_chill_array_type):  Remove unused args.
5302         Simplify to build only one-dimensionsal arrays, so change
5303         index list to single index.  Call layout_chill_array_type
5304         if pass!=1.  And rename to:  build_simple_array_type.
5305         * typeck.c (layout_chill_array_type):  Only recurse
5306         if TREE_TYPE has not been laid out.
5307         * typeck.c (build_chill_array_type):  Update accordingly.
5308         * typeck.c (build_chill_slice):  Replace calls to build_array_type
5309         (which does hash-canonicalization, which breaks if we later set
5310         the TYPE_STRING_FLAG) by calls to build_simple_array_type.
5311         * convert.c (convert):  The same.
5313         * grant.c (decode_constant):  Clean up.  Remove remnants of switch
5314         on TREE_TYPE of the value, and fold those cases into first switch.
5316 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5318         * Makefile.in: Add printf as a dependency of ../cc1chill.
5319         * regression.sh: Make srcdir and objdir really work.
5321 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5323         * expr.c (build_char_array_expr): Fix spelling
5324           error in error msg.
5325         * tree.c (build_string_type): Make check for overlarge
5326           string more robust.
5328 Wed Feb 16 02:37:43 1994  Mike Stump  (mrs@cygnus.com)
5330         * grant.c (decode_constant): Remove useless tests
5331         for STRING_TYPE (which isn't used by anyone, including CHILL).
5333 Tue Feb 15 15:35:07 1994  Bill Cox  (bill@cygnus.com)
5335         * build-release:  Add refinements to checkout commands.
5336         * decl.c (init_decl_processing): Move initialization of
5337           chill_unsigned_type_node before 1st call to build_string_type.
5338         * tree.c (build_string_type): Add compile-time test of string
5339           allocated length.
5340         * typeck.c (layout_chill_range_type): Add compile-time range limit
5341           checking.
5343 Tue Feb 15 08:55:37 1994  Bill Cox  (bill@cygnus.com)
5345         * Makefile.in:  Add stamp-chill-objs as a dependency of ../cc1chill.
5346         * regression.sh: Rename test directory names.
5348 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5350         * Makefile.in: Change interface with parent directory's
5351           Makefile, decoupling the lists of each others' files.
5353 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5355         * lex.l: Delete obsolete comment.
5356         * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
5357           instance constructor.
5359 Mon Feb 14 04:04:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5361         * lex.l (maybe_number): Add octal to numbers
5362           handled by Feb 1 change.
5364 Sat Feb 12 16:24:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5366         * actions.c, convert.c, decl.c, expr.c, lex.l,
5367           tasking.c, typeck.c: gcc -Wall cleanups.
5368         * ch-tree.h: Change loop-related prototypes.
5369         * loop.c, parse.y: Rewrite to set up correct loop scope.
5370           Fix error path where loop variable not declared.
5372 Fri Feb 11 11:12:29 1994  Bill Cox  (bill@rtl.cygnus.com)
5374         * Makefile.in: Add rule to build printf.  Make it a dependency
5375           of ../cc1chill.
5376         * printf.c: New tool for regression testing script.
5377         * regression.sh: Look for print in ${objdir}.
5379 Thu Feb 24 17:31:12 1994  Wilfried Moser  (fs_moser at rcsw1j)
5381         * tasking.c (build_gen_inst): Allow integer expression as argument
5382           1 to this function. This was a change request to get rid of
5383           unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
5384           or STRUCT (t UINT, c UINT).
5386 Thu Feb 10 09:49:31 1994  Bill Cox  (bill@rtl.cygnus.com)
5388         * regression.awk3: Recognize upper-case PRMS state names.
5390 Wed Feb  9 15:26:19 1994  Bill Cox  (bill@cygnus.com)
5392         * parse.y (dowithaction): Allow EXIT from DO WITH.
5394 Tue Feb  8 13:13:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5396         * configure: Change to require grant.c for evidence that we've
5397           found the source directory.
5398         * decl.c (init_decl_processing): delete unused builtin_slice
5399           function declaration.
5400         * expr.c (chill_expand_expr): Calculate powerset's length
5401           correctly, calling powersetlen to do it.
5402         * regression.sh: Replace BASE references with objdir references.
5403         * typeck.c (build_chill_slice): Build the compound expression
5404           in the right order.
5406 Mon Feb  7 15:56:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5408         * expr.c (build_chill_lower, build_chill_upper): Handle
5409           LOC parameter types.
5410         * regression.sh: Correct path to executable sub-shell-scripts.
5412 Mon Feb  7 11:33:47 1994  Bill Cox  (bill@rtl.cygnus.com)
5414         * regression.sh: Pervasive changes to allow for separate
5415           source and object directories.
5417 Wed Feb  2 17:5620 1994  Bill Cox  (bill@rtl.cygnus.com)
5419         * decl.c (find_implied_typed): Delete obsolete reference to
5420           PROCESS_TYPE.
5421         * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
5422           obsolete.
5424 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5426         * Makefile.in: Delete bogus runtime/Makefile lines.
5427         * configure: Build testsuite directory.
5429 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5431         * configure: Correct srcdir for chill.examples directory.
5433 Wed Feb  2 11:24:57 1994  Wilfried Moser  (fs_moser at rcsw47)
5435         * ch-parse.y (rule call): Add
5436               BUFFERNAME LPRN untyped_expr RPRN
5437           to enable generating a descriptor same as for SIGNALS.
5438         * ch-tasking.c (generate_tasking_code variable,
5439           decl_tasking_code_variable): Implement overflow check of
5440           taskingcode in case a tasking code is specified with the
5441           compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
5442           PROCESS_TYPE.
5444 Wed Feb  2 09:31:37 1994  Bill Cox  (bill@rtl.cygnus.com)
5446         * configure: Add ${srcdir} to Makefile.in's path.
5447         * loop.c: Delete unused whitespace.
5449 Tue Feb  1 17:09:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5451         * expr.c (string_char_rep): Process STRING_CST correctly.
5453 Tue Feb  1 15:29:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5455         * expr.c (build_boring_bitstring):  New function.
5456         * expr.c (build_chill_repetition_op):  Fix a number of bugs in
5457         implementation of bitstring repetition.
5458         Also, implement repetition of Booleans.
5460 Tue Feb  1 15:28:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5462         * configure: Delete code to check for gas or ld.  Add code to
5463           store a config.status file in each configured subdirectory.
5464         * expr.c (): Spell concatbitstring as concatps, which is the
5465           runtime routine name.
5466         * regression.sh: Force use of GNU make.
5468 Tue Feb  1 15:22:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5470         * tasking.c: Mark compiler-generated temps to prevent
5471           GRANTing them.
5473 Tue Feb  1 17:38:51 1994  Wilfried Moser  (fs_moser at rcsw1j)
5475         * lex.l (equal_number): Improve check for number after = in a
5476           compiler directive.
5477         * tasking.c (build_tasking_struct): Make field TaskValue
5478           pointer to chill_unsigned_type_node.
5479         * tasking.c (generate_tasking_code_variable): Declare tasking
5480           code variable as chill_unsigned_type_node.
5481         * tasking.c (decl_tasking_code_variable): Declare tasking
5482           code variable as chill_unsigned_type_node.
5484 Mon Jan 31 14:01:58 1994  Bill Cox  (bill@rtl.cygnus.com)
5486         * addtest (update_Makefile): No longer build actions - they're
5487           now in pattern rules.
5488         * ch_makedepend: Do the grep first, to avoid processing non
5489           USE_SEIZE_FILE lines.
5490         * configure: Pervasive rewrite to support configuring regression
5491           test directories.
5493 Mon Jan 31 04:35:53 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5495         * typeck.c (build_chill_slice): Compute EXTENT correctly.
5497 Sun Jan 30 14:33:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5499         * tasking.c (build_gen_inst): Return a typed tuple with
5500           INSTANCE type.
5502 Sun Jan 30 12:01:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5504         * actions.c (chill_expand_assignment): Recognize LENGTH builtin
5505           in the left hand side, pass it to
5506           expand_varying_length_assignment.
5507           (expand_varying_length_assignment): Clean up bitrot.
5508         * convert.c (convert): Revert most recent change.
5509         * loop.c (maybe_skip_loop): New function, split out of
5510           begin_chill_loop.  Add conditional to skip processing an empty
5511           VARYING array.
5512         * parse.y (assignaction): Delete code to recognize LENGTH
5513           on left-hand-side.
5514         * typeck.c (validate_varying_array_ref): Correct misleading comment.
5516 Sat Jan 29 10:54:06 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5518         * typeck.c (build_chill_slice): Pass a valid identifier to
5519         `get_unique_identifier'.
5521         * convert.c (convert): Rename LENGTH variable to MAXIDX, and
5522         use correct value for VAR_LENGTH when initializing a varying array.
5524         * decl.c (do_decl): Set DECL_COMMON.
5526         * actions.c (check_range): Temporarily inhibit warnings so the
5527         compiler doesn't warn the user about useless range checks that it
5528         might create.  It's far easier for the compiler to figure out that
5529         a range check need not be done than it is for us to try to figure
5530         it out for ourselves.
5532         * expr.c (build_concat_expr): Generalize to handle bitstrings.
5533         (scalar_to_string): New function.
5534         (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5535         library call (__concatbitstring).
5537 Sat Jan 29 08:43:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5539         * ch_makedepend: Fix the 'sed' command so that seize file
5540           name can be delimited by double quotes as well as apostrophes.
5542 Thu Jan 27 17:26:19 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5544         * typeck.c (my_build_array_ref):  Do constant folding.
5546 Thu Jan 27 16:24:24 1994  Bill Cox  (bill@rtl.cygnus.com)
5548         * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5549           decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5550           lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5551           tree.c, typeck.c: New 'Copyright' line for 1994.
5553 Thu Jan 27 14:12:07 1994  Mike Stump  (mrs@cygnus.com)
5555         * configure: Don't configure this directory with this configure,
5556         just subdirectories and cleanup.
5557         * Makefile.in (Makefile): Run config.status in parent directory,
5558         if we need rebuilding.
5560 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5562         * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5563           Thanks, Zoo!
5565 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5567         * expr.c (build_concat_expr): Fix SunOS portability problem.
5569 Wed Jan 26 14:57:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5571         * convert.c (digest_powerset_tuple):  New function, used to set
5572         TREE_CONSTANT and TREE_STATIC properly.
5573         (digest_structure_tuple, convert (NULL to instance, non-varying
5574         to varying)):  Set TREE_CONSTANT and TREE_STATIC when appropriate.
5575         * expr.c (varying_to_slice):  Preserve novelty of slice type.
5576         * expr.c (build_concat_expr):  Make sure class of result is
5577         correct (including correct novelty).
5578         * satisfy.c (safe_satisfy_decl):  If value of CONST_DECL is
5579         not TREE_CONSTANT, emit an error.
5580         * typeck.c (build_chill_slice):  Preserve novelty of result.
5581         * typeck.c (build_chill_slice):  Simplify for varying argument
5582         (by using varying_to_slice).
5583         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5584         New functions.
5585         * typeck.c (build_chill_cast): Use above new functions to convert
5586         constant expressions.
5587         * typeck.c (copy_novelty), ch-tree.h:  New function.
5588         * chill.texi:  Update for new constant conversion semantics.
5590 Tue Jan 25 14:00:02 1994  Wilfried Moser  (fs_moser at rcsw1j)
5592         * ch-decl.c (init_decl_processing): Add new builtin function
5593           DESCR. Add call to build_chill_descr_type.
5594         * ch-expr.c: Add function build_chill_descr_type, which actually
5595           build the type the DESCR builtin returns.
5596           Add function build_chill_descr, which process the DESCR builtin.
5597         * ch-expr.c (build_chill_length): Add code to enable
5598           LENGTH (bitstring).
5599         * ch-expr.ch (build_generalized_call): Add processing of DESCR
5600           builtin.
5601         * ch-grant.c: Add code to avoid producing of unnecessary grant
5602           files.
5603         * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5604           for build_chill_descr.
5605         * ch-inout.c (build_chill_io_list_type): Change generation of the
5606           type passed to runtime library according to the new definition.
5607         * ch-inout.c (build_chill_writetext): Change processing of format
5608           string that a character constant is allowed as format string if
5609           compiler gets called with -fold-strings option.
5610         * ch-inout.c (build_chill_writetext): Change processing of
5611           integers in case NEWMODE x = INT.
5612         * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5613         * ch-inout.c (build_chill_writetext): Add processing of
5614           bitstrings.
5616 Tue Jan 25 09:07:10 1994  Mike Stump  (mrs@cygnus.com)
5618         * Makefile.in (all, OBSTACK): Build interesting things be default,
5619         and make sure we include OBSTACK.
5621 Sun Jan 23 12:35:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5623         * grant.c (decode_constant):  Handle RANGE_EXPR.
5624         Simplify handling of CONSTRUCTOR.
5626         * typeck.c (build_chill_slice):  Use build_chill_array_ref_1,
5627         not build_chill_array_ref.
5629 Sat Jan 22 16:23:30 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5631         * parse.y:  Generate a RANGE_EXPR (instead of a confusing
5632         TREE_LIST) to indicate a range in case and tuple lables.
5633         * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5634         Update accordingly to handle these RANGE_EXPRs.
5635         * satisfy.c (satisfy):  Don't call finish_chill_binary_op
5636         for a RANGE_EXPR.
5638 Fri Jan 21 15:39:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5640         * expr.c (force_addr_of):  New function, to encapsulate passing
5641         by reference a powerset or string  to a library function.
5642         * expr.c (build_min_max, build_set_expr):  Use force_addr_of.
5643         * expr.c (chill_expand_expr case CONCAT_EXPR):  Fix passing of
5644         rtl modes.  (Old code fails on 64-bit Alpha.)
5645         * expr.c (build_chill_function_call):  Remove bogues check for
5646         READonly variable passed as parameter.
5647         * expr.c (build_set_expr):  Merge common code.
5648         * parse.y (string repetition):  Fix logic for 2-pass scheme.
5649         * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5650         satisfy.c (satisfy):  Handle REPLICATE_EXPR.
5651         * chill.texi:  Fix typo.
5653 Mon Jan 17 13:55:48 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5655         * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5656         tree.c can find ch-tree.h.
5658 Sat Jan 15 15:34:11 1994  Mike Stump  (mrs@rtl.cygnus.com)
5660         * configure: Fix problem so that building in a separate directory
5661         works.
5663 Sat Jan 15 09:51:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5665         * Makefile.in: Recurse down into runtime to
5666           create its Makefile, and to clean up.
5667         * configure: Recurse into runtime to make its Makefile.
5669 Sat Jan 15 09:15:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5671  << This set of CHILL frontend sources is now the
5672     maintainable and master set. Accept no substitutes! >>
5673         * Makefile.in, configure: Completely rewritten
5674           to be invoked by gcc/Makefile.in and
5675           gcc/configure.
5676         * addtest (update_ChangeLog): Fix insertion
5677           of the '*'.
5678         * regression.sh: Add global option to suppress results of
5679           proprietary tests.
5680         * cpy.sh: Add necessary edits to files as they
5681           are copied down.
5682         * actions.c, ch-tree.def, ch-tree.h, convert.c,
5683           decl.c, except.c, expr.c, grant.c, inout.c,
5684           lang.c, lex.h, lex.l, loop.c, parse.y,
5685           satisfy.c, tasking.c, typeck.c: Latest
5686           versions from the repository.
5688 Fri Jan 14 12:28:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5690         * addtest: Fix insertion of line into ChangeLog.
5691         * configure: Add a script.
5692         * Makefile.in: Hack from ../Makefile.in
5693         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5694         * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5696 Mon Jan 10 11:38:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5698         * build-release: Rewrite for easier tailoring.
5700 Wed Jan  5 08:38:21 1994  Bill Cox  (bill@cygnus.com)
5702         * actions.c, convert.c, decl.c, except.c, expr.c,
5703           inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5704           Current versions from devo/gcc.
5706 Wed Dec 29 14:07:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5708         * addtest: Don't add comment headers to source or .dat files
5709           if they're already present.
5711 Wed Dec 29 13:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
5713         * mktg_leads: New file.
5714         * regression.sh, regression.awk2: Updated status report scripts.
5715         * addtest: New script to add a test to a directory.
5716         * ch_makedepend: Add full path to ch_decomment.
5717         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5718           lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5719           Updated copies of actual sources.
5720         * chill.brochure, chill.texi: Update with current status.
5721         * cpy.sh: Script for updating copies of sources.
5722         * chill.patches: New script for creating a patch release.
5723           Pretty rough.
5725 Wed Dec  8 09:35:54 1993  Bill Cox  (bill@rtl.cygnus.com)
5727         * build-release: Delete lots of unused regression-testing cruft.
5728         * chill.brochure: Initial draft of marketing brochure.
5729         * chill.patches: Preliminary script for building patch sets
5730           for CHILL.
5731         * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5732           building a tcov report on the CHILL compiler.
5734 Sun Nov 21 08:34:33 1993  Bill Cox  (bill@rtl.cygnus.com)
5736         * Makefile.in: Adjust gperf rule for names in this directory.
5737         * ch_decomment.l: New file.  Ignores CHILL comments.
5738           Executable is used bu ch_makedepend.
5739         * ch_makedepend: New script.  Makes CHILL dependencies for
5740           Makefiles.
5741         * gperf, hash.h: New files about lexer tokens.
5742         * regression.sh: Delete notes justifying non-summing
5743           report rows.
5744         * regression.awk2: Report PRMS status when there are
5745           missing test results.
5746         * regression.awk3: Add #! line, so this can be used separately.
5747         * Other files: latest versions copied from devo/gcc.
5749 Sat Oct 30 15:02:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5751         * chill.texi:  Add new node about conversions.
5753 Fri Oct 29 14:17:31 1993  Bill Cox  (bill@cygnus.com)
5755         * chill.regress.cron: Change path to executable, enable PR report.
5756         * regression.awk2: Add terminating periods to messages.
5757         * regression.sh: Change path to testsuites.  Add disclaimer at end
5758           of report.  Print explicit lists of resolved/unresolved PRs.
5760 Thu Oct 28 09:22:20 1993  Bill Cox  (bill@rtl.cygnus.com)
5762         * regression.sh: More PR-related status is printed.
5764 Thu Oct 21 19:24:02 1993  Bill Cox  (bill@rtl.cygnus.com)
5766         * regression.sh: Simplify the paths, make the source
5767           and test files accessed separately from the executables.
5769 Wed Oct 20 16:35:30 1993  Bill Cox  (bill@rtl.cygnus.com)
5771         * regression.sh: Finally fix the file-delete problem.
5772           Thanks, Jeffrey!
5773         * build-release: Make more verbose, fix comment.
5775 Mon Oct 18 00:21:24 1993  Bill Cox  (bill@cygnus.com)
5777         * regression.sh: Build linker if -U option.  Put stderr
5778           into make.log files, too.  Also report on Z.200 examples.
5779         * regression.awk3: New script to help build release note.
5781 Fri Oct 15 16:33:54 1993  Bill Cox  (bill@cygnus.com)
5783         * regression.sh, regression.prpt: Output PR status only
5784           conditionally.  Add command-line flag for CVS updates.
5786 Thu Oct 14 07:53:59 1993  Bill Cox  (bill@rtl.cygnus.com)
5788         * regression.sh: Count PRs accurately.
5789         * Makefile.in: New file.
5791 Sat Oct  9 19:46:58 1993  Bill Cox  (bill@rtl.cygnus.com)
5793         * regression.awk?: Add program fragments for
5794           report of PRMS/test exceptions.
5795         * regression.sh: Add options and PRMS reports.
5797 Fri Oct  8 06:44:41 1993  Bill Cox  (bill@rtl.cygnus.com)
5799     Create chill frontend directory, populate it.
5800     Later, the chill-specific frontend files will be moved here.
5802         * chill: Moved here from gcc directory.
5803         * chill.regress.cron: Add crontab file for regression tests.
5804         * regression.sh: Add regression test control script.
5807 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5809 Sat Jan 15 14:54:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5811         * ch-*.*: All of these files are now moved to the ch subdirectory.
5812         Further update changes should be recorded in the ch/ChangeLog file.
5814 Fri Jan 14 21:09:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5816         * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5817         ch-satisfy.c, ch-typeck.c:  Undo all of initializer-related changes
5818         that Tiemann did earlier this month.
5819         * c-typeck.c (really_start_incremental_init):  Save
5820         constructor_elements and (old value of) constructor_stack
5821         on constructor_stack, to allow for nested initializers.
5822         * ch-convert.c (digest_constructor):  If we need a varying
5823         array, and have a constructor (for the array elements),
5824         make sure to use convert so that the constructor gets
5825         wrapped in an implicit record constructor.
5826         * ch-decl.c (do_decl):  If there is no initializer for a
5827         varying array (or bitstring), create default constructor.
5829         * ch-expr.c (build_chill_lower):  Fix thinko for ARRAY_TYPE.
5830         * ch-satisfy.c (safe_satisfy_decl):  Make sure that we make
5831         original decl to check if we need to make an rtl.
5833         * ch-typeck.c (build_chill_array_ref_1), ch-tree.h:  New function
5834         which does the actual work for build_chill_array_ref (which
5835         now just loops over an argument list).
5836         * ch-actions.c, ch-expr.c, ch-inout.c:  Use build_chill_array_ref_1
5837         instead of build_chill_array_ref where appropriate.
5838         * ch-actions.c, ch-expr.c, ch-typeck.c:  Make operand 1 of a
5839         VARY_ARRAY_REF is a single index, not an index list.
5841         * ch-grant.c (__init_list):  Renamed to _ch_init_list, to
5842         avoid a conflict on the Alpha.
5844 Wed Jan 12 10:19:35 1994  Bill Cox  (bill@rtl.cygnus.com)
5846         * ch-lex.l (WS): Add BS, VT and CR to definition of
5847           whitespace.
5848           (convert_number): Allow for uppercase hex digits.
5850 Tue Jan 11 19:43:55 1994  Bill Cox  (bill@cygnus.com)
5852         * ch-actions.c (lookup_and_handle_exit): Correct
5853           conditional so error messages are output.
5854         * ch-expr.c (build_chill_addr_expr): Add error message.
5855         * ch-grant.c (chill_finish_module_code): Avoid abort by
5856           giving the init_list constructor a type.
5857           (chill_finish_compile): Delete unused code.
5858         * ch-lex.l: Make most build_init_2 calls from the
5859           permanent obstack, so that enumeration values endure.
5860         * ch-loop.c (build_chill_iterator): Add several error
5861           messages.
5863 Tue Jan 11 12:31:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5865         * ch-expr.c, ch-typeck.c:  Rewrite some instances of
5866         'struct ch_class class = chill_expr_class (expr);' to
5867         'struct ch_class class; class = chill_expr_class (expr);'
5868         to work around a bug in /usr/ucb/cc on SunOS4.
5870 Mon Jan 10 18:29:36 1994  Bill Cox  (bill@rtl.cygnus.com)
5872         * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5873         * ch-expr.c (expand_packed_set): Add new parameter to pass
5874           set's minimum ordinal value.  Fix loop invariant problem.
5875           (fold_set_expr): Change to add new parameter to
5876           expand_packed_set call.
5877         * ch-grant.c: Move extern declaration to ch-tree.h.
5878         * ch-lex.l (convert_bitstring): Also output the bitstring
5879           if yydebug is set.
5880         * ch-tree.h: Add prototype.
5882 Mon Jan 10 11:29:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5884         * ch-inout.c: Fix comment.
5885         * ch-tree.h: Add prototype.
5887 Sun Jan  9 18:22:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5889         * ch-tree.h (chill_expr_class):  New prototype.
5890         * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5891         Convert result to correct class.
5892         * ch-expr.c (build_chill_repetition_op):  Preserve CH_DERIVED_FLAG.
5893         Also, fix some bugs for bitstrings (with ranges).
5895         (Patches from Tiemann.)
5896         * ch-convert.c (convert1):  New function to force TREE_TYPE.
5897         (convert):  Use convert1 where appropriate.
5898         * ch-typeck.c:  Formatting change.
5899         * ch-parse.y (build_chill_constructor):  Fix thinko.
5901         * ch-expr.c (varying_to_slice):  If array is not referable,
5902         call save_expr on it, rather than stabilize_reference.
5903         * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5904         Don't force value to value class if mode is not explicitly
5905         specified.  Also, make sure convert etc is only done once.
5907 Sat Jan  8 16:37:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5909         * ch-decl.c (build_chill_function_type):  Don't call
5910         build_function_type, because it does hash canonicalization,
5911         which once in a while looses badly.
5912         * tree.c (build_function_type):  Remove no-longer-needed test
5913         for doing_chill_thang.
5915         * ch-tree.h (CH_DERIVED_FLAG):  New flag.
5916         * ch-tree.h (enum ch_expr_class):  Renamed to ch_class_kind.
5917         (struct ch_class):  New type, used to represent a Chill
5918         'class' as a first-class value.
5919         (CH_ROOT_RESULTING_MODE):  Replaced by CH_ROOT_RESULTING_CLASS.
5920         * ch-typeck.c (chill_expr_class):  Change interface to return
5921         a struct ch_class.
5922         (chill_compatible, chill_compatible_classes):  Update accordingly.
5923         (chill_root_resulting_mode):  Replace by ....
5924         (chill_root_resulting_class):  ... new function.
5925         * ch-convert.c (convert_to_class):  New function.
5926         * ch-decl.c (layout_enum):  Mark enum values with CH_DERIVED_FLAG.
5927         * ch-lex.l (string_or_int):  Rename to string_or_char.
5928         * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5929         convert_float, convert_number):  Set CH_DERIVED_FLAG for literals.
5930         * ch-expr.c (finish_chill_binary_op):  Use convert_to_class.
5931         * ch-satisfy.c (safe_satisfy_decl):  For CONST_DECL, make sure
5932         DECL_INITIAL gets set to result of convert.
5933         Also, clear CH_DERIVED_FLAG for SYN value.
5934         * expr.c (store_constructor):  If a [power]set is exactly one
5935         word long, use single-word move.
5937 Sat Jan  8 08:38:29 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5939         * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5941 Wed Jan  5 05:18:46 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5943         * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5944         ARRAY_TYPE before assuming so.  Also, subtract 1 from LENGTH in
5945         computation of SLICE_END.
5947         * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5949         * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5951         * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5952         for unary set operations).
5954         * ch-expr.c (build_chill_array_expr): Take new argument FORCE.  All
5955         callers changed.  All callers changed.
5957         * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5958         being NULL_TREE until we've started walking the list of values via
5959         the loop over VARIANTs.
5961         * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5962         treat it as an enum value (and hence constant).  Also, only set
5963         TREE_STATIC if the constructor is indeed constant.
5964         * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5965         VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5966         recurse on the DECL_INITIAL.
5968 Wed Jan  5 01:24:50 1994  Bill Cox  (bill@cygnus.com)
5970         * Makefile.in: Add CHILL to LANGUAGES variable.
5971         * ch-actions.c (check_range): Call build_binary_op instead of
5972           fold, build to get the common types chosen.
5973           (cond_range_exception, cond_overflow_exception,
5974            cond_type_range_exception): Delete, obsolete.
5975           (chill_convert_for_assignment): Enable this, get particular
5976           about when to generate rangecheck code.
5977         * ch-expr.c (build_chill_function_call): Sketch in where to
5978           perform chill_convert_for_assignment on actual parameters.
5979           (build_chill_addr_expr): Correct compiler warning.
5980         * ch-loop.c (build_chill_iterator): Add runtime check for
5981           negative loop step expression.
5982         * ch-tree.h: Add prototype.
5983         * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5984           A varying array's length field counts the NUMBER of active array
5985           array entries, not the byte-length of them.
5987 Tue Jan  4 17:57:39 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5989         * ch-decl.c (do_decl): Call `suspend_momenary' if the
5990         converted constructor must live on the permanent_obstack.
5991         * ch-convert.c (convert): When building a new SET_TYPE
5992         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5993         * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5995         * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5996         are locations.
5997         * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5998         on permanent_obstack if necessary.
6000         * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
6001         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
6003         * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
6004         the patch below helped to mess up.
6006         * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
6007         (build_chill_addr_expr): Take new argument ERRORMSG.
6008         All callers changed.  Also, call `build_chill_addr_expr' where
6009         we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
6010         that now calls `mark_addressable' automagically.
6012         * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
6013         This is needed because variables may appear in initialization
6014         statements, and their DECL_INITIALs are their values at
6015         initialization time.
6016         * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
6017         to handle VAR_DECLs as initializers.
6019         * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
6020         they aren't destroyed for later use.
6022 Tue Jan  4 15:25:30 1994  Bill Cox  (bill@cygnus.com)
6024         * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
6025           parameter for varying_array_ref calculations.
6026           (build_chill_indirect_ref): Prevent seg fault due to syntax error.
6027         * ch-typeck.c (build_chill_slice_with_range): Correct issuance
6028           of bogus error in votrics.
6029           (build_chill_slice_with_length): Change for debug tracability.
6031 Tue Jan  4 02:43:37 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6033         * ch-convert.c (digest_structure_tuple): Fix phasing problem in
6034         handling variant record initializers.
6035         (various places): Change `pop_init_level' calls to match
6036         `push_init_level' wrt implicit variable.
6038         * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
6039         `integer_type_node' before using it in comparisons.  FIXME: should
6040         this be done in `chill_max_vary_array_index' by default?
6042 Tue Jan  4 00:24:14 1994  Bill Cox  (bill@cygnus.com)
6044         * ch-actions.c: Fix comments.
6045         * ch-parse.y: Define caseaction_flag.
6046           (caseaction): Create new caseaction_flag node at the start,
6047           then free it at the end.  Check it before the ELSE code.
6048           (expanded_case_label): Check the flag here.  If set in either
6049           place, generate a jump to the end of the case.
6050         * ch-typeck.c (build_chill_slice_with_length,
6051           build_chill_slice_with_range): Add lots of compile-time
6052           parameter range checking.
6054 Mon Jan  3 21:49:04 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6056         * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
6057         implicit==0 everywhere, not 1.
6058         (digest_constructor): Ditto.
6060         * ch-actions.c (check_range): Permit limits to be NULL_TREE.
6061         Also, hack out some dead code.
6062         * ch-typeck.c (build_chill_slice): Check varying and non-varying
6063         slice constructs for range failures.
6064         (build_chill_slice_with_range): Reindented, but not changed.
6066         * ch-typeck.c (chill_max_vary_array_index): New function.
6067         * ch-expr.c (chill_expand_expr): Call it.
6069         * ch-decl.c (var_data_id, var_length_id): New variables.
6070         (init_decl_processing): Initialize them.  All calls to
6071         get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
6072         by references to these variables.  This simplifies the code
6073         w/o obscuring anything.
6075 Mon Jan  3 21:24:44 1994  Bill Cox  (bill@cygnus.com)
6077         * c-typeck.c: Fix comment.
6078         * ch-actions.c (chill_expand_assignment): Error assigning to
6079           READONLY location.  (PR_3903)  Pass filename, linenumber
6080           to setbitpowerset runtime routine.
6081         * ch-decl.c (init_decl_processing): Add filename, linenumber
6082           parameters to setbitpowerset prototype.
6083         * ch-expr.c (build_chill_function_call): Error when passing a
6084           READonly location as a LOC or INOUT parameter.
6085         * ch-parse.y (mode): Correct code marking type as readonly.
6087 Mon Jan  3 19:03:55 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6089         * ch-actions.c (chill_expand_assignment): Disable code that defeats
6090         building varying array references.
6091         * ch-expr.c (chill_expand_expr): Add rangecheck code to
6092         VARY_ARRAY_REF case.
6093         * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
6094         function (in this case, `validate_varying_array_ref') when we're
6095         doing a `build_' operation.
6097         * ch-typeck.c (validate_varying_array_ref): Simplify interface
6098         since INDEX parameter can never meaningfully be an INDEXLIST.
6099         * ch-actions.c (expand_varying_length_assignment): Caller changed.
6101 Mon Jan  3 07:29:45 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6103         * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
6104         * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
6105         if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
6106         (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
6107         call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD).  This
6108         can happen when constructors are output incrementally.
6109         * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
6110         * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
6111         CONSTRUCTORS.
6113 Sun Jan  2 08:17:09 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6115         * ch-convert (digest_structure_tuple): Handle SET_TYPEs.  Also, call
6116         `convert' so we can handle INSTANCE types (and other anomolies)
6117         correctly.
6119         * ch-convert.c (digest_structure_tuple): Fixed variant
6120         structure initialization.  Also fixed a typo (TYPE_NAME
6121         was being used on a FIELD_DECL instead of DECL_NAME).
6122         * c-typeck.c (initializer_constant_valid_p): Pass missing
6123         ENDTYPE argument on recursive call.
6124         (set_init_field): New function, needed by ch-convert.c change above.
6126         * ch-decl.c (layout_chill_variants): Added a FIXME next to an
6127         almost certain typo.
6129         * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
6130         TREE_CONSTANT for static references.
6131         * ch-except.c (chill_start_on): Change calls to
6132         `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
6133         which has CHILL semantics.
6134         * ch-convert.c (convert): Ditto (albeit in some disabled code).
6136 Sat Jan  1 21:26:43 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6138         * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
6139         TREE_CODE of DECL in case it's altered by actions in the switch.
6141         * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan.  CVS log
6142         mentions where to find code that triggers this case.
6144         * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
6145         well.
6147         * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
6148         we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
6149         (digest_constructor): Ditto.
6151 Sat Jan  1 10:29:19 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6153         * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
6154         so that CONSTRUCTORS are properly handled before being used.
6156         * ch-convert.c (chill_start_init): New function.  All callers to
6157         `start_init' changed to call this function instead.
6158         (digest_struct_tuple): Defend against initialization machinery
6159         mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
6160         IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots.  This is
6161         needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
6162         can be refered to throughout the compilation unit.  Also remove an
6163         extraneous call to `process_init_element' erroneously added to the
6164         variant record sub-loop.
6165         (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
6166         CONSTRUCTORS of SET_TYPE.
6167         * ch-parse.y (build_chill_constructor): Refix typo.  Also set
6168         TREE_STATIC if at top level.
6170         * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
6171         TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
6172         should have been called.
6174         * ch-convert.c (digest_struct_tuple): Restore code which tracks
6175         field initializations so that the compiler can deduce what variant
6176         initializations to assume.
6178         * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
6179         when we push into a scope that has a DECL with a CONSTRUCTOR as its
6180         DECL_INIT.
6182         * ch-parse.y (build_chill_constructor): Change the name of the
6183         parameter to something more meaningful.  Fix typo.  Also, handle case
6184         where element is an untyped CONSTRUCTOR.
6186         * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
6187         constant ADDR_EXPRs.
6188         (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
6189         on JBUF_REF (instead of calling `build1' which does not).
6191         * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
6193         * ch-typeck.c (chill_expand_tuple): Deleted.
6194         * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
6195         instead, use initialization machinery for CONSTRUCTORS that
6196         come through here.
6197         * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
6198         that are created here.
6199         * ch-satisfy (satisfy): Abort in case we would have called
6200         chill_expand_tuple.  FIXME: some other code is needed here,
6201         but I don't know what yet.
6203         * ch-parse.y (build_chill_constructor): New function to
6204         propagate TREE_CONSTANT bits to CONSTRUCTORS.
6205         (untyped_expr rule): Use it.
6206         (primval rule): Use it.
6208         * ch-decl.c (do_decl): Call `finish_init'.
6209         * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
6210         this function, make sure the initialization machinery is set up.
6212         * ch-convert.c (digest_structure_tuple, digest_constructor): Add
6213         missing prototypes.
6215 Fri Dec 31 11:31:01 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6217         * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
6218         as being TREE_CONSTANT.  Otherwise it gets bounded by the initializer
6219         code.
6221         * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
6222         * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
6223         rewritten to work with GCC's initialization code.  The basic change
6224         was to keep the initializers in sync with the initialization
6225         machinery that `process_init_element' imposes.  Both of these
6226         functions now return `void'.
6227         * ch-convert.c (convert): Changed calls to `digest_...' functions.
6229         FIXME: the code handling UNION_TYPE (and variant records) has not
6230         been tested yet.
6232 Fri Dec 31 15:32:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6234         * ch-lex.l (convert_number): Output the converted number if
6235           yydebug is enabled.
6236         * ch-parse.y (signaldef): Set ignore_exprs correctly for a
6237           SIGNAL declaration.
6239 Fri Dec 31 13:17:48 1993  Bill Cox  (bill@cygnus.com)
6241         * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
6242           a RETURN without a value (which cannot have an exception
6243           handler) from a RETURN with a value (which can).  Eliminate
6244           some shift/reduce and reduce/reduce conflicts.
6246 Thu Dec 30 17:42:32 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6248         * ch-inout.c (build_chill_writetext): Deal with 2 cases where
6249         types returned from `type_for_size' are not expected.  FIXME.
6250         * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
6251         This is required when range checking is enabled.
6253 Thu Dec 30 14:28:25 1993  Bill Cox  (bill@rtl.cygnus.com)
6255         DELAY CASE works now.
6256         * ch-decl.c (init_decl_processing): Move rest of tasking-related
6257           initialization into tasking_init().
6258         * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
6259           (optsetprio): New non-terminal.
6260         * ch-tasking.c (get_task_name): Delete, obsolete.
6261           (build_instance_type): build pointer to instance type also.
6262           (build_receive_case_start): Cleanup per -Wall messages.
6263           (build_receive_case_label): Move between start and end functions.
6264           (build_delay_case_start): Pass SET name and priority also.
6265           Generally update to correct functioning.
6266           (build_delay_case_label): Move between start and end fucntions,
6267           correct its functioning.
6268           (build_delay_case_end): Correct the code.
6269           (tasking_init): Lots of tasking-related code moved here from
6270           init_decl_processing.
6271         * ch-tree.h: Update, add prototypes.
6273 Wed Dec 29 10:13:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6275         * ch-expr.c (build_chill_indirect_ref): Revert change which
6276           failed full regression testing.
6277         * ch-lex.l (name_type_signal): Add debug output.
6278         * ch-parse.y (structured_variable): Add a debug variable.
6280 Wed Dec 29 02:05:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6282         * ch-decl.c (get_next_decl): Revert change which failed full
6283           regression testing.
6285 Tue Dec 28 18:20:14 1993  Bill Cox  (bill@rtl.cygnus.com)
6287         DELAY actions work now.
6288         * ch-decl.c: Correct spelling in comments.
6289           (get_next_decl): NULL out the decl's TREE_CHAIN before returning
6290           it, to prevent accidental access to the remembered_decls.
6291           (init_decl_processing): Add wait_event to runtime functions.
6292         * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
6293           becoming a seg fault.
6294         * ch-grant.c: Correct a comment.
6295         * ch-loop.c: Delete/correct comments.
6296         * ch-parse.y (delaycaseaction): Add push/poplevel calls.  Turn 'sorry'
6297           into rough draft of actual code.
6298           (delayaction): Don't make a new scope here, use get_unique_identifier
6299           instead.
6300           (locdec): process event decls here, too.
6301           (mode): Add code to forbid READonly EVENT and BUFFER decls.  Delete
6302           code which required EVENTs and BUFFERs to be declared at global scope.
6303           (simple_name_string): Add an EVENTNAME.
6304         * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
6305           becoming a seg fault.
6306         * ch-tasking.c (tasking_setup): Add the event queue's max. length
6307           as the 'entry_point' parameter in the list.
6308           (build_receive_case_start, build_receive_case_label): Defer
6309           calling runtime routine until we know whether we have a signal
6310           or a buffer to wait for.
6311           (build_delay_case_start, build_delay_case_end,
6312            build_delay_case_label, build_delay_action,
6313            process_event_decls): Added functions.
6314         * ch-typeck.c (chill_similar): Allow all integers of differing
6315           precisions to be similar.
6317 Thu Dec 23 18:00:40 1993  Bill Cox  (bill@rtl.cygnus.com)
6319         * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
6320           options.  Delete C-specific defines.  Disable piping from
6321           pre-processor to cc1chill (even if -pipe is specified), since cc1chill
6322           rewinds its input for its second pass.  Piping still works
6323           from cc1chill to as.
6325 Thu Dec 23 12:31:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6327         * ch-tasking.c (decl_tasking_code_variable): Assure that the
6328           tasking_code variable is allocated on the permanent obstack.
6329           (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
6330           queue length (passed as the entry_point parameter).
6331           Other changes to variable names to increase 'self-documentation'
6332           the only kind GNU CHILL will get, for a while..
6334 Wed Dec 22 10:46:31 1993  Bill Cox  (bill@rtl.cygnus.com)
6336         * ch-decl.c (do_seize): Delete - it's unused.  Fix comments.
6337         * ch-loop.c (build_chill_iterator): Convert BY expression
6338           so loop involving a SET works.  Additional errors generated
6339           for numbered SET expression as start or end expression.
6340         * ch-tree.h: Prototypes for future DELAY functions.
6341         * ch-typeck.c: Standard indentation.
6343 Tue Dec 21 15:30:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6345         * ch-actions.c (build_cause_exception):  New function.
6346         (expand_cause_exception):  Re-write to use build_cause_exception.
6347         (check_expression, check_range):  New functions.
6348         (chill_convert_for_assignment):  New function.
6349         * ch-expr.c (build_chill_pred_or_succ):  New function.
6350         (build_chill_succ, build_chill_pred):  Removed.
6351         (build_generalized_call):  Use build_chill_pred_or_succ.
6352         * ch-lex.h, ch-lex.l (init_lex):  Add RID_OVERFLOW and RID_RANGEFAIL.
6353         * ch-lex.l (init_lex):  Use new macro to make more terse.
6354         * ch-typeck.c (chill_equivalent):  New function.
6355         Also check that ranges have the same bounds.
6356         * ch-typeck.c (my_build_array_ref):  Add optional range-checking.
6357         * ch-typeck.c (chill_location):  Handle COMPOUND_EXPR properly.
6358         Return 2 if also a referable.
6359         * ch-typeck.c (chill_referable):  Re-define to use chill_location.
6360         * ch-tree.h (CH_EQUIVALENT):  Re-defined to use chill_equivalent.
6362         * dbxout.c (dbxout_type):  Output the type attribute "@S;" to
6363         distinguish a string from a char array, and to distinguish a
6364         bitstring from regulat (power)set.  (Needed for Chill.)
6365         * dbxout.c (dbxout_type):  Only check for baseclasses in
6366         type.binfo is a vector.  (It is used in Chill for tagged unions.)
6368 Fri Dec 17 09:56:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6370         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6371           ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
6372           ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
6373           Fix -Wall problems.
6374         * ch-actions.c (chill_expand_assignment): Error if assigning
6375           a value to a BUFFER or EVENT variable.
6376         * ch-expr.c (invalid_left_operand): Delete, unused.
6377         * ch-grant.c (tasking_setup): Call build_enum_tables.
6378         * ch-inout.c (get_final_type_and_range, build_enum_tables,):
6379           New functions.
6380           (build_chill_writetext): Lots of changes to support other
6381           basic CHILL data types.
6382         * ch-loop.c (build_chill_iterator): Lots of new code to check
6383           the expressions in a STEP loop.
6384         * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
6385           names in receivecasealternative.  Generate error messages
6386           if they're mixed in the same receive case.
6387           (process_buffer_decl): Renamed from build_buffer_decl.
6388         * ch-tree.h: Fix prototypes.
6389         * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
6390           correctly.  Thanks Per!
6392 Wed Dec 15 15:05:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6394         * ch-decl.c (push_scope_decls):  Re-arrange some more, so
6395         that normal SEIZES (without ALL) are handled before SEIZE ALL.
6397 Wed Dec 15 13:01:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6399         * ch-loop.c (declare_temps): Calculate end-of-array pointer
6400           using correct type (NOT chill_integer_type).
6401           (begin_chill_loop): Build loop-bypass expression in the
6402           type of the start expression, not in the unsigned type.
6404 Tue Dec 14 15:41:32 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6406         * ch-decl.c (push_scope_decls):  Re-arrange so that normal
6407         (non-seize) declarations are proclaim_decl'd *before* we
6408         handle the ALIAS_DECLs for seizes.  The advantage is
6409         that we can now test for (an approximation) to the
6410         'seizeable' concept, thus avoiding duplicate definitions
6411         when a module has both GRANTs and SEIZE ALL.
6413         * ch-expr.c (build_chill_arrow_expr): No longer re-write
6414         addr-of-conversion to pointer-conversion-of-addr.
6415         * ch-expr.c (build_chill_addr_expr): Re-write to just use
6416         build_chill_arrow_expr.
6418 Mon Dec 13 16:44:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6420         * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr):  Don't re-write
6422         * ch-tree.h (chill_root_resulting_mode):  Fix typo (missing '_').
6424         * ch-expr.c (finish_chill_binary_op):  Use CH_ROOT_RESULTING_MODE
6425         macro (which works on expressions), rather than CH_RESULTING_MODE
6426         (which works on modes, and isn't quite correct).
6427         * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE):  New macro.
6428         * ch-typeck.c (chill_read_compatible, chill_compatible):
6429         Use the new macro, which handles NEWMODEs of PTR correctly.
6430         * ch-typeck.c (chill_similar):  Return 1 rather than 0 for
6431         dynamic-length array (and string) types (e.g. slices).
6432         * ch-typeck.c (chill_root_mode):  If the mode has a Novelty,
6433         just return it as is.  (This is still not 100% correct for
6434         NEWMODE of RANGEs, but is close enough.)
6436 Mon Dec 13 16:27:06 1993  Bill Cox  (bill@rtl.cygnus.com)
6438         * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
6439           build_buffer_decl, which then seg faults.
6440         * ch-tasking.c (build_buffer_descriptor): Move declaration
6441           of bufdecl closer to its use.
6443 Mon Dec 13 14:57:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6445         * ch-actions.c (chill_expand_result): Use expand_expr_stmt
6446           to avoid C-specific conversions.
6447         * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
6448         * ch-parse.y (sendaction): Delete unused statement, use the 'name'
6449           variable.
6450         * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
6451           conversions.
6452           (build_buffer_decl): Save the tasking_code_variable's decl
6453           in the buffer decl tree.
6454           (build_buffer_descriptor): Real, working version.
6456 Mon Dec 13 03:13:36 1993  Bill Cox  (bill@rtl.cygnus.com)
6458         * ch-decl.c (print_lang_identifier): Delete code
6459           to print buffer size - it's no longer kept here.
6460         * ch-parse.y (expand_send_buffer): Renamed from
6461           build_send_buffer.
6462           (locdec): Enable building of a buffer decl.
6463           (optresultspec, optresultattr): Add optional
6464           result attributes such as LOC.  Semantics
6465           not enabled yet.
6466         * ch-tasking.c (expand_send_buffer): Renamed.
6467         * ch-tree.h (build_send_buffer): Renamed.
6468         * ch-typeck.c (chill_expr_class): Do more complete,
6469           job of classifying expressions.  Thanks, Per.
6471 Mon Dec 13 00:59:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6473         * ch-typeck.c (chill_expr_class):  Return CH_DERIVED_CLASS
6474         for bitstring constants.
6475         * ch-typeck.c (chill_novelty):  The novelty of an (unnamed)
6476         range mode is that of its parent mode; the novelty of READ M
6477         is that of M.
6479 Sat Dec 11 15:14:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6481         * ch-expr.c (varying_to_slice):  Call stabilize_reference
6482         rather than save_expr.
6483         * ch-typeck.c (build_chill_slice):  Don't emit warning
6484         if array is a SAVE_EXPR (it is effectively referable).
6485         * ch-typeck.c (chill_root_resulting_mode):  Handle
6486         correctly the case that one operand is DERIVED and one is VALUE.
6488 Fri Dec 10 10:00:42 1993  Bill Cox  (bill@rtl.cygnus.com)
6490         * ch-grant.c (decode_decl): Restore code mistakenly deleted.
6491           Move instance-handling code to raw_decode_mode.
6492         * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
6493           Add rough draft of DELAY statement handling.
6494         * ch-tasking.c (build_event_type): New function.
6495         * ch-tree.h (build_event_type): Add prototype.
6496         * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
6498 Wed Dec  8 18:02:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6500         Parse and grant BUFFER modes.
6501         * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
6502           Moved from decode_decl.
6503         * ch-parse.y: Fix several sorry() messages.
6504         * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
6505           info.
6507 Wed Dec  8 12:59:54 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6509         * ch-actions.c (chill_expand_assignment):  In a multiple
6510         assignment, check that all the targets are equivalent.
6512         * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT):  New function
6513         and macro to (partially) implement the relation l-equivalent.
6514         * ch-typeck.c (chill_read_compatible):  Implement at least
6515         initial check of read-only-ness.
6516         * ch-typeck.c (build_readonly_type):  Fix thinkos.
6518 Wed Dec  8 09:11:46 1993  Bill Cox  (bill@rtl.cygnus.com)
6520         * ch-decl.c (pop_module): Only warn about duplicate grant
6521           statements if they inhabit different files, by examining
6522           inode numbers.  Only report compatibility problems in pass 1.
6523         * ch-lex.l (chill_same_grant_file): New function to support the
6524           above test.
6526 Tue Dec  7 17:10:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6528         * ch-decl.c (start_chill_function):  Handle attributes in pass 1,
6529         rather than in pass 2.  (It seems to make more sense that way.)
6530         * ch-parse.y (procedureattr):  Build attribute list if pass != 2.
6532         * ch-parse.y (mode):  Don't call build_readonly_type in pass 2.
6534 Mon Dec  6 14:35:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6536         This implements NOVELTY and READONLY checking.
6537         * ch-tree.def:  Added comment about use of LANG_TYPE.
6538         * ch-typeck.c (build_readonly_type, smash_dummy_type):  New functions.
6539         * ch-tree.h: New prototypes.
6540         * ch-decl.c (push_modedef):  If newmode, lazily "copy" the given mode
6541         immediately (even if it's just a type name), using a LANG_TYPE.
6542         * ch-parse.y (mode):  Call build_readonly_type to handle READ.
6543         * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6544         ch-satisfy.c (satisfy):  Handle a LANG_TYPE.
6545         * ch-decl.c:  Remove chill_modes_equiv and other unused junk.
6546         * ch-satisfy.c (safe_satisfy_decl/CONST_DECL):  Better
6547         mode compatibility checking for SYN declarations.
6549         * ch-typeck.c (chill_similar):  Be more general when checking set
6550         modes for similarity - specifically support calling chill_similar
6551         BEFORE the modes have been satisfied (needed by proclaim_decl).
6552         * ch-decl.c (proclaim_decl):  Allow duplicate definitions
6553         of set elements of similar set modes.
6555         * ch-parse.y (caseaction):  Call language-independent
6556         expand_start_case rather than c_expand_start_case (which
6557         doesn't allow chars or booleans).
6559 Sat Dec  4 22:16:19 1993  Bill Cox  (bill@rtl.cygnus.com)
6561         * ch-actions.c (cond_range_exception,
6562           cond_type_range_exception): Check command-line flag before
6563           generating code.  Fix comments.
6564         * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6565           code, commented out.
6566         * ch-loop.c (build_chill_iterator): Comment out
6567           exception code generation.
6568         * ch-parse.y: Delete quasi_signal flag, use
6569           current_module->is_spec_module instead.
6570         * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6571           Delete quasi_decl flag.  Look at current_module
6572           instead.
6573         * ch-tree.h: Take quasi_decl flag out of buffer
6574           related prototypes.
6575         * ch-typeck.c (valid_array_index, chill_similar):
6576           Comment out runtime range checking for now.
6577         * expr.c (store_constructor): Fix word-size set problem.
6578         * varasm.c (emit_set_data): Fix word-size set problem.
6580 Wed Dec  1 19:08:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6582         * ch-actions.c: Delete unused prototype for build_compound_expr.
6583         * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6584           expression to lp->iter_type before expanding it.  Prevents an abort
6585           deep in expand_expr and friends.
6587 Wed Dec  1 17:00:44 1993  Bill Cox  (bill@rtl.cygnus.com)
6589         * ch-actions.c (chill_expand_assignment): Comment out strange
6590           test and its error message.
6591         * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6592           jump around the loop.
6593         * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6595 Wed Dec  1 14:19:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6597         * ch-actions.c (cond_exception): Clarify that it generates
6598           an exception if the given expression is TRUE.  Make it so, Number One.
6599         * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6600           (print_lang_type): Print max queue size.
6601           Add casts to DECL_TASKING_CODE_DECL references.  Fixes a
6602           portability problem.
6603           (init_decl_processing): Add filename and linenumber arameters
6604           to tasking and memory-allocate runtime prototypes.
6605         * ch-expr.c (finish_chill_binary_op): Check for division
6606           by a constant zero.  Replace build_temporary_variable
6607           calls with decl_temp1 calls, to decouple from ch-loop.c.
6608           (build_chill_succ, build_chill_pred): Sketch code to generate
6609           exceptions.  Add error check for numbered set.
6610           (build_generalized-call): Correct call for return_memory.
6611           Standardize whitespace before left parens.
6612         * ch-grant.c: Use new macro for checking for BUFFER mode.
6613         * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6614           and EVENT names.
6615         * ch-loop.c (build_temporary_variable): Make static, unavailable
6616           to outsiders.
6617           (declare_temps): Make user's variable for him/her, in the
6618           true Z.200 case, where it hasn't previously been declared.
6619           (begin_chill_loop): simplify control flow a bit.
6620         * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6621           (rccase_label): Delete bogus error checks.  Rough draft of
6622           BUFFER-related code.
6623           (assertaction): Remove logical negation - it's now in cond_exception.
6624           (locdec): Sketch of buffer-related code.
6625           (non_array_mode): Add EVENT and BUFFER modes here.  Add setting of
6626           set-numbered flag for pred and succ functions.
6627           (optqueuesize): Default to integer_zero_node.
6628           (simple_name_string): Add BUFFERNAME.
6629         * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6630           (build_chill_start_process, expand_send_signal,
6631            build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6632           to tasking-related runtime calls.  Sketches of BUFFER mode
6633           processing.
6634         * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6635           macro, for portability to non-gcc compilers.  Add prototypes
6636           for buffer-related functions.
6637         * ch-typeck.c: Replace build_temporary_variable calls with
6638           decl_temp1 calls, to decouple from ch-loop.c.
6639           (chill_similar): Add tests for BUFFER and EVENT modes.
6641 Wed Dec  1 14:05:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6643         * ch-actions.c (malloc prototype):  Remove; can cause conflicts.
6645 Wed Dec  1 09:49:58 1993  Bill Cox  (bill@rtl.cygnus.com)
6647         * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6649 Tue Nov 30 14:05:23 1993  Bill Cox  (bill@rtl.cygnus.com)
6651         * ch-decl.c (init_decl_processing): Add filename, line number
6652           parameters to tasking-related runtime routines.
6653         * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6654         * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
6655           lex-only list.
6656           (quasi_locdec): Set/reset quasi_decl flag.
6657         * ch-tasking.c (build_start_process, expand_send_signal,
6658           build_receive_case_start, build_send_buffer): Add filename. linenumber to
6659           (build_buffer_decl, build_buffer-type): New rough-draft functions.
6660           generated runtime routine call.
6661         * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6662           to mark a synchronization mode.  Update the prototypes.
6663         * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6664           similarity.
6666 Tue Nov 30 09:51:47 1993  Doug Evans  (dje@canuck.cygnus.com)
6668         * cccp.c (main): Add missing chill sanitization.
6670 Sun Nov 28 15:50:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6672         * ch-loop.c (initialize_iter_var): Build count expression
6673           more robustly.
6674           (bottom_loop_end_check): Call emit_line_note.
6675           (end_chill_loop): Delete emit_line_note call.
6676         * ch-parse.y (doaction): Move DO keyword
6677           after end_chill_loop call.
6679 Wed Nov 24 08:49:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6681         * c-typeck.c (c_expand_start_case): Back out previous
6682           change.
6684 Tue Nov 23 12:33:50 1993  Bill Cox  (bill@rtl.cygnus.com)
6686         * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6687           type as a CASE label.
6689 Tue Nov 23 11:37:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6691         * ch-decl.c (grok_chill_variantdefs):  Use NULL as the name
6692         of variant fields (not __CASE or anything based on it).
6693         * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6694         Don't check for field name __CASE.
6696 Tue Nov 23 09:37:54 1993  Bill Cox  (bill@rtl.cygnus.com)
6698         * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6699           name for the FIELD_DECL.
6700         * ch-parse.y (optstartset): More error tests.
6701         * ch-tasking.c (make_process_struct): Only report error in pass 1.
6702           (build_start_process): Remove bogus restriction, allowing
6703           an INSTANCE expression as the optset parameter.
6705 Mon Nov 22 17:56:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6707         * ch-tree.h (expand_function_end):  Now is takes parameters, not 2.
6708         * ch-decl.c (finish_chill_function):  Add 3rd parameter to
6709         call of expand_function_end.
6711         * ch-expr.c (chill_expand_expr):  For set and strings ops,
6712         if target is in a register, use a stack temporary (since we must
6713         take its address).  (Similar to Oct 29 change for store_constructor.)
6714         * ch-expr.c (resolve_component_ref):  Fix variant field lookups.
6716 Mon Nov 22 14:23:13 1993  Bill Cox  (bill@rtl.cygnus.com)
6718         * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6719           parameter 1 and its mode are always in sync.
6720           (build_chill_pred, build_chill_succ): Allow pred/succ of a
6721           pointer.
6722         * ch-loop.c (chill_unsigned_type): New function, used instead of
6723           unsigned-type, since it understands the chill_integer_type.
6724           (decl_iteration_var): Delete, use build_temporary_variable
6725           instead.
6726           (declare_temps): Use lp->iter_type for the temp evaluations.
6727           (initialize_iter_var): More careful calculation, to handle
6728           MININT to MAXINT loops w/o overflow/underflow.
6729           (begin_chill_loop): Use the original start/end expressions
6730           for the loop bypass test.
6732 Mon Nov 22 14:02:06 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6734         * ch-typeck.c (build_chill_slice):  If the argument is
6735         is constant, use a read-only static variant, as the
6736         existing algorithm assumes addressability.
6737         * ch-typeck.c (chill_compatible):  De-reference reference types.
6738         * ch-typeck.c (layout_chill_range_type):  Set TREE_UNSIGNED.
6740 Sat Nov 20 20:17:15 1993  Bill Cox  (bill@rtl.cygnus.com)
6742         * ch-decl.c (init_decl_processing): Add filename
6743           and linenumber to allocate, free memory calls.
6744         * ch-expr.c (build_allocate_memory_call,
6745           (build_allocate_global_memory_call): Add
6746           filename, linenumber to call.
6747         * ch-loop.c: Complete rewrite for maintainability.
6749 Sat Nov 20 17:30:05 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6751         * ch-except.c:  Make it so that (by default at least) the
6752         code to push/pop the __exceptionStack is done using library
6753         functions __ch_link_handler and __ch_unlink_handler.  This
6754         provides better flexibility (for e.g. multi-threading).
6756         * ch-decl.c (layout_chill_variants):  Allow (useless) selectors
6757         even for tag-less variants.
6759 Fri Nov 19 14:32:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6761         * ch-decl.c (init_decl_processing): Add memmove builtin
6762           function definition.
6763         * ch-actions.c (chill_expand_array_assignment): Use memmove
6764           call to copy an array or slice across the assignment.
6766 Wed Nov 17 18:23:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6768         * ch-satisfy.c (satisfy):  If a CONTRUCTOR already has a
6769         TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6770         to force expansion (processing of the elements).
6771         * ch-grant.c (decode_constant):  If a tuple (CONTRUCTOR) has
6772         a mode, write it out.
6773         * ch-decl.c (init_decl_processing): Add some missing inits.
6775 Wed Nov 17 17:13:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6777         * ch-loop.c: Fix unterminated strings in design comments.
6778           Add enumeration to the iterator structure for type of loop.
6779           unused for now.
6781 Wed Nov 17 16:40:05 1993  Bill Cox  (bill@rtl.cygnus.com)
6783         * ch-decl.c (init_decl_processing): Add long parameters to lots
6784           of powerset runtime routines.
6785         * ch-expr.c (chill_expand_expr): Change parameters to powerset
6786           runtimes so bitlengths are long unsigned ints.
6787         * ch-inout.c (build_chill_writetext): Add filename and linenumber
6788           as runtime parameters, for better error messages.
6789         * ch-loop.c: general pre-rewrite cleanup.
6790         * expr.c (store_constructor): Rewrite set interface to
6791           setpowersetbits for long bitnumbers, rather than shorts.
6793 Tue Nov 16 13:41:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6795         * ch-expr.c (build_chill_function_call): Stop generating empty
6796           copyback statements, which lead to a seg fault.
6798 Tue Nov 16 12:20:17 1993  Per Bothner  (bothner@cygnus.com)
6800         * ch-satisfy.c (satisfy):  If satisfying a type whose
6801         TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6802         * ch-actions.c (build_exception_variant):  Remove some crud.
6803         * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6804         Remove unused first argument.
6805         * ch-decl.c (start_chill_function):  Call build_exception_variant
6806         in pass 1, not in pass 2.
6808 Tue Nov 16 11:10:03 1993  Bill Cox  (bill@rtl.cygnus.com)
6810         * ch-decl.c (shadow_record_fields): Call new function
6811           build_chill_arrow_expr, which returns a ptr-to-a-type.
6812         * ch-expr.c (build_chill_arrow_expr): New function, works like
6813           build_chill_addr_expr used to do, returning a typed ptr.
6814           (build_chill_addr_expr): Now returns unbound ref - analogous
6815           to C 'void *'.
6816         * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6817           (operand6): Call build_chill_arrow_expr.  Reindent a bit.
6818         * ch-tree.h (build_chill_arrow_expr): New prototype.
6820 Mon Nov 15 16:38:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6822         * stor-layout.c (layout_type): If a SET_TYPE needs more than
6823         INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6825         * ch-decl.c (start_chill_function):  Set DECL_CONTEXT of params.
6827 Mon Nov 15 14:49:17 1993  Bill Cox  (bill@rtl.cygnus.com)
6829         * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6830           build_function_call, etc.) to tasking_init.
6831         * ch-gperf, ch-hash.h: Add ASM keyword.
6832         * ch-parse.y: Add ASM statement rules.
6833           (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6834         * ch-tasking.c: Move tasking stuff here.
6836 Sun Nov 14 15:50:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6838         * ch-parse.y (mode2):  Split into array_mode and non_array_mode
6839         to resolve layout ambiguity.
6840         * ch-parse.y (checked_name):  Remove.  Use name_string instead.
6841         * ch-parse.y (variantdef):  Don't crash if no tag fields.
6842         * ch-typeck.c (build_chill_array_type):  If varying_p,
6843         actually do build_varying_struct here (rather than in ch-parse.y).
6845 Fri Nov 12 15:37:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6847         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6848         static names.  (Let make_decl_rtl generate a unique name.)
6850 Sun Nov 14 13:15:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6852         * ch-expr.c (build_chill_lower, cuild_chill_upper):
6853           Rewrite for modes, values, etc.
6854         * ch-inout.c (build_chill_writetext): Add ability
6855           to write out characters.
6856         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6857           static names.  (Let make_decl_rtl generate a unique name.)
6858         * varasm.c (unpack_set_constructor): Subtract
6859           lower domain value from a bit's index value,
6860           to match the runtime and allow powersets
6861           with negative lower bounds.
6863 Fri Nov 12 14:00:48 1993  Bill Cox  (bill@rtl.cygnus.com)
6865         * ch-inout.c (build_chill_writetext): Save reserved words in
6866           uppercase if -fspecial_UC was specified.
6868 Fri Nov 12 13:27:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
6870         * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6871         string concatenation by treating varying strings as slices.
6872         (varying_to_slice): New function.
6873         * ch-typeck.c (build_chill_slice): Changed to support the above.
6875 Fri Nov 12 12:07:28 1993  Bill Cox  (bill@rtl.cygnus.com)
6877         * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6878         * ch-expr.c (build_generalized_call): Start module before a
6879           writetext action, so its variables are inside the module-level
6880           function.
6881         * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6882           for enumeration loop on a varying array.
6884 Thu Nov 11 07:49:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6886         * cccp.c (main): Disable trigraphs for CHILL.
6887         * ch-decl.c (grok_chill_fixedfields): Add special_UC
6888           to conditional to determine case of reserved words.
6889           Make PACK/UNPACK warning more specific.
6890         * ch-expr.c (build_generalized_call): Enable recognition
6891           of WRITETEXT call here.
6892         * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6893           word.  It's only predefined.
6894         * ch-inout.c: Add special_UC to conditionals
6895           to determine case of reserved words.
6896           (build_chill_writetext): Change for call from
6897           build_generalized_call.  Add code to format
6898           integers.
6899         * ch-lang.c (lang_decode_option): Add special_UC and
6900           special_LC flags and logic to interlock with
6901           ignore_case flag.
6902         * ch-lex.l: Add special_UC to conditionals
6903           to determine case of reserved words.
6904         * ch-parse.y: Delete WRITETEXT as reserved word.
6905         * ch-tasking.c: Add special_UC to conditionals
6906           to determine case of reserved words.
6907           (build_instance_type): Make components of INSTANCE
6908           unsigned 16-bit integers.
6909         * ch-tree.h (build_chill_writetext): Fix prototype.
6910         * ch-typeck.c (build_chill_array_type): Make PACK
6911           /UNPACK warning more specific.
6912         * toplev.c (lang_options): Add -fspecial_LC
6913           and -fspecial_UC flags.
6915 Wed Nov 10 02:29:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6917         * Makefile.in: Move ch-hash.h from ch-lex.o
6918           rule to ch-lex.c rule, so flex is rerun.
6919         * ch-actions.c (chill_expand_assignment): Error if
6920           user tries to assign to a LHS function.
6921         * ch-decl.c (grok_chill_fixedfields): Use of PACK
6922           /UNPACK is only a warning.
6923           (init_decl_processing): Add ADDR as a builtin function.
6924         * ch-expr.c (build_generalized_call): Add ADDR
6925           as a builtin function.
6926           (build_chill_addr_expr): Sanity check parameters.
6927         * ch-gperf: Remove ADDR as a reserved word,
6928           make ASM into one.
6929         * ch-hash.h: gperf'd version of the above.
6930         * ch-inout.c (chill_stdio_p): Recognize upper/lower
6931           case file names.
6932         * ch-lex.l: Make ignore-case work.  Downcase
6933           token before checking for reserved words.
6934         * ch-parse.y: Delete ADDR as a reserved word.
6935           (mode2, optlayout): Allow PACK/UNPACK specifier.
6936           (call): Use build_generalized_call for
6937                   primval LPRN modename RPRN.
6938           (primval): Delete ADDR reference.  It's now only
6939           predefined, not reserved.
6940         * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6941         * ch-typeck.c (build_chill_array_type): Just
6942           a warning for PACK/UNPACK usage.
6943         * toplev.c: Add -fignore-case and -fno-ignore-case.
6945 Tue Nov  9 15:07:02 1993  Bill Cox  (bill@rtl.cygnus.com)
6947         * ch-actions.c: Reindent for readability.
6948         * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6949           a conversion to INSTANCE.
6950         * ch-decl.c: Change special_UC to ignore_case everywhere.
6951           (init_decl_processing): Add builtin_function calls for lots of
6952           predefined functions.
6953         * ch-expr.c: Change builtin function handlers back to accepting
6954           args, not a treelist.
6955           (route_to_predefined_function): Delete it and its call.
6956           (build_generalized_call): Add lots of builtin functions.
6957         * ch-gperf (backwards, duration, inttime, null): Delete them.
6958         * ch-hash.h: New version.
6959         * ch-inout.c: Change special_UC to ignore_case everywhere.
6960         * ch-lang.c: Delete special_UC flag.
6961         * ch-lex.l: Change special_UC to ignore_case everywhere.
6962         * ch-loop.c (high_domain_value, low_domain_value): Change
6963           interfaces to build_chill_upper and built_chill_lower.
6964         * ch-parse.y: Delete lots of stuff which should only be predefined.
6965         * ch-tasking.c: Change special_UC to ignore_case everywhere.
6966           Change builtin function handlers back to accepting args,
6967           not a treelist.
6968         * ch-tree.h: Add lots of builtin functions to the enumerator.
6970 Mon Nov  8 18:08:27 1993  Bill Cox  (bill@rtl.cygnus.com)
6972         * ch-tasking.c (tasking_init): Disable last-minute change for now.
6974 Mon Nov  8 17:30:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6976         * Makefile.in: New commands to build ch-hash.h.  Add ch-lex.h to
6977           dependencies where it's used.
6978         * ch-decl.c (init_decl_processing): Build predefined constants
6979           for TRUE, FALSE and NULL.  Add declaration for abs builtin
6980           function.
6981           (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6982           stuff for builtin constant like TRUE.
6983         * ch-expr.c (route_to_predefined_function): Add a bunch of
6984           predefined functions to the list.
6985         * ch-gperf: Define the list of reserved words, minus the predefined
6986           words, using the special_UC flag.  Remove NULL, TRUE, FALSE -
6987           these are only predefined, not reserved.
6988         * ch-hash.h: Check this into repository, even though it's derived
6989           from ch-gperf, for those users who don't have gperf.
6990         * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6991           to refer to the IO types. Standardize the indentation.
6992         * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6993         * ch-lex.l: Total rewrite of reserved-word recognition, using
6994           the ch-hash.h lookup routines.
6995         * ch-parse.y: Delete a bunch of unused rules for predefined
6996           procedures and their parameters.
6997         * ch-tasking.c (tasking_init): Build predefined functions
6998           for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE.  Not
6999           complete yet.  Change interface to builtin handlers to accept
7000           just an expression list.
7002 Wed Nov  3 18:07:08 1993  Bill Cox  (bill@rtl.cygnus.com)
7004         * Makefile.in: Debug, activate rule to make CHILL hash table.
7005         * ch-actions.c: Compress parameter type lists per standard.
7006         * ch-decl.c: Correct spelling in comment, compress parameter lists.
7007           (init_decl_processing): Check special_UC flag to build builtin
7008           function declarations.
7009         * ch-expr.c (route_to_predefined_function): Check for upper OR
7010           lowercase function names.
7011         * ch-gperf: Update the list of keywords.
7012         * ch-inout.c (build_chill_io_list): Check for special_UC flag
7013           to build I/O list type.  Compress parameter lists.
7014           (chill_stdio_p): Check for special_UC flag in recognizing
7015           file streams.
7016         * ch-lang.c (lang_decode_option): Add command-line options
7017           for upper-case keywords and user labels.
7018         * ch-lex.l (init_lex): Initialize ridpointers to uppercase
7019           if special_UC flag is set.
7020           (downcase, getlc, check_newline): Don't do this if ignore_case
7021           flag is set.
7022         * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
7023           multiple selector expressions.
7025 Sat Oct 30 01:06:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7027         * ch-expr.c (compare_record, finish_chill_binary_op): Compare
7028         STRUCTs (and INSTANCEs) for equality.
7029         * ch-expr.c (invalid_operand):  New functions, combines most of
7030         the functionality of invalid_left_operand and invalid_right_operand.
7031         * ch-convert.c (digest_constructor):  Set TREE_CONSTANT if it is.
7033 Sat Oct 30 11:12:47 1993  Bill Cox  (bill@rtl.cygnus.com)
7035         * Makefile.in (chill): Add back in the commands to build chill
7036           (the script) from chill.in.
7038 Fri Oct 29 16:25:38 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7040         * expr.c (store_constructor):  If SET_TYPE target is in a register,
7041         use a stack temporary (since we must take its address).
7043         * ch-expr.c (build_allocate_global_memory_call,
7044         build_allocate_memory_call):  Cast argument pointer to PTR,
7045         if needed (using location cast).  Also, some other cleanups.
7046         * ch-parse.y (bracketed_action):  Re-arrange things so that
7047         a handler following BEGIN END comes before the final poplevel.
7048         * ch-typeck.c (build_chill_cast): Just return if already correct type.
7050         Re-do DO WITH so that build_component_ref for is done lazily
7051         (at each reference) instead of eagerly (at the beginning
7052         of DO WITH).  This is needed for tagged variants,
7053         * ch-tree.def (WITH_DECL):  New declaration tree code.
7054         * ch-decl.c (lookup_name):  Recognize WITH_DECLs.
7055         * ch-decl.c (handle_one_level):  Variant parts are currently
7056         indicacted with '__CASE'.  Recognize that.
7057         Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
7059 Thu Oct 28 22:17:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7061         * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
7062         Remove some old crud.
7063         * ch-typeck.c (build_chill_cast):  Another attempt at a
7064         compromise between robustness and generality for casts.
7065         Location conversions are now less likely to confuse things.
7066         * ch-parse.y (optactions):  Allow further optactions following
7067         an initial semicolon.
7068         * ch-parse.y:  Add error messages on EVENT and BUFFER.
7070         * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
7071         Undo some of the Oct 27 changes.
7073         Convert (some) builtin functions previously using reserved
7074         names to be just predefined.
7075         * tree.h (enum builtin_in_function):  Added END_BUILTINS at end.
7076         * ch-decl.c:  Add predefines for allocate_memory,
7077         allocate_global_memory, return_memory, writetext.
7078         * ch-expr.c (check_arglist_length):  New function.
7079         * ch-expr.c (build_generalized_call):  If "function" is
7080         a builtin, build the appropriate tree.
7081         * ch-parse.y, ch-lex.l:  No longer recognize many pre-defined
7082         functions at the lexer/parser level.
7083         * ch-tree.h (enum chill_built_in_function):  New type.
7085 Thu Oct 28 16:43:36 1993  Bill Cox  (bill@rtl.cygnus.com)
7087         * ch-expr.c (allocate_memory, allocate_global_memory):
7088           Check for invalid parameters, issue errors.
7089         * expr.c (store_constructor): Calculate bitlength, startrtx
7090           and endrtx of powerset correctly.  Define targetx, use it
7091           and XEXP correctly.
7093 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7095         * ch-expr.c (build_max_min): Error for passing empty tuple
7096           as the argument.
7098 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7100         * ch-decl.c (init_decl_processing): Make allocate
7101           builtins have a pointer-to-pointer-to-void
7102           first parameter, rather than a reference parameter.
7103         * ch-expr.c (build_allocate_memory_call,
7104           build_allocate_global_memory_call): Do automatic
7105           ADDR () on the first parameter, for backward
7106           compatibility.
7107         * ch-grant.c (grant_one_decl): Don't grant if
7108           DECL_SOURCE_LINE is zero.
7109           (start_chill_module_code): Set DECL_SOURCE_LINE
7110           to zero so that module-level function isn't granted.
7111         * ch-parse.y (handleraction): Add return_memory action.
7112         * ch-typeck.c (chill_similar): Allow a void_type
7113           to be similar to anything.  This makes allocate_memory
7114           and return_memory pointer parameters slide through.
7116 Tue Oct 26 00:12:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7118         * ch-typeck.c (build_chill_array_ref):  Check for and complain
7119         if there are more index expressions than the array rank.
7121         * ch-actions.c (chill_expand_assignment):  Emit appropriate
7122         error message if RHS of multiple assignment is tuple/case/if.
7123         * ch-tree.def (CONCAT_EXPR):  Change TREE_CODE_CLASS from
7124         'e' to the more specific '2'.  (Fixes a satisfy bug.)
7126 Thu Oct 21 17:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
7128         * ch-parse.y: Revert experimental error-generating change
7129           that was checked in by mistake.
7131 Thu Oct 21 12:15:30 1993  Bill Cox  (bill@rtl.cygnus.com)
7133         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7134           code variables associated with a process or signal.
7135           (Apparently I forgot to actually check these in last time.)
7136         * ch-tasking.c: Replace last calls to get_tasking_code with
7137           working references to DECL_TASKING_CODE_DECL.
7139 Thu Oct 21 10:27:42 1993  Bill Cox  (bill@rtl.cygnus.com)
7141         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7142           code variables associated with a process or signal.
7143         * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
7144           tasking_code_decl pointer, rather than trying to look it up
7145           in the hash table or linked scope list.
7147 Wed Oct 20 09:52:44 1993  Bill Cox  (bill@rtl.cygnus.com)
7149         * ch-actions.c (lookup_and_handle_exit): Only output error message
7150           in pass 1.
7151         * ch-convert.c (convert): Correct conversion of VARYING array to/
7152           from non-VARYING one.
7153         * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
7154           field in the node.
7155           (decl_tasking_code_var): Delete it.  Its calls are replaced woth
7156           generate_tasking_code_variable calls, plus a little glue.
7157           (push_extern_process): generate tasking_code_variable as local
7158           static variable, point the process' function_decl at it for later
7159           reference by build_start_process.
7160           (print_mode): Use CHILL upper-case convention to print modes.
7161         * ch-lex.l: Must initialize tasking-related trees to NULL at start
7162           of each pass, or we lose the fact that the user did or did not
7163           specify a value for each of them.
7164         * ch-parse.y (check_end_label, action, exceptlist): Only output
7165           error message in pass 1.
7166           (sendaction): Add comments.
7167           (sigdef): Comment out special handling for external signals.
7168           Chain tasking_variable_decl onto signal structure decl, for
7169           easier non-symbol-table access later.
7170         * ch-tasking.c (generate_tasking_code_variable): Do work in both
7171           passes, using do_decl so we can pass the pass 2 value of the
7172           process_type or signal_code to it.  Only update the process_type
7173           if the incoming pointer isn't null and pass == 2.  Use a new
7174           parameter to know whether to include an init expression.
7175           (build_process_header): Attach tasking-code_variable to process
7176           function_decl for easy access later, not through the hash table.
7177           (build_start_process): Get tasking_code_variable out of the process'
7178           function decl.
7179           (build_signal_struct_type): Return the type decl, to be accessed by ...
7180           (build_signal_descriptor): .. this function.
7181           (build_receive_case_label): Get data buffer pointer not from hash
7182           table, but from Tiemann's current rc_state structure instead.
7183         * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
7184           macro for tasking_code_variable storage.
7186 Tue Oct 19 17:39:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7188         * ch-lex.l (equal_number):  If the "number" is a CONST_DECL,
7189         return its DECL_INITIAL.
7190         * ch-satisfy.c (safe_satisfy_decl):  Change logic for rtl
7191         generation for decls to not use DECL_ASSEMBLER_NAME.
7192         * ch-decl.c:  Set DECL_ASSEMBLER_NAME to DECL_NAME.
7193         This matches C, and allows dbxout to emit proper user-level names.
7194         (It would be cleaner to fix dbxout to use DECL_NAME ...)
7195         * ch-decl.c (outer_decls):  New global list of the decls granted
7196         into the outer scope.
7197         (pop_module):  Change code that grants into outer scope accordingly.
7198         (lookup_name_for_seizing):  Similarly update.
7199         (push_scope_decls):  Handle SEIZE ALL from the global scope
7200         by searching outer_decls.
7201         * ch-grant.c (grant_array_type):  Fix thinko.
7202         * ch-inout.c (build_chill_writetext):  Remove excessive TREE_TYPE.
7204 Mon Oct 18 15:57:00 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7206         * varasm.c (output_constructor):  Add support for non-zero
7207         lower array bound.
7208         * c-typeck.c (output_init_element):  Revert recent changes.
7209         * varasm.c (emit_set_data):  Fix emitting set constant data.
7210         * ch-lex.l (yywrap):  Reset line number to 0, not 1.
7211         It sets incremented to 1 by check_newline.
7212         * ch-tree.h:  Restore old version.
7213         * ch-expr.c (finish_chill_binary_op):  Convert TRUNC_DIV_EXPR
7214         to RDIV_EXPR if an operand is floating.  (This functionality
7215         got dropped when hacking finish_chill_binary_op).
7217         * ch-actions.c (build_chill_case_expr):  Set type to NULL_TREE.
7218         not error_mark_node.
7219         * ch-actions.c (chill_expand_assignment):  Allow such borderline
7220         constructs as:  LHS OR:= [X].
7221         * ch-convert.c (convert):  Hande CASE_EXPR (and COND_EXPR)
7222         with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
7223         * ch-decl.c (do_decl):  Remove CONSTRUCTOR kludge.
7224         * ch-typeck.c (chill_compatible):  Allow expr to have NULL mode
7225         if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
7227 Mon Oct 18 13:20:53 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
7229         * c-typeck.c (output_init_element): Limit previous changes to
7230         ARRAY_TYPE and SET_TYPE initializers.
7232 Sun Oct 17 23:15:00 1993  Bill Cox  (bill@cygnus.com)
7234         * c-typeck.c (output_init_element): Handle NULL domain case.
7235         * ch-decl.c (do_decl): Revert bogus initializer type change.
7236         * ch-grant.c (chill_finish_module_code): Put module's decl onto
7237           the module_init_list, for chill_finish_compile's possible use.
7238           (chill_finish_compile): Rename variables for clarity, add
7239           commented-out code as example for assignment of module address to its
7240           init_list entry.
7242 Sun Oct 17 15:16:54 1993  Bill Cox  (bill@cygnus.com)
7244         * ch-convert.c: Move semicolon to separate line - easier to see.
7245         * ch-decl.c (do_decl): Handle untyped_expr initializers by
7246           simply using the variable's declared type - no compatibility
7247           check can be made if the expression has no type.
7248         * ch-expr.c (expand_packed_set): Fix endless loop - increment
7249           the loop variable.
7250           (fold_set_expr): Fix two other endless loops by passing
7251           correct parameters to unpack_set_constructor.
7252         * varasm.c: Standardize 'for' loop.
7254 Sun Oct 17 12:16:21 1993  Bill Cox  (bill@cygnus.com)
7256         * c-typeck.c (output_init_element): Handle initializer for
7257           array with non-zero lower index bound.
7259 Sat Oct 16 16:48:48 1993  Per Bothner  (bothner@cygnus.com)
7261         * ch-expr.c (finish_chill_binary_op):  Use TREE_SET_CODE
7262         to change TREE_CODE.
7264 Sat Oct 16 08:07:17 1993  Bill Cox  (bill@rtl.cygnus.com)
7266         * ch-expr.c (finish_chill_binary_op): Disable
7267           rough-draft code, not intended for release.
7269 Fri Oct 15 21:44:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
7271         * expr.c (store_constructor): use PROTO for pack_set_constructor
7273 Fri Oct 15 10:30:09 1993  Bill Cox  (bill@cygnus.com)
7275         * ch-expr.c (finish_chill_binary_op): Activate some
7276           type-setup code.
7277         * expr.c (store_constructor): Subtract arrays minimum element.
7278           Makes orientexpress work.
7280 Fri Oct 15 09:26:24 1993  Bill Cox  (bill@cygnus.com)
7282         * ch-convert.c, ch-expr.c: Add externs so it'll compile.
7283         * ch-tree.def: Add BASED_DECL definition.
7285 Thu Oct 14 13:20:02 1993  Bill Cox  (bill@cygnus.com)
7287         * ch-actions.c (build_chill_cause_exception): Pass the
7288           *address* of the filename string to the runtime routine,
7289           rather than passing the string by value.
7291 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7293         * expr.c (store_constructor):  Use a (usually) more efficient
7294         algorithm for setting SET types.
7296 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7298         Changes to better support 1984 version of Chill, which doesn't
7299         really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
7300         * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings):  New flag.
7301         * ch-typeck.c (chill_similar):  Support flag_old_strings.
7302         * ch-convert.c (convert_to_boolean):  Generalize code to
7303         convert singleton bitstring to Boolean.
7304         * ch-convert.c (convert):  Use string_one_type_node.
7305         * ch-convert.c (convert):  Add code to convert Boolean to BOOLS(1).
7306         * ch-convert.c (convert):  In code that converts fixed string to
7307         varying use new 'e' variable, rather than original 'expr' variable.
7308         Allows cascaded conversions:  CHAR -> CHARS(1) -> varying CHARS.
7309         * ch-decl.c (string_type_node, const_string_type_node,
7310         int_array_type_node), ch-tree.h:  Removed.
7311         * ch-decl.c (string_one_type_node, bitstring_one_type_node,
7312         bit_zero_node, bit_one_node), ch-tree.h:  New globals tree nodes.
7313         * ch-decl.c (init_decl_precessing):  Remove some junk.
7314         * ch-expr.c (build_generalized_call):  If flag_old_strings,
7315         treat string index as string slice.  Also, better error checking.
7317         Added support for (some kinds of) BASED declarations.
7318         * ch-tree.def (BASED_DECL):  New tree code.
7319         * ch-decl.c (lookup_name):  Implement BASED_DECL using
7320         build_chill_indirect_ref.
7321         * ch-decl.c (do_based_decls):  Make a BASED_DECL.
7322         * ch-parse.y:  Call do_based_decls for DCL ... BASED(...).
7323         * ch-satisfy.c (safe_satisfy_decl):  Handle BASED_DECL.
7325         Improve handling of set binary operations.
7326         * ch-expr.c (expand_packed_set):  New function.
7327         (fold_set_expr):  Re-write.  Simpler, more general algorithm.
7328         (build_set_expr):  Only used for comparsions now.
7329         (finish_chill_binary_op):  Handle set ops better (more directly).
7330         (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
7331         fold_set_ne, fold_set_xor):  Removed.  No longer needed.
7333         * ch-decl.c:  Remove calls to allocate_lang_decl.
7334         * ch-tree.c (build_string_type):  If const length, layout immediately.
7336 Mon Oct 11 17:23:02 1993  Bill Cox  (bill@cygnus.com)
7338         * ch-decl.c (init_decl_processing): Define __whoami and
7339           __wait_buffer functions.
7340         * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
7341         * ch-parse.y (sigdef): Add new add_taskstuff_to_list
7342           parameter.
7343         * ch-tasking.c (get_tasking_code): Search tasking_list for
7344           tasking code name match.  Can't use lookup_name.
7345           (get_task_name): New function.
7346           (generate_tasking_code_variable): Return if pass 1.
7347           Always update *tasking_code_ptr.
7348           (build_process_header): Add new add_taskstuff_to_list
7349           parameter.
7350           (tasking_setup): New code to unpack the tasking
7351           list entries no built by ..
7352           (add_taskstuff_to_list): Accept new parameter,
7353           add it to the list.
7354         * ch-tree.h (add_taskstuff_to_list): Add new
7355           parameter.
7357 Mon Oct 11 14:54:50 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7359         * Makefile.in (cc1chill):  Also link in $(BC_OBJS).
7361 Mon Oct 11 06:28:39 1993  Doug Evans  (dje@canuck.cygnus.com)
7363         * ch-decl.c (flag_allow_single_precision): New global,
7364         from ss-931002 merge.
7366 Sun Oct 10 09:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7368         * Makefile.in: Remove references to chill.in and
7369           ch-hash.h.  Remove bogus cc1chil : chill
7370           dependency.
7372 Fri Oct  8 16:00:04 1993  Bill Cox  (bill@cygnus.com)
7374         * ch-actions.c (adjust_parm_or_field): Add parameter to
7375           decl_temp1 call.
7376         *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
7377           decl_temp1 call.
7378           (decl_temp1): Add parameter to signal 'make this external'.
7379           (shadow_record_fields): Add parameter to decl_temp1 call.
7380         * ch-expr.c (chill_expand_case_expr): Add parameter
7381           to decl_temp1 call.
7382         * ch-grant.c (chill_finish_compile): Add code to spoof
7383           get_file_function_name,  so we don't get __tmp_s1_code,
7384           for example, as the module-level code's name.
7385         * ch-loop.c (build_temporary_variable, begin_for_range,
7386           init_loop_counter): Add parameter to decl_temp1 call.
7387         * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
7388           for easier maintenance.
7389           (sendaction): Rewrite to receive SIGNALNAME token correctly
7390           from ch-lex.l (name_type_signal).
7391           (signaldef): Don't clear quasi_signal here.
7392         * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
7393           to make the variable public (visible to linker).
7394           (build_start_process): Add parameter to decl_temp1 call.
7395           (tasking_setup): Comment out band-aid hack which calls
7396           generate_tasking_code_variable.  Shouldn't be necessary.
7397           Use null_pointer_node rather than integer_zero_node in
7398           entry_point.  More rewrites.
7399           (build_signal_descriptor): Name the non-signal in the error msg.
7400           Rewrite the building of the signal envelope - avoid seg fault.
7401           Add parameter to decl_temp1 call.
7402           (expand_send_signal, build_receive_case_start,
7403           build_receive_case_end, build_buffer_descriptor): Add parameter
7404           to decl_temp1 call.
7405         * ch-tree.h: Add parameter to decl_temp1 proto.
7406         * chill: Add new CHILL frontend directory
7408 Tue Oct  5 13:51:27 1993  Bill Cox  (bill@cygnus.com)
7410         * ch-grant.c: Standardize indentation.
7411         * ch-parse.y (end_function): Unconditionally poplevel for processes.
7412         * ch-tasking.c (build_process_header): Unconditionally pushlevel.
7413           (generate_tasking_code_variable): Stop using pass number to
7414           force a one-time action.
7415         * ch-tree.h (build_chill_slice): Delete proto since function went static.
7417 Mon Oct  4 13:52:36 1993  Bill Cox  (bill@cygnus.com)
7419         * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
7420           called here in both passes.  Set DECL_ASSEMBLER_NAME.
7421           (lookup_name_for_seizing): Move NULL test forward to prevent
7422           seg fault.
7423         * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
7424           to prevent a seg fault in telebras/dynsto.ch.  Make indentation
7425           changes.
7426         * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
7427           (build_send_signal): Rename to expand_send_signal.
7428           (generate_tasking_code_variable): Return the var's decl.
7429           (build_signal_struct_type): Move generate_tasking_code_variable
7430           and add_taskstuff_to_list calls to ..
7431         * ch-parse.y (sigdef): .. here.  And make indentation changes.
7432         * ch-tree.h: Rename functions, add return values.
7434 Mon Oct  4 15:43:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7436         * ch-convert.c (digest_constructor):  Convert element to element_type.
7437         * ch-parse.y (end_function):  Use DECL_ARGUMENTS to check
7438         for parameterless process.
7440 Fri Oct  1 13:57:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7442         * ch-typeck.c (chill_location):  New function.
7443         Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
7444         * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c:  Use
7445         chill_location instead of lvalue_p.
7448 Fri Oct  1 11:28:42 1993  Bill Cox  (bill@cygnus.com)
7450         * ch-convert.c (convert): Back out Michael's changes, unintentionally
7451           checked in.
7452         * ch-lex.l (handle_use_seizefile_directive): No longer downcase
7453           seize file names.
7454         * ch-parse.y (sendaction): Fix a couple of seg faults.  Comment out
7455           SEND BUFFER processing for now.
7456         * ch-tree.h: Fix comment.
7458 Thu Sep 30 17:00:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7460         * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P):  New macros,
7461         for recognizing singleton strings.
7462         * ch-tree.h (MARK_AS_STRING_TYPE):  New macro.
7463         * ch-tree.c (build_string_type, build_bitstring_type),
7464         ch-convert.c (convert):  Use it.
7465         * ch-typeck.c (build_chill_slice):  Take length rather than upper
7466         bound.  This makes it easier to recognize that A(X UP LENGTH)
7467         really has fixed length.  Also, if the argument is string,
7468         mark the slice as a string too.  Also, handle varying strings.
7470         * ch-typeck.c (conflate_singleton_strings):  New global.
7471         * ch-typeck.c (chill_similar):  If conflate_singleton_strings is
7472         set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
7473         to CHAR/BOOL, as required by the 1984 version of Z.200.
7474         * ch-convert.c (convert_to_char):  Convert CHARS(1) to CHAR.
7475         * ch-convert.c ( build_array_type_for_scalar):  If input is string,
7476         so is output.
7477         * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h:  Removed.
7478         * ch-convert.c (convert):  Convert CHAR to CHARS(1).
7480         This fixes 'X // := Y' and is also a general simplification.
7481         * ch-actions.c (chill_expand_assignment):  Convert 'LHS OP := RHS'
7482         to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
7483         Also, call save_expr on RHS if a multiple assignment.
7484         * ch-parse.y (assignaction):  Therefore, no longer need to call
7485         stabilize_reference on RHS.
7486         * ch-typeck.c (build_chill_modify_expr), ch-tree.h:  Remove
7487         modifycode parameter.  Make it the caller's responsibility to
7488         handle <assigning operator>.
7489         * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
7490         ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
7492 Wed Sep 29 18:02:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7494         * ch-lang.c (string_index_type_dummy), ch-tree.h:  New variable.
7495         * ch-decl.c (integer_minus_one_node), ch-tree.h:  New variable.
7497         * ch-parse.y (arrayindex: modename):  Remove useless code.
7498         * ch-satisfy.c (satisfy):  Don't gag on string_index_type_dummy,
7499         * ch-tree.c (build_string_type):  Pass string_index_type_dummy as
7500         the parent type of the index range.
7501         * ch-typeck.c (layout_chill_range_type):  Recognize and handle
7502         string_index_type_dummy - specifically allow an empty range.
7504 Wed Sep 29 13:36:23 1993 1993  Bill Cox  (bill@cygnus.com)
7506         * ch-convert.c (convert_to_reference): Check for loc-identity
7507           mismatches correctly (and remove one of those chill_compatible
7508           calls).
7509         * ch-decl.c (decl_tasking_code_var): New function, called from
7510           push_extern_process and push_extern_signal.
7511         * ch-parse.y (end_function): Delete parameter.  Check current_function_decl
7512           whether it's actually a process, and whether it has parameters.
7513           Make Michael's change simplifying the pass 2 test, preventing a seg
7514           fault.
7515           (procedure, process): Change calls to end_function, remove
7516           code saving value from build_process_header.  Delete redundant chill_
7517           phrases from some function calls.
7518         * ch-tasking.c: Remove some redundant _chill phrases from function
7519           names.
7520         * ch-tree.h: Remove some redundant _chill phrases from function
7521           names.  Add the CH_VARYING_ARRAY_TYPE macro, call it from
7522           all relevant places.
7523         * ch-typeck.c: Use the new macro.  Cast TREE_CODEs to chill_tree_code.
7525 Wed Sep 29 13:07:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7527         * ch-convert.c (convert_to_reference):  Remove redundancies.
7528         * ch-convert.c (convert):  Handle convert_to_reference
7529         with a recursive convert call.
7530         * ch-decl.c (do_decl): Add missing compatibility-checking
7531         of initializer (don't depend on convert).
7533 Tue Sep 28 00:02:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7535         * ch-tree.h (CH_LOCATION_P):  New macro.
7536         * ch-typeck.c (layout_chill_range_type):  Fix call to
7537         type_for_size, when figuring out a defaulted parent type.
7538         * ch-expr.c (build_chill_lower, build_chill_sizeof):  Check
7539         for TREE_CODE_CLASS != 't' rather than == 'd'.
7540         * ch-expr.c (build_chill_function_call):  Use CH_LOCATION_P
7541         to check for location, rather than TYPE_CODE_CLASS == 'd'.
7543         * ch-tree.c (build_string_type):  Make 2-pass safe.  Also,
7544         change parameter to be length, not index type.
7545         * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7546         (build_chill_string): Modify callers of build_string_type accordingly.
7547         * ch-lex.l (check_newline):  Don't look for # directive inside a
7548         C-style comment.
7549         * ch-grant.c (grant_array_type):  Make more robust for char-
7550         and bit-strings (allow non-constant sizes).  Change parameters
7551         and return types.  (raw_decode_mode):  Use grant_array_type
7552         for bitstrings.  (otherwise):  Fix grant_array_type callers.
7554 Mon Sep 27 16:57:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7556         Remove changes of Sep 15.
7557         * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7558         * ch-typeck.c (chill_similar):  Don't allow a singleton
7559         powerset to be similar to its domain.
7560         * ch-convert.c (convert_to_boolean):  Don't convert a singleton
7561         SET_TYPE constructor to a Boolean.
7563         * ch-actions.c (chill_expand_assignment):  Handle IN_EXPR on
7564         LHS of assignment, which is what we're current (temporarily?) using.
7566 Mon Sep 27 06:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7568         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7569           ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7570           ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7571           -Wall cleanup.  Add prototypes where missing.
7572           Delete unused variables.  Cast uses of tree_codes
7573           to chill_tree_code, which they are.
7575 Sun Sep 26 13:09:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7577         * ch-decl.c (do_decl): Save initializer in pass zero
7578           case also.
7579         * ch-lex.l: Fix comments, indentation.
7580         * ch-parse.y: Standardize error messages to use
7581           uppercase for CHILL keywords rather than quoting them.
7582           Suggestion from docs department.
7583         * ch-tasking.c: Pervasive changes to get processes to
7584           compile and START.
7585         * ch-tree.h: Delete prototypes for functions whic
7586           I made static inside ch-tasking.c.
7588 Sun Sep 26 02:40:02 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7590         * ch-lex.l (yywrap): Call `check_newline' in case the file
7591         started with a line directive.
7593 Sat Sep 25 13:54:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7595         * ch-decl.c:  Expand pre-amble comment.
7596         * ch-decl.c (struct scope, push_module):  Use new field
7597         tail_chain_module to build child-module list in order.
7598         (Just to make compiler debugging a little less confusing.)
7600         * ch-decl.c (struct scope):  New field weak_decls.
7601         * ch-decl.c (find_implied_types):  New interface.  Now pre-pend
7602         new enum types to a given input list.  This makes it easier to
7603         avoid duplicates, which should at least be more efficient.
7604         Also, handle FUNCTION_DECL.
7605         * ch-decl.c (bind_saved_names):  Removed.  Distribute its
7606         functionality over new functions (push_scope_decls, pop_scope_decls,
7607         build_implied_names, bind_sub_modules).  The goal (which seems to
7608         have been more-or-less attained) was to fix weak name handling.
7609         * ch-decl.c (poplevel):  Use new function pop_scope_decls.
7611         * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7612         Use build_decl directly, rather than grok_chill_fixedfields
7613         (which depends on ignore_exprs and has more overhead).
7614         * ch-tasking.c (build_signal_struct):  Construct the type
7615         only in pass 1.
7616         * ch-typeck.c (build_chill_slice):  Use my_build_array_ref rather
7617         than build_array_ref (which does C-specific "optimizations").
7618         (Hence move my_build_array_ref up earlier in the file.)
7620 Sat Sep 25 03:47:28 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7622         * ch-tasking.c: Declare static variable `void_ftype_void'.
7623         (chill_tasking_init): Initialize `void_ftype_void' here.
7624         (build_tasking_struct): Use, don't declare `void_ftype_void'.
7625         (generate_tasking_code_variable): Call `do_decl', not
7626         `decl_temp1' to declare TASKING_CODE_NAME.
7627         (tasking_setup): Drop into 1-pass mode so that all
7628         tasking-related declarations are installed in the global
7629         scope.  Use correct CHILL types for initializers (since
7630         ptr_type_node doesn't have the right meaning for CHILL).
7631         Also, call `do_decl' instead of `decl_temp1' for
7632         `init_struct'.
7633         (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7634         `chill_finish_compile' in sync between passes.
7636         * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7637         declarations on pass zero.  Keep obstacks in sync, and always
7638         call `finish_decl' for pass zero declarations.
7639         (push_chill_extern_function): Keep obstacks in sync, and always
7640         call `finish_decl' for pass zero declarations.
7641         (build_enumerator): Ditto.
7642         (grok_chill_variantdefs): Change PASS test to exclude only
7643         pass one.
7644         (finish_struct): Ditto.
7645         * ch-expr.c (build_chill_component_ref): Ditto.
7646         (build_chill_binary_op): Ditto.
7647         * ch-tree.c (build_powerset_type): Ditto.
7648         (build_bitstring_type): Ditto.
7649         * ch-typeck.c (build_chill_range_type): Ditto.
7650         (build_chill_struct_type): Ditto.
7652         * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7653         extra pushing and popping of obstacks.
7655         * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7656         on IO_DESCRIPTOR.  This causes IO_DESCRIPTOR to be laid out.
7658         * ch-grant.c (chill_finish_compile): Clear out both
7659         MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7660         from pass one.
7662         * ch-parse.y (rccase_label): Add NAME rules so that pass one
7663         works w/o knowing we're parsing a signal.  Simplify SIGNALNAME
7664         rules since we only get SIGNALNAME tokens in pass two.
7665         (sendaction): Ditto.
7666         * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7667         BUFFERNAME on pass two.  The grammar now handles this.
7668         * ch-decl.c (lookup_remembered_decl): Deleted.
7670 Fri Sep 24 15:27:13 1993  Bill Cox  (bill@cygnus.com)
7672         * ch-decl.c (lookup_remembered_names): Removed.  It was being
7673           misused in ch-lex.l.
7674         * ch-lex.l (name_type_signal): Revert last change.  Basically,
7675           we cannot use the C typedef/variable name trick in CHILL, due
7676           due to the language's 2-pass nature.
7677         * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7678           a seg fault.
7679         * ch-tree.h (lookup_remembered_name): Comment out the prototype.
7681 Fri Sep 24 11:01:31 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7683         * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7684           checks so the pass == 0 case is handled for built-in types.
7685           (push_modedef): Add check for error_mark_node.
7686           (lookup_remembered_decl): New function.
7687           (pushlevel, poplevel) Change pass checks.
7688           (pushdecl): Check type as well for NULL.
7689           (build_enumerator): Handle pass == 0 case.
7690         * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7691           during pass 1.
7692         * ch-parse.y: Set pass to zero to indicate initial decl processing.
7693           Replace NAME references with SIGNALNAME references.
7694           (startaction): Only check copy number if not ignoring actions.
7695           Always call build_chill_start_process.
7696           (optstartset): Don't lookup the instance name.
7697         * ch-tasking.c (generate_tasking_code_variable): Replace
7698           do_decl call with decl_temp1 call.
7699           (build_chill_start_action): Check for ignore_actions here.
7700           (build_tasking_message_type): Layout the type.
7701           (rc_state_type): New structure to keep nested receive-case
7702           info in.
7703           (build_chill_receive_case_start, build_chill_receive_case_end):
7704           Use the new struct.
7707 Fri Sep 24 04:19:15 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7709         * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7710         should be a _DECL, not an IDENTIFIER_NODE.
7712 Thu Sep 23 18:18:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7714         * ch-decl.c (find_implied_types):  Handle VAR_DECLs.
7716         * ch-decl.c (print_lang_identifier):  Print IDENTIFIER_OUTER_VALUE.
7717         * ch-actions.c (chill_expand_result):  Allow value-less RETURN.
7718         * ch-expr.c (resolve_component_ref):  Recognize error_mark.
7720         * ch-convert.c (digest_constructor):  Handle a nested powerset tuple.
7721         * ch-satisfy.c (satisfy):  Use return value of layout_chill_range_type.
7722         * ch-typeck.c (chill_similar):  Repeatedly get parent modes
7723         of ranges, not just once.
7724         * ch-typeck.c (chill_root_resulting_mode), ch-tree.h:  New function.
7725         * ch-typeck.c (layout_chill_rang_type):  Re-do type-checking
7726         to follow Blue Book better (check for Compatibility).
7728         * ch-tree.h (CH_ROOT_RESULTING_MODE):  New macro.
7729         * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7730         New variables.  The latter replaces in_seizefile.
7732         Changes to store in the new DECL_SEIZEFILE field each seize
7733         ALIAS_DECL the name in the most recent use_seize_file directive.
7734         (This requires that use_seize_file directives written to the
7735         grant file be written before the SEIZEs that need it.)
7736         Allow clashing declarations granted into the global scope
7737         (produce a warning), but remember the seizefile case from
7738         (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7739         The a SEIZE will select the granted decl that matches its
7740         DECL_SEIZEFILE (in other words:  grants from the most recent
7741         use_seize_file will be preferred).
7742         * ch-tree.h (DECL_SEIZEFILE), ch-tree.def:  New macro.
7743         * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE):  Renamed
7744         to outer_value, IDENTIFIER_OUTER_VALUE.
7745         Changes to cause the use_seize_file directives to be written
7746         out in order as they're seen in source.
7747         * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7748         Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7749         * ch-lex.l (handle_use_seizefile_directive):  Modify appropriately.
7750         Don't call grant_use_seizefile.
7751         * ch-lex.l (mark_use_seizefile_written):  New function.
7752         * ch-grant.c (decode_decl):  Write out use_seize_file directive,
7753         if needed, before writing a seize declarations.
7754         * ch-decl.c (pop_module):  Handle decls granted into the global
7755         module specially, setting IDENTIFIER_OUTER_VALUE.
7756         * ch-decl.c (lookup_name_for_seizing):  Check IDENTIFIER_OUTER_VALUE.
7758 Thu Sep 23 19:05:37 1993  Bill Cox  (bill@cygnus.com)
7760         * ch-decl.c (push_chill_extern_process): Delete unused variables,
7761           declare the process' tasking_code variable as external.
7762         * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7763           the process header.
7764         * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7765           to (signaldef).
7766         * ch-tree.h: Add prototype.
7767         * expr.c (store_constructor): Emergency first-aid.  Rewrite later.
7769 Thu Sep 23 12:57:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7771         * ch-expr.c (build_chill_function_call):  Move possible call to
7772         chill_start_module_code until we know we're not calling a builtin.
7773         * ch-decl.c (save_expr_under_name):  Use pushdecllist,
7774         not proclaim_decl (which provide for popping the decl).
7775         * ch-parse.y (optname):  Also allow TYPENAME.
7777 Thu Sep 23 09:18:35 1993  Bill Cox  (bill@cygnus.com)
7779         * ch-decl.c (print_lang_decl): Make weak name output more standard.
7780           (print_lang_identifier): Make signal-data flag output more standard.
7781           (push_chill_extern_process): Pass correct arg tree to
7782           push_chill_extern_function.
7783           (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7784           Standardize function header layouts (Makes the tcov script
7785           work better).
7786         * ch-except.c (chill_finish_on): Standardize function header.
7787         * ch-expr.c (fold_set_or): Standardize function header.
7788         * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7789           function headers.
7790           (decode_constant): Make sure that alpha operators are surrounded
7791           with whitespace.
7792         * ch-parse.y: Spell Z.200 correctly in comments.
7794 Wed Sep 22 10:42:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7796         * ch-expr.c (build_chill_addr_expr), ch-tree.h:  New function.
7797         * ch-parse.y, ch-decl.c (shadow_record_fields):  Use it.
7798         * ch-lex.l (handle_use_seizefile_directive):  Don't emit
7799         use_seize_file directive if in_seizefile.
7801         * ch-convert.c (digest_structure_tuple):  Fix code that checks
7802         for excess init values.
7803         * ch-decl.c (layout_chill_variants):  Move increment of nlabels
7804         inside the proper loop.
7805         * ch-grant.c (print_struct):  Add missing loop for tag_list.
7806         (print_struct):  Look for variant fields by checking for a
7807         UNION_TYPE, not a NULL name, since we must use a dummy name.
7808         * ch-parse.y (structured_variable):  Various fixing.
7809         * ch-decl.c (shadow_record_fields):  Rename arg decl -> struct_val.
7811         * ch-satisfy.c (safe_satisfy_decl):  Disable copying of modes
7812         for NEWMODE (and hence novelty checking), until we figure out
7813         a better way.
7815         * ch-except.c (finish_handler_array):  Use null_pointer_node,
7816         not integer_zero_node (which fails to type-check).
7818         * c-typeck.c (get_constructor_element_type):  New function.
7819         * ch-tree.h (CH_NOVELTY_FLAG):  Now also used in TYPE_DECLs.
7820         (CH_NOVELTY):  Redefined to call new function chill_novelty.
7821         (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE):  Removed.
7822         * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7823         Take extra output parameter (for M, as in M-value class).
7824         * ch-typeck.c (chill_novelty):  New function.  (Also de-references.)
7826         * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7827         New functions.  Handle 2-pass and variant records.
7828         * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7829         * ch-satisfy.c (satisfy, case COMPONENT_REF):
7830         New case, call resolve_component_ref.
7832         * ch-expr.c (build_generalized_call):  Extract single arg from
7833         arg list before calling build_chill_cast.
7835         * ch-parse.y (defining_occurrence_list):  New non-terminal.
7836         Use it to replace locnamelist, synnames, and modenames.
7837         * ch-parse.y:  Re-write parsing of variant records.
7839         * ch-decl.c (grok_chill_variantdefs):  Now return a FIELD_DECL
7840         rather than just its type.
7841         * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7842         Change callers appropriately.
7844         * ch-tree.h (TYPE_TAG_VALUES):  Add an extra level of TREE_LIST,
7845         to support multiple tag fields.
7846         * ch-grant.c  (print_struct), ch-decl.c (layout_chill_variants):
7847         Support multiple tag fields.
7849         * ch-convert.c (remove_tree_element, digest_structure_tuple):
7850         New functions, to digest structure tuples, without calling the
7851         code in c-typeck.c.  Handles variant tuples and tags (partially).
7852         * ch-convert.c (digest_constructor, convert):  Call
7853         digest_structure_tuple when appropriate.
7854         * ch-convert.c (digest_constructor): Re-arrange a bit.
7856         * ch-decl.c (push_modedef):  Defer copying of tree until ...
7857         * ch-satisfy (safe_satisfy_decl): ... here.
7859         * ch-decl.c (getdecls):  Add kludge to help dbxout_init.
7861 Tue Sep 21 14:19:11 1993  Bill Cox  (bill@cygnus.com)
7863         Partial tasking update - not done yet.
7864         * ch-actions.c: Comments, indentation.
7865         * ch-decl.c (push_chill_extern_process): No longer need to
7866           reformat the arg list for make_process_struct.
7867           (pop_module): Don't seg fault on null DECL_NAME.
7868           (handle_one_level): Error, not warning if tree not recognized.
7869           (shadow_record_fields): Rename formal param for readability.
7870         * ch-grant.c (decode_decl): Write proper header for a process.
7871         * ch-parse.y (quasi_pdef): process now uses processparlist,
7872           which doesn't change with the passes.
7873           (quasi_locdec): Call build_chill_reference_type to defer
7874           doing the type's layout.
7875           (processpar): Use paramnamelist, but reformat it into a
7876           list of identifiers in pass 2, so a processpar is the same
7877           structure in both passes.
7878           (locdec): Call build_chill_reference_type to defer doing the
7879           type's layout.
7880         * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7881           build the decl.  Only update the variable's tree in pass 2.
7882           (make_process_struct): Call build_chill_reference_type to defer
7883           doing the type's layout.
7884           (build_process_header): New code to call make_process_struct.
7885           New pass-2 code to make a PARM_DECL for start_chill_function.
7886           Pass a void_type_node, not a NULL_TREE for an empty list.
7887           Get input for shadow_record_fields from current_function_decl.
7888           (build_buffer_decl): Call do_decl not decl_temp1.
7889         * ch-typeck.c: Reindent to standards.
7890         * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7892 Mon Sep 20 12:00:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7894         * ch-typeck.c (classify_chill_expr):  An expression with a
7895         REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7896         * ch-actions.c (adjust_parm_or_field):, ch-tree.h:  Change last
7897         parameter, so we can reliably recognize LOC parameters.
7898         * ch-tasking.c, ch-expr.c:  Change callers appropriately.
7900 Sun Sep 19 22:26:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7902         * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE):  New macros.
7903         * ch-typeck.c (chill_referable, chill_read_compatible):  New functions.
7904         * ch-typeck.c (chill_compatible):  Allow un-resolved CONSTRUCTOR
7905         (with NULL TREE_TYPE), when reasonable.  (Simplifies callers.)
7906         Also, handle case of expr being of reference class.
7907         * ch-actions.c (adjust_parm_or_field):  Major re-arrange
7908         to handle conversions and LOC args better.
7909         * ch-actions.c (chill_expand_assignment):  Simplify conversions.
7910         * ch-expr.c (build_chill_function_call):  If needed, call
7911         chill_start_module_code.
7912         * ch-decl.c (declare_predefined_file):  New function, used
7913         to pre-define stdin, stdout, and stderr.
7914         * ch-inout.c (chill_stdio_p):  Change names of predefined
7915         files from chill-stdin etc to plain stdin (and change their types).
7916         * ch-lex.l:  Remove some obsolete stuff.
7917         * ch-convert.c (convert):  Move conversion from reference to
7918         to beginning of convert() so other conversion can work better.
7919         Also, remove bogus direct setting of TREE_TYPE.
7921 Fri Sep 10 12:23:41 1993  Wilfried Moser  (fs_moser@cygnus.com)
7923         * Makefile.in: Change installation of the chill script. gcc will
7924           be called always with the full path. That made problems when
7925           somebody was using chill but didn't have the installation
7926           directory in PATH.
7927         * ch-parse.y: Change parsing of WRITETEXT action.
7928         * ch-tree.h: Add some new prototypes according to the
7929           (partial) implementation of WRITETEXT.
7930         * ch-typeck.c: Add new function chill_varying_string_type_p. This
7931           functions checks a type for being CHAR(n) VARYING.
7932         * ch-decl.c (init_decl_processing): Add new built-in functions
7933           _writestring and _writeunixstd.
7934           Add call to  build_chill_io_list_type in ch-inout.c.
7935         * ch-inout.c (build_chill_writetext): Add some code there.
7936           Add new function build_chill_io_list_type.
7937           Add new static function chill_stdio_p. This function checks
7938           the text argument for being chill_stdin, chill_stdout or
7939           chill_stderr.
7941 Fri Sep 17 22:02:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7943         * ch-decl.c (push_modedef):  Fix TYPE_MAIN_VARIANT thinko.
7945 Thu Sep 16 18:38:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7947         * ch-decl.c (allocate_lang_decl):  Do nothing.
7948         * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7949         No longer used;  remove.
7951         * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7952         (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7953         (make_chill_variants, layout_chill_variants):  Add (initial) part
7954         of support for multiple tags.
7955         * ch-decl.c (lookup_tag_fields):  New function.
7956         * ch-parse.y (stmt_count):  Not used; removed.
7957         * ch-parse.y (mode2):  Clear current_fieldlist before
7958         parsing STRUCT fields;  restore afterwards.
7960         * ch-parse.y (push_action):  Moved to ch-actions.c.
7962 Wed Sep 15 18:19:37 1993  Bill Cox  (bill@rtl.cygnus.com)
7964         * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7965           constructor to a boolean.
7967 Wed Sep 15 17:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7969         * ch-decl.c (push_modedef): Enable novelty-setting code.
7970         * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7971         * ch-typeck.c (chill_similar): Add checking of singleton
7972           powerset against its base type.
7974 Tue Sep 14 17:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7976         * ch-actions.c (adjust_parm_or_field): Create a
7977           temporary for an non-referencable actual parameter
7978           passed to a LOC formal parameter.
7979           (chill_expand_assignment): Correct compatibility checking.
7981         * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7982         * ch-parse.y (opsigdest): Only check for process name
7983           in pass 2, when we know.
7984         * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7985         * ch-typeck.c: Fix comment.
7987 Mon Sep 13 17:33:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7989         * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7990         decl_seen_p, processed_decls, allocated, nr_decls):  Removed
7991         no-longer-useful functions and variables that used to guard
7992         against writing a decl multiple times.  Since we now just
7993         go through the decl list linearly, that is no longer an issue.
7994         * ch-satisfy.c (safe_satisfy_decl):  Handle missing current_module.
7996         * ch-decl.c (start_chill_function):  Clear DECL_ASSEMBLER_NAME.
7997         Don't make TREE_PUBLIC.  Don't generate rtl yet.
7998         * ch-decl.c (pop_module):  If a decl is granted, set TREE_PUBLIC,
7999         and its DECL_ASSEMBLER_NAME.
8000         * ch-decl.c (fix_identifier):  New function.
8001         * ch-grant.c (grant_one_decl):  Don't set TREE_PUBLIC.
8002         * ch-tree.h (struct module):  New field prefix_name.
8003         * ch-satisfy.c (safe_satisfy_decl):  If assembler_name isn't
8004         set, prefix it by the module name(s).
8005         * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
8006         Call make_function_rtl if needed and !LOOKUP_ONLY.
8007         * ch-typeck.c (chill_similar):  Flesh out substantially.
8008         * ch-typeck.c (chill_compatible):  Re-structure.
8010         * ch-actions.c (adjust_parm_or_field):  Use CH_COMPATIBLE
8011         instead of chill_comptypes to compare actual and formal.
8013 Sun Sep 12 21:10:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8015         * ch-parse.y (labellist):  Don't do anything if ignore_exprs.
8017         * c-typeck.c (output_pending_init_elements): Handle
8018         !constructor_incremental case of filling in empty positions.
8019         (Patch by Jim Wilson.  CYGNUS LOCAL until we have approval.)
8020         * ch-decl.c (pop_module):  Don't grant a seized name.
8021         * ch-grant.c (decode_constant):  Support CALL_EXPR.
8022         * ch-tree.c (build_bitstring_type):  Don't try to fold non-constant
8023         size if pass==1 (since it may be an unsatisfied name).
8026 Sun Sep 12 18:06:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8028         2-pass fixes for processes.  Partially done.
8029         * ch-actions.c (chill_expand_assignment): Add real
8030           novelty-checking sketch, $ifdef'd out for now.
8031         * ch-decl.c: Generally fix indentation.  Move tasking
8032           init code from init_decl_processing to ch-tasking.c.
8033           Delete ObjC-related cruft.  More accurate parameter name
8034           for shadow_record_fields.  Move debug_scope before
8035           its first call.
8036         * ch-expr.c (build_chill_function_call): Return if not
8037           pass 2.
8038         * ch-grant.c (print_proc_tail): Avoid trying to format
8039           a VOID return type, or using a NULL pointer.
8040           (decode_decl): Minor changes for PROCESS arg access.
8041         * ch-lang.c (lang_decode_option): Use -itu flag to
8042           enable 'pedantic' mode.
8043         * ch-lex.l (init_lex): Initialize compiler-directive
8044           variable trees.
8045           (name_type-signal): Disable the returning of SIGNAL and BUFFER
8046           name tokens.
8047         * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
8048           All uses renamed also.
8049           (end_function): Always poplevel, not just in pass 2.
8050           (quasi_pdef): Check for end-label matching.
8051           (quasi_formparlist): Write more clearly.
8052           (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
8053           guards.
8054           (rccase_label, sendaction): Use NAME, not SIGNALNAME
8055           or BUFFERNAME.
8056           (process): Handle like procedure.
8057           (mode): Add SIGNAL as a generic signal parameter.  This
8058           is a client-specific extension, so pedantic is checked.
8059         * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
8060         * ch-tree.h (CH_NOVELTY): Make it an lvalue.
8061         * ch-typeck.c: Fix comment.
8063 Sun Sep 12 15:03:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8065         * c-typeck.c (digest_init):  Compare types using comptypes
8066         instead of comparing pointers.  (Helps Chill front end.)
8067         * ch-expr.c (finish_chill_binary_op):
8068         * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
8069         ch-expr.c (finish_chill_binary_op):  For now, prefer IN_EXPR
8070         over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
8071         (incomplete support for variable fields, and possible bug in
8072         optimize_bit_field_compare).
8073         * ch-expr.c (finish_chill_binary_op):  Fix type-checking
8074         and appropriately coerce operands for IN_EXPR and comparsions.
8075         * expr.c (expand_expr, case ARRAY_REF):  Coerce lower bound (if
8076         non-zero) to sizetype before subtraction.
8077         * expr.c (expand_expr):  Remove Chills-specific calls to
8078         __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
8080 Fri Sep 10 15:47:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8082         * ch-tree.def (UNDEFINED_EXPR):  New kind of expression.
8083         * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
8084         ch-convert.c (convert):  Handle UNDEFINED_EXPR.
8086         * ch-expr.c (build_char_array_expr):  Move CONCAT_EXPR support to ...
8087         * ch-expr.c (build_concat_expr):  ... here.
8088         Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
8089         Also, make result varying only if one of the operands are.
8091         * ch-expr.c (build_chill_binary_op):  Move stuff from here to ...
8092         * ch-expr.c (finish_chill_binary_op):  ... here, as needed for
8093         proper 2-pass split.  Also, clean up and simplify heavily.
8095         * ch-tree.h (enum ch_expr_class):  The 5 kinds of expression classes.
8096         * ch-typeck.c (classify_chill_expr):  New function:  Determine
8097         class of expression.
8098         * ch-typeck.c (chill_compatible_classes):  Re-structure; fix
8099         asymmetry bugs.
8100         * ch-tree.h (CH_CLASS_IS_XXX):  Re-define to use classify_chill_expr.
8102         * ch-convert.c (maybe_turn_scalar_into_array):  Complain
8103         unless scalar is a char constant (and we want a string).
8104         * ch-convert.c (convert):  New code for converting to variable
8105         string/array.  Avoid type errors by padding (with an UNDFIEND_EXPR).
8106         * ch-typeck.c (chill_expand_tuple):  Don't do conversion to
8107         varying type here;  that is handled by convert now.
8108         * ch-decl.c (digest_constructor):  Moved to ...
8109         * ch-convert.c (digest_constructor):  ... here.
8110         * ch-decl.c (do_decl):  Simplify; just use convert for initializer.
8111         * ch-decl.c (chill_digest_init):  Merged into convert, and removed.
8112         * ch-decl.c (init_decl_processing):  Set constructor_no_implicit flag.
8113         * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
8114         Replace chill_digest_init by convert.
8115         * ch-actions.c (chill_expand_array_assignment):  Simplify; use convert.
8116         * ch-lex.l (build_chill_string):  Make string type be derived
8117         from integer, not sizetype, because upper bound can be -1.
8119 Thu Sep  9 18:21:46 1993  Bill Cox  (bill@rtl.cygnus.com)
8121         * ch-typeck.c (my_build_array_ref): Delete pedantic
8122           C-specific error message.
8124 Thu Sep  9 17:44:20 1993  Jeffrey Wheat  (cassidy@eclipse.cygnus.com)
8126         * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
8128 Thu Sep  9 12:22:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8130         * ch-typeck.c (build_chill_array_ref):  Remove redundant and
8131         broken call to my_build_array_ref.
8133 Wed Sep  8 13:03:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8135         * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
8136         Don't use store_init_value, since it calls digest_init instead
8137         of chill_digest_init.
8138         * ch-except.c (finish_handler_array):  Use build1 (ADDR_EXPR, ...)
8139         instead build_unary_op to avoid C-specific optimizations.
8140         * ch-typeck.c (my_build_array_ref):  Don't use default_conversion
8141         to convert array to pointer.
8142         * c-typeck.c (process_init_default):  New function, to support
8143         default values for array tuples in Chill.
8144         * c-typeck.c (default_conversion):  Don't convert array to pointer
8145         if compiling Chill.
8146         * ch-decl.c (digest_constructor):  New function;  used to be guts
8147         of chill_digest_init.  Now recursive, to handle nested tuples.
8149         * ch-decl.c (chill_digest_init):  Handle struct labels.
8150         * ch-grant.c (get_tag_value):  Use decode_constant in general case.
8151         * ch-grant.c (decode_constant):  Add support for lots of missing
8152         binary and unary operators.
8154 Wed Sep  8 10:11:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8156         * ch-lang.c: Look for '-I' option for seize file path.
8157         * ch-lex.l: Fix comment about above option.
8159 Wed Sep  8 00:37:32 1993  Per Bothner  (bothner@rtl.cygnus.com)
8161         * ch-satisfy.c:  Move code to set (and restore) file-and-line
8162         from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
8163         alias decls that refer to real decls with errors.
8164         * ch-actions.c (lang_init):  Move to ch-lang.c.
8165         * ch-decl.c (init_decl_processing):  Move code to initialize
8166         file-and-line from here ...
8167         * ch-lang.c (lang_init): ... to here, to avoid clobbering.
8169         * ch-decl.c (chill_digest_init):  Add support for SET_TYPE,
8170         and index values.
8171         * ch-typeck.c (chill_expand_typle):  Just call chill_digest_init.
8172         * c-typeck.c:  Fix various things that got broken
8173         in the latest merge.
8175 Tue Sep  7 15:45:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8177         * ch-decl.c (build_enumerator):  Handle a "unnamed set element"
8178         (obsolete feature) by generating a dummy name.
8179         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation with
8180         "correct" value of top-level (to get better debugging output).
8181         * ch-decl.c (bind_saved_names):  Allow a null DECL_NAME.
8183 Tue Sep  7 15:48:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8185         * ch-actions.c (chill_expand_return): Correct breakage
8186           due to recent fsf merge.
8188 Tue Sep  7 11:16:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8190         * .cvsignore: Add multilib.h.
8191         * ch-decl.c (chill_digest_init): New function.  Calls were
8192           changed, since it has fewer parameters than old digest_init.
8193         * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
8194           new init stuff.
8195           (elementlist): Delete unused code.
8196         * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
8197         * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
8198         * ch-tree.h: Delete digest_init prototype.
8199         * ch-typeck.c (digest_init): Much new code.
8201 Tue Sep  7 12:06:28 1993  Bill Cox  (bill@rtl.cygnus.com)
8203         * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
8204           files to their pre-init-change state.
8206 Mon Sep  6 15:28:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8208         Preliminary adaptation to rms' new initializer code.
8209         * ch-decl.c (do_decl): Call chill_digest_init, not
8210           digest_init, which rms made static.
8211         * ch-expr.c (chill_truthvalue_conversion): Delete C-
8212           specific code.
8213         * ch-loop.c (init_loop_counter): Indent for readability.
8214         * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
8215         * ch-tree.h: Prototype changes for new init code.
8216         * ch-typeck.c (chill_expand_tuple): Call new init code.
8217         * chill.texi: Add necessary '-f' prefix on options.
8219 Wed Sep  1 13:21:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8221         * ch-convert.c (build_array_type_for_scalar),
8222         ch-tasking.c (build_chill_receive_case_end):  Index type
8223         specification is now chain of types (not chain of TREE_LIST).
8224         * ch-satisfy.c (satisfy):  Don't try to satisfy the
8225         abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
8226         * ch-expr.c (build_chill_binary_op):  If pass 1, do NOT
8227         call finish_chill_binary_op.
8228         * ch-parse.y (arrayindex):  Simplify.
8230 Tue Aug 31 14:57:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8232         * ch-decl.c (print_lang_decl): Print weak-name status.
8233           (print_lang_identifier): Print signal_data as T or F.
8234         * ch-lex.l (convert_bitstring, convert_charliteral,
8235           convert_float, convert_number): Pass string directly to convert
8236           as a parameter.  Return token code consistently, return 0
8237           for error.
8238           (equal_number): Parse differently, allowing hex, binary
8239           and octal constants.
8240         * ch-parse.y (dowithaction, structured_variable): Only
8241           push/pop scopes once per DO WITH.
8242           (structured_variable_list): Check ignore_actions flag here.
8243         * gcc.c: Delete 'traditional' from string, add 'itu'
8244           as the standard flag's name.
8246 Mon Aug 30 15:12:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8248         * ch-typeck.c, ch-tree.h (build_chill_range_type):  Take 3
8249         parameters instead of 2 (explicit low and high bounds).
8250         * ch-parse.y (arrayindex):  Build range type from low:high.
8251         (rangesize, optrangesize):  Removed.
8252         (where appropriate):  Use new build_chill_range_type interface.
8253         * ch-grant.c:  Clean up writing of range and array types.
8254         * ch-satisfy.c (satisfy):  Don't ignore the return value of
8255         layout_chill_array_type. (It may be an error mark.)
8256         * ch-typeck.c (build_chill_array_type):  Simplify.
8257         * ch-typeck.c (layout_chill_array_type):  Clean up checks.
8259 Fri Aug 27 12:55:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8261         * ch-decl.c (decl_temp1):  Set DECL_ASSEMBLER_NAME.
8262         (push_chill_extern_function)  Don't set current_function_decl.
8263         * ch-parse.y (tupleelement):  Don't wrap index is a TREE_LIST
8264         (i.e. a range), don't wrap a PAREN_EXPR around it.
8265         * ch-grant.c (decode_constant):  For tuple CONSTRUCTORs,
8266         add support for ranges in purpose.
8268 Wed Aug 25 16:58:13 1993  Bill Cox  (bill@rtl.cygnus.com)
8270         * .cvsignore: Add g++.sum
8271         * ch-actions.c (chill_expand_result): Stop building a temp.
8272           Assign the expression directly into function's DECL_RESULT.
8273         * ch-decl.c: Add formfeeds.
8274           (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
8275           (push_chill_function_context): Delete C pedwarn message.
8276         * ch-expr.c: Move builtin functions together.
8277         * ch-parse.y (end_function): Delete unused code.
8278           Reformat %union for readability.  Delete _MAX and _MIN
8279           tokens.
8281 Wed Aug 25 13:24:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8283         * ch-actions.c (get_result_tmp_name): Delete unused function.
8284           (chill_expand_result, chill_expand_return): Rewrite for
8285           2-pass.
8286         * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
8287           chain field, so we can make a temp, evaluate a RESULT action's
8288           expression into it, and hang it on here.
8289         * ch-parse.y (end_function): Look for RESULT temps to emit.
8290           (assertaction): Indentation.
8292 Wed Aug 25 08:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8294         * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
8295           It wasn't used anyway.
8297 Tue Aug 24 17:51:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8299         * ch-actions.c (chill_expand_result, chill_expand_return):
8300           No need to make a temp for the value, just use DECL_RESULT.
8302 Tue Aug 24 16:38:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8304         * ch-tree.c (layout_powerset_type):  Remove redundant code.
8305         Generalize (in error message) to also handle bitstrings.
8306         * ch-tree.c (build_bitstring_type):  Remove all layout-like
8307         stuff, and defer that to layout_powerset_type.
8308         * ch-expr.c (chill_expand_expr):  For various SET_xxx_EXPRs,
8309         allocate stack temp for target using correct mode.
8311 Tue Aug 24 10:27:19 1993  Bill Cox  (bill@rtl.cygnus.com)
8313         * ch-actions.c, ch-decl.c, ch-except.c,
8314           ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
8315           ch-typeck.c: Change build_modify_expr calls to
8316           build_CHILL_modify_expr calls.
8317         * ch-expr.c (build_chill_modify_expr): Adapted from
8318           build_modify_expr in c-typeck.c.
8320 Mon Aug 23 16:48:39 1993  Bill Cox  (bill@rtl.cygnus.com)
8322         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
8323           ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
8324           ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
8325           Major re-allocation of functions to files.
8327 Mon Aug 23 12:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
8329         Thanks for the tip, Jim.
8330         * Makefile.in: Add dependency lines for ch-except.o and
8331           ch-satisfy.o.  Correct dependency lines for ch-convert.o,
8332           ch-expr.o, ch-inout.o, and ch-loop.o.
8333           (chill, install-common): Add clean-up commands.
8335 Sat Aug 21 17:11:26 1993  Bill Cox  (bill@rtl.cygnus.com)
8337         * ch-decl.c (get_type_precision): New function.
8338           (layout_enum): Call it.
8339         * ch-tree.c (layout_powerset_type, build_bitstring_type):
8340           Call it.
8342 Sat Aug 21 13:59:40 1993  Bill Cox  (bill@rtl.cygnus.com)
8344         * ch-decl.c (init_decl_processing): Define setbitpowerset
8345           runtime function.
8346         * ch-expr.c (chill_expand_assignment): Call setbitpowerset
8347           to set a bit.
8348         * ch-parse.y: Indentation.
8350 Fri Aug 20 17:29:56 1993  Bill Cox  (bill@rtl.cygnus.com)
8352         * ch-parse.y: Delete unused %type declaration.
8353         * ch-tasking.c (build_signal_struct): Delete return, since
8354           function returns void.
8355         * ch-typeck.c: Indent to standard.
8356         * stor-layout.c: Fix comment.
8357         * toplev.c: Change -L option ti -I.
8358         * varasm.c (emit_set_data): Align set constant to word
8359           boundary.
8361 Fri Aug 20 08:20:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8363         * ch-actions.c: Fix indentation, comments.
8364         * ch-decl.c (push_chill_extern_signal): Use same interface
8365           as build_signal_struct.
8366         * ch-parse.y (quasi_signaldef): Move build_signal_decl
8367           here to sigdef.  Add quasi_signal to distinguish contexts
8368           where sigdef gets used.
8369         * ch-tasking.c: Replace make_signal_struct and build_signal_decl
8370           with build_signal_decl, which doesn't loop through a
8371           TREE_LIST.
8372         * ch-tree.h: Fix protos.
8374 Wed Aug 18 17:36:53 1993  Bill Cox  (bill@cygnus.com)
8376         * ch-actions.c: Fix comments.
8377         * ch-decl.c (push_modedefs): Return the new decl.
8378           (shadow_record_fields): Move pushlevel (0) calls into
8379           the grammar, so they'll get done in both passes.
8380         * ch-parse.y (dowithaction): Always compute & save # of
8381           'with' variables seen (both passes), and always pop that
8382           number of levels.
8383           (structured_variable_list): Always chain variables into a list.
8384           (structured_variable): Put pushlevel here (from shadow_record_fields).
8385         * ch-tasking.c: Indentation fixes.
8386         * ch-tree.h: Change proto.
8387         * chill.texi: Add Blue Book section numbers to unimplemented
8388           features list.
8390 Wed Aug 18 15:48:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8392         * ch-actions.c (build_generalized_call):  New function.
8393         Classifies semantically (if pass 2) this that look like calls.
8394         * ch-parse.y (call):  Invoke build_generalized_call.
8395         * ch-parse.y (sigdef):  Use defining_occurrence instead of NAME.
8396         * ch-parse.y (opt_untyped_exprlist):  New non-terminal.
8397         * ch-satisfy.c (satisfy):  Handle CALL_EXPR.
8399 Tue Aug 17 16:36:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8401         * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
8403 Mon Aug 16 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8405         * ch-tree.h (TUPLE_NAMED_FIELD):  New macro.
8406         * ch-parse.y (labelled structure tupleelement):
8407         Set TUPLE_NAMED_FIELD flag.
8408         * ch-grant.c (decode_constant):  Check for TUPLE_NAMED_FLAG.
8409         * ch-satisfy.c (satisfy):  Check for TUPLE_NAMED_FLAG.
8410         Do satisfy the elements of a CONSTRUCTOR even if call
8411         chill_expand_tuple isn't correct.
8412         * ch-satisfy.c (satisfy):  Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
8413         * ch-parse.y (label_spec):  Defer any semantic checking until ...
8414         * ch-decl.c (layout_chill_variants):  ... here.
8415         Also make sure to call layout_type on the union type.
8416         * ch-decl.c (bind_saved_names):  For weak names, allocate an
8417         ALIAS_DECL, rather than a CONST_DECL.
8419         Add support for implied (weakly visible) names.
8420         * ch-tree.h (DECL_WEAK_NAME):  New macro.
8421         * ch-satisfy.c (satisfy of IDENTIFIER_NODE):  Don't complain
8422         if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
8423         * ch-decl.c (proclaim_name):  Handle DECL_WEAK_NAME appropriately.
8424         * ch-decl.c (concat_lists, find_implied_types):  New functions.
8425         * ch-decl.c (bind_saved_names):  Search for implied names.
8426         * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
8427         * ch-lang.c (layout_chill_struct_type):  Don't use
8428         C_DECL_VARIABLE_SIZE.
8430 Mon Aug 16 16:10:43 1993  Bill Cox  (bill@rtl.cygnus.com)
8432         * ch-actions.c: Delete extra space in error message.
8433         * ch-parse.y: Fix comment.
8434         * expr.c (store_constructor): Avoid passing NULL to convert,
8435           and getting back an error_mark_node and trying to process
8436           *that* node.
8438 Mon Aug 16 14:41:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8440         * ch-decl.c:  Add more overview comments.
8441         * ch-decl.c (proclaim_decl):  New function.
8442         * ch-decl.c (temp_pushdecl, struct shadowing):  Removed.
8443         * ch-decl.c (bind_saved_names):  Remove blevel parameter;
8444         use current_scope global instead.  Do some other cleanups.
8445         * ch-decl.c (save_expr_under_name):  Create an ALIAS_DECL.
8446         * ch-decl.c (pushdecllist, save_expr_under_name):  Use proclaim_decl.
8447         * ch-satisfy.c (satisfy, safe_satisfy_decl):  Be more careful
8448         to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
8450         * chill.texi:  Start collecting Chill documentation here.
8451         * ch-parse.y (mode):  Ignore READ specifier, for now.
8453 Mon Aug 16 11:13:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8455         * ch-actions.c (chill_comptypes): Correct handling reference
8456           of type 1.
8457           (build_chill_length, build_chill_num,
8458            build_chill_sizeof): Convert result to CHILL integer.
8459           (build_chill_function_call): Clean up INOUT and OUT
8460           parameter handling.
8461         * ch-decl.c (build_chill_function_type): Handle INOUT and
8462           OUT parameters.
8463         * ch-loop.c: Fix up comments.
8464         * ch-parse.y: Fix up comments.
8466 Sun Aug 15 15:06:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8468         * ch-actions.c (build_chill_lower, build_chill_upper):
8469           Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
8470         * ch-decl.c (save_expr_under_name): New function to save
8471           addressing expressions for DO WITH and DO FOR handling.
8472           (handle_one_level): Call new function.
8473         * ch-loop.c (init_loop_counter): Call it here, too.
8474           Check lp->user_var before passing it to lookup_name.
8475           (high_domain_value, low_domain_value): Correct call
8476           to build_chill_upper and build_chill_lower.
8477           (begin_chill_loop, end_chill_loop): Move pushlevel,
8478           poplevel up into the grammar, so they're done in both
8479           passes.
8480         * ch-parse.y (doaction): Unconditionally make a scope
8481           for a loop, pop it later.
8482           (controlpart, iteration): Save return from
8483           build_chill_iterator.
8484         * expr.c: Readability changes.
8486 Sat Aug 14 19:42:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8488         * ch-expr.c (chill_expand_case_expr): Complete rewrite
8489           for 2-pass.  About 1/2 the size, too.
8490         * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
8491           This assures that a label preceding a module's first action
8492           is enclosed in the module-level function that's generated.
8494 Sat Aug 14 14:56:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8496         Re-implement how EXIT is done.
8497         'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
8498         'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
8499         Hence we no longer need any support for EXIT in stmt.c.
8500         * stmt.c (stamp_nesting_label, expand_exit_labelled):  Removed.
8501         * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
8502         * ch-tree.c, ch-tree.h (munge_exit_label): New function.
8503         * ch-parse.y:  Re-write bracked actions to support EXIT new way.
8504         * ch-decl.c, ch-loop.c:  Remove calls to stamp_nesting_level.
8505         * ch-parse.y:  Replace SC by new token semi_colon, which
8506         resets the 'label' global.  Also make sure that label gets
8507         reset whenever we might start a new action statement.
8508         * ch-parse.y (possibly_define_exit_label):  New function.
8510         * ch-except.c (chill_start_on):  Wrap an ADDR_EXPR round the jmpbuf.
8511         * ch-grant.c (chill_finish_compile):  Make sure
8512         get_file_function_name is only called once.
8513         * ch-expr.c (chill_expand_array_assignment):  Use store_expr,
8514         instead of incorrectly calling emit_block_move.
8516         * ch-parse.y (procedure):  Call push_chill_function_context
8517         in *both* passes (if nested).
8518         * ch-parse.y (primval):  Call get_type_of before chill_expand_type.
8519         * ch-parse.y (tupleelement):  Only build PAREN_EXPR during pass 1.
8521 Fri Aug 13 16:36:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8523         Re-implement GRANT and SEIZE, to support prefixes and prefix
8524         rename.  All of the Blue Book semantics for these should
8525         now work (except FORBID).
8526         * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
8527         DECL_POSTFIX, DECL_POSTFIX_ALL):  New ALIAS_DECL layout and macros.
8528         * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
8529         decl_check_rename):  New functions.
8530         * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
8531         * ch-satisfy.c (satisfy_decl):  Handle SYN initialized with tuple.
8532         * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
8533         * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8534         * ch-grant.c (decode_prefix_rename):  New function.
8535         Use to print out GRANT and SEIZE statements.
8536         * ch-decl.c (ALL_POSTFIX):  New global variable.
8537         * ch-decl.c (bind_saved_names, pop_module):  Change to use new
8538         ALIAS_DECL layout, and support general prefix rename and ALL.
8539         * ch-decl.c (various places):  Don't barf if DECL_ANME is NULL.
8540         * ch-parse.y (build_prefix_clause):  New function (handle PREFIXED).
8541         * ch-parse.y (optprogendname, optname):  Rename to opt_end_label.
8542         * ch-parse.y:  Add support for compound name strings, but defer
8543         using all over teh place, due to parser ambiguities.
8544         However, do use defining_occurrence where appropriate.
8545         * ch-parse.y:  Re-write syntax and semantics of GRANT and SEIZE
8546         statements to support Blue Book functionality.  Neato!
8548 Fri Aug 13 17:10:52 1993  Bill Cox  (bill@rtl.cygnus.com)
8550         * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8551         * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8552           (decl_temp): Deleted.
8553         * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8554         * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8555           readability, add comment.
8556         * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8557         * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8559 Fri Aug 13 13:39:59 1993  Bill Cox  (bill@rtl.cygnus.com)
8561         * ch-decl.c (decl_temp): Break the chain of decls.  This
8562           prevents an infinite loop.
8563         * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8564         * ch-lex.l (equal_number): Check passes in looking up a
8565           symbolic value.
8566         * ch-parse.y: Fix comments.
8567         * ch-tasking.c (tasking_setup): Only act in pass 2.
8568           (make_signal_struct, build_signal_decl,
8569            build_chill_receive_case_label): Don't go indirect
8570            thru NULL decl pointer.
8572 Thu Aug 12 11:02:34 1993  Bill Cox  (bill@rtl.cygnus.com)
8574         * ch-actions.c (route_to_predefined_function): New function called
8575           from build_chill_function_call, to call the proper predefined routine.
8576           (build_chill_card, build_chill_length, build_chill_lower,
8577           build_chill_max, build_chill_min, build_chill_num,
8578           build_chill_pred, build_chill_sizeof, build_chill_succ,
8579           build_chill_upper): Rewritten to run only in pass 2.
8580         * ch-decl.c (init_decl_processing): Build predefined functions for card,
8581           length, lower, max, min, num, pred, sizeof, succ and upper.  Delete
8582           unused builtin_function calls.
8583         * ch-grant.c (chill_finish_module_code): Save current_function_decl
8584           before calling finish_chill_function, and use that to build the
8585           initializer structure.
8586         * ch-lex.l: Remove following tokens, since they're now just predefined,
8587           not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8588           and upper.
8589         * ch-loop.c: Readability, indentation changes.
8590         * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8591           sizeof, succ and upper.  Delete special rules for calls to these.
8592           Delete mode_location and upper_lower_arg non-terminals.
8593           (pmodearg): Eliminate convolutions.
8594           (call): Add rule for typename parameter.
8595         * ch-tasking.c: Readability changes.
8596         * ch-tree.h: Add prototypes.
8598 Thu Aug 12 00:38:17 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8600         * ch-decl.c (save_decl):  Set DECL_CONTEXT (decl).
8601         * ch-grant.c (chill_finish_module_code):  Call
8602         finish_chill_function with nested==0.
8603         * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y:  Rename
8604         {push,pop}_c_function_context to {push,pop}_chill_function_context.
8605         * ch-parse.y (end_function): If nested, call
8606         pop_chill_function_context regardless of which pass we're in.
8608 Wed Aug 11 02:34:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8610         * ch-actions.c (finish_chill_binary_op):  Handle error marks.
8611         * ch-decl.c (do_decl):  Laying out decl and generating rtl
8612         is too late to do here (if there are forward references), so ...
8613         * ch-satisfy.c (satify_decl):  ... do it here instead.
8614         * ch-decl.c (finish_enum):  Fixup types of enum decls now.
8615         * ch-satisfy.c (safe_satisfy_decl):  New routine.  Supports
8616         checking illegal cyclic definitions.
8617         All *satisfy* routines now take a 'chain' parameter (instead
8618         of 'lookup_only') used for checking cycles.
8619         * ch-satisfy.c (satisfy_decl):  Return DECL_INITIAL if appropriate.
8620         * ch-satisfy.c (satisfy):  Lots of little fixes.
8622         * ch-lex.l (init_lex):  Make all the standard ridpointers be
8623         lowercase, so that lookup_name on lower-cased user input
8624         will find the standard types.
8625         * ch-lex.l:  Remove all the standard types, in effect
8626         converting them from reservered anmes to predefined names.
8627         * ch-lex.l, ch-parse.y:  Remove PREDEF_MODEDECL - no longer used.
8628         * ch-grant.c (gfile):  Rename to grant_file_name.
8629         * ch-lex.l (yywrap):  Don't try to seize current grant_file_name.
8631         * initname.c:  Removed. get_file_function_name is now in tree.c
8632         * Makefile.in (CHILL_OBJS): Remove initname.o
8634         * ch-decl.c (do_decl):  New function, based on loop body of do_decls,
8635         * ch-decl.c (do_decls):  Just call do_decl.
8636         * ch-grant.c (chill_finish_module_code):  Minor cleasnups.
8637         Use new do_decl routine.  Clear init_entry_decl's source line.
8638         * ch-grant.c (print_proc_tail):  Fix for new param list structure.
8639         * ch-parse.y (whatpdef):  Removed.  Cleaned up procedure
8640         and process, allowing proper end-label-checking.
8641         * ch-typeck.c (build_chill_cast):  Remove decl->type conversion.
8643 Wed Aug 11 00:33:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8645         * ch-decl.c (layout_enum):  Don't call rest_of_type_compilation.
8647         * ch-lex.l (RETURN_PREDEF):  Don't call lookup_name.
8648         * ch-expr.c (build_chill_indirect_ref):  Call get_type_of.
8649         * ch-parse.y (call):  Call get_type_of before build_chill_cast.
8651 Tue Aug 10 21:33:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8653         *  ch-actions.c (build_char_array_expr):  If a concat operand is
8654         a constant char, convert it to a STRING_CST.
8655         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation
8656         with toplev=0.
8657         * ch-typeck.c (build_chill_cast):  Allow type to be TYPE_DECL.
8659         * ch-parse.y (actionlabel):  Call define_label in both passes.
8660         * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8661         New functions, using lookup_name to find LABEL_DECLs.
8662         * ch-parse.y (GOTO, EXIT):  Use above new functions.
8663         * ch-tasking.c (struct rc_state_type *current_rc_state):
8664         Use to store state for the current receive case statement.
8665         (build_chill_receive_case_start, build_chill_receive_case_end):
8666         Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8667         * ch-decl.c:  Remove all stuff dealing with specific label scopes,
8668         including functions push_label_level, pop_label_level.
8669         * ch-decl.c (define_label):  Re-write for 2-pass.
8670         * ch_tree.h (lang_identifier):  Removed label_value.
8671         * ch-tree.h (IDENTIFIER_LABEL_VALUE):  Removed.
8673         * ch-parse.y (modename):  Changed to yield identifier, not type.
8674         This allows following changes, which work better for 2-pass:
8675         (location):  primval ARROW optmodename -> primval ARROW optname.
8676         (primval):  Tuple can now be prefixed by unsatisfied name.
8678         * ch-actions.c (chill_grant_only):  Renamed to grant_only_flag.
8679         * ch-lex.l (yywrap):  Don't read seizefiles if grant_only_flag.
8680         * ch-decl.c (switch_to_pass_2):  Exit if grant_only_flag,
8682         * ch-satisfy.c (satisfy):  Support CONSTRUCTOR, REFERENCE_TYPE.
8683         * ch-satisfy.c (satisfy_decl, satisfy):  Kludge around
8684         to a TYPE_DECL can be simplified to its type.
8685         * ch-expr.c (build_chill_indirect_ref):  New function.
8686         * ch-lex.l (prepare_paren_colon):  Make kludge even uglier,
8687         since the left paran might already have been seen.
8688         * ch-lang.c (make_chill_pointer_type):  Allow parameter
8689         to select pointer or reference type.
8690         (build_chill_reference_type):  New function.
8691         Either function:  Be more careful (in case arg is identifier).
8692         * ch-except.c (initialize_exceptions):  Make
8693         exception_stack_decl be public.
8694         * ch-actions.c (build_char_array_expr):   Can only
8695         constant fold if operands are STRING_CST.
8696         * ch-grant.c (raw_decode_mode):  Allow TYPE_DECL.
8697         (chill_finish_compile:  Set TREE_PUBLIC of init function to 1.
8699 Tue Aug 10 17:55:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8701         * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8702         * ch-decl.c: Fix comment.
8703         * ch-parse.y (pmodearg): Build tree_list in all cases.
8704         * varasm.c (assemble_tasssking_entry): Delete unused code.
8706 Tue Aug 10 13:58:21 1993  Bill Cox  (bill@rtl.cygnus.com)
8708         * ch-actions.c (build_char_array_expr): save/restore
8709           a tree's constant status.
8710           (build_chill_binary_op): Don't convert an expression
8711           if the type we're converting to is NULL.
8712         * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8713           Call it from convert, and from ..
8714         * ch-expr.c (chill_expand_assignment): call new function.
8715           Move convert code earlier, too.
8716         * ch-decl.c (lookup_name): Delete bogus error message.
8717         * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8718           Add protos.
8719         * ch-typeck.c (valid_array_index): Comment out some strange code
8720           which now seg faults.
8721           (chill_expand_tuple): Re-enable prepending of VARYING
8722           length to a tuple.
8723           (chill_similar): Return FALSE if either mode is NULL_TREE.
8725 Tue Aug 10 07:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
8727         * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8728           Add commented-out calls to pushtag, in case we decide later
8729           to fill in TYPE_STUB_DECL for dbxout.
8730         * ch-lang.c (build_chill_struct_type): Add commented-out
8731           calls to pushtag, in case we decide later to fill in
8732           TYPE_STUB_DECL for dbxout.
8734 Mon Aug  9 23:09:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8736         * ch-decl.c (chill_seize):  Don't get_next_next in pass 2.
8737         * ch-decl.c (get_next_decl):  Skip ALIAS_DECLs.
8738         * ch-decl.c (bind_saved_names):  Handle SEIZE ALL.
8739         * ch-lang.c (layout_chill_struct_type):  Don't call
8740         rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8741         * initname.c (get_file_function_name):  Get new file and
8742         function for language-independent constructor name generation.
8743         * ch-grant.c (get_init_function_id):  Removed.
8744         * ch-grant.c (chill_finish_compile):  Call get_file_function_name
8745         instead of get_init_function_id.
8747 Mon Aug  9 18:33:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8749         * ch-decl.c: Formfeeds and comments.
8750         * ch-parse.y (quasi_formpar): Treat just like real formpar.
8751           Eliminate restriction on single name.
8752           (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8754 Mon Aug  9 17:21:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8756         * ch-lex.h (enum rid), ch-lex.l (init_lex):  Added RID_ALL.
8757         * ch-lang.c (build_chill_pointer_type):  Layout the pointer type,
8758         if the pointee is laid out, even if pass==1.
8759         * ch-parse.y:  Set ignore_exprs=(pass=2) for entire spec module.
8761 Mon Aug  9 15:44:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8763         This version compiles the 5-line program.  Thanks, Per!
8764         * ch-decl.c (print_lang_decl, print_lang_identifier):
8765           Add appropriate calls to indent_to().  Rename reverse_scopes
8766           to switch_to_pass_2, and wait to set pass = 2 until
8767           here.
8768         * ch-grant.c (chill_finish_module_code): Set module_init_list
8769           non-NULL in pass 1;  in pass2, chain on the module_init
8770           structure's decl.
8771           (chill_finish_compile): Clear module_init_list to NULL.
8772         * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8773           Rename reverse_scopes to switch_to_pass_2, delete setting
8774           of pass = 2.
8775         * ch-tree.h: Rename reverse_scopes proto.
8777 Mon Aug  9 13:21:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8779         * ch-decl.c (build_enumerator):  If name is NULL,
8780         don't call save_decl or get_next_decl.
8781         * ch-decl.c (layout_enum):  Fix calculation of next value.
8782         * ch-grant.c (print_enumeral):  Re-do for new 2-pass scheme.
8783         * ch-grant.c (decode_constant):  Better CONSTRUCTOR support.
8785 Mon Aug  9 11:59:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8787         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8788           ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8789           Lots of new prototypes.
8791 Mon Aug  9 01:00:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8793         * ch-lex.h:  Remove unused RID_'s.  Make sure RID_MAX is last.
8794         * ch-decl.c (init_decl_processing):  Moved ridpointers
8795         initialization to init_lex().  Use them consistently.
8796         * ch-lex.l (RETURN_PREDEF):  New macro.  Uses ridpointers
8797         for all preferedined types.
8798         * ch-lex.l (init_lex):  Upper case all RIDs, so grantfiles
8799         (and error messages?) will use uppercase.
8800         * ch-decl.c (build_chill_enumerator):  Merged into build_enumerator.
8801         * ch-lang.c (finish_chill_enum):  Merged into ...
8802         * ch-decl.c (finish_enum): .... this function.
8803         * ch-decl.c (layout_enum):  New function.  Does all the pass-2
8804         stuff for enumerations.
8805         * ch-decl.c (finish_enum, start_enum):  Only trivial pass-1 stuff.
8806         * ch-satisfy.c (satisfy):  Support ENUMERAL_TYPE.  Improve ranges.
8807         * ch-parse.y:  Check ignore_exprs instead of ignore_decls when
8808         parsing and building types.
8810 Sun Aug  8 16:26:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8812         * ch-lex.h:  Add some missing RID_'s.
8813         * ch-decl.c (init_decl_processing):
8815 Sun Aug  8 15:32:54 1993  Bill Cox  (bill@rtl.cygnus.com)
8817         * ch-grant.c (module_has_actions): Delete this and all
8818           references.  It was a botch.
8819           (chill_finish_module_code): Move finish_chill_function_call inside
8820           the test whether actions were found at module level.
8821           Use current_function_name in the initializer build,
8822           and init_entry_id in the module_list setup.
8823           (chill_finish_compile): Call lookup_name to get the
8824           decl from a module_init_list entry.
8825         * ch-parse.y: Revert module_has_actions additions.
8826         * ch-satisfy.c (satisfy): After satisfying the type  referenced
8827           by a pointer_type, call layout type for the pointer.
8828         * ch-tasking.c (tasking_registry): Only active in pass 2.
8829         * ch-typeck.c: Call build_chill_pointer_type everywhere.
8831 Sun Aug  8 13:13:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8833         * ch-tree.def (PAREN_EXPR):  New unary op:  '(' EXPR ')'.
8834         * ch-parse.y (primval):  If pass 1, generate PAREN_EXRR.
8835         * ch-satisfy.c (satisfy):  Reduce PAREN_EXPR to its operand.
8836         * ch-grant.c (decode_const):  Handle PAREN_EXPR.
8837         * ch-decl.c (pop_module):  Fix think.  Inprove error message.
8839 Sun Aug  8 10:31:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8841         Generally, replace 'function' with 'procedure'
8842         and 'type' with 'mode' in error/warning messages.
8843         * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8844         * ch-decl.c: See Generally.
8845           (init_decl_processing): Call build_tasking_enum from here.
8846           Now, it doesn't need a flag to do its work only once.
8847           Also, build the TaskingStruct decl here.
8848         * ch-grant.c: Remove references to `current_grant_file';
8849           there's now only one.  See Generally.  Do gcc -Wall cleanup.
8850         * ch-lex.l: Remove references to `current_grant_file'
8851           and delete USE_GRANT_FILE token.
8852         * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8853         * ch-tasking.c (tasking_setup): Move TaskingStruct build
8854           to init_decl_procesing.  Delete build_tasking_enum calls.
8855         * ch-tree.c: See Generally.
8856         * ch-tree.h: Add proto for build_tasking_struct.
8858 Sun Aug  8 08:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8860         * ch-decl.c: Make unnamed_module_number static, reset it to zero
8861           before pass 2, so same module names get generated in both passes.
8862           (push_module): Return user name or generated name.
8863           (init_decl_processing): Build __tmp_initializer_type.
8864           Code moved from chill_finish_module_code.
8865         * ch-grant.c: New flag module_has_actions.  Set TRUE by push_actions,
8866           used, reset by chill_finish_module_code.    Replaces test of
8867           module_function_name.  Shuffled finish-up code to end of module.
8868           (chill_finish_module_code): Use global_bindings_p to determine
8869           'nested' parameter for finish_chill_function.  Use new
8870           module_has_actions flag to trigger generation of module_init list
8871           entry.  We now can handle not only multiple modules per file,
8872           but modules nested inside functions (I think).
8873         * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8874         * ch-parse.y (push_actions): Set module_has_actions flag.
8875           (modulion, spec_module): Save possibly-generated module name
8876           returned by push_module.
8877         * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8878           case for POINTER_TYPE.
8879         * ch-tasking.c: Replace build_pointer_type calls with
8880           build_chill_pointer_type calls.
8881         * ch-tree.h: Fix, add prototypes.
8883 Sat Aug  7 17:32:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8885         * ch-parse.y:  Remove many useless tests for ignore_decls.
8886         * ch-parse.y:  Remove obsolete support for _EXTERN and _INIT.
8887         * ch-parse.y:  Reset ignore_exprs while parsing declarations,
8888         but handle initializers appropriately.
8889         * ch-grant.c (decode_constant):  Update (for 2-pass) support
8890         for CONSTRUCTOR and SET_TYPE.
8891         * ch-grant.c (chill_initializer_name):  Renamed to
8892         module_function_name.
8893         * ch-grant.c (function_generated):  Removed;
8894         use module_function_name != NULL instead.
8895         * ch-tree.h, ch-parse.y:  Removed unused current_locnamelist.
8896         * ch-decl.c (push_modedef):  Simplify to take just one mode.
8897         * ch-tasking.c (make_process_struct, make_signal_struct):
8898         Change calls to push_modedef correspondingly.
8899         * ch-tree.c (build_powerset_type):  Move the stuff that's
8900         suitable for pass 1 into new function make_powerset_type,
8901         and that for pass 2 into new function layout_powerset_type.
8902         * ch-lang.c:  Move pass-1 stuff from build_chill_pointer_type
8903         into new function make_chill_pointer_type, and split
8904         build_chill_struct_type into make_chill_struct_type
8905         and layout_chill_struct_type.
8906         * ch-decl.c (grok_chill_variantdefs):  Similarly split up
8907         into make_chill_variants and layout_chill_variants.
8908         * ch-satisfy.c (satisfy):  Add support for SET_TYPE, and UNION_TYPE.
8909         Call layout_chill_struct_type for RECORD_TYPE.
8911 Sat Aug  7 09:59:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8913         Fixup previous check-in.
8914         * ch-decl.c: Restore unnamed_module_number, which *was*
8915           used after all.
8916         * ch-grant.c (get_init_function_id): Return type s.b. tree.
8918 Sat Aug  7 09:28:17 1993  Bill Cox  (bill@rtl.cygnus.com)
8920         * ch-decl.c (print_lang_decl, print_lang_type): Add
8921           correct parameter list.  Add print statements for
8922           nesting_level, signal_dest, buffer_size, and the
8923           signal_data flag.
8924           (decl_temp, decl_temp1): Delete unused code.
8925           (init_decl_processing): Call build_instance_type and
8926           build_tasking_type in both passes.
8927           Generally change current_scope comparisons against
8928           global_scope to global_biidings_p calls.
8929         * ch-except.c (push_handler): Add space before parameter paren.
8930         * ch-grant.c (chill_start_module, chill_finish_module,
8931           chill_finish_compile): Complete re-write for 2-pass and
8932           multiple modules per source file.
8933         * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8934         * ch-tasking.c: Diffused small adaptations to 2-pass.
8935         * ch-tree.h (print_lang_decl, print_lang_type): Correct
8936           the prototypes.
8937           (chill_finish_module_code): Add module name parameter.
8938         * ch-typeck.c: Fix comments, add whitespace.
8940 Fri Aug  6 12:17:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8942         * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8943         way I allocated the shadow_list on an obstack was too fragile,
8944         so just use xmalloc/free instead.
8946 Fri Aug  6 08:31:49 1993  Bill Cox  (bill@rtl.cygnus.com)
8948         * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8949           TYPE_MAX_VALUE for vanilla integer type.  Only need
8950           to satisfy TREE_TYPE for integer range type.
8952 Fri Aug  6 00:53:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8954         * ch-lang.c (build_chill_range_type):  Split up into two new
8955         functions (make_chill_range_type, layout_chill_range_type);
8956         only former part is done in pass 1.
8957         * ch-lang.c (build_chill_array_type):  Split up in the same
8958         way (yielding make_chill_array_type, layout_chill_array_type).
8959         * ch-satisfy.c (satisfy):  Handle array and range types.
8960         * ch-tree.h (TYPE_RANGE_PARENT):  Removed.  Not used.
8961         * ch-parse.y (mode2):  Handle optional rangesize.
8963 Thu Aug  5 15:13:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8965         * ch-grant.c (print_an_int):  Re-enable (but don't search for SYN).
8966         * ch-grant.c (raw_decode_mode):  Support printing
8967         of an IDENTIFIER_NODE (unresolved type name).
8968         * ch-grant.c (decode_constant):  Support printing of an unresolved
8969         IDENTIFIER_NODE, as well as some kinds of binary operations.
8970         * ch-grant.c (grant_one_decl):  Don't call globalize_decl.
8972         * ch-grant.c (decode_decl):  Add support for ALIAS_DECLs
8973         (from SEIZEs and GRANTs).
8974         * ch-grant.c:  Remove support for multiple grantfiles.
8975         * ch-grant.c, ch-parse.y:  Removed grant_count, for now at least.
8976         * ch-lex.h (in_seizefile):  Moved to ch-tree.h.
8977         * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c:  Removed.
8978         * ch-tree.h (CH_DECL_GRANTED): Added.
8979         * ch-actions.c (build_chill_exception_decl):  Use
8980         IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8981         * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8982         Change to accept list of remember_decls and granted_decls.
8984 Thu Aug  5 11:58:21 1993  Stan Shebs  (shebs@rtl.cygnus.com)
8986         * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8988 Thu Aug  5 10:03:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8990         * ch-decl.c (init_decl_processing): Only build types
8991           in pass 2, since dbxout machinery is only ready for
8992           output then.
8993         * ch-grant.c (chill_finish_module_code): Do most of the
8994           work in pass 2.
8996 Thu Aug  5 06:54:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8998         * ch-parse.y (receivecaseaction): Pass label-group
8999           numbers around.
9000         * ch-tasking.c (build_chill_receive_case_start):
9001           Generate unique labels for each case, pass back
9002           the label-group's number.
9003           (build_chill_receive_case_end): Accept label-group
9004           number from parser, use it to build labels
9005         * ch-tree.h: Change prototypes.
9007 Wed Aug  4 13:21:13 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9009         * ch-decl.c (decl_temp1):  Call finish_decl().
9011         * ch-grant.c (chill_start_module_code):  Don't call
9012         push_c_function_context - not needed since we're not nested.
9013         * ch-grant.c (chill_finish_module_code): Call finish_chill_function
9014         with nested=0, not 1 (twice).
9015         * ch-grant.c (chill_finish_module_code): Clear function_generated.
9017 Tue Aug  3 20:06:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9019         * ch-decl.c (push_chill_extern_function):  Set TREE_PUBLIC.
9021 Tue Aug  3 19:08:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9023         * ch-actions.c (build_chill_function_call): Handle parameter
9024           attributes better - LOC still not handled.
9025         * ch-tree.def: Amplify comment.
9027 Tue Aug  3 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9029         * ch-lex.l (handle_use_seizefile_directive):  Update
9030         next_file_to_seize correctly.
9031         * ch-actions.c (build_chill_abs):  Create an ABS_EXPR, not an rts_call.
9033 Tue Aug  3 14:03:50 1993  Bill Cox  (bill@rtl.cygnus.com)
9035         First Aid, not real long-term fixes...
9036         * ch-decl.c (pop_module, lookup_name_for_seizing): Check
9037           current_module pointer for NULL before using it.
9038           (init_decl_processing): Set up wchar_type_node before using it.
9039         * ch-grant.c (chill_finish_module_code): Don't build
9040           initializer_type or initializer_decl until pass 2.
9041         * ch-lex.l: Readability - single statement per line.
9042         * ch-tasking.c (make_process_struct): Hide get_parm_info
9043           call inside #ifdef for now.
9045 Tue Aug  3 09:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9047         * ch-decl.c (pushdecllist): Add forward decl.
9048         * ch-parse.y (handler): Add rules which allo
9049           empty onalternativelist.
9050         * ch-tasking.c (get_tasking_code_name): Add
9051           cast of alloca() result.
9053 Tue Aug  3 00:11:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9055         * ch-lex.l (handle_use_seizefile_directive):  Make files_to_seize
9056         a queue.  Check for duplicate use_seizefile-s immediately.
9057         * ch-lex.l (yywrap):  Use this more portable mechanism,
9058         rather than the flex-specific <<EOF>>.  Also, clear saw_eof.
9059         * ch-lex.l:  Don't call push_module/pop_module automatically.
9060         * ch-decl.c (push_chill_extern_function:  Modify for 2-pass.
9062 Mon Aug  2 14:24:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9064         * ch-parse.y:  Rename actionstatement -> nonempty_actionstatement.
9065         New actionstatement is now nonempty_actionstatement | SC.  Use
9066         where appropriate.  This is closer to Blue Book terminology.
9068         * ch-tree.def (ALIAS_DECL):  New tree type.
9069         * ch-decl.c:  Merged all the code we need (I hope) from c-decl.c,
9070         which is no longer used for cc1chill.
9071         * c-decl.c:  Remove all Chill-related code.
9072         * Makefile.in (CHILL_OBJS):  Don't use c-decl.o.
9073         * ch-decl.c:  No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
9074         Introduce a 'nesting_level' level concept instead.
9075         * ch-decl.c:  Merged push_scope into pushlevel; pop_scope into
9076         poplevel;  struct scope and struct binding_level.
9077         * ch-decl.c:  Other major name lookup algorithm changes.
9078         * ch-tree.h (struct lang_identifier): Remove granted_value field.
9079         * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro):  Removed.
9080         * ch-tree.h (DECL_NESTING_LEVEL):  New macro.
9081         * ch-satisfy.c (satisfy, satisfy_decl):  New 'lookup_only' arg.
9082         * ch-tree.h (struct module):  New fields nesting_level, granted_decls.
9083         * ch-grant.c (seize_implied_names, do_seize, chill_seize):  Move ...
9084         * ch-decl.c: ... here.
9085         * ch-grant.c (start_chill_function2):  Remove.
9086         * ch-grant.c (chill_start_module_code):  Now called in both passes.
9087         * ch-actions.c (lang_init):  Code moved to ...
9088         * ch-decl.c (init_decl_processing): ... here.
9089         * ch-actions.c (chill_expand_result, chill_expand_return):
9090         Handle being called during pass 1.
9091         * ch-lex.l (name_type_signal):  Don't try lookup_name during pass 1.
9092         * ch-parse.y (PUSH_ACTION, push_action):  Is now invoked during
9093         both passes, for the sake of chill_start_module_code.  Change all
9094         actions rules to invoke PUSH_ACTION unconconditionally.
9095         * ch-parse.y, ch-decl.c (push_module):  Module label is now optional.
9097 Mon Aug  2 15:02:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9099         * expr.c (store_constructor): Convert library function
9100           parameters to proper integer precision before calling
9101           emit_library_call.
9103 Mon Aug  2 08:46:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9105         * ch-grant.c (seize_implied_names): Check POWERSET's
9106           base type for names to seize.
9108 Fri Jul 30 19:59:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9110         * ch-tree.h: Delete unused definition of JOINER
9111           macro.  Expand comment about INSTANCE_TYPE.
9113 Thu Jul 29 14:57:11 1993  Bill Cox  (bill@rtl.cygnus.com)
9115         * ch-convert.c (unreferenced_type_of): New function.
9116           (convert): Call new function.
9118 Thu Jul 29 07:34:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9120         * ch-lex.l: Allow C-style comments before the module
9121           header.  Use #undef to assure that strchr isn't a
9122           macro (portability), and remove the extra paren-
9123           theses in its extern name.
9124           (check_newline): Call getlc less often, so that user
9125           labels aren't lowercased before their time. Add BEGIN
9126           INITIAL before starting pass 2, so the header is
9127           correctly ignored.
9129 Wed Jul 28 14:23:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9131         * ch-grant.c (chill_start_module_code): Cast alloca()
9132           return value.
9134 Wed Jul 28 12:39:51 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9136         * ch-grant.c: remove extra parens around extern function
9137         declarations (they confuse the DECstation compiler)
9139 Wed Jul 28 12:28:56 1993  Bill Cox  (bill@rtl.cygnus.com)
9141         * Makefile.in: Stop deleting flex's #line lines.
9143 Wed Jul 28 07:05:25 1993  Bill Cox  (bill@cygnus.com)
9145         Adjust after FSF merge:
9146         * calls.c (expand_call): Add comment.
9147         * ch-expr.c: Add newline.
9148         * expmed.c (store_split_bit_field): Add comment.
9150 Tue Jul 27 17:32:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9152         * ch-actions.c (build_chill_binary_op): Set code0 and
9153           code1 only in pass 2.
9154           (get_result_tmp_name): Cast alloca return for portability.
9155         * ch-decl.c (pop_module): Test current_module ptr before
9156           using it.
9157         * ch-lex.l: Set lineno and input_filename for pass 2
9158           error messages.
9160 Tue Jul 27 15:14:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9162         * ch-lex.l: Fix the syntax error at line 329.  Will I
9163           *ever* quit fixing these in the ch-lex.c file?  Stay tuned..
9165 Tue Jul 27 15:01:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9167         * ch-lex.l: Pervasive rewrite for queueing seize files,
9168           then parsing them at the end of pass 1.  Still some
9169           problems.
9171 Tue Jul 27 07:40:39 1993  Bill Cox  (bill@rtl.cygnus.com)
9173         * chill.in: Check for .i suffices only, and use -xchill
9174           to bracket the argument.
9176 Thu Jul 22 19:17:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9178         * c-decl.c (print_lang_identifier): Oops.  Syntax error.
9180 Thu Jul 22 18:56:16 1993  Bill Cox  (bill@rtl.cygnus.com)
9182         * c-decl.c (pushdecllist): Standardize loop for readability.
9183         * ch-decl.c (decl_temp): Call pushdecllist to store decl
9184           into hash table, move after current_scope declaration.
9185           (decl_temp1): Move also.
9186         * ch-lex.l (getlc): New function.  Force char to lower case.
9187           (check_newline): Call it, so comparisons work on uppercase
9188           keywords.
9190 Wed Jul 21 22:17:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9192         * ch-decl.c (do_decls): Add saving of decl tree
9193           address into ID node in pass 2,  reindent.
9194         * ch-grant.c (start_chill_function2): New function.
9195           (chill_start_module_code,  chill_finish_module_code): Call it.
9196         * ch-loop.c (build_temporary_variable, begin_for_range):
9197           Replace start_decl, finish_decl pairs with decl_temp1 calls.
9198         * ch-parse.y (parnamelist): Eliminate warning by eliminating
9199           the %type for now.
9200         * ch-actions.c, ch-tasking.c: Replace do_decls calls with
9201           decl_temp1 calls.
9202         * ch-tree.h: New prototypes.
9203         * stmt.c (stamp_nesting_label): Check parameters for NULL.
9204         * toplev.c (lang_options): Add '-L' option.
9206 Wed Jul 21 21:06:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9208         Portability fixes.
9209         * ch-decl.c (save_decl): Make definition match forward declaration.
9210         * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
9211           in the macro - Sun's compiler throws warnings.  Thanks, Brendan.
9212         * ch-satisfy.c (satisfy): Add forward declaration.
9213           (SATISFY): Add outer parens for greater safety.
9215 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9217         * c-decl.c (pushdecllist): New function.  Add a list of decls
9218         to the current scope, checking for duplicates.
9219         * c-decl.c (start_function):  Remove some Chill junk.
9220         (This function should no longer be used for Chill.)
9221         * ch-lex.l (ch_lex_init):  New function, to re-init for 2nd pass.
9222         * ch-lex.l (<<EOF>>):  Cleanup, and re-start for 2nd pass.
9223         * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG):  New flags.
9224         * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
9225         Implement.  Add comments.
9226         * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
9227         Better Blue Book type checking.
9228         * ch-actions.c (finish_chill_binary_op): Handle folding
9229         and other stuff that couldn't be done in pass 1.
9230         * ch-actions.c (build_chill_binary_op):  Bail out early if pass 1.
9231         Use new CH_ROOT_MODE macro to handle integer promotions etc.
9232         * ch-except.c (push_handler):  Bail out if pass 1.
9233         * ch-tasking.c (make_process_struct):  Defer making this work.
9234         * ch-parse.y (assignaction):  Simplify, and move some code ...
9235         * ch-expr.c (chill_expand_assignment): ... here.
9236         * ch-typeck.c (chill_root_mode, chill_resulting_mode,
9237         chill_compatible_classes):  New functions, implementing the
9238         correspondingly named Blue Book concepts.
9239         * ch-parse.y generally:  Lots of little tweaks to support
9240         2-pass compilation.
9241         * ch-parse.y (push_module, pop_module):  Moved to ...
9242         * ch-decl.c (push_module, pop_module):  ... here.
9243         * ch-parse.y (push_action):  New function.
9244         * ch-parse.y (pdef):  Move complicated action to ...
9245         * ch-parse.y (end_function):  ... new function here.
9246         * ch-parse.y (procedure):  Major re-write.
9247         * ch-parse.y (paramname, paramnamelist):  New, to avoid conflict (?).
9248         * ch-decl.c (do_decls, push_syndecls, push_modedef,
9249         start_chill_function, finish_chill_function):  Do different things
9250         on each pass.  Hence, can use code in c-decl.c to lesser extent.
9251         * ch-decl.c (build_chill_function_type):  First arg is now
9252         just the return type, rather than a singleton list.
9253         * ch-decl.c (massage_param_node):  Remove not needed (we
9254         now encode parameter attributes directly in the TREE_PURPOSE).
9255         * ch-decl.c (chill_munge_params):  New function, called by parser.
9256         * ch-decl.c (push_parms):  Removed function.
9257         * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
9258         New functions, to coordinate decls between passes.
9260 Wed Jul 21 14:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9262         * ch-actions.c (lang_decode_option): Add option -Lpath
9263           to specify seize file path.
9264           (ch_singleton_set): Readability formatting.
9265           Add comment, move functions to easier found places.
9266         * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
9267           (register_seize_path): Use memcpy so pathlen has an effect.
9268         * gcc.c (default_compilers): Add -L option to chill
9269           compiler SPECs.
9271 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9273         * ch-satisfy:  New file.  Used for name lookup.
9274         * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
9276 Wed Jul 21 12:16:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9278         * toplev.c (main): Delete -L option handling - breaks
9279           non-chill compilers.
9281 Wed Jul 21 09:29:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9283         * ch-grant.c: #undef strchr and strrchr names in extern
9284           declarations, to prevent RS6000 compiler from reporting
9285           their misuse as macros.
9286         * ch-lex.l (setup_seizefile_read): Refer to list of  paths
9287           for seizefiles specified by -L options on command line.
9288           (register_seize_path): Add a new path to the seize file list.
9289         * toplev.c (strip_off_ending): Recognize chill suffix.
9290           (main): Recognize -L option, specifying a seize file path.
9292 Tue Jul 20 12:41:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9294         * ch-lex.l (convert_float): Make it really portable,
9295           using the appropriate macros.
9297 Tue Jul 20 11:26:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9299         * ch-lex.l (convert_float): More casts for vxworks
9300           portability.
9302 Tue Jul 20 11:01:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9304         * ch-lex.l (convert_float): Give variable `d' correct
9305           type so build_real call is correct.  Should remove
9306           vxworks portability problem.
9307           (convert_float): Re-indent to standards.
9309 Mon Jul 19 17:32:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9311         * ch-actions.c (build_char_array_expr): Add field decls to
9312           constructor.  Now, it generates the library call.
9313         * ch-expr.c (chill_expand_array_assignment): Make sure that all
9314           error messages say 'mode' not 'type'.
9316 Mon Jul 19 14:44:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9318         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
9319           ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
9320           Make sure that all error messages say 'mode' not 'type'.
9321         * ch-decl.c (push_modedef): Add novelty computation,
9322           storage in each newmode.
9323         * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
9324           Reformat slightly for readability.  Fix comments.
9325         * ch-tree.h: Delete print_lang_type prototype.
9327 Mon Jul 19 06:43:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9329         * ch-actions.c (chill_expand_return): Disable
9330           error message which requires 2-pass analysis, for
9331           now.
9332         * ch-convert.c (convert): Build length-only constructor
9333           for empty string (PR 2930).
9335 Fri Jul 16 16:08:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9337         * ch-expr.c (chill_expand_array_assignment): Check
9338           non-varying string assignments for conformance to
9339           the "string assignment condition" (PR 2920).
9341 Thu Jul 15 13:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9343         * ch-actions.c (build_chill_array_expr): Check parameters.
9344           Call convert to build unitary array from scalar if
9345           needed.  Rewrite CONCAT_EXPR handling.
9346         * ch-convert.c (build_array_type_for_scalar): New functions.
9347           (convert): Call new function, to convert scalar to unitary
9348           array.  Only call chill_expand_tuple if expression hass
9349           NULL_TREE type.
9350         * ch-expr.c (chill_expand_expr): Allow a larger static
9351           varying array to be assigned to a smaller, with a runtime
9352           test (to be provided).
9353         * ch-parse.y (locdec): Comment out bogus error msg.
9354           (elementlist): Replace several lines with chainon call.
9355         * ch-tree.h (SCALAR_P): New macro.  New prototype for
9356           build_array_type_for_scalar.
9357         * ch-typeck.c (build_chill_cast): Re-indent.
9358           (chill_expand_tuple): Comment out strange addition of
9359           varying string's length to front of constructor list.
9361 Thu Jul 15 05:58:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9363         * ch-except.c (start_handler_array): Use unique identifier for
9364           exception array, so we can have > 1 array per reach
9365           (PR 2931).  The change was originally entered June 23, and
9366           subsequently lost.
9368 Mon Jul 12 16:07:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9370         Get executable test cases running again...
9371         * c-typeck.c (build_function_call): Bypass default
9372           parameter promotions, format param syntax check for
9373           CHILL; they've already been converted in
9374           build_chill_function_call.
9375         * ch-actions.c (chill_expand-return): Correct tests
9376           for function which returns no value.
9377         * ch-convert.c (base_type_size_in_bytes): Check for
9378           NULL type parameter, just return.
9379           (convert): Allow conversion of CHAR to varying array
9380           of CHAR.
9381           Change error msg to "conversion" from "assignment".
9382           Remove default from case, which short-circuited before
9383           REFERENCE_TYPEs got converted.  Deleted second copy
9384           of REFERENCE_TYPE code.
9385         * ch-lang.c (build_chill_range_type): Simply exit if
9386           NULL input parameter.
9387         * ch-loop.c: Fix comment.
9389 Sun Jul 11 11:27:08 1993  Bill Cox  (bill@cygnus.com)
9391         * ch-actions.c (chill_expand_result, chill_expand_return):
9392           Move here from ch-typeck.c.  Add a temporary to remember the
9393           result value in.  Change return handler to fetch that
9394           temporary value, if there is one.
9395         * ch-parse.y (pdef): Call chill_expand_return to fetch
9396           the temp's value.
9397         * ch-tree.h, ch-typeck.c: Move return, result functions to
9398           ch-actions.c.  And their prototypes.
9400 Fri Jul  9 15:47:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9402         * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
9403           ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
9404           ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
9405           ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
9407 Fri Jul  9 09:41:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9409         * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
9410           (print_integer): Delete old non-working INSTANCE code.
9411         * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
9412         * ch-parse.y (rccase_label): Move all actions inside if.
9413           Use BUFFERNAME to recognize receice case buffer clause,
9414           eliminate one shift-reduce conflict.
9415         * ch-tasking.c (build_buffer_descriptor): Check for
9416           CH_DECL_BUFFER flag, remove unused code.
9418 Thu Jul  8 11:17:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9420         Declaring and sending buffers..  first draft
9421         * ch-actions.c (lang_init): Define the send_buffer runtime
9422           function.
9423         * ch-decl.c (do_decls): Standardize loop, so stepping
9424           isn't hidden.
9425         * ch-lex.l: Clean up prototypes for readability.
9426         * ch-parse.y (sendaction): Add send buffer action.
9427           (locdec): Add rule for buffer declaration.
9428         * ch-tasking.c (generate_tasking_code): standardize indentation.
9429           (make_signal_struct): Readability changes.
9430           (build_chill_send_buffer, build_buffer_decl,
9431            build_buffer_descriptor): New functions.
9432         * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
9433           buffer's maximum queue length in buffer decl.
9434           (CH_DECL_BUFFER): Add flag in decl.  Clean up for
9435           readability.  Add prototypes.
9436         * ch-typeck.c (build_chill_cast): Call convert rather
9437           than storing directly into TREE_TYPE field.
9439 Tue Jul  6 12:34:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9441         * ch-actions.c (lang_init): Set warn_switch so case labels
9442           get checked.  Move build_chill_case_expr to ch-expr.c.
9443         * ch-expr.c (chill_expand_case_expr): Enable checking
9444           of expression case labels.
9445         * ch-grant.c: Move a comment.
9447 Mon Jul  5 10:02:27 1993  Wilfried Moser  (fs_moser at rcsw1j)
9449         * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
9450         * ch-except.c (initialize_exceptions): Change the layout of the
9451           structure __ch_handler. The entry __jbuf is moved to the end
9452           of the structure and its size was changed to _JBLEN+10.
9453         * ch-decl.c (push_chill_extern_process): Add processing of
9454           processes with no arguments.
9455         * ch-grant.c (decode_decl, do_seize): Add processing of
9456           processes with no arguments.
9457         * ch-tasking.c (build_process_header, build_chill_start_process):
9458           Add processing of processes with no arguments.
9459           (make_process_struct): Add processing of IN attribute for
9460           process arguments.
9461           (tasking_setup): Add NUL-character to name of a tasking
9462           element. The name must be NUL terminated.
9463           (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
9464           to 0 with a warning if -Wall specified on command-line.
9466 Fri Jul  2 16:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9468         * ch-parse.y: Change 'empty' comments to new non-terminal
9469           so that exyacc doesn't discard them.
9470         * ch-lang.c (build_chill_range_type): New error messages.
9472 Fri Jul  2 12:43:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9474         * ch-parse.y (action): Catch and report actions which
9475           shouldn't have exception clauses, but do.  Unfortunately,
9476           catching more than one of these per compilation will
9477           have to await the general addition of syntax error
9478           recovery to the parser.
9480 Fri Jul  2 10:45:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9482         * ch-parse.y (locdec): Issue error for initialization
9483           of bitstring with tuple, not for powerset init with
9484           tuple.
9486 Thu Jul  1 15:29:26 1993  Bill Cox  (bill@rtl.cygnus.com)
9488         * ch-lang.c (build_chill_array_type): Check for indices
9489           that didn't fold into constants, issue error (PR 2924b).
9490         * ch-parse.y: Add novelty counter, alphabeticalize.
9491         * ch-tree.h: Define CH_NOVELTY for novelty checks later.
9493 Thu Jul  1 14:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9495         For Wilfried Moser.
9496         * chill.in: Add -ansi switch at compiler call to avoid
9497           translation of i.e. sun to 1 by cpp.
9499 Wed Jun 30 22:21:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9501         * ch-grant.c (raw_decode_mode): Add code for
9502           integer and enumeral ranges.  Standardize indentation.
9504 Wed Jun 30 14:02:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9506         * ch-grant.c (print_an_int): New function to print a
9507           decimal integer string or the CONST_DECL (SYN) which
9508           best matches it.
9509           (print_integer): Call the above function.  Replace
9510           calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
9511           comparisons, as suggested by Jim Wilson.
9512           (decode_decl): Set current_grant_modename sooner,
9513           be sure to clear it when done.
9515 Wed Jun 30 10:10:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9517         * ch-actions.c (build_max_min): Change interface to accept
9518           just a max/min flag.  Get min/max values from an
9519           enumeral constructor.
9520           (build_chill_max, build_chill_min): Change calls to
9521           build_max_min.
9522         * ch-lang.c (deep_const_expr): Check for NULL_TREE
9523           arguments, don't seg fault.
9525 Wed Jun 30 09:20:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9527         * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
9528           to switch cases, preventing abort.
9530 Tue Jun 29 19:04:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9532         * ch-expr.c: Update comment.
9533         * ch-parse.y (range_or_mode): New non-terminal used in
9534           lexpr to implement mode as case label.
9536 Tue Jun 29 13:13:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9538         * ch-actions.c (build_chill_case_expr): Pass in the
9539           optional ELSE clause, error for multiple case-selector
9540           expressions, error for missing ELSE clause.
9541         * ch-expr.c (chill_expand_assignment): Error if multiple
9542           location assignment and locations not novelty
9543           equivalent.
9544         * ch-parse.y (caseaction): Add range_list_clause non-
9545           terminal, sorry message for it.
9546           (assignaction): error if operator used on multiple
9547           assignment.
9548           (case_expr): Pass optional ELSE tree to
9549           build_chill_case_expr for checking.
9550         * ch-tree.h (build_chill_case_expr): Change proto.
9552 Fri Jun 25 17:22:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9554         * ch-actions.c (chill_comptypes, build_chill_binary_op):
9555           Allow PROC mode variables.
9556         * ch-convert.c (convert): Turn a NULL literal into a zero
9557           valued pointer-to-function, given such a type.  Also
9558           build the ADDR_EXPR of a function variable.
9559         * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9560           (print_enumeral, print_integer, print_struct) Moved these
9561           large functions out of the switch in raw_decode_mode for
9562           readability, and to encourage future code-sharing.
9563           (print_proc_tail, print_proc_exceptions): Moved these out
9564           of decode_decl, to share them.  They're used also to
9565           output PROC modes.
9566         * ch-parse.y (mode2): Enable PROC modes.
9567           (procmode): Represent PROC mode as a ptr-to-function type.
9568           (call): Recognize ptr-to-function as indirect call.
9569           Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9571 Thu Jun 24 15:59:20 1993  Bill Cox  (bill@rtl.cygnus.com)
9573         * ch-grant.c: (raw_decode_mode): Add support for unnamed
9574           and user-numbered enumeration members.
9576 Thu Jun 24 13:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9578         * ch-actions.c (build_chill_array_expr, build_chill_length):
9579           Explicitly convert a varying array's length field to an
9580           integer_type_node, now that it's only a chill_integer_
9581           type_node.
9582         * ch-expr.c (chill_expand_expr,
9583                      expand_assignment_to_varying_array,
9584                      chill_expand_array_assignment,
9585                      expand_varying_length_assignment): Explicitly
9586           convert a varying array's length field to an integer_type_node,
9587           now that it's only a chill_integer_type_node.
9588         * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9589           to handle varying array location iterations.
9590         * ch-parse.y (mode2): Count number of named SET members,
9591           as opposed to '*' members.  Issue error if there were none.
9592           (setelement): Count named set members.  Generate a unique
9593           identifier for the '*' element.
9594         * ch-typeck.c (validate_varying_array_ref):  Explicitly
9595           convert a varying array's length field to an integer_type_node,
9596           now that it's only a chill_integer_type_node.
9598 Wed Jun 23 19:18:28 1993  Bill Cox  (bill@rtl.cygnus.com)
9600         * ch-lang.c (finish_chill_enum): Change test for too-
9601           large enumerations.
9602         * ch-parse.y (setelement, optsetvalue): Allow numbered,
9603           unnamed set elements.
9605 Wed Jun 23 16:25:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9607         * c-typeck.c (process_init_constructor): Suppress
9608           errors about un-initialized array elements if the
9609           array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9610         * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9611           enumerations *can* be only a byte in size.
9612           (adjust_parm_or_field): Convert untyped parameter before
9613           looking at its type to process it.
9614         * ch-convert.c (convert): Generate [ -1, -1 ] value for
9615           an INSTANCE type.
9616         * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9617           type, so that output_constant doesn't seg fault.
9618         * ch-except.c (start_handler_array): Use unique identifier for
9619           exception array, so we can have > 1 array per reach.
9620         * ch-lang.c (finish_chill_enum): Error if number of
9621           enumeration values exceeds 256.
9622         * ch-parse.y (check_end_label): Error, not warning if start
9623           and end labels don't match.
9624           (assignaction): Convert RHS.  Allows untyped tuples to be
9625           passed to stabilize_reference.
9626           (exceptlist, onexceptprefix): Error if non-unique exception
9627           name is coded.
9628         * ch-tree.c: Added form feeds, comment reformatted.
9629         * ch-typeck.c (chill_expand_tuple): Compare tree value to
9630           NULL_TREE, not zero.  Add a constructor element for a
9631           VARYING array's length to the constructor list.
9632           (build_varying_struct): Mark the type as VARYING for
9633           process_init_constructor.
9634         * toplev.c (lang_options): Add '-lang-chill' and
9635           '-fchill-grant-only' options to table.
9637 Tue Jun 22 13:13:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9639         * ch-actions.c (build_chill_function_call): Add check
9640           to prevent calling a PROCESS like a PROCEDURE.
9641         * ch-parse.y (rcalternative): Add check for an
9642           receive case alternative after a RECEIVE CASE
9643           statement.
9644         * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9645         * ch-lang.c (lang_finish): Remove resetting errorcount
9646           and sorrycount for granting.
9648 Mon Jun 21 17:56:48 1993  Bill Cox  (bill@rtl.cygnus.com)
9650         Receiving signals works.
9651         * ch-actions.c (lang_init): Add else_clause flag to
9652           __wait_signal parameter list.
9653         * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9654         * ch-parse.y (SIGNALNAME): New token.  Delete
9655           empty_untyped_exprlist token, no longer used.  Add
9656           name_or_signal non-terminal.  Standardize a few NULL
9657           tests.  Add real RECEIVE CASE semantics.  Add checks that
9658           SIGNALS, BUFFERs are only declared at global scope.
9659           (call): Add signal declarations with/without data fields.
9660         * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9661           build_chill_receive_case_start, build_chill_receive_case_end,
9662           build_chill_receive_case_label): New functions.
9663           Replace build (CONSTRUCTOR, ... calls with build_nt
9664           (CONSTRUCTOR, calls.
9665         * ch-tree.h: New prototypes.
9667 Thu Jun 17 18:36:38 1993  Bill Cox  (bill@rtl.cygnus.com)
9669         SIGNAL declaration compilation, seizing & granting,
9670           SENDing also.
9671         * ch-actions.c (lang_init): Move instance_type_node
9672           build to ch-tasking.c.  Call build_tasking_message_type.
9673           Build a type for send_signal.  Put builtin_function
9674           calls into alpha order.
9675           (adjust_proc_param): Rename to adjust_parm_or_field,
9676           add is_signal flag, so signal fields can use it.  Rename
9677           calls to it, add flag to calls.
9678         * ch-decl.c (push_chill_extern_signal): Add function.
9679         * ch-grant.c (decode_decl): Correct signal decl output.
9680           (do_seize): Correct check for process seizure.  Add
9681           code for seized signal decl.
9682         * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9683         * ch-loop.c (get_unique_identifier): Standardize loop
9684           temporary's name to assure that it's not granted.
9685         * ch-parse.y (SIG_NAME): Delete unused token.
9686           (spec_declist): Delete silly printf.
9687           (quasi_signaldef): Add non-terminal.
9688           (sendaction, optsendwith, optsendto, optpriority):
9689           Implement actual working semantics.
9690           (call, empty_untyped_exprlist): Allow empty signal
9691           fields between parens.
9692         * ch-tasking.c: Rename adjust_proc_param calls, add
9693           is_signal flag to calls.  Make instance_type_node a
9694           type, not a TYPE_DECL, change references.  Fix all
9695           CONSTRUCTOR builds.  Add make_signal_struct function.
9696           Move build_instance_type here from lang_init.
9697           (build_tasking_message-type, build_signal_descriptor,
9698           build_chill_send_signal): New functions.
9699         * ch-tree.h: Add, update protos.
9700         * ch-typeck.c (build_chill_cast): Check for NULL expression
9701           type as well as error_mark.
9703 Thu Jun 17 12:28:03 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9705         * Makefile.in (STAGESTUFF): Add chill to list.
9707 Wed Jun 16 07:12:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9709         * Makefile.in: Complete the renaming of ch-process.c
9710           to ch-tasking.c.
9711         * ch-decl.c (push_chill_extern_function): Drop is_process
9712           parameter, and marking process decl trees.
9713           (push_chill_extern_process): New function for
9714           SEIZEd processes.  Lotsa form feeds added for print
9715           readability.
9716         * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9717           (do_seize): New parameter seize_all.  Handle sseizing
9718           processes.
9719           (chill_seize): Pass seize_all parameter.
9720           (chill_grant): Check for __tmp_ prefix, to disable
9721           *either* seizing or granting.
9722         * ch-parse.y (quasi_pdef): Delete is_process parameter for
9723           push_chill_extern_functon, call push_chill_extern_process
9724           for processes.
9725           (specialinit): Comment these rules as needed only until
9726           2-pass compiler is operational.
9727           (extprocedure): Delete is_process parameter.
9728           (simpledec): Delete `sorry' about SIGNAL decls.
9729           (optsigdest): Correct check for process name.
9730         * ch-tasking.c (build_signal_decl): Finish coding.
9731         * ch-tree.h: Add macro to save a SIGNAL's destination
9732           process name in an id node.  Add/change prototype.
9734 Mon Jun 14 18:17:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9736         * ch-actions.c (lang_init): Build instance_type_node.
9737           Change `this' to a runtime function call.
9738         * ch-grant.c (do_seize): Generate tasking-code
9739           variable for seized process.
9740         * ch-lex.l (equal_number): Also accept synonym
9741           name for numeric value.
9742         * ch-parse.y (primval): Add process-related
9743           function calls.
9744           (signaldef, etc.): Rough draft of SIGNAL definition
9745           processing.
9746           (stopaction): Call runtime function.
9747           (pdef): Pop symbol level if ending a process
9748           and there were parameters.
9749           (primval): Call `whoami' runtime function for THIS.
9750         * ch-tasking.c (build_process_header): Be sure
9751           to define the tasking enum, if it hasn't already
9752           been done.  Only call shadow_record_fields if there
9753           are parameters.
9754           (build_tasking_enum): Only call start_enum *after*
9755           checking the already_built flag.
9756           (build_copy_number, get_tasking_code,
9757           build_gen_code, build_gen_inst, build_get_ptype,
9758           build_proc_type): New functions for process-related
9759           builtins.
9760           (build_signal_decl): New function for SIGNAL
9761           declaration - rough draft.
9762         * ch-tree.def (INSTANCE_TYPE): new tree code.
9763         * ch-tree.h: New prototypes.  Defines for instance
9764           type field access.
9766 Sat Jun 12 21:15:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9768         Get start-process action working:
9769         * ch-actions.c (adjust_proc_param): new function,
9770           extracted from build_chill_function_call and called
9771           from there.
9772         * ch-tree.h, ch-grant.c (do_seize): Add process_type
9773           parameter to add_taskstuff_to_list call, prototype.
9774         * ch-parse.y (start_parlist): New non-terminal for
9775           START action.
9776           (startaction): Reference start_parlist, check for
9777           integer-valued process copy-number.
9778           (optstartset): Check instance parameter - must be
9779           an INSTANCE_TYPE location.
9780         * ch-tasking.c (generate_tasking_code_variable): New
9781           function, extracted from tasking_setup and called
9782           from there.  Also called from build_process_header.
9783           (build_process_header): Add process_type parameter
9784           to add_taskstuff_to_list call.  Remove incrementing
9785           of process_type (moved into generate_tasking_code
9786           _variable).
9787           (build_chill_start_process): Complete rewrite.
9788           (add_tasking_stuff_to_list): Add stuffnumber parameter
9789           putit on the list.
9791 Sat Jun 12 06:08:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9793         Getting processes compiled, initialized and granted:
9794         * .cvsignore: Add chill file.
9795         * c-decl.c (shadow_record_fields): Allow PARM_DECL
9796           as well as VAR_DECL.
9797         * ch-actions.c (lang_init): Move build of
9798           initializer_type into ch-tasking.c.  Change
9799           definition of THIS to function call.
9800         * ch-decl.c (massage_param_node): Add comments.
9801           (start_chill_function): Set nested flag in
9802           start_function call based upon current_function_decl,
9803           not as constant zero.
9804         * ch-grant.c (decode_decl): lotsa code by Wilfried to
9805           GRANT process decls.
9806           (finish_chill_module): Completely rewrote interface
9807           to runtime.
9808         * ch-lex.l (THIS): Just return the token code.
9809         * ch-parse: Add THIS token.
9810           (processpar, processparlist): New rules, to collect
9811           process parameters.
9812           (pdef): Add code to pop the process' WITH scope.
9813           (procedure): Set process WITH scope flag to zero.
9814           (process): Move most code into build_process_header.
9815           (primval): Output function call for THIS.
9816         * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9817           make_process_struct, build_process_header): New code
9818           to handle process translation and interface to runtime.
9819         * ch-tree.h: New prototypes.
9821 Thu Jun 10 13:32:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9823         * Makefile.in: Change ch-process.c to ch-tasking.c.
9824           A delayed part of the last change..
9826 Thu Jun 10 11:14:59 1993  Bill Cox  (bill@rtl.cygnus.com)
9828         * .cvsignore: Add 'chill' file.
9829         * ch-actions.c (lang_init): Add new runtime function
9830           __register_process.
9831         * ch-decl.c (push_chill_extern_function): Add is_process
9832           input flag, use it.
9833         * ch-grant.c (decode_decl): Recognize a process for
9834           granting.
9835           (do_seize): Put seized processes onto the tasking_list.
9836           (chill_finish_module_code): Declare init_list entry,
9837           link it onto the init_list.  Call tasking_setup and
9838           tasking_registry.
9839         * ch-lex.l: Make tasking-related variables global,
9840           delete their initialized flags.
9841         * ch-parse.y: Add is_process flag to push_chill_extern_function
9842           calls.  Put processes onto the tasking_list.
9843         * ch-process.c: Renamed to ch-tasking.c.
9844         * ch-tasking.h: New file.
9845         * ch-tree.h: New, adjusted prototypes.
9847 Wed Jun  9 10:59:27 1993  Wilfried Moser  (moser@deneb.cygnus.com)
9849         * chill: This file is replaced by chill.in and will be
9850           generated during 'make' and 'make install'. This script
9851           now finds the correct chillrt0.o and libchill.a during
9852           linking.
9853         * chill.in: New file that replaced chill.
9854         * Makefile.in: Add rules to make chill out of chill.in.
9856 Wed Jun  9 09:03:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9858         * .cvsignore: Add gfloat.h and xlimits.h.
9859         * ch-actions.c (lang_init): Create new type for module-
9860           level initializer list entry.
9861         * ch-grant.c (chill_start_module_code): Rename actual
9862           module-level code to just the modulename, which is
9863           *not* public.
9864           (chill_finish_module_code): Allocate space for initializer
9865           list entry, build real initializer function, which puts
9866           the list entry on the runtime list.  Name the init function
9867           as the module's constructor function.
9868         * ch-tree.h (build_init_struct): Add prototype.
9869         * ch-typeck.c (build_init_struct): Add function, called
9870           from lang_init.
9871         Note: these changes require a new devo/chillrt/chillrt0.c.
9873 Thu Jun  3 17:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9875         * c-decl.c: Fix comment.
9876         * ch-actions.c, ch-grant.c: Standardize front end:
9877           #define first, etc.  Add comments.
9878           (lang_init): Delete unused flag, code for inapplicable
9879           gen-decls option.  (lang_decode_option): Delete
9880           gen-decls option, add grant-only option, flag.
9881         * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9882           ch-typeck.c: Add form feed after front end.
9883         * ch-expr.c: Standardize testing for error_mark node.
9884         * ch-lang.c: Remove unused deep_fold function.
9886 Fri May 21 11:04:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9888         * c-typeck.c (build_binary_op, build_unary_op):
9889           Recognize BOOLEAN_TYPE.
9890         * ch-actions.c (build_chill_unary_op): Remove
9891           some crufty work-arounds.
9893 Thu May 20 19:03:48 1993  Per Bothner  (bothner@deneb.cygnus.com)
9895         * ch-grant.c (decode_constant):  If the granted value is a
9896         cast, make sure to emit an appropriate expression conversion.
9898 Thu May 20 16:35:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9900         * ch-lang.c (build_chill_range_type): Initialize the
9901           precision variable.  Double-negative ranges work now.
9903 Thu May 20 11:24:42 1993  Bill Cox  (bill@rtl.cygnus.com)
9905         * ch-actions.c (build_unary_op): Compound a wretched
9906           hack which hides a BOOLEAN_TYPE from the underlying
9907           C code.
9909 Wed May 19 16:45:54 1993  Bill Cox  (bill@rtl.cygnus.com)
9911         * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9912           from chill_comptypes. (build_chill_unary_op): Give
9913           better name to unsigned flag.
9914         * ch-expr.c (chill_expand_assignment): Correct calling
9915           sequence for setpowersetbits runtime routine.
9916         * ch-grant.c (raw_decode_mode): Give better name to
9917           unsigned flag.  (decode_constant): Check for null
9918           'val' ptr, avoid seg fault.
9919         * ch-lex.l (convert_number):  Give better name to
9920           unsigned flag. (convert_bitstring): Move increment
9921           of bl counter to emphasize that it increments once
9922           per loop.
9923         * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9924         * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9925           constructor if given a singleton set constructor.
9927 Thu May 13 17:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9929         * c-decl.c (pushdecl): Complete May 9 change.
9930         * ch-actions.c (build_chill_unary_op): Set the
9931           TREE_UNSIGNED flag FALSE for raw_decode_mode.
9932         * ch-grant.c (grant_array_type): Correct the May 12
9933           check for circularity.
9934           (raw_decode_mode): Use TREE_UNSIGNED flag to
9935           control range's printing.
9936           (chill_grant): Remove useless, bogus code.
9937         * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9938           flag TRUE for raw_decode_mode.
9940 Wed May 12 18:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9942         * ch-decl.c (push_syndecls, push_modedef): Comment
9943           reminders to check for circular definitions.  Later!
9944         * ch-grant.c (grant_array_type, decode_decl): Prevent
9945           circular definitions in the use of the array's
9946           type name.
9948 Wed May 12 16:06:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9950         * ch-grant.c (grant_array_type): If array_type has
9951           a name, just use it.
9952         * ch-lang.c (build_chill_range_type): Don't force
9953           unsigned ranges on output.
9954         * expr.c (store_constructor): Preclude seg fault.
9956 Wed May 12 07:49:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9958         * ch-actions.c (fold_set_*): Correct tests for
9959           range set-constructor list entries.
9960           (lang_init): Define setpowersetbits function.
9961         * expr.c (store_constructor): Handle non-constant
9962           set constructors.
9964 Tue May 11 18:25:40 1993  Per Bothner  (bothner@cygnus.com)
9966         * ch-lang.c (build_chill_range_type):  If the parent type
9967         is unknown, and the endpoints of the range are integer
9968         constants, use the smallest suitable integer type.
9969         * ch-lang.c (build_chill_range_type):  Remove kludge
9970         for dealing with char ranges.
9972 Tue May 11 15:24:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9974         * ch-actions.c (build_chill_repetition_op): Build a
9975           range-type set constructor if there's only one value
9976           in the repeated constructor.
9977           (fold_set_*): Abort if range value seen, for now.
9978         * expr.c (store_constructor): Handle range-type by
9979           storing bytes rather than bits as much as possible.
9981 Mon May 10 18:45:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9983         * ch-actions.c (invalid{left right}_operand): Add
9984           handlers for REPLICATE_EXPR.
9985           (build_chill_repetition_op): Build constructor list
9986           for repetition of bitstring.
9987         * ch-parse.y (call): Recognize more trees as arrays,
9988           to avoid error msg.
9989           (operand5): Add count, string temporaries, use them.
9991 Mon May 10 16:49:08 1993  Per Bothner  (bothner@cygnus.com)
9993         * ch-grant.c (seize_implied_names):  Fix code that assumed
9994         a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9995         * ch-grant.c (generate_set, grant_parent_of_enum,
9996         grant_parent_enum): Removed unused functions.
9997         * ch-grant.c (raw_decode_mode):  Remove commented-out code.
9999 Mon May 10 10:54:57 1993  Bill Cox  (bill@rtl.cygnus.com)
10001         * ch-grant.c (do_seize, seize_implied_types): Move
10002           result and parameter processing to proper place.
10003           (chill_seize): Mark unseized identifier with
10004           error_mark_node, to avoid excessive errors.
10005         * ch-parse.y (call): Check for ERROR_MARK before
10006           reporting an error.
10008 Sun May  9 17:21:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10010         * c-decl.c (pushdecl): If a strongly-visible name is
10011           seen, in conflict with a weakly-visible name, take
10012           the strongly-visible one and don't complain.
10013         * ch-actions.c (chill_comptypes): Allow chain of ref-
10014           erence types > 1 in length.
10015         * ch-grant.c: Turn disguised for-loops into actual
10016           ones, so continue works.  Delete redundant code in
10017           seize_implied_names.  Reindent.
10018         * expmed.c (store_split_bit_field): Disable abort for
10019           CHILL.
10021 Sun May  9 17:11:33 1993  Per Bothner  (bothner@cygnus.com)
10023         * ch-convert.c (convert):  Move handling of SET_TYPE until
10024         after we've handled de-referencing and such like.
10025         * ch-grant.c (grant_array_type):  Simplify; remove (now-)
10026         bogus call to generate_set.
10027         * ch-grant.c (get_type):  Remove obsolete stuff.
10029 Fri May  7 10:30:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10031         * ch-actions.c (lang_init): Add definition of psslice
10032           runtime routine. (build_chill_binary_op_1,
10033           build_chill_binary_op): Have result type of
10034           TRUTH_ANDIF_EXPR be boolean, not integer.  Some
10035           reindenting.
10036         * ch-convert.c (convert): Use consistent notation
10037           for expression.
10038         * ch-parse.y: Add front-end pass count. (locdec):
10039           Add syntax for other BASED declaration.
10040         * ch-tree.c: Fix comment.
10041         * ch-typeck.c (build_chill_slice): Implement a runtime
10042           call for bitstring slices. (build_chill_cast):
10043           Add code for BITS_BIG_ENDIAN bit loop.
10044           (chill_expand_tuple): Don't pass ref type to
10045           digest_init, only underlying type.
10047 Thu May  6 12:52:14 1993  Per Bothner  (bothner@cygnus.com)
10049         * ch-typeck.c (build_chill_cast):  type_for_size takes
10050         a size in bits, not bytes.
10052 Wed May  5 19:02:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10054         * ch-actions.c: Break out separate routines for set
10055           folding, handle ranges in set_fold_eq and set_fold_ne.
10056           Fix folding as req'd by TTC test.
10057         * ch-grant.c (raw_decode_more): Check for content match
10058           to decide output mode, not pointer identity.
10059         * ch-typeck.c: Add cross-reference comment.
10060         * varasm.c (emit_set_data): Clarify parameter name.
10061           Handle INTEGER_CST as set constructor.
10062           (output_constant): Handle CONSTRUCTOR node for sets.
10063           Apparently forgot to actually 'checkin' this one last
10064           time.
10066 Wed May  5 12:23:58 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
10068         * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
10070 Tue May  4 15:47:44 1993  Bill Cox  (bill@rtl.cygnus.com)
10072         * ch-actions.c (fold_set_expr): new function to fold
10073           set expressions.  Calls inserted into
10074           build_chill_binary_op and build_chill_unary_op.
10075           (build_chill_repetition_op): New function, called
10076           from build_chill_function_call.
10077         * ch-expr.c (chill_expand_assignment): Call
10078           build_chill_repetition_op.
10079         * ch-grant.c (decode_constant): Comment out deep_fold
10080           call.  The earlier fold_set_expr calls should make
10081           this one unnecessary.  Prevent seg fault when name
10082           of structure field is NULL.  Standardize for loop.
10083         * ch-parse.y: Fix comments.
10084           (operand5): build a REPLICATE_EXPR.  Don't call
10085           build_repetition_op until we have a type.
10086         * ch-tree.def (REPLICATE_EXPR): Define tree-code.
10087         * ch-tree.h (build_chill_repetiton_op): Fix proto.
10088         * ch-typeck.c (chill_expand_result): Call
10089           build_chill_repetition_op if needed.
10090         * varasm.c (emit_set_data): Clarify parameter name.
10091           Handle INTEGER_CST as set constructor.
10092           (output_constant): Handle CONSTRUCTOR node for sets.
10094 Mon May  3 13:06:47 1993  Per Bothner  (bothner@cygnus.com)
10096         * ch-typeck.c (build_chill_cast):  Allow more liberality to
10097         casting:  Any discrete type to any non-discrete type that is the
10098         same size as some other discrete type (and vice versa).
10099         * stor-layout.c (layout_type, case SET_TYPE):  If the number
10100         of bits will fit in a char or short, only use that many bits.
10102 Mon May  3 08:22:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10104         * ch-grant.c (decode_constant): Revert interpretation
10105           of SET_TYPE as integer.
10107 Mon May  3 07:55:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10109         * chparse.y (casealternative): Allow empty action list.
10111 Sat May  1 15:07:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10113         * expr.c (expand_expr): Add parameter to __inpowerset
10114           runtime call, to match new runtime.
10116 Sat May  1 14:55:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10118         * ch-actions.c: Cleanup from -Wall.  Reindent.
10119           Redefine __inpowerset to take a 'minval' parameter
10120           that matches the new runtime.  Added comments.
10121         * ch-expr.c (chill_handle_case_label): Handle
10122           NULL or ERROR trees.
10123         * ch-grant.c (get_type): Survive bogus type params,
10124           return empty string.
10125         * ch-tree.c (build_powerset_type): Diagnose powerset
10126           of non-discrete type.
10127         * ch-typeck.c (discrete_type_p): Reindent.
10129 Fri Apr 30 16:08:54 1993  Bill Cox  (bill@rtl.cygnus.com)
10131         * ch-grant.c (decode_constant): Interpret SET_TYPE
10132           with integer value, so we output the same stuff as
10133           the user gave us.
10134         * ch-parse.y: Fix indentation.
10136 Fri Apr 30 09:34:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10138         * ch-actions.c (chill_comptypes): Simplify, correct
10139           integer subrange analysis.
10140         * ch-grant.c (seize_implied_names): Add handling for
10141           PROCESS_DECL, PROCESS_TYPE.
10142           (do_seize): Call seize_implied_names for process,
10143           procedure parameters and return value.
10144         * ch-lang.c (finish_chill_enum): Canonicalize enum
10145           types.
10146         * ch-tree.def (PROCESS_TYPE): Add.
10147         * ch-typeck.c (valid_array_index): Call chill_comptypes
10148           rather than broken macro CH_COMPATIBLE.  The logic
10149           in chill_comptypes will get moved to the macro later.
10151 Thu Apr 29 13:07:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10153         * ch-actions.c (build_chill_lower, build_chill_upper):
10154           Handle enumeration types.
10155           (build_chill_binary_op): Call chill_comptypes
10156           to error check IN arguments.  Change error
10157           messages to say 'mode' rather than 'type'.  Cast
10158           tree codes when build is called.
10159         * ch-expr.c (chill_expand_array_assignment): Call
10160           chill_comptypes to validate assignment args.
10161         * ch-lex.l: Add newline for readability.
10163 Wed Apr 28 15:22:18 1993  Bill Cox  (bill@rtl.cygnus.com)
10165         * Makefile.in (ch-hash.h): Add rule to build this
10166           from chill.gperf.  Not yet used.
10167         * ch-actions.c (build_chill_binary_op): Allow enum
10168           subranges on RHS of IN operator.
10169         * ch-grant.c (decode_constant): Recognize
10170           error_mark_node as empty powerset initializer,
10171           re-indent a bit.
10172         * ch-lang.c (deep_fold): Return error_mark_node for
10173           NULL input pointer or incoming error_mark_node.
10174         * ch-lex.l: Ignore PACK and UNPACK keywords. Return
10175           POS, ROW, and STEP as user-defined names.
10176           (name_or_type): New function for above.
10177         * ch-parse.y: Move token defs for following, comment
10178           them separately: NOPACK, PACK, POS, ROW, STEP
10179         * varasm.c (output_constant): Check for VAR_DECLs in
10180           records & unions, like arrays.  Don't abort.
10182 Tue Apr 27 17:42:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10184         * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
10185           rewrite for generality.
10186         * ch-decl.c (grok_chill_variantdefs): Use chill
10187           comptypes, so that subrange compatibility is ok.
10188           (start_chill_function): Use lookup_name(), not
10189           IDENTIFIER_GLOBAL_VALUE, for full generality.
10190         * ch-expr.c (chill_expand_assignment): Need to
10191           handle non-NOP modify codes here, since C code
10192           in build_modify_expr won't understand powersets,
10193           etc.
10195 Tue Apr 27 09:05:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10197         * ch-actions.c (build_max_min): Assign the set's
10198           base type to the function's return type.
10199           (build_chill_function_call): Before complaining
10200           about parameter mismatches, convert certain actual
10201           parameters.
10202         * ch-expr.c (chill_expand_assignment): Before
10203           complaining about LHS/RHS mismatches, convert
10204           certain RHS expressions.
10205         * ch-grant.c (decode_constant): Deep-fold incoming
10206           expression, so we can output it.
10207         * ch-lang.c (deep_const_expr): New function, called
10208           from const_expr, actually traverses the tree
10209           looking at its leaves for 'const'ness.
10210           (deep_fold): New function to fold already-built
10211           trees.
10212         * ch-parse.y (case_expr): Add whitespace.
10213         * ch-tree.h: Add prototype for deep_fold.
10215 Tue Apr 27 07:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10217         * ch-actions.c (chill_comptypes): Allow enumeration
10218           subranges as compatible with the parent enum.
10219           (build_chill_function_call): Before checking type
10220           compatibility, use convert on typeless expressions,
10221           like constructors.
10222         * ch-expr.c (chill_expand_assignment): Before
10223           checking type compatibility, use convert on
10224           typeless expressions, like constructors.
10225         * ch-lex.l: Add comment.
10227 Thu Apr 22 17:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10229         * .cvsignore: Add genopinit, insn-opinit.c
10230         * c-common.c (binary_op_error): Prevent seg fault on
10231           unknown node code.
10232         * ch-typeck.c (build_chill_array_ref): Remove old
10233           lower-bound-of-array-index-nonzero code.
10234         * expr.c (expand-expr, get_inner_reference): Remove
10235           old lower-bound-of-array-index-nonzero code.
10237 Thu Apr 22 16:01:09 1993  Bill Cox  (bill@rtl.cygnus.com)
10239         * c-decl.c (shadow_record_fields): Add pushlevel for
10240           each PROCESS parameter, too.
10241         * ch-process.c (make_process_struct): First working
10242           version.
10243         * ch-tree.def: Add PROCESS_DECL definition.
10244         * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
10245           for make_process_struct.
10246         * expr.c (expand_expr): Add references to
10247           PROCESS_DECL.  Add #include of ch-tree.h.
10248         * tree.c (decl_function_context): Add check for a
10249           PROCESS_DECL, and #include for ch-tree.h.
10251 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10253         * expr.c (expand_expr): Add missing prototypes, and
10254           parameters to expand_expr call.
10256 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10258         * c-decl.c (shadow_record_fields): Add ability to
10259           handle pointers to records/unions.  For PROCESS
10260           compilation.
10262 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10264         * ch-expr.c (chill_expand_expr): Add missing
10265           parameters to expand_expr calls.  Some trivial
10266           reformatting for readability.
10268 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10270         * ch-lex.l: Make send_*_prio externally visible,
10271           default them to zero, eliminate the init flags.
10272           Same for process_type.
10274 Sat Apr 17 10:59:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10276         * ch-actions.c (build_chill_binary_op): Build a
10277           BIT_FIELD_REF tree for IN_EXPR operations.
10278         * ch-typeck.c (build_chill_array_ref): Build a
10279           BIT_FIELD_REF tree for access to packed array of
10280           bits.
10282 Fri Apr 16 12:33:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10284         * ch-parse.y (EXIT action): Improve error checking,
10285           messages.
10286         * ch-typeck.c (chill_expand_tuple): Remove code to
10287           pack sets (moved to varasm.c long ago).
10288         * varasm.c (unpack_set_constructor): Rename size to
10289           bit_size, since 'size' always means bytes.
10290           (pack_set_constructor): Rename size to wd_size,
10291           since 'size' always means bytes.
10292           (output_constant): Set size to zero, so that extra
10293           bytes of padding aren't output after set constants.
10295 Fri Apr 16 11:57:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10297         * .cvsignore: Add .gdbinit.
10298         * ch-decl.c (start_chill_bindings): Add function name
10299           to binding contour's exit_label for EXIT stmt.
10300         * ch-parse.y (EXIT action): Call lookup_name to avoid
10301           inserting label for function name.  Also check
10302           IDENTIFIER_LABEL_VALUE for label's decl.
10303           (caseaction, beginendblock, ifaction): Call
10304           stamp_nesting_label to put action's label into
10305           contour for EXIT to find.
10307 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10309         * expr.c (expand_expr): Unify, clean up handling of
10310           IN_EXPR, and handling of bit-string element ref.
10311           Now, all goes through IN_EXPR handler.
10312         * stmt.c (stamp_nesting_label, expand_exit_labelled):
10313           New functions, which allow either label or
10314           function decls.
10316 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10318         * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
10319           ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
10320           ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
10321           ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
10322         * ch-actions.c (build_chill_binary_op): Move runtime function call
10323           to expr.c.  Just build a tree here.  Clean up error checking.
10324         * ch-convert.c (convert): Simply store a type into an expression if
10325           TREE_TYPE (expr) == NULL.  Prevent error if an enum is to be
10326           converted to a set of such enums.
10327         * ch-loop.c (init_loop_counter): Restore error msg for undeclared
10328           variable if no local scope is to be created for the loop.
10329         * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
10330           remove redundant code which wasn't ever called.
10332 Wed Apr 14 07:54:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10334         * .cvsignore (y.tab.c) : Add to list.
10335         * ch-convert.c (convert): Check pointers better - avoid NULL reference.
10336           Remove redundant check for ERROR_MARK - already checked earlier.
10337         * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
10338           error_mark_node.
10340 Tue Apr 13 16:00:37 1993  Per Bothner  (bothner@cygnus.com)
10342         * c-decl.c (start_function):  If there is a previous
10343         function declaration of the same name, steal its RTL.
10344         This is a kludge needed for forward declarations of
10345         nested functions.
10346         * ch-decl.c (push_chill_extern_function), ch-tree.h:  New
10347         function, for external and seized function declarations.
10348         Make sure to use permanent obstack.
10349         * ch-parse.y (quasi_pdef, extprocedure):  Use new function.
10351         * ch-grant.c (chill_finish_module_code):  Since module
10352         function is no longer visible,, can't get it using
10353         lookup_name().  Use current_function_decl instead.
10355         * ch-decl.c (build_chill_function_type):  Add void_type_node
10356         to end of parameter types list.
10358         * ch-grant.c (chill_start_module_code):  Make sure module
10359         function isn't visible (and hence isn't granted).
10361 Tue Apr 13 15:48:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10363         * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
10364           current contour for DO FOR EVER loops.
10366 Tue Apr 13 14:37:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10368         * ch-parse.y (actionstatement): Add error rule.  Delete
10369           POP_UNUSED_ON_CONTEXT.  Add comments about label name usage.
10370           (nohandleraction): Better error check in EXIT processing.
10371           (optexprlist): Comment out make_function_rtl call.
10372           (seizestatement): Change error to warning.
10374 Tue Apr 13 08:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10376         * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
10377           call.
10378         * ch-loop.c (begin_chill_loop): Take loop label as parameter.  Stamp
10379           its name into the current contour's exit_label, for EXIT to use.
10380         * ch-parse.y: (actionlabel): Save label tree in global variable.
10381           (actionstatement): Clear label to NULL when action is finished.
10382           (handlerstatement, nohandlerstatement): Split actions into
10383           categories which do/don't permit exception handlers.
10384           (exitaction): Move code into nohandleraction, make it work.
10385           (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
10386         * ch-tree.h: Add parameter  to begin_chill_tree prototype.
10387         * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
10388           Note: This implementation of EXIT only exits from loops, not yet
10389                 from other bracketted statements.
10391 Mon Apr 12 13:41:55 1993  Per Bothner  (bothner@rtl.cygnus.com)
10393         * ch-grant.c (chill_grant):  Remove obsolete code.
10395         * ch-decl.c (push_synmode, push_newmode):  Merged to yield ...
10396         * ch-decl.c (push_modedef):  ... w/ slightly different interface.
10397         * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
10398         (modedefinition):  Use new push_modedef function.
10399         * ch-parse.y (modedefinition):  Don't depend on inherited
10400         attributes (- implemented incorrectly!): Use a global variable
10401         parsing_newmode to distinguish synmode and newmode.
10403 Mon Apr 12 08:10:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10405         * ch-loop.c: Diffuse cleanup after big functional changes.
10406         * ch-parse.y: Eliminate temporary variables, now unnecessary.  Use
10407           parse-time stack instead.
10408         * ch-tree.h: Change build_chill_iterator prototype.
10410 Sun Apr 11 15:50:33 1993  Bill Cox  (bill@rtl.cygnus.com)
10412         * ch-convert.c (convert): Replace an ERROR_MARK type - from a
10413           untyped_expr with the given type.  Move chill_expand_case_expr
10414           call inside chill_expand_expr.
10415         * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
10416           chill_handle_case_label, chill_expand_case_expr):  Move to ch-expr.c
10417           from ch-typeck.c.
10418         * ch-loop.c: Major reorganization to support multiple iterators in
10419           DO FOR loop, very little new code, just a re-org.
10420         * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
10422 Sat Apr 10 14:40:12 1993  Bill Cox  (bill@rtl.cygnus.com)
10424         * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
10425         * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
10426           member.
10427         * ch-lex.l (equal_number): Add function to look in the input for '='
10428           followed by a decimal literal.  Call it from directive scanning.
10429           (start state 'ccitt'): Deleted, unused.  Moved unused, but reserved,
10430           tokens to NORMAL state.
10431           (compiler_directive): Replaced by equal_number.  Now the only
10432           recursive call to yylex happens in check_newline at the beginning
10433           of a compilation.
10435 Sat Apr 10 09:55:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10437         * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
10438         * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
10439           'reserve' them.
10440         * ch-parse.y (case_expr): Move code into ch-actions.c.  There will
10441           need to be much more written.
10442         * ch-tree.def (VARY_ARRAY_REF): Add comment.
10443         * ch-tree.h (build_chill_case_expr): Add prototype.
10444         * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
10445           type to the expr.  Check for CASE_EXPR, call expand_case_expr.
10447 Sat Apr 10 01:10:51 1993  Per Bothner  (bothner@rtl.cygnus.com)
10449         * ch-parse,y (in_pseudo_module): New variable.  Try if we're
10450         in a seizefile, but not in a module nested in the seizefile.
10451         Use for backwards compatibility with old grantfiles.
10452         * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
10453         If in_pseudo_module, grant new declaration.
10454         * ch-decl.c (pushd_newmode):  If there is a granted previous
10455         incomplete type, fix it up.
10456         * ch-grant.c (seize_implied_names):  Do remaining types.
10457         Guard against recursion.
10458         * ch-tree.h (IDENTIFIER_ENUM_VALUE):  Removed, not used.
10459         * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
10460         (finish_chill_enum):  Enum constants are marked with
10461         CH_DECL_ENUM so they don't get written to the grantfile.
10462         * ch-tree.h (IDENTIFIER_GRANTED_VALUE):  Allow fast seizing.
10463         * ch-lex.l:  Re-write to use start states, to avoid calling
10464         yylex() recursively.
10465         * ch-lex.l (compiler_directive);  This is now obsolste. FIXME.
10466         * ch-lex.l:  Call push_module and pop_module when reading a
10467         seizefile.  This creates a pseudo-module.
10468         * ch-parse.y:  Clean up handling of empty declarations and
10469         action statements; semicolons are now optional a number of
10470         places.
10471         * ch-parse.y:  Remove some bogus tests for "statement
10472         out of sequence" (they're both legal and work).
10473         * varasm.c (mak_function_rtl):  Remove  kludge that may
10474         not be necessary (and loses anyway).
10476 Fri Apr  9 09:37:38 1993  Bill Cox  (bill@rtl.cygnus.com)
10478         * ch-expr.c (chill_expand_array_assignment): Remove false error about
10479           arrays that are too small.
10480         * ch-parse.y (callaction): Don't pass an error_mark_node to
10481           c_expand_expr_stmt.
10483 Fri Apr  9 00:26:54 1993  Per Bothner  (bothner@rtl.cygnus.com)
10485         * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
10486         New macros.
10487         * ch-actions.c (build_chill_function_call):  Use latter.
10488         * ch-typeck.c (chill_similar):  Fix typo.
10489         * ch-grant.c (raw_decode_mode):  Handle ENCAPSULATED_ARRAY_P
10490         parameter types.
10491         * ch-grant.c (seize_implied_names):  Handle ranges of enums.
10492         * ch-grant.c (do_seize):  Set DECL_SOURCE_FILE and _LINE of
10493         seized declaration to be the point of the seize itself.
10494         * ch-grant.c (chill_grant), ch-tree.h:  Add a parameter
10495         which is the list (in order) of decls in the module.
10496         Don't reverse the getdecls() list; that is handled by caller.
10497         * ch-grant.c (chill_grant):  Test that a declaration is
10498         visible before writing it.
10499         * ch-parse.y (push_module):  Make sure to hide declarations
10500         from surrounding module.
10501         * ch-parse.y (pop_module):  Restore those declarations.
10502         * ch-parse.y (pop_module): This function is now responsible
10503         for writing out for calling chill_grant() to the grant file.
10504         * ch-actions.c (lang_finish):  Remove calls to chill_grant().
10506 Thu Apr  8 16:56:52 1993  Bill Cox  (bill@rtl.cygnus.com)
10508         * ch-actions.c (build_char_array_expr): Add handling of varying
10509           arrays in relational expressions.
10510         * ch-decl.c: Add prototype for lookup_name_current_level.
10511         * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
10512           so its length is used as the temp's size.
10513           (chill_expand_array_assignment): Correct for varying := varying
10514           assignment, clean up.
10515         * ch-typeck.c: Add prototype for require_complete_type.
10517 Wed Apr  7 16:41:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10519         * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
10520           diffuse changes to fix location loops.
10521         * ch-parse.y (location): Remove ref through NULL ptr.
10523 Wed Apr  7 13:42:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
10525         * ch-decl.c (massage_param_node):  New function.
10526         It handles the LOC/IN/OUT/INOUT parameter distinction,
10527         as well as calling build_chill_array_parm_type if needed.
10528         * ch-tree.h (massage_param_node):  New prototype.
10529         * ch-decl.c (push_parms):  Use new massage_param_node().
10530         * ch-parse.y (pmodearg):  Use new massage_param_node().
10531         * ch-parse.y (formpar):  Don't call build_chill_array_parm_type;
10532         now handled by massage_param_node.
10533         * ch-typeck.c (my_build_array_ref):  Handle non-zero array
10534         lower bounds.
10535         * ch-actions.c (build_chill_function_call):  If the formal
10536         parameter is a pseudo record wrapped around an array, make
10537         sure we wrap the actual parameter in a record CONSTRUCTOR.
10538         * ch-typeck.c (build_chill_array_parm_type):  Make sure
10539         the pseudo struct type is allocated on the permanent_obstack.
10540         * ch-parse.y (location):  Remove thinko.
10541         * ch-actions.c (chill_comptypes):  Comment out test for
10542         NEWMODEness - it gets broken by the forward declaration hacks.
10544 Tue Apr  6 18:05:40 1993  Bill Cox  (bill@rtl.cygnus.com)
10546         * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10547         * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10548         * ch-parse.y (location): Do build_component_ref for an array wrapped
10549           in a structure.
10550         * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10551         * ch-typeck.c (build_chill_array_parm_type): Add function, move
10552           build_varying_struct here from ch-actions.c.
10554 Mon Apr  5 19:56:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10556         * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
10557           rather than in-line code - tests LOW and HIGH values.
10558         * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10559         * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10560           isn't zero.
10562 Mon Apr  5 15:45:10 1993  Bill Cox  (bill@rtl.cygnus.com)
10564         * ch-typeck.c (my_build_array_ref): Add some more code from
10565           build_array_ref.  Change checks, error messages to mention
10566           'discrete types'.  I.E. types which don't kiss and tell..
10568 Sat Apr  3 09:27:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10570         * ch-except.c, ch-expr.c: Turn externs into prototypes.
10571         * ch-grant.c (chill_grant): Remove orphan #else.
10572         * ch-tree.h: Add prototype for build_chill_bin_type.
10573         * ch-typeck.c: Turn externs into prototypes, delete code which
10574           was commented out in chill_expand_return; it will never be used.
10576 Fri Apr  2 21:55:14 1993  Per Bothner  (bothner@rtl.cygnus.com)
10578         Major re-write of New module/seize/grant stuff.
10579         Now, a grantfile is a spec module and contains all the
10580         top-level declarations of the granting module, not just
10581         those that are granted.  It also contains explicit grant
10582         statements naming those declared names that are granted.
10583         It also has seize statements and use_seize_file directives
10584         to correctly handle transitive dependencies.
10586         * ch-parse.y:  Change to allow multiple modules per source file.
10587         Allow spec modules (including quasi definitions) as well as
10588         regular modules.
10589         Allow spec modules inside normal modules;  these behave as if
10590         they were outermost.  This violates the Blue Book, but is
10591         needed by the new grantfile mechanism.  (A grant file is a
10592         spec module that gets included by the use_seize_file directive.)
10593         * ch-parse.y (struct module *current_module, push_module,
10594         pop_module):  Support module nesting (for spec modules only).
10596         * ch-tree.h (struct module): New.
10597         * ch-grant.c (granted_decls):  New list of declarations
10598         that have been granted into the outermode pseudo-module.
10599         * ch-grant.c (decode_mode):  If the decl has a name,
10600         always write the name, not just if the decl has already
10601         been written.  Since we write out all decls, we can assume
10602         it will be written later, and depend on the forward
10603         declaration kludges to catch it.
10604         * ch-grant.c (decode_decl):  Don't write out _EXTERN.
10605         Instead write out standard (Blue Book) quasi-definitions.
10606         * ch-grant.c (push_granted):  New function.
10607         * ch-grant.c (seize_implied_names):  New function.  Re-write
10608         how set element names are seized when a set type is seized.
10609         * ch-grant.c (chill_seize):  Work by seraching the
10610         granted_decls list and copying the declaration.
10611         * ch-grant.c (chill_grant):  Write all declarations
10612         declared in this module.  Write GRANT statements for
10613         those granted.   seize statements for decls seized from
10614         other modules.  Write extra syntax to make a complete
10615         spec module.
10616         * ch-grant.c (grant_use_seizefile):  Copy use_seize_file
10617         directives into grant file.
10618         * ch-lex.l (setup_seizefile_read):  Call grant_use_seizefile.
10620         * ch-lex.l (struct input_state, current_input_state,
10621         push_input_file, pop_input_file):  New (type, variable,
10622         function*2).  Used to save and  restore state on an input file.
10623         * ch-lex.l:  Clean up to handle nested input seizefiles
10624         (needed by new grant/seize mechanism.
10625         * ch-lex.l (skip_to_end_of_directive):  New function.
10626         * ch-lex.l (compiler_directive: USE_SEIZE_FILE):  Make sure
10627         we skip to the end of the directive *before* we switch
10628         input files.
10629         * ch-lex.l (setup_seizefile_read):  Prevent reading the
10630         same seizefile twice (otherwise likely with new grant/seize).
10631         * ch-lex.l:  Recognize SPEC.  Misc cleanups.
10633         * ch-parse.y:  Fixed foreward references of types.
10634         Removed the unknown_type_node crock.
10635         * ch-decl.c:  Remove all uses of unknown_type_node.
10636         Check for TYPE_SIZE zero instead.
10637         * ch-decl.c (fixup_unknown_type):  Make sure new mode
10638         gets copied into old mode.  Merge their variant chains.
10639         * c-decl.c (lookup_name_current_level):  Make non-static.
10640         * ch-decl.c (lookup_name_current_level):  No longer needed.
10642         * ch-parse.y (call):  Allow an implicitly defined function
10643         name following the CALL keyword.
10644         * ch-tree.h (struct lang_identifier): Add implicit_decl,
10645         and make sure order of fields matches c-tree.h.
10647         * ch-actions.c (lang_init, build_allocate_memory_call,
10648         build_allocate_globals_memory_call):  Fix names (add initial '_')
10649         and prototypes of _allocate_[global_]memory (2nd param is ref).
10650         Use build_chill_function_call, not build_function_call,
10651         so the reference parameter gets handled.
10652         * ch-actions.c. (lang_init):  Make sure boolean_{true,false}_node
10653         have boolean_type_node as their types.
10654         * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10655         work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10657         * ch-except.c:  Make sure an end_label is generated,
10658         and jump to it if there is no exception.
10660         * ch-convert.c (convert_to_reference):  Strip off NOP_EXPR casts.
10661         * expr.c (expand_expr):  Handle NOP_EXPR as Chill-style casts.
10662         (Need cleaning up and FSF installation!)
10663         * ch-parse.y:  If taking the address of a cast, move the
10664         ADDR_EXPR inside the NOP_EXPR.
10666         * ch-typeck.c (my_build_array_ref):  Simplified, more suitable
10667         versions of build_array_ref from c-decl.c.  (E.g. don't barf
10668         if index type is char or bool.)
10669         * ch-typeck.c (build_chill_array_ref):  Use my_build_array-ref.
10671         * ch-typech.c (build_chill_bin_type):  New function.
10672         Support BIN(N) range type specification.
10673         * ch-parse.y (mode2), ch-lex.l:  Recognize BIN(N).
10675         * ch-tree.h (CH_SIMILAR):  Redefine in terms of chill_similar.
10676         * ch-typeck.c (chill_similar):  New function.  Recognize that
10677         that range types are similar to their parent types.
10679         * ch-tree.h:  Declare flag_local_loop_counter.
10680         * ch-loop.c:  Whether the loop variable is local to the loop
10681         in now controlled by flag_local_loop_counter, instead of
10682         #ifdef'd on CREATE_SCOPE.
10683         * ch-actions.c (lang_decode_option):  Recognize flags
10684         "-f[no-]local-loop-counter".
10685         * toplev.c (lang_options):  Add Chill flags -f[no-]local-loop-counter.
10687         * varasm.c (make_function_rtl):  Due to problems with forward
10688         references, don't rename nested functions in Chill.  (Kudge!)
10690 Sun Mar 28 10:12:45 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
10692         * ch-lex.l (push_back, readstring): Fix prototypes.
10694 Fri Mar 26 18:32:15 1993  Bill Cox  (bill@rtl.cygnus.com)
10696         * ch-parse.y: Put %type directives back into alpha order.
10697           (variant_alternative): Simplify error_mark test.
10698           (variantfields, varianthack): Add error_mark checks.
10700 Fri Mar 26 13:36:23 1993  Bill Cox  (bill@rtl.cygnus.com)
10702         * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10703         * ch-parse.y (get_type_of): Add function to deal with possible fwd
10704           declared type name.  Call it from lotsa places.  Add lotsa checks
10705           for error_mark_node.  Standardize indentations.
10707 Thu Mar 25 15:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
10709         * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10710           for array assignments.
10711         * ch-parse.y (action): Add recognition for allocate_memory and
10712           allocate_global_memory system calls.
10713           (mode2): Remove ill-conceived error check that broke REFs to
10714           as-yet-undeclared types.  Check for IDENTIFIER_NODE, lookup its
10715           DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10716           (variantfields, varianthack): Clean up.
10717           (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10718           there, pass TREE_TYPE of decl to grok_fixedfields.
10719           (labellist): Explicitly assign error_mark_node to signal error.
10720         * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10721           rather than seg faulting.
10723 Thu Mar 25 10:35:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10725         * ch-actions.c (lang_init): build_function_type for allocate_memory
10726           and allocate_global_memory runtime routines.  Move discrete_type_p
10727           into ch-typeck.c.
10728         * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10729           in build_chill_cast.
10731 Wed Mar 24 16:25:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
10733         * ch-grant.c:  Don't grant previously seized names.
10735 Tue Mar 23 15:25:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10737         * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10738         * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10739           avoid abort.
10741 Tue Mar 23 09:03:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10743         * ch-actions.c (build_char_array_expr): Just build a type for the
10744           result of a CONCAT_EXPR, and pass the tree back.
10745           chill_expand_array_assignment can do a better job of
10746           code-generation.
10747         * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10748           code.
10750 Mon Mar 22 12:42:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
10752         * ch-except.c (start_handler_array):  Make sure the handler
10753         array and its type get on the permanent obstack.
10754         * ch-grant.c (write_grant_file):  Don't write the _INIT=name
10755         specifier:  It isn't needed, and loses (because of funny
10756         characters in the chill_initializer_name).
10757         * ch-decl.c (push_synmode):  Set TYPE_NAME(mode) = syndecl.
10758         * ch-lang.c (finish_chill_enum):  Don't allocate a dummy
10759         TYPE_DECL for the enum.  I don't think it is needed (?),
10760         and removing it is needed for the change above.
10762         * ch-grant.c (grant_array_type, decode_mode):  Remove unused
10763         'decl' parameter.
10764         * ch-grant.ch (raw_decode_mode):  New function, based on old
10765         decode_mode.
10766         * ch-grant.c (decode_mode);  This is now just a wrapper around
10767         raw-decode_mode - but does not call raw_decode_mode if the
10768         type is named and has already been emitted.
10770 Fri Mar 19 11:55:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10772         * ch-actions.c: Add prototypes, remove unused variables.  Attempt to
10773           continue generating grant file in presence of error (Wilfried's
10774           patch to lang_finish).
10775         * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10776           after each statement.  Move convert call into
10777           chill_expand_assignment from ch-parse.y.
10778         * ch-grant.c: Generally re-order, clean up.  Include Per's decode_mode
10779           simplification.  Include commented-out hack in decode_mode to return
10780           type's name if type SEIZEd or already GRANTed in this file.
10781         * ch-lex.l: Add prototypes.
10782         * ch-parse.y (assignaction): Move convert call into
10783           chill_expand_assignment.
10785 Thu Mar 18 16:04:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10787         * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10788           comparison.
10789         * ch-decl.c: Add prototypes, correct error message spelling, remove
10790           unused variables.
10791         * ch-lang.c (build_chill_range_type): Add error message.  Add prototypes.
10792           Correct comment spelling.
10793         * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10794           assignment in conditional.
10795         * ch-loop.c: Add prototypes, remove unused variable.
10796         * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10797           parameter is seen, don't count it in structured_variable_list.  Pre-
10798           vents seg fault when only WITH operand is invalid.
10799         * ch-parse.y (label_spec): Correct assignment within IF expression which
10800           was intended to be equality test.  Remove unused variables.
10801         * ch-tree.h: Add prototype.  Remove unused EXCP_CODE enumeration, and
10802           prototyping editorial comments.
10803         * ch-typeck.c: Disable generation of code to validate array index for
10804           now.  Should be done as a call-back from more generic array_ref code.
10805           Clean up parameter checking.  Remove unused variables.
10807 Fri Mar 12 11:57:32 1993  Bill Cox  (bill@rtl.cygnus.com)
10809         * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10810         * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10811           build_char_array_expr.
10812         * ch-convert.c (convert): protect against seg fault, if type == NULL.
10813         * ch-expr.c (chill_expand_expr): Add FIXME comment.
10815 Fri Mar 12 11:04:02 1993  Bill Cox  (bill@rtl.cygnus.com)
10817         * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10818           Thanks very much to dje!
10820 Thu Mar 11 21:06:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10822         * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10823           Move CONCAT_EXPR handling from binary_op to array_expr.  Add
10824           handling for relationals between varying arrays to array_expr.
10826 Thu Mar 11 19:20:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10828         * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10829           *BIT* length of powersets and arrays of BOOLs.
10830           (invalid_left_operand, invalid_right_operand): Disallow relationals
10831           with arrays of BOOL as operands.
10832         * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10833           comparing pointers.
10834         * ch-decl.c (push_newmode): Re-indent.
10835         * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10836           and arrays of BOOLs.
10837         * ch-lang.c (build_chill_array_type): Add parameter error checking.
10839 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10841         * expr.c (store_constructor): Handle set construction.
10842         * varasm.c (output_constant): Prevent seg fault - terminate case
10843           alternative with a 'break'.
10845 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10847         * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10848         * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10849         * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10851 Mon Mar  8 13:16:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10853         * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10854           be folded.
10856 Mon Mar  8 10:13:57 1993  Bill Cox  (bill@rtl.cygnus.com)
10858         * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10859           Correct some non-standard indentations.
10861 Fri Mar  5 14:58:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10863         * ch-actions.c: Fix up comment.
10865 Thu Mar  4 18:05:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10867         * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10868           negating the result of calling __eqpowerset.  New function
10869           discrete_type_p().
10870         * ch-grant.c (get_tag_value): Don't seg fault referring to an
10871           anonymous enumeration's name.
10872         * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10873         * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10874         * ch-parse.y (label_spec): redefine variant structure label_spec
10875           to agree with the Z.200 spec.
10876                      (locdec): Error if set/bitstring initialized with a tuple.
10877                      (case_label, arrayindex): Use new discrete_type_p
10878                      function.
10879         * ch-process.c: Fix typo.
10881 Wed Mar  3 14:30:53 1993  Per Bothner  (bothner@rtl.cygnus.com)
10883         * ch-lang.c, ch-tree.h: Rename build_range_type to
10884         build_chill_range_type.  Call new build_range_type() in tree.c.
10885         * ch-parse.y:  Call build_chill_range_type as approriate.
10886         * ch-typeck.c (build_chill_cast);  Clean up.
10888 Wed Mar  3 09:36:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10890         * ch-parse.y: Define CONTINUE_EVENT token.
10891         * ch-parse.y (mode2): Give error message for SYN modea = modeb
10892           where modeb is undefined.
10894 Tue Mar  2 20:16:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10896         * ch-actions.c: Add builtin function descriptions for memset and
10897           bitsetpowerset.  Allow build_chill_num expression to exceed 16 bits,
10898           but not 32.
10899         * ch-tree.h: Correct chill_handle_case_default prototype.
10900         * ch-actions.h, ch-lex.h: Add prototypes.
10901         * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10903 Thu Feb 25 17:35:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10905         * c-decl.c (init_decl_processing): Disable creation of C-specific
10906           builtin functions.  They pollute the CHILL name space.
10907         * stor-layout.c (variable_size): Allow variable-size objects at file
10908           scope, for CHILL.
10910 Fri Feb 26 07:14:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10912         * c-decl.c (finsh_decl): Don't output non-constant storage size
10913           error for CHILL
10914         * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10915           call in build_chill_cause_exception.
10916         * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10917         * ch-loop.c (build_temporary_variable): New function
10918         * ch-process.c: Call build_temporary_variable, spell start_process
10919           correctly.
10920         * ch-tree.h: Extern for build_temporary_variable
10922 Thu Feb 25 12:09:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10924         * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10925           builtins - they pollute the CHILL name space.
10926         * ch-typeck.c (valid_array_index): Correct upper-bound check.
10927         * expr.c (expand_expr): Use actual library name for __inpowerset
10928           builtin.
10929         * stor-layout.c (variable_size): Disable complaint about variable-
10930           size type or decl at file scope.  Perhaps later this s.b. a warning.
10931         * varasm.c (emit_set_data): Add function.
10932           (output_constant): Call new emit_set_data function for VAR_DECLs,
10933           in addition to CONSTRUCTORs.
10935 Thu Feb 25 11:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
10937         * ch-actions.c: Change all builtin functions names to their
10938           actual library names.  Change references to boolean_type_node
10939           to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10940           convention.
10941           build_set_expr: Remove length parameter, call powersetlen() instead.
10942             remove handling of CHAR arrays - they're handled in build_char_array_expr.
10943             Call __eqpowerset to test for equality - we can't use a byte-length -
10944             need bitcount instead.
10945           build_chill_compound_expr, internal_build_compound_expr: Copy from C
10946             version that does stuff we don't want.
10947           build_binary_op: Check for in_size_in_bytes return < 0, indicating
10948             size is changeable at run time.  Build two memcpy calls to implement
10949             string concatenation.
10950           powersetlen: Add function.
10951           build_chill_card: Call powersetlen.
10952           build_chill_max_min:  Common code for powerset max/min.
10953           build_chill_length: Move VARYING array handling before regular char
10954             array handling.
10955         * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10956           the VARYING status of the target to do this correctly.  Use powersetlen
10957           for the powerset operations, not a byte length.
10958         * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10959           for each CHILL loop, as Z.200 requires.  Add powerset and error flags
10960           to loop structure.  Evaluate user's powerset expression into a temp,
10961           scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10962           for powerset loop.  Only do loop-end assignments if NOT a powerset
10963           loop, which has much less overhead now.
10964         * ch-tree.h: Add prototype for powersetlen.
10966 Fri Feb 19 08:40:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10968         * ch-lex.l (convert_number): Evaluate number and pass it as
10969           HOST_WIDE_INT.
10971 Fri Feb 19 08:56:44 1993  Michael Tiemann  (fs_tie at rcsw18)
10973         * ch-typeck.c (build_chill_array_ref): Handle newmodes
10974         correctly.
10976         * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10977         we are going to return 0.
10979         * ch-convert.c (convert_to_reference): Don't use
10980         TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10981         (which must match the type of the expr).
10983         * ch-grant.c (chill_seize): Don't let a type be copied just
10984         because we are seizing it.
10986         * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10987         TYPE_MAX_VALUE to integer type.
10989         * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10990         tree type of the bounds.
10991         (build_loop_top): type of GE_EXPR and LE_EXPR is
10992         boolean_type_node, not lp->iter_type.
10993         (for_location): Ditto.
10995         * ch-action.c (build_chill_lower,build_chill_upper): Handle
10996         ENUMERAL_TYPE.  Also, handle different kinds of arguments more
10997         cleanly.
10999         * ch-parse.y (iteration): Convert start_exp and end_exp to
11000         match the type of modename.
11002         * ch-grant.c (chill_seize_aggr): Search also through anonymous
11003         types.
11005         * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
11006         already been seized, and if so, do nothing.
11008         * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
11009         comes out error_mark_node, set ERRONEOUS.
11011         * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
11012         don't use it.
11014         * ch-action.c (chill_comptypes): Test for structural
11015         equivalence of enums.
11017         * ch-typeck.c (build_chill_array_ref): Convert INDEX to
11018         TYPE_MIN_VALUE of DOMAIN if the types are compatible.
11020         * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
11021         ARRAY_TYPE, seize the domain type if its a set.
11023 Thu Feb 18 20:02:15 1993  Per Bothner  (bothner@rtl.cygnus.com)
11025         * c-typeck.c (process_init_constructor):  Emit error if some
11026         array elements are not initialized.
11027         * c-typeck.c (process_init_constructor):  Call digest_init()
11028         recursively to expand default_value.
11029         * ch-expr.c (chill_expand_array_assignment):  Simplify, and
11030         handle the case that the lhs has dynamic size (e.g. a slice).
11031         * ch-parse.y (elementlist):  Handle the case that tupleelement
11032         generates more than one TREE_LIST node.
11034 Thu Feb 18 12:40:56 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
11036         * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
11037         * c-typeck.c (lookup_field): add function, calls.
11038         * ch-actions.c (build_chill_binary_op): figure return_type differently.
11039         * ch-convert.c (convert_to_reference): return error_mark_node,
11040           STRIP_NOPS.  (convert): Braces for readability.
11041         * ch-decl.c (build_chill_function_type): accept typespec as parm.
11042           Handle exceptions.
11043           (grok_chill_variantdefs): call comptypes, not chill_comptypes.
11044         * ch-expr.c (chill_expand_assignment): handle references.
11045         * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
11046         * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
11047           call convert.  Generally handle reference types.
11050 Thu Feb 18 09:30:11 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
11052         * ch-actions.c (chill_comptypes): Figure out which newmode or
11053           synmode decls look most canonical.
11054         * ch-convert.c (convert): handle location conversions of records,
11055           unions and arrays.
11056         * ch-decl.c (fixup_unknown_type): changes for variant records
11057         * ch-parse.y (tupleelement): avoid confusing digest_init.
11058         * ch-typeck.c (build_chill_array_ref): give element ref the
11059           type of the ELEMENT, not the array (Bill Cox).
11061 Wed Feb 17 11:52:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11063         * ch-parse.y: change push_newmode and push_synmode interfaces.
11064         * ch-actions.c (build_chill_binary_op): convert operands.
11066 Wed Feb 17 10:54:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11068         * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
11069           handle reference types.
11070         * ch-decl.c (push_newmode, push_synmode): rewritten
11071         * ch-process.c (make_process_struct): new push_newmode interface.
11072         * ch-typeck.c (build_chill_cast): change interface, error checks.
11074 Wed Feb 17 09:50:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11076         * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
11077           code.
11078         * ch-typeck.c (valid_array_index): new function.
11080 Tue Feb 16 22:36:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11082         * ch-convert.c (convert):  Slightly more correct conversion
11083         for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
11084         * ch-expr.c (chill_expand_array_assignment):  Invoke
11085         __builtin_memcpy using build_function_call, not directly at
11086         the rtx level (which doesn't work).
11087         * ch-typeck.c (build_chill_slice):  First attempt at slices.
11088         * ch-tree.h,  ch-typeck.c (build_chill_slice_with_range,
11089         build_chill_slice_with_length):  New functions.
11090         * ch-parse.y:  Use new slice-building functions.
11091         * expr.c (get_inner_reference):  Subtract low bound of
11092         array when doing an ARRAY_REF.
11094 Tue Feb 16 14:17:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11096         * ch-actions.c (build_chill_function_call): better comments.
11097         * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
11098         * ch-parse.y: indentation cleanup
11100 Tue Feb 16 12:03:53 1993  Michael Tiemann  (tiemann@cygnus.com)
11102         * ch-decl.c (grok_chill_variantdefs): Really implement variant
11103         records for CHILL.
11104         * ch-grant.c (get_tag_value): New function.
11105         * ch-grant.c (decode_mode): Grant variant records.
11107         * ch-grant.c (chill_seize): If we seize a set, seize the set
11108         values.
11110         * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
11111         constructs.
11113         * ch-parse.y (EMPTY): New pseudo-token to disambiguate
11114         variant_alternatives.
11115         (current_fieldlist): New variable to help processing tag
11116         declarations in variant records.
11117         (fields): Renamed from structdef.
11118         (field): Renamed from fields.
11119         (varianthack): New non-terminal to handle parsing ambiguity
11120         for variant records.
11121         (optlabellist): Changed to preserve CONST_DECLs when they are
11122         parsed.
11124         * ch-tree.h (TYPE_TAGFIELD): New macro.
11125         (TYPE_TAG_VALUES): Ditto.
11127 Mon Feb 15 00:49:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11129         * ch-grant.c (decode_mode):  Fix output for powerset modes.
11130         * ch-grant.c (decode_constant):  Support grant output of
11131         powerset literals.
11132         * ch-actions.c (build_chill_binary_op):  IN_EXPR fix.
11133         * expr.c (expand_expr):  Add Chill-specific kludge for
11134         BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
11135         * ch-expr.c (chill_expand_assignment):  Remove no-longer-needed
11136         special-case support for a BIT_FIELD_REF in right-hand-side.
11137         * ch-lang.c (finish_chill_enum):  Patch up enum elements to
11138         have the correct type (instead of integers, as in C).
11140         * ch-lex.l, ch-parse.y:  Add disgusting hack (involving
11141         context-dependent look-ahead) so we can parse exception
11142         handlers correctly.
11143         * c-typeck.c (digest_init):  Set output type for SET_TYPEs.
11144         * varasm.c (unpack_set_constructor):  Add support for
11145         (power-)set ranges (i.e. low_element:high_element).
11147 Sun Feb 14 13:37:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11149         * ch-inout.c: delete unused #include
11150         * ch-typeck.c (build_chill_slice): turn abort call into error msg.
11152 Sat Feb 13 13:13:31 1993  Bill Cox  (bill@rtl.cygnus.com)
11154         * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
11156 Sat Feb 13 12:17:41 1993  Bill Cox  (bill@rtl.cygnus.com)
11158         * Makefile.in: add lots of header files to the CHILL dependencies
11160 Fri Feb 12 15:48:27 1993  Per Bothner  (bothner@rtl.cygnus.com)
11162         * ch-actions.c (build_chill_function_call):  Don't return
11163         error_mark_node on empty parameter-list.
11165 Fri Feb 12 12:54:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11167         * ch-actions.c (build_chill_function_call): fix start_decl parms.
11168         * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
11170 Fri Feb 12 10:32:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11172         * ch-actions.c (build_chill_function_call): create temps, do
11173           assignments to handle INOUT and OUT parameters.
11174         * ch-decl.c (build_chill_function_type): better parameter name.
11175         * ch-parse.y (action): keep rules in alpha order.
11176           (pmodearg): turn INOUT, OUT parameter types into reference types.
11177         * ch-typeck.c (build_tree_slice): indentation change.
11179 Thu Feb 11 23:16:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11181         * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
11182         take a list of elements which are in the set.  This corresponds
11183         better to the tuple input form in Chill (and Pascal).
11184         * varasm.c (unpack_set_constructor, pack_set_constructor):
11185         New functions, to expand SET_TYPE CONSTRUCTORs.
11186         * varasm.c (output_constructor):  Use pack_set_constructor
11187         to assemble a SET_TYPE constant from a CONSTRUCTOR.
11189         * ch-grant.c (decode_constant):  Better grant for strings,
11190         enumeral, and bitstring constants.
11191         * ch-grant.c:  Fixes in seize to avoid duplicates, and emit
11192         things in the correct order.
11193         * c-typeck.c (chill_initializer_constant_valid_p):  Kludge
11194         needed to export a static function.
11195         * ch-typeck.c (convert):  Avoid needlessly (and lossingly) calling
11196         chill_expand_tuple to convert fix string to varying.
11197         * ch-actions.c (build_chill_binary_op):  Promote short
11198         integer operands if needed (otherwise emit routines barf).
11199         * ch-tree.h (SET_WORD_SIZE):  New macro.
11200         * ch-parse.y:  Fix syntax for RECEIVE CASE.
11201         * ch-parse.y (location):  If IDENTIFIER is a CONST_DECL
11202         return its value instead.
11204 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11206         * ch-actions.c (build_chill_max, build_chill_min): clean up
11207         * ch-typeck.c (chill_expand_tuple): correct set initialization from
11208           an enumeration tuple.  Add sort_constructor function.
11210 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11212         * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
11213           BOOLEAN_TYPE w/out an abort.
11215 Wed Feb 10 14:59:53 1993  Bill Cox  (bill@rtl.cygnus.com)
11217         * ch-actions.c: change most integer_type_node references to
11218           chill_integer_type_node.  Rewrite _max and _min routines,
11219           redefine the signatures for those runtime routines.  Move
11220           empty-set check into runtime.
11221         * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
11222           most integer_type_node references to chill_integer_type_node.
11224 Tue Feb  9 16:00:05 1993  Per Bothner  (bothner@rtl.cygnus.com)
11226         * ch-except.c:  New file.  Stuff for exception handling.
11227         * ch-parse.y:  Add working exception handling support.
11228         * ch-lex.l, ch-parse.y:  Prefer standard type terminology
11229         (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
11230         * ch-grant.c:  Fix various problems related to granting
11231         types such as bitsets.
11232         * ch-tree.c (build_bitstring_type):  Set TYPE_MIN_VALUE
11233         to distinguish bitstrings from powersets (in the same way
11234         we distinguish char strings from char arrays).
11235         * ch-tree.h:  New macro CH_BOOL_TYPE_P.
11236         * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
11237         Undo kludge where integer_type_node was hardwired to 16 bits.
11238         Make integer_type_node etc have the same size as in cc1.
11239         New types chill_integer_type_node and chill_unsigned_type_node
11240         that correspond to the Chill source types INT and UINT.
11241         For now, these match the C 'short' types, but that should
11242         become a configuration option later,
11244 Tue Feb  9 11:41:25 1993  Bill Cox  (bill@rtl.cygnus.com)
11246         * ch-actions.c (build_chill_unary_op): allow NOT of a set.
11248 Tue Feb  9 08:27:18 1993  Bill Cox  (bill@rtl.cygnus.com)
11250         * ch-actions.c (build_chill_function_call): add test for
11251           too many/few actual parameters (and avoid seg fault).
11252         * ch-decl.c (do_decls): code cleanup for readability.
11253         * ch-loop.c (begin_chill_loop, end_chill_loop): remove
11254           emit_nop() calls - they now (since exceptions) cause seg faults.
11255           Make derogation on poor CHILL compiler non-specific.
11256         * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
11257         * ch-tree.h: remove prototypes added to c-tree.h.
11258         * ch-typeck.c (build_chill_array_ref): correct getting domain
11259           subtree for a PARM_DECL.  Subscripting a SET_TYPE is turned into
11260           an IN_EXPR.
11262 Sun Feb  7 18:20:49 1993  Bill Cox  (bill@rtl.cygnus.com)
11264         * ch-tree.def: add a new tree type - just for varying array
11265           references.  We were using ARRAY_REF, but the underlying C
11266           code also generates that one.
11267         * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
11269 Sun Feb  7 17:33:17 1993  Bill Cox  (bill@rtl.cygnus.com)
11271         * ch-convert.c: test given type against type of expr before
11272           calling chill_expand_tuple.  We were getting lots of spurious
11273           calls...
11275 Fri Feb  5 15:24:01 1993  Per Bothner  (bothner@rtl.cygnus.com)
11277         * cccp.c:  Merge in various Chill-specific changes.
11278         * gcc.c (default_compilers array):  Pass -lang-chill
11279         to cpp, not -lang-ch.
11281 Fri Jan 29 17:18:22 1993  Per Bothner  (bothner@rtl.cygnus.com)
11283         * Makefile.in (install-libchill, install-librmt):  Removed.
11284         * ch-actions.c (build_chill_exception_decl):  Change decl
11285         to initialized char array, rather than uninitialized common.
11286         (Simplifies extracting string name of exception.)
11287         * ch-actions.c:  Adjust interface to cause_exception accordingly.
11288         * ch-typeck.c (build_chill_array_ref):  Cause rangefail if
11289         index > limit, not >= limit.
11291         * ch-actions.c (build_chill_function_call):  Rename misleading
11292         formal parameter.
11293         * ch-decl.c (do_decls):  Allow (again) general initializer exprs.
11294         * ch-parse.y (call):  Test for function call needs to test for
11295         FUNCTION_TYPE, not FUNCTION_DECL.
11296         nreverse arg list to build_chill_array_ref.
11297         * ch-typeck.c (build_chill_array_ref):  Do recursive call at end
11298         and only if multiple indexes.
11299         * ch-typeck.c:  Cleanups.
11301 Fri Jan 29 11:05:58 1993  Bill Cox  (bill@rtl.cygnus.com)
11303         * ch-decl.c (do_decls): handle set initializations better, more to do.
11304         * ch-loop.c (begin_for_range): correct interface to expand_start_cond
11305           and build_binary_op.
11306         * ch-tree.h: lots more prototypes
11307         * ch-typeck.c (build_array_from_set): added function.
11308         * ch-typeck.c (chill_expand_tuple): handle set initializations better.
11310 Thu Jan 28 17:41:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
11312         * ch-grant.c (set_default_grant_file):  Change default.
11313         Normally, grant file should end up in cwd.
11314         * ch-lang.c (build_chill_struct_type):  Call pushtag,
11315         for the sake of debugging.
11316         * ch-lex.l:  Improve comment parsing.
11317         * ch-lex.l (readstring):  Some improvements.
11318         Initial support for control sequences in string literals.a
11320 Thu Jan 28 16:16:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11322         * ch-convert.c (convert): correct fixed->varying conversion.
11323         * ch-parse.y (mode2): delete unesthetic newline.
11325 Thu Jan 28 10:32:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11327         * ch-actions.c: delete maybe_array_ref()
11328         * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
11329           calling convert().
11330         * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
11331           supervision actions & builtins
11332         * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
11333           smaller actions directly (maybe_array_ref() used to call them).
11334         * ch-tree.h: add build_chill_function_call, build_chill_slice
11335         * ch-typeck.c: add build_chill_slice()
11337 Thu Jan 28 08:44:28 1993  Bill Cox  (bill@rtl.cygnus.com)
11339         * ch-tree.h: bring up to date with ch-actions.c changes.
11341 Wed Jan 27 23:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11343         * ch-expr.c (chill_expand_assignment): handle an RHS varying array
11344           reference.
11346 Wed Jan 27 22:28:36 1993  Per Bothner  (bothner@rtl.cygnus.com)
11348         * ch-grant.c (decode_constant):  Add REAL_TYPE support.
11349         * ch-actions.c (build_chill_exception_decl):  New function.
11350         * ch-actions (build_chill_cause_exception, cond_exceptions):
11351         Convert to take a (char*) parameter (the exception name).
11352         * ch-actions.c, ch-expr.c, ch-typeck.c:  Convert calls to
11353         cond_exception.
11354         * ch-parse.y (check_end_label):  New function, to check if
11355         and end label matches start label.
11356         * ch-parse.y:  Fix syntax to properly recognize and
11357         test optional end labels (using check_end_label).
11358         * ch-decl.c (finish_chill_function):  Simplify, since
11359         we assume check_end_label has already been called.
11360         * ch-parse.y:  Put in infrastructure for exception handling.
11362 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11364         * ch-actions.c: delete convert_chill_parameter, replace call with
11365           call to convert().
11366         * ch-convert.c (convert): combine chill_give_type_to_expr in here.
11367         * ch-decl.c: call convert rather than chill_give_type_to_expr.
11368         * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
11369         * ch-expr.c (chill_expand_assignment): just call convert.
11370         * ch-loop.c (end_chill_loop): expand the end of the loop for a
11371           do while.
11372         * ch-parse.y: call convert rather than chill_give_type_to_expr.
11373         * ch-process.c: checkpoint.
11374         * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
11376 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11378         * ch-grant.c (grant_array_type): new function to allow handling of
11379           VARYING array types.
11381 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11383         * ch-typeck.c (chill_give_type_to_expr): fix typo.  Reorder to
11384           avoid checking types on CONSTRUCTORs.  Correct typo.
11385         * ch-expr.c (expand_assignment_to_varying_array): use proper
11386           expansion function expand_expr_stmt.
11387         * ch-expr.c (expand_chill_assignment): only convert VARYING
11388           array refs or RHS.
11390 Wed Jan 27 15:32:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11392         * ch-actions.c (build_chill_length, build_chill_lower,
11393                         build_chill_upper): accept parameters, too.
11394         * ch-expr.c (chill_expand_assignment):  decipher ARRAY_REF on RHS.
11395         * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
11396           assign proper type to ARRAY_REF expression.
11398 Wed Jan 27 09:51:46 1993  Bill Cox  (bill@rtl.cygnus.com)
11400         * ch-actions.c (build_chill_binary_op): delete unused variable,
11401           get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
11402         * ch-actions.c (build_chill_repetition_op): handle differently-built
11403           declaration trees.
11404         * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
11405         * ch-typeck.c (chill_give_type_to_expr): give type to constructor
11407 Tue Jan 26 11:32:38 1993  Bill Cox  (bill@rtl.cygnus.com)
11409         * ch-parse.y (ifaction): re-add lost call to expand_end_code().
11410         * ch-parse.y (siezelist, grantlist): use 'name' rather than
11411           'checked_name'.  It makes no sense to check sieze/grant names
11412           for WITH expansion.
11413         * ch-expr.c (chill_expand_expr): delete unnecessary (and
11414           seg-fault-causing) code.
11415         * ch-expr.c (chill_expand_assignment): make test for varying array
11416           on the LHS more specific.
11417         * ch-actions.c (invalid_left_operand, invalid_right_operand): error
11418           for use of MOD, REM operators.
11419         * ch-actions.c (build_chill_repetition_op): error for bit-field
11420           initializers (which will get handled in the lexer).
11422 Mon Jan 25 17:26:47 1993  Bill Cox  (bill@rtl.cygnus.com)
11424         * ch-typeck.c (build_chill_array_ref),
11425         * ch-expr.c (chill_expand_expr, chill_expand_assignment):
11426           translate varying array ref into ARRAY_REF, defer processing
11427           until chill_expand_expr.  Update array's length field in
11428           new function expand_assignment_to_varying_array.
11430 Mon Jan 25 14:57:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11432         * ch-parse.y (mode2): eliminate old method to mark varying arrays.
11433         * ch-expr.c (expand_varying_length_assignment): repair scaling of
11434           RHS expression.
11436 Mon Jan 25 11:44:21 1993  Per Bothner  (bothner@cygnus.com)
11438         * ch-parse.y:  Allow character and bitstring literals
11439         in string repetition operator.
11441 Sat Jan 23 14:18:11 1993  Per Bothner  (bothner@cygnus.com)
11443         * ch-parse.y (primval):  Re-recognize '(' expr ')'.
11444         * ch-parse.y (name):  Remove call to check_identifier -
11445         this is not appropriate in certain contexts.
11446         * ch-parse.y (checked_name):  Same as <name>, but *with* the
11447         call to check_identifier.  Use where appropriate.
11448         * ch-parse.y (operand5):  Only allow string repetition of
11449         string literals, because otherwise you get a conflict.
11451 Thu Jan 21 16:32:39 1993  Bill Cox  (bill@rtl.cygnus.com)
11453         * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
11454           continue start_process development.
11456 Thu Jan 21 13:51:06 1993  Bill Cox  (bill@rtl.cygnus.com)
11458         * ch-decl.c (do_decl): fix handling of multi-char initializer.
11460 Thu Jan 21 13:14:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11462         * .cvsignore: add CHILL files to be ignored
11464 Thu Jan 21 07:38:57 1993  Bill Cox  (bill@cygnus.com)
11466         * ch-parse.y: rough draft of start_process handling.
11468 Wed Jan 20 17:11:05 1993  Bill Cox  (bill@rtl.cygnus.com)
11470         * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
11472 Wed Jan 20 16:48:13 1993  Bill Cox  (bill@rtl.cygnus.com)
11474         * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
11475           create new modules for I/O and process-related stuff.
11476         * ch-actions.c: move routines to new modules.
11477           call xmalloc, not malloc.
11478         * ch-lang.c (build_chill_struct_type): add parameter checking.
11479         * ch-lex.l (init_lex): remove redundant cast.
11481 Tue Jan 19 16:33:56 1993  Bill Cox  (bill@rtl.cygnus.com)
11483         * ch-parse.y (operand5): delete unnecessary argument to
11484           build_chill_unary_op.  Add rule for string repetition.
11485         * ch-parse.y (primval): delete string repetition attempt.
11486         * ch-parse.y (start_process): rough draft of action.
11487         * ch-actions.c (build_repetition_op): add it
11488         * ch-actions.c (build_chill_binary_op): handle constant arguments
11489           of CONCAT_EXPR, combine into a single string if possible.
11490         * ch-actions.c (invalid_left_operand, invalid_right_operand):
11491           allow single character arguments to CONCAT_EXPR.
11492         * ch-tree.h: add prototype for build_repetition_op
11494 Tue Jan 19 15:03:29 1993  Fred Fish  (fnf@cygnus.com)
11496         * dwarfout.c (output_type):  Add hack that matches the one in the
11497         chill front end to distinquish between true string types and
11498         arrays of char, since it uses ARRAY_TYPE for both, rather than
11499         trying to use the existing support for STRING_TYPE.
11501 Tue Jan 19 13:54:27 1993  Bill Cox  (bill@rtl.cygnus.com)
11503         * ch-tree.h: added prototypes for all non-static CHILL functions.
11504         * ch-actions.c (lang_init): declare builtin type for start_process
11505         * ch-actions.c (build_chill_binary_op): combine string literals when
11506           concatenated.
11507         * ch-actions.c (formpars2struct): added for later start_process
11508           implementation.
11509         * ch-actions.h: remove un-needed function declarations.
11510         * ch-decl.c: extern cleanup.
11511         * ch-expr.c (chill_expand_array_assignment): add missing first
11512           parameter to cond_exception call.
11513         * ch-lex.l: make build_chill_string non-static.
11515 Mon Jan 18 19:15:08 1993  Bill Cox  (bill@rtl.cygnus.com)
11517         * ch-decl.c (do_decls): get varying array length initialized.
11519 Mon Jan 18 09:51:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11521         * ch-expr.c (chill_expand_array_assignment): fix the copy length
11522         in the memcpy call (it was just 4 bytes always).   Simplify some
11523         code, also.
11525 Mon Jan 18 08:24:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11527         * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
11529 Mon Jan 18 08:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
11531         * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
11532         CHARS synonymous with CHAR, in the lexer.  Delete unnecessary
11533         'bools' non-terminal.
11534         * ch-parse.y (assignaction): add lhs version of length() function
11535         * ch-actions.c: add builtin_concat function, lots of support for
11536         CONCAT_EXPR.
11537         * ch-actions.c, ch-tree.h: make a function out of former
11538         macro CH_VARYING_TYPE_P
11539         * ch-expr.c: add expand_varying_length_assignment ().
11540         * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11541         * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11542         rather than build_rts_call, to eliminate a recursion problem.
11543         * ch-lang.c: eliminate 'sorry' about varying arrays.
11544         * ch-typeck.c (validate_varying_array_ref): re-enable constant
11545         index validation.
11547 Sun Jan 17 18:20:04 1993  Per Bothner  (bothner@cygnus.com)
11549         * ch-grant.c, ch-lex.l:  Major simplification of how
11550         seizes are done and how seizefiles are read.
11551         * ch-actions.h:  Remove declaration of check_seize().
11552         * ch-decl.c (do_decls):  Handle READONLY types.
11553         * ch-parse.y (mode2):  Allow REF to be followed by any mode.
11554         * ch-parse.y (mode2):  Allow literal expressions in string length.
11555         * ch-parse.y (tupleelement):  Allow elemenst to be untyped_expr.
11556         * ch-parse.y (seizestatement, etc):  Call chill_seize each
11557         time something is seized, rather than building a list first.
11559 Sat Jan 16 12:24:44 1993  Bill Cox  (bill@rtl.cygnus.com)
11561         * chill.gperf, ch-hash.h: add Wilfried's tokens
11562         * ch-lex.l: fold in Wilfried's changes.  Some tokens
11563         weren't getting recognized, and INSTANCE wasn't correctly
11564         reported to ch-parse.y as a PREDEF_MODEDCL.
11566 Thu Jan 14 15:02:39 1993  Per Bothner  (bothner@cygnus.com)
11568         * ch-tree.h (CH_CHARS_TYPE_P):  New macro.  Add comment
11569         explaining difference between char strings and char arrays.
11570         * ch-tree.h (CH_STRING_TYPE_P):  Add FIXME re bitstrings.
11571         * ch-tree.c (build_string_type):  Add comment.
11573 Wed Jan 13 15:19:15 1993  Per Bothner  (bothner@cygnus.com)
11575         * calls.c, expr.c, function.c, stmt.c, varasm.c:  Set
11576         MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11577         * expmed.c (store_bit_field, extract_field_field):  Undo
11578         yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11580         * ch-decl.c (do_decls):  Put back support for initializing.
11581         (Was accidentally removed in Jan 8 change.)
11583 Wed Jan 13 14:13:11 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
11585         * ch-lex.l (convert_bitstring): Correct typo in cast.
11587 Tue Jan 12 20:29:08 1993  Per Bothner  (bothner@cygnus.com)
11589         * ch-lex.l (convert_bitstring):  Change to pack bits
11590         within words, not bytes, and to use machine bit-order
11591         (not always little-endian).
11592         * ch-parse.y:  Allow BOOLS(n) as well as BITS(n).
11593         Use build_bitstring_type, not build_string_type.
11594         * expmed.c (store_bit_field, extract_field_field):  Remove
11595         "sanity test" that prevents use with SET_TYPE.
11596         * tree.c (build_bitstring_type, build_powerset_type,
11597         build_string_type):  Move (so far) Chill-specific functions to ...
11598         * ch-tree.c:  ... new file.
11599         * ch-tree.c (build_powerset_type, build_bitstring_type):  Re-write.
11600         * ch-typeck.c (build_chill_array_ref):  Handle bit strings better.
11601         * ch-typeck.c (chill_expand_tuple):  Kludge to handle SET_TYPE.
11602         * Makefile.in (CHILL_OBJS):  Add ch-tree.o.
11603         * ch-decl.c (do_decls):  Call expand_decl.
11604         * stor-layout.c (layout_type):  Handle SET_TYPE.
11605         * expr.c (expand_expr):  Add FIXMEs about IN_EXPR.
11606         * ch-actions.c (lang_init):  Add type and decl for new
11607         function __builtin_setbitinstring.
11608         * ch-expr.c (chill_expand_assignmment):  Special-case handling
11609         for BIT_FIELD_REF with non-constant bit position (which is
11610         not yet handled by expand_expr).
11611         * ch-convert.c (convert):  Handle SET_TYPE.
11613 Tue Jan 12 12:49:13 1993  Fred Fish  (fnf@cygnus.com)
11615         * chill:  If -B arg is given, use to find gcc.
11617 Fri Jan  8 20:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11619         * ch-decl.c: revert to avoid seg fault
11621 Fri Jan  8 14:20:42 1993  Bill Cox  (bill@rtl.cygnus.com)
11623         * ch-decl.c: fix storage into correct offset in varying array.
11624         * ch-actions.c: define sizetype for everyone, use it to build
11625         varying structure.
11626         * ch-parse.y: tiny cleanup.
11628 Wed Jan  6 13:25:33 1993  Bill Cox  (bill@cygnus.com)
11630         * modules: use gdb rather than naked-gdb, to get opcodes
11631         in chill definition.
11633 Wed Jan  6 09:48:35 1993  Bill Cox  (bill@cygnus.com)
11635         * ch-typeck.c: add code to handle references to elements of VARYING
11636         arrays.  Simplify chill_give_type_to_expr.  Add rough draft of run-
11637         time index checking for VARYING arrays (under #if 0).
11638         * ch-actions.c: new function cond_type_range_exception & calls.
11639         New function cond_range_exception, for more general range-checking.
11640         New function build_varying_struct, to do just that.  Use the macros
11641         for the special varying field names.
11642         * ch-tree.h: define macros for varying field names.
11643         * ch-expr.c: use macros for varying struct names.  Simplify
11644         chill_expand_array_assignment.
11645         * ch-parse.y: assure that build_varying_struct is called everywhere
11646         that it applies.  Add a line-number note before the body of a DO
11647         loop.
11648         * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11650 Tue Jan  5 17:26:14 1993  Bill Cox  (bill@cygnus.com)
11652         * c-decl.c: correct order of declaration of start_decl params,
11653         for readability.
11655 Tue Jan  5 15:59:36 1993  Per Bothner  (bothner@cygnus.com)
11657         * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11658         Move shared code into ...
11659         * ch-decl.c (start_chill_function): ... here.
11660         * ch-decl.c (start_chill_function):  Add missing call to
11661         expand_start_bindings.
11662         * ch-decl.c (finish_chill_function): Add missing call to
11663         expand_end_bindings.
11665 Tue Jan  5 01:00:47 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
11667         * Makefile.in: took out the rest of the runtime support
11669 Mon Jan  4 18:02:06 1993  Bill Cox  (bill@cygnus.com)
11671         * ch-expr.c: make chill_expand_array_assignment not static.
11673 Mon Jan  4 17:57:48 1993  Per Bothner  (bothner@cygnus.com)
11675         * ch-grant.c, ch-parse.y:  Remove all code for explicitly
11676         calling initializer functions.  This is not needed, since we
11677         use the same mechanism used for C++ static constructors.
11678         * ch-grant.c (chill_start_module_code):  Make sure the
11679         init_name starts with the magic string also used for C++
11680         initializers.  Also, don't embed the file name in the name,
11681         just use the module name.
11682         * ch-grant.c (chill_finish_module_code):  Now that the
11683         initializer name follows the standard 'collect' convention,
11684         don't need to call assembler_constructor_alias, but can
11685         use the standard assemble_constructor instead.
11686         * varasm.c (assemble_constructor_alias):  Remove no-longer-
11687         needed function.
11688         * ch-parse.y:  Move code that is common to the beginning of
11689         all functions to a new macro INIT_ACTION.
11690         Make sure INIT_ACTION is also done for callaction, fixing a bug.
11691         * ch-parse.y (INIT_ACTION):  Do chill_start_module_code()
11692         before emit_line_note(), not after.
11694 Mon Jan  4 11:43:12 1993  Bill Cox  (bill@cygnus.com)
11696         * ch-parse.y: restore requirement for :upper-bound in array decl.
11697         * ch-actions.c: enhance upper, lower, length functions for VARYING.
11699 Mon Jan  4 09:28:44 1993  Bill Cox  (bill@cygnus.com)
11701         * ch-actions.c: fix NOT of boolean expr.
11703 Mon Jan  4 08:42:57 1993  Bill Cox  (bill@cygnus.com)
11705         * ch-actions.c: provide range-checking function
11706         * ch-lex.l: better compiler-directive error messages,
11707         allow underscores in exponents
11708         * ch-loop.c: prevent passing NULL ptr to printf
11710 Sun Jan  3 11:57:13 1993  Bill Cox  (bill@cygnus.com)
11712         * ch-typeck.c: correct & enable array index range-checking
11714 Sun Jan  3 11:36:39 1993  Bill Cox  (bill@cygnus.com)
11716         * ch-parse.y: define IGNORED_DIRECTIVE
11717         * ch-typeck.c: subtract array's lower domain value, even if
11718         index expression is constant.
11720 Sat Jan  2 23:05:14 1993  Fred Fish  (fnf@cygnus.com)
11722         * ch-lex.l (convert_float):  Fix misspelling in error message.
11724 Sat Jan  2 16:02:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
11726         * Makefile.in:  Took out chill-runtime support.
11727         Chill run times are now in ../chillrt, not ./chillrt.p
11729 Sat Jan  2 15:04:13 1993  Bill Cox  (bill@cygnus.com)
11731         * ch-hash.h, chill.gperf: cleanup.  fewer keywords seen by ch-parse.y.
11733 Sat Jan  2 13:27:49 1993  Per Bothner  (bothner@rtl.cygnus.com)
11735         * ch-lex.l (check_newline):  Use the orginal versions (derived
11736         from the C code, not the simplified, special-case version).
11737         Also, fix that version of check_newline to not call yylex()
11738         recursively.
11739         * ch-lex.l (yy_input):  Call check_newline to handle
11740         newlines and check for # directives.
11741         * ch-lex.l (syntax):  Don't recognize #-directives; these
11742         are now handled by check_newline.
11743         * ch-actions.c (lang_init):  Call the modified version of
11744         check_newline().  Do this at the *after* we've initialized
11745         standard types, so this can be done while lineno is still 0.
11747 Sat Jan  2 10:57:20 1993  Bill Cox  (bill@cygnus.com)
11749         * ch-hash.h, chill.gperf: add remaining reserved words.
11751 Sat Jan  2 09:59:55 1993  Bill Cox  (bill@cygnus.com)
11753         * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11754         names for exceptions
11756 Fri Jan  1 12:30:31 1993  Fred Fish  (fnf@cygnus.com)
11758         * ch-tree.h (JOINER):  Define joiner character the same way
11759         C++ defines it.
11760         * ch-grant.c (chill_start_module_code):  Use JOINER character
11761         to implement name mangling for the initializer function name.
11762         Algorithm is designed to be simple, distinct from C++ mangled
11763         symbols, and easy to convert to demangled form.
11765 Thu Dec 31 10:30:51 1992  Bill Cox  (bill@rtl.cygnus.com)
11767         * ch-expr.c: make array assignments work with indirect refs.
11768         * ch-actions.c: prepare for array parameter handling.
11769         * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11771 Thu Dec 31 15:29:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
11773         * ch-lex.l (yy_input):  Re-write to return more than one
11774         character at a time (execpt when reading seize-files).
11775         Don't increment lineno until we start reading the next line.
11776         This fixes some off-by-one errors in lineno.
11778 Wed Dec 30 16:15:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
11780         * ch-convert.c:  Assume use of new common.c.
11781         * ch-convert.c (convert_to_reference, convert_from_reference):
11782         New routines, to handle loc-identity declared variables and
11783         LOC parameters (both of which are implemented as references).
11784         * ch-lang.c (convert_to_boolean, convert_to_char):  Move to
11785         ch-convert.c, where they would seem to belong.
11786         * ch-convert.c (convert):  New function, since we no longer
11787         link in c-convert.c.
11788         * ch-expr.c (chill_expand_assignment):  Handle by calling
11789         convert() instead of chill_comptypes().
11790         Also handle the LHS being a reference.
11791         * ch-parse.y:  Add a procedure call as an action.
11792         * ch-parse.y (locdec, optlocinit):  Move handling of
11793         loc-identity declarations from optlocinit to locdec
11794         - and add working semantics for it.
11795         * ch-parse.y (seizestatement, visibilty_stmt):  Simplify.
11796         * ch-parse.y (grantstatement etc):  Don't bother making list.
11797         * ch-lex.l:  #include <sys/types.h> before <sys/stat.h>.
11799 Wed Dec 30 16:06:55 1992  Bill Cox  (bill@rtl.cygnus.com)
11801         * ch-parse.y, ch-expr.c: add support for declaring & assigning
11802         VARYING arrays.
11803         * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11805 Tue Dec 29 15:28:48 1992  Bill Cox  (bill@cygnus.com)
11807         * ch-actions.c: implement expressions of arrays of char,
11808         ( concatenation, relationals ), correct type of code parameters
11809         * ch-expr.c: correct type of code parameters
11811 Tue Dec 29 11:16:19 1992  Bill Cox  (bill@cygnus.com)
11813         * ch-decl.c: cleanup.
11814         * ch-parse.y: put emit_line_note() calls in lotsa places,
11815         per Fred's request; be sure that statements get counted also.
11816         * ch-lex.l: standardize function headers.
11818 Tue Dec 29 10:41:56 1992  Fred Fish  (fnf@cygnus.com)
11820         * ch-decl.c (start_chill_function):  Always return 1, rather
11821         than a random value.
11822         * ch-lex.l (check_newline):  Add a version for chill that
11823         just snarfs the right value for main_input_filename out of
11824         the first line of the input file, without disturbing the
11825         lexer state or requiring it's assistance.
11826         * ch-actions.c (lang_init):  Call check_newline, like the
11827         other language frontends, to get main_input_filename set
11828         from first line of input file.
11830 Mon Dec 28 18:49:01 1992  Bill Cox  (bill@cygnus.com)
11832         * ch-parse.y: clean up conflicts.  The remaining one is
11833         harmless.
11835 Mon Dec 28 17:28:40 1992  Bill Cox  (bill@cygnus.com)
11837         * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11838         clean up some parser conflicts.
11840 Mon Dec 28 15:00:20 1992  Bill Cox  (bill@cygnus.com)
11842         * ch-parse.y, ch-lex.l:  add keywords and parsing for most of
11843         CHILL I/O
11845 Sat Dec 26 20:48:23 1992  Fred Fish  (fnf@cygnus.com)
11847         * chillrt/chillrt0.c:  Oops, SVR4 doesn't need leading '_'
11848         on build_exceptions.
11850 Sat Dec 26 11:00:36 1992  Fred Fish  (fnf@cygnus.com)
11852         * ch-grant.c (chill_finish_module_code):  Call
11853         assemble_constructor_alias rather than assemble_constructor.
11854         * varasm.c (assemble_constructor_alias):  New function,
11855         like assemble_constructor, but also handles the case where
11856         ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11857         being used.  Emits a symbol table alias name with the correct
11858         prefix for collect to find and add to the __CTOR_LIST__.
11859         * chillrt/chillrt0.c:  Build on previous hack that gets
11860         _build_exceptions into the __CTOR_LIST__, to make it work
11861         for both the non GNU-ld case and for the SVR4 case.
11863 Tue Dec 22 18:24:55 1992  Bill Cox  (bill@cygnus.com)
11865         * ch-loop.c: clean up location enumeration - one more
11866         pass to do.
11868 Tue Dec 22 16:31:48 1992  Bill Cox  (bill@cygnus.com)
11870         * ch-loop.c: Working version of location enumeration loop
11872 Tue Dec 22 14:42:14 1992  Bill Cox  (bill@cygnus.com)
11874         * ch-lex.l: readability cleanup
11876 Mon Dec 21 14:58:39 1992  Bill Cox  (bill@cygnus.com)
11878         * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11879         ch-loop.c: rough draft of location enumeration
11880         ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11881         ch-actions.c: finish making pred() and succ() work.
11883 Mon Dec 21 10:04:35 1992  Bill Cox  (bill@cygnus.com)
11885         * ch-actions.c: allow pred(char) and succ(char).
11887 Sun Dec 20 16:04:28 1992  Bill Cox  (bill@cygnus.com)
11889         * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11890         c-expr.c: make DO WITH work.
11892 Sun Dec 20 12:22:53 1992  Bill Cox  (bill@cygnus.com)
11894         * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11895         now work
11897 Sat Dec 19 14:20:23 1992  Per Bothner  (bothner@cygnus.com)
11899         * c-typeck.c (process_init_constructor):  Add warning if
11900         there is a duplicate default initializer element.
11901         * ch-typeck.c (chill_give_type_to_expr):  New function,
11902         to handle coercion of an expression to context-given type,
11903         Takes care of untyped tuples, and case expressions.
11904         * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11905         chill_expand_result), ch-parse.y <assignaction>:
11906         Use chill_give_type_to_expr().
11907         * ch-typeck.c (chill_handle_case_label):  New parameter list,
11908         to handle the (new) conventions for <case_label>, including
11909         default elements and ranges.
11910         * ch-parse.y <expanded_case_label>, ch-typeck.c
11911         (expand_case_expr):  Use new version of chill_handle_case_label.
11912         * ch-decl.c (push_syndecls):  Change parameters:  Instead of
11913         TREE_LIST representing a compete <synonym definition statement>,
11914         just pass the parts of a single <synonym definition> as 3
11915         different parameters.  Also, use chill_give_type_to_expr(),
11916         to handle untyped tuples in the RHS.
11917         * ch-parse.y <syndeclist, syndef>:  Don't bother trying to construct
11918         a tree - just call push_syndecls() on each <synonum_definition>
11919         as we see it.
11920         * ch-parse.y (exprlist_get_single):  Remove; no longer needed.
11921         * ch-parse.y:  Handle <tuple> without mode name diferently from
11922         <tuple> with mode name.  The latter is a <primval> that can be
11923         in most contexts, but if the <mode name> is missing, the <tuple>
11924         is only allowed in certain contexts.  Use the new non-terminal
11925         <untyped_expr> to indicate those contexts where untyped tuples
11926         (and case expressions) are valid because the expression gets a
11927         type from its context (such as the RHS of an assignment).
11928         Use chill_give_type_to_expr in those contexts.
11930 Sat Dec 19 14:01:26 1992  Bill Cox  (bill@cygnus.com)
11932         * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11934 Sat Dec 19 10:16:20 1992  Bill Cox  (bill@cygnus.com)
11936         * ch-parse.y: clean up warning messages from byacc.  bison
11937         still complains thrice.
11939 Fri Dec 18 12:33:29 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11941         * ch-actions.c (maybe_chill_comptypes): Delete unused
11942         function.
11943         (chill_comptypes): Add new parameter ERRSTR.  All callers
11944         changed.
11945         (build_chill_binary_op): Fix indentation to match GNU coding
11946         style.
11948 Fri Dec 18 08:18:13 1992  Bill Cox  (bill@rtl.cygnus.com)
11950         * ch-parse.y, ch-expr.c, ch-actions.c, expr.c:  major
11951         cleanup of expression and assignment handling.
11953 Thu Dec 17 10:16:32 1992  Bill Cox  (bill@cygnus.com)
11955         * ch-parse.y: standardize indentation after c-parse.y
11957 Wed Dec 16 15:22:12 1992  Per Bothner  (bothner@cygnus.com)
11959         * c-typeck.c (process_init_constructor):  Add support for
11960         a default initializer element.
11961         * ch-parse.y: Implement default elements for tuples
11962         (as in '(else):' and '(*):' ).
11964         * ch-parse.y:  Previous change to dis-ambiguate case-labels
11965         seems to have allowed getting rid of all of the expr_or_list hair.
11966         * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11967         initialization of multiple variables by a tuple" - the
11968         idea is bogus.
11970 Wed Dec 16 11:17:53 1992  Bill Cox  (bill@cygnus.com)
11972         * ch-parse.y: complete re-write of DO statement handling.
11973         now operational, except WITH is stubbed out.  Improved
11974         syntax error message.
11975         * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11976         * ch-expr.c: fixes to IN_EXPR handling.
11978 Tue Dec 15 17:15:13 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
11980         * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11981         * ch-lex.c: Likewise.
11983         * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11984         by flex to avoid compiler error.
11986 Tue Dec 15 08:41:08 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11988         * ch-decl.c (do_decls): Handle initialization of multiple
11989         variables by a tuple.
11991         * ch-decl.c (do_decls,start_chill_function): Make DECL public
11992         if we're doing a GRANT ALL at top level.
11994         * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11995         range expression.
11997         * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11998         BOOLEAN_TYPE and CHAR_TYPE are scalar types.
12000 Mon Dec 14 14:58:32 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12002         * ch-lex.l (get_chill_{linenumber,filename}): New functions.
12003         (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
12005 Mon Dec 14 13:36:44 1992  Bill Cox  (bill@cygnus.com)
12007         * expr.c: install and test newer Pascal IN_EXPR code,
12008         but don't activate it - it's very verbose.
12010 Mon Dec 14 00:22:49 1992  Fred Fish  (fnf@cygnus.com)
12012         * Makefile.in (LANGUAGES):  Add chill.
12013         * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
12014         New macros for chill native and cross installation names.
12015         * Makefile.in (COMPILERS):  Add cc1chill.
12016         * Makefile.in (CHILL_OBJS):  New macro, chill objects.
12017         * Makefile.in (CHILL_TREE_H):  New macro, chill headers.
12018         * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
12019         sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
12020         install-librmt):  New targets.
12021         * Makefile.in (install-native):  Add install-libchill,
12022         install-librmt.
12024 Sun Dec 13 15:21:06 1992  Bill Cox  (bill@cygnus.com)
12026         * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
12028 Sun Dec 13 14:07:32 1992  Bill Cox  (bill@cygnus.com)
12030         * ch-actions.c: fix unary operations, modulus ops,
12031         (discovered after extending regression tests).
12033 Sun Dec 13 12:16:32 1992  Bill Cox  (bill@cygnus.com)
12035         * resync with Michael and Wilfried
12037 Sun Dec 13 09:11:25 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12039         * ch-parse.y (output_constant): Fixed some whitespace
12040         problems.
12041         * ch-tree.h: Add declarations for new chill functions that
12042         have been implemented but not (yet) declared.
12044 Sat Dec 12 00:17:23 1992  Per Bothner  (bothner@cygnus.com)
12046         * c-typeck.c (process_init_constructor):  Warn about duplicate
12047         labels for labelled initializer elements.
12048         * ch-lex.l (various operator tokens, such as "+"):  Don't
12049         set yylval.code to a TREE_CODE; this is better done in parser.
12050         * ch-parse.y:  Some work with case labels and tuples.
12051         Get literal range as tuple (and case) labels working.
12052         Fix some problems introduced by recent grammar overhaul.
12054 Fri Dec 11 13:28:48 1992  Bill Cox  (bill@cygnus.com)
12056         * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
12057         got long, real expressions working.  We can also call a func-
12058         tion and use its return value.
12060 Thu Dec 10 14:45:17 1992  Per Bothner  (bothner@cygnus.com)
12062         * ch-parse.y:  Major change to remove or at least identify
12063         parser ambiguities.  One result:  We now allow actions that
12064         start with '(', as required by teh Blue Book.  This does break
12065         some things; look for FIXME for things that need work.
12066         * ch-typeck.c (chill_expand_case_expr):  We need an extra
12067         level of looping to (in the future) support <case label
12068         specification>s with more than one <case label list>.
12070 Thu Dec 10 09:21:41 1992  Bill Cox  (bill@cygnus.com)
12072         * ch-actions.c, ch-expr.c: Implement string assignments
12073         and relationals.
12075 Thu Dec 10 07:17:35 1992  Bill Cox  (bill@cygnus.com)
12077         * ch-decl.c, ch-typeck.c: rest of previous commit.
12079 Wed Dec  9 18:26:29 1992  Bill Cox  (bill@cygnus.com)
12081         * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
12082         regression test and fix bit arrays and set ops.
12084 Mon Dec  7 14:57:46 1992  Bill Cox  (bill@cygnus.com)
12086         * ch-actions.c: implement crude relationals between
12087         non-exotic operands, such as integers.
12089 Mon Dec  7 10:42:35 1992  Bill Cox  (bill@cygnus.com)
12091         * ch-actions.c: implement relational, logic operations
12092         on arrays of BOOLs.
12094 Mon Dec  7 08:55:20 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12096         * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
12097         indicate we are done with initialization.
12099         * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
12100         `grant all'.
12101         (start_chill_function): Ditto.
12103         * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
12104         (compiler_directive): Don't confuse compiler directives with
12105         equality comparison operators.
12107         * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
12109 Sun Dec  6 13:12:32 1992  Bill Cox  (bill@cygnus.com)
12111         * ch-actions.c: repair set inequality code.
12113 Sun Dec  6 11:15:59 1992  Bill Cox  (bill@cygnus.com)
12115         * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
12116         relational expressions, including (<, <=, =, /=, >, >=, IN).
12118 Fri Dec  4 13:54:58 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
12120         * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
12121         Pascal-required ones, since C++ no longer needs them.  When
12122         Chill's public, a comment can be added to the effect that
12123         SET_LE_EXPR is also used by Chill.
12125 Fri Dec  4 12:05:01 1992  Bill Cox  (bill@cygnus.com)
12127         * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
12129 Fri Dec  4 10:23:10 1992  Bill Cox  (bill@cygnus.com)
12130         * Get *.def and *.c in sync.
12132 Fri Dec  4 06:48:41 1992  Fred Fish  (fnf@cygnus.com)
12134         * ch-actions.c (lang_init):  Change types "long" and
12135         "ulong" from 16 bits to 32.
12136         * dwarfout.c (fundamental_type_code):  Use FT_signed_char
12137         for type "byte" and FT_unsigned_char for type "ubyte".
12139 Thu Dec  3 15:13:24 1992  Bill Cox  (bill@cygnus.com)
12140         * ch-actions.c, ch-tree.def, ch-parse.y:  preparation
12141         for powerset expressions.
12143 Tue Dec  2 17:02:30 1992  Bill Cox  (bill@cygnus.com)
12144         * ch-actions.c: sketch code for exceptions generated
12145         by builtin routines.
12147 Tue Dec  2 12:49:50 1992  Bill Cox  (bill@cygnus.com)
12148         * ch-actions.c, ch-parse.y: add support for lower()
12149         upper() builtin functions.
12151 Wed Dec  2 12:03:30 1992  Fred Fish  (fnf@cygnus.com)
12153         * Makefile.in (chillrt0.o, install-chillrt0):  Remove.
12154         * chill (library):  Remove chillrt0.o.
12155         * chillrt/Makefile:  Remove maintenance of chillrt0.o as a
12156         separate file.  Now gets put in libchill.a.
12158 Tue Dec  2 10:100:20 1992  Bill Cox  (bill@cygnus.com)
12160         * ch-parse.y, ch-actions.c: add support for num()
12161         builtin function.
12163 Wed Dec  2 09:52:06 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12165         * ch-decl.c (fixup_unknown_type): New function.
12166         (push_newmode,push_synmode): Call `fixup_unknown_type' when we
12167         see a declaration that uses `unknown_type_node'.  FIXME.
12169         * ch-grant.c (decode_constant): New function.
12170         (decode_decl): Call `decode_constant' for CONST_DECLs.
12172         * ch-lex.l (char action): Use ridpointers instead of
12173         lookup_name to get "char"'s declaration.
12175         * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
12176         when we need to build a TYPE_DECL.
12178 Tue Dec  2 09:44:05 1992  Bill Cox  (bill@cygnus.com)
12180         * ch-typeck.c: clean up a gcc warning with a forward
12181         declaration of build_string_type.
12183 Tue Dec  1 16:51:05 1992  Bill Cox  (bill@cygnus.com)
12185         * ch-actions.c: completely remove those builtin calls
12186         that are duplicated in c-decl.c
12188 Tue Dec  1 16:38:51 1992  Fred Fish  (fnf@cygnus.com)
12190         * ch-actions.c (lang_init):  Ifdef out initializations for
12191         __builtin_abs and __builtin_fabs, since they are duplicates of
12192         initializations in c-decl.c, and trigger spurious warnings.
12194 Tue Dec  1 16:35:18 1992  Bill Cox  (bill@cygnus.com)
12196         * ch-parse.y: make size() work with a typename argument.
12198 Tue Dec  1 16:15:56 1992  Bill Cox  (bill@cygnus.com)
12200         * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
12201         functions min, max, card.
12203 Tue Dec  1 12:35:56 1992  Bill Cox  (bill@cygnus.com)
12205         * ch-lex.l: fix char-type
12207 Tue Dec  1 11:10:56 1992  Bill Cox  (bill@cygnus.com)
12209         * ch-parse.y, ch-actions: added parsing and processing
12210         for upper, lower, and length built-ins.
12212 Tue Dec  1 09:40:49 1992  Fred Fish  (fnf@cygnus.com)
12214         * dwarf.h (LANG_CHILL):  Add as GNU extension.
12215         * dwarfout.c (output_compile_unit_die):  Test language_string and
12216         set LANG_CHILL if appropriate.
12217         * ch-parse.y (language_string):  New for chill.
12218         * chillrt:  Renamed directory chill to chillrt.
12219         * chill:  Renamed chillsh to chill.
12220         * Makefile.in:  Adjust for renamings.
12221         * chillrt/Makefile:  Adjust for directory renaming.
12223 Mon Nov 30 17:35:33 1992  Fred Fish  (fnf@cygnus.com)
12225         * chillsh:  New script frontend (ala g++), installed as "chill".
12226         Can't be called "chill.sh" because make tries to cat it into the
12227         "chill" directory.  Can't be called just "chill" cause that's
12228         already there as a directory.
12229         * Makefile.in:  Add rules to install chillsh as "chill".
12230         * chill/libchill.c:  Temporarily ifdef out stuff that wants
12231         to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
12232         which itself causes linkage to fail.
12234 Mon Nov 30 16:28:19 1992  Bill Cox  (bill@cygnus.com)
12236         * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
12237         conversion routines.
12238         * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
12239         Added production for SIZE(expr).
12240         * ch-actions.c: Add semantic routine chill_sizeof ().
12242 Mon Nov 30 16:20:40 1992  Per Bothner  (bothner@cygnus.com)
12244         * ch-lex.l, ch-parse.y:  Translate token PFEIL into English ARROW.
12245         * ch-parse.y (op6):  Remove handling of string repetition operator,
12246         until we can figure out a way to parse it correctly.
12247         * ch-parse.y (optmodename):  New non-terminal.
12248         * ch-parse.y (tuple):  Merge the two variants using optmodename.
12249         * ch-parse.y (location):  Add semantic actions for
12250         dereferencing operator ->.
12252 Mon Nov 30 08:01:29 1992  Bill Cox  (bill@cygnus.com)
12254         * ch-actions.c: removed compile warning, better code for abs.
12256         * ch-parse.y: add productions for builtin functions succ, pred,
12257         abs, and size.  Add %tokens also.  Sort %tokens alphabetically.
12259         * ch-lex.l: add parsing for builtin function names, such as abs,
12260         pred, succ, etc.  Put flex -a option into Makefile.in, so we can
12261         clean up the lexer soon.
12263 Tue Nov 24 14:18:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
12265         * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
12266         New functions, for code common to CASE actions and expressions.
12267         * chill.y:  Replace some code by calls to chill_handle_case_label
12268         and chill_handle_case_default.
12269         * ch-typeck.c (chill_expand_case_expr):  Add semantics.
12271         * tree.c:  Change doing_chill_thang from extern to common.
12273 Mon Nov 23 18:34:22 1992  Per Bothner  (bothner@rtl.cygnus.com)
12275         * ch-tree.def:  New CASE_EXPR type, for case expressions.
12276         * ch-expr.c (chill_expand_expr):  Hook for CASE_EXPR.
12277         * ch-typeck.c (chill_expand_case_expr):  New function.
12278         Placeholder to implement case expressions.
12279         * ch-typeck.c (chill_expand_result, chill_expand_return):
12280         Handle mode-unspecified tuples and case expressions in
12281         the context of RETURN and RESULT actions.
12282         * chill.y (assignaction):  Handle case expressions in the
12283         context of the RHS of an assignment action.
12284         * chill.y (caseaction): Remove spurious duplicate OF in grammar.
12285         * chill.y:  Handle labeled structure tuples.
12286         * chill.y:  New rules to parse CASE expressions.
12287         * tree.c (build_function_types):  Allow Chill functions
12288         to return arrays and functions.
12290 Wed Nov 18 13:50:28 1992  Per Bothner  (bothner@rtl.cygnus.com)
12292         * ch-typeck.c (chill_expand_tuple):  New function. Expand a
12293         tuple (constructor) given an expected (context) type.
12294         * chill.y:  Implement 'LHS := TUPLE' using expand_chill_tuple,
12295         using the mode of the LHS and the expected type of the TUPLE.
12296         * chill.y:  Implement initialization.
12297         * chill.y:  Fix some syntax bugs (forbidlist must be surrounded
12298         by parentheses), and remove or note ambiguities.
12299         * chill.y:  Started converting layout style to be like c-parse.in.
12300         * chill.y:  Implement IF expressions.
12301         * chill.y:  Added syntax rules for tuples.  Labelled and unlabelled
12302         array tuples should now work (in some contexts).
12303         * ch-actions.c:  Initialize doing_chill_thang to 1.
12304         * ch-decl.c (do_decls):  Set DECL_INITIAL if there is an
12305         initializer, to make pushdecl and finish_decl work.
12306         * c-decl.c (convert_for_assignment):  If Chill, don't convert
12307         function and arrays into pointers.  (Maybe functions should
12308         still be converted?)
12309         * c-typeck.c (grokdeclarator):  Allow functions in Chill
12310         to return arrays and functions.
12312 Mon Nov 16 15:40:47 1992  Per Bothner  (bothner@rtl.cygnus.com)
12314         * chill.y (exprlist_get_single):  New function, used when
12315         parsing tuples.
12316         * chill.y:  Re-did parsing of tuples to remove ambiguities.
12317         This was a bitch.
12319 Tue Nov 10 16:30:55 1992  Per Bothner  (bothner@rtl.cygnus.com)
12321         * ch-typeck.c (chill_expand_result);  Set TREE_SIDE_EFEFCTS
12322         flags on assignment to result.
12323         * ch-typeck.c (build_chill_array_ref):  Subtract lower
12324         bound of domain if non-zero.  Preliminary hook for range checking.
12325         * ch-tree.h, chill.l:  Combine variables range_check and
12326         range_check_disabled into global variable range_checking.
12327         * ch-tree.h:  Better definitions of CH_CLASS_IS_VALUE
12328         CH_CLASS_IS_DERIVED.