OSDN Git Service

111824dc711a0da3a3abea9435f60acae9b3dcbd
[pf3gnuchains/gcc-fork.git] / gcc / ch / ChangeLog
1 2001-12-10  Joseph S. Myers  <jsm28@cam.ac.uk>
2
3         * chill.texi: Don't condition menus on @ifinfo.
4
5 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
6
7         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
8         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
9         is now @CROSS@ -DIN_GCC; update comment.
10
11 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12
13         * actions.c: Remove leading capital from diagnostic messages, as
14         per GNU coding standards.
15         * decl.c: Similarly.
16         * expr.c: Similarly.
17         * inout.c: Similarly.
18         * lang.c: Similarly.
19         * loop.c: Similarly.
20         * nloop.c: Similarly.
21         * parse.c: Similarly.
22         * satisfy.c: Similarly.
23         * tasking.c: Similarly.
24         * tree.c: Similarly.
25         * typeck.c: Similarly.
26
27 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
28
29         * Make-lang.in (CHILL.generated-manpages): New dummy target.
30
31 2001-10-31  Joseph S. Myers  <jsm28@cam.ac.uk>
32
33         * ChangeLog, actions.c, ch-tree.def, decl.c, except.c, inout.c,
34         tasking.c, typeck.c: Fix spelling errors.
35
36 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
37
38         * convert.c, inout.c, loop.c, nloop.c, tasking.c, timing.c,
39         typeck.c: Use /* */ for all commentary, not #if 0 ... #endif.
40         Change the nested comments this creates to // notation.
41         Un-double apostrophes.
42
43 Sat Sep 22 09:15:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
44
45         * Make-lang.in (cc1chill): Add attribs.o.
46
47 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
48
49         * tree.c (TYPE_HASH): Moved to ../tree.h.
50
51 2001-08-11  Zack Weinberg  <zackw@panix.com>
52
53         * lex.c: Don't include setjmp.h.
54
55 2001-08-09  Richard Henderson  <rth@redhat.com>
56
57         * grant.c (chill_finish_compile): Use target hooks instead of
58         assemble_constructor.
59
60 2001-08-06  Richard Henderson  <rth@redhat.com>
61
62         * grant.c (chill_finish_compile): Pass a symbol_ref and priority
63         to assemble_constructor.
64
65 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
66
67         * Makefile.in (lex.o): No dependence on dwarfout.h.
68         * lex.c: Don't include dwarfout.h.
69
70 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
71
72         * ch-tree.h: Remove prototype for combine_parm_decls, unused
73         function.
74
75 2001-06-28  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
76
77         * lang.c: #include diagnostic.h
78         (chill_print_error_function): Add a dummy `diagnostic_context *'.
79         * Makefile.in (lang.o): Depend on diagnostic.h
80
81 2001-06-10  Gabriel Dos Reis  <gdr@codesourcery.com>
82
83         * decl.c: #include diagnostic.h
84         * actions.c: #include diagnostic.h
85         * Makefile.in (actions.o): Depend on diagnostic.h
86         (decl.o): Depend on diagnostic.h
87
88 2001-06-02  Joseph S. Myers  <jsm28@cam.ac.uk>
89
90         * chill.texi: Move contents to just after title page.
91
92 2001-05-23  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
93
94         * Make-lang.in (dvi): Use ch/chill.dvi not chill.dvi.
95         (ch/chill.dvi): Use TEXI2DVI instead of custom tex calls.  Create
96         the dvi file in the ch directory.
97
98 2001-05-26  Zack Weinberg  <zackw@stanford.edu>
99
100         * configure: Remove obsolete file.
101
102 2001-05-25  Sam TH  <sam@uchicago.edu>
103
104         * ch-tree.h tasking.h: Fix header include guards.
105
106 2001-05-20  Joseph S. Myers  <jsm28@cam.ac.uk>
107
108         * Make-lang.in (chill.dvi): Remove bogus dependencies.  Don't cd
109         to ch; include both $(srcdir)/ch and $(srcdir) in TEXINPUTS.
110         Don't move chill.dvi after creating it.  Fixes PR other/567 and
111         PR other/1018.
112
113 Fri Feb 23 15:28:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
114
115         * decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
116
117 2001-02-15  Jim Meyering  <meyering@lucent.com>
118
119         * Make-lang.in (CHILL.install-common): Depend on `installdirs'.
120         (CHILL.install-info): Likewise.
121
122 Sun Feb  4 15:52:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
123
124         * convert.c (convert): Call abort instead of fatal.
125         * except.c (pop_handler, chill_check_no_handlers): Likewise.
126         * expr.c (chill_expand_expr): Likewise.
127         * parse.c (peek_token_, pushback_token, require): Likewise.
128         * grant.c (write_grant_file): Call fatal_io_error instead of
129         pfatal_with_name.
130         * lex.c (init_parse, same_file, yywrap): Likewise.
131         * lang.c (GNU_xref_begin, GNU_xref_end): Deleted.
132         * lex.c (convert_bitstring): Delete check for alloca failure.
133
134 2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
135
136         * ch-tree.h (integer_minus_one_node): Moved to top level gcc
137         directory.
138
139         * decl.c (integer_minus_one_node): Likewise.
140         (init_decl_processing): Don't set integer_minus_one_node.
141
142 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
143
144         * Makefile.in: Remove all dependencies on defaults.h.
145         * decl.c: Don't include defaults.h.
146         * timing.c: Likewise.
147
148 2000-12-08  Joseph S. Myers  <jsm28@cam.ac.uk>
149
150         * Make-lang.in (CHILL.info): Depend on info files in source
151         directory.
152         (ch/chill.info): Build info files in source directory.
153         (CHILL.install-info): Install info files from source directory.
154
155 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
156
157         * lex.c: Don't bother checking whether ISUPPER(c) before
158         calling TOLOWER(c).  Don't bother checking whether isascii(c)
159         before testing ISSPACE(c); ISSPACE(c) includes '\n'.
160
161 2000-12-06  Rodney Brown  <RodneyBrown@mynd.com>
162
163         * actions.h: Standarize copyright statement.
164         * except.c inout.c lang.c lex.c lex.h loop.c nloop.c: Likewise.
165         * parse.c tasking.c tasking.h timing.c xtypeck.c: Likewise.
166
167 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
168
169         * actions.c (check_missing_cases), typeck.c (build_chill_slice,
170         build_chill_cast): Use memset () instead of bzero ().
171
172 2000-11-05  Joseph S. Myers  <jsm28@cam.ac.uk>
173
174         * Make-lang.in (CHILL.distdir): Remove.
175
176 2000-11-02  Geoffrey Keating  <geoffk@cygnus.com>
177
178         * Make-lang.in: Remove 'CYGNUS LOCAL' markers.
179         * Makefile.in: Likewise.
180         * configure: Likewise.
181
182 2000-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
183
184         * Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for
185         updated gperf.
186
187 2000-10-05  Richard Henderson  <rth@cygnus.com>
188
189         * decl.c (finish_chill_function): Don't init can_reach_end.
190
191 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
192
193         * decl.c, timing.c: Include defaults.h if not already included.
194         Don't define the *_TYPE_SIZE macros.
195         * Makefile.in: Update dependencies.
196
197 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
198
199         * inout.c (add_enum_to_list): Use DECL_NAME directly, don't get
200         its IDENTIFIER_POINTER and immediately call get_identifier on it.
201         * lex.c (yywrap): Constify a char *.
202
203 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
204
205         * Make-lang.in (cc1chill): Don't depend on c-iterate.o.
206
207 2000-08-21  Nix  <nix@esperi.demon.co.uk>
208
209         * lang-specs.h: Do not process -o or run the assembler if
210         -fsyntax-only.
211
212 2000-08-07  Kazu Hirata  <kazu@hxi.com>
213
214         * decl.c: Fix a comment typo.
215
216 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
217
218         * Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
219         * Makefile.in (cc1chill): Link with $(BACKEND).  Define BACKEND,
220         eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
221
222 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
223
224         * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
225
226 Mon Jul 31 07:58:31 2000  Casper Dik <Casper.Dik@holland.sun.com>
227
228         * Makefile.in: Remove naked "^L".
229
230 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
231
232         * lang-specs.h: Use the new named specs.  Remove unnecessary braces.
233
234 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
235
236         * decl.c (init_decl_processing): Set TYPE_USER_ALIGN.
237         (layout_enum): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
238         * typeck.c (layout_chill_range_type): Set TYPE_USER_ALIGN.
239         (apply_chill_field_layout): Set DECL_USER_ALIGN.
240         (layout_chill_struct_type): Set TYPE_USER_ALIGN.
241
242 Tue Jun 13 15:30:46 2000  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
243
244         * Make-lang.in (CHILL.install-common): Use $(INSTALL_SCRIPT), not
245         $(INSTALL_PROGRAM) for chill.install.
246
247 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
248
249         * Makefile.in (EXPR_H): New dependency variable.
250         (actions.o, expr.o): Use EXPR_H.
251         (lang.o): Depend on RTL_H and EXPR_H.
252
253         * lang.c: Include rtl.h and expr.h.
254         (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.
255
256 2000-06-04  Philipp Thomas  <pthomas@suse.de>
257
258         * Makefile.in(INTLLIBS): New macro.
259         (LIBS): Add INTLLIBS.
260         (DEPLIBS): Likewise.
261         * config-lang(outputs): Specify ch/Makefile.
262
263 Sat Jun  3 15:31:07 2000  Jeffrey A Law  (law@cygnus.com)
264
265         * chill.texi (INFO-DIR-ENTRY): Fix chill entry.
266
267 2000-06-02  Richard Henderson  <rth@cygnus.com>
268
269         * lang.c (lang_get_alias_set): New.
270
271 Sat May 27 11:24:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
272
273         * lang.c (deep_const_expr): Use first_rtl_op.
274         * satisfy.c (satisfy): Use TREE_CODE_LENGTH.
275
276 2000-05-18  Chris Demetriou  <cgd@netbsd.org>
277
278         * Makefile.in (hash.h): Delete a redundant use of gawk and sed.
279
280 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
281
282         * decl.c (c_decode_option): Update -Wall unused flags by
283         calling set_Wunused.
284         (poplevel): Replace warn_unused with warn_unused_label.
285
286 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
287
288         * ch-tree.h: Update prototypes.  Remove prototypes for
289         functions declared elsewhere.
290         * decl.c (define_label): Constify filename parameter.
291         * grant.c (globalize_decl, set_default_grant_file): Constify
292         local char * variables.  Don't declare
293         first_global_object_name or asm_out_file.
294         * lang.c (chill_real_input_filename): Constify.
295         * lex.c (init_parse): Constify parameter and return value.
296         * parse.c: Don't declare input_filename.
297         (ch_expand_asm_operands): Constify filename parameter.
298         (parse_multi_dimension_case_action): Constify local char *.
299         * satisfy.c (safe_satisfy_decl): Constify local char *.
300
301 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
302
303         * ch-tree.h (init_function_start): Constify.
304
305 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
306
307         * ch/lex.c: Remove references to cccp.c.
308
309 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
310
311         * lang-specs.h: Pass -fno-show-column to the preprocessor.
312
313 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
314
315         * expr.c (chill_expand_expr): Pass bit alignment to emit_block_move.
316
317 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
318
319         * actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT.
320         * typeck.c (expand_constant_to_buffer): Use int_byte_position.
321         (extract_constant_from_buffer): Likewise.
322
323 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
324
325         * typeck.c (min_precision): New function.
326         (build_chill_slice): Use host_integerp and tree_low_cst.
327         (expand_constant_to_buffer): Likewise and also int_bit_position.
328         LO is unsigned HOST_WIDE_INT
329         (build_chill_array_ref_1): Make `i' be HOST_WIDE_INT; use tree_low_cst.
330         (extract_constant_from_buffer): Sizes are now HOST_WIDE_INT.
331         Use host_integerp and tree_low_cst.
332         (build_chill_bin_type): Use host_integerp and tree_low_cst.
333         (layout_chill_range_type): Use tree_int_cst_sgn, compare_tree_int,
334         tree_low_cst, and min_precision.
335         (apply_chill_array_layout): Cleanups for types of variables
336         and use tree_int_cst_sgn, compare_tree_int, and tree_low_cst.
337         (apply_chill_field_layout): Likewise.
338
339 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
340
341         * grant.c (globalize_decl): Constify a char*.
342
343 Mon Mar  6 17:52:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
344
345         * actions.c (chill_convert_for_assignment): INDEX is unsigned
346         HOST_WIDE_INT.
347         * ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH since unsigned.
348         * except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
349         Use compare_tree_int.
350         (expand_goto_except_cleanup): Likewise.
351
352 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
353
354         * decl.c (current_function_decl): Move to toplev.c.
355
356 Mon Feb 28 08:12:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
357
358         * ch-tree.h (DECL_ACTION_NESTING_LEVEL): Use new tree union name.
359         * decl.c (finish_struct): Don't clear DECL_FIELD_SIZE.
360         * typeck.c (make_chill_struct_type): Likewise.
361         (apply_decl_field_layout): General cleanup.
362         Set DECL_SIZE instead of DECL_FIELD_SIZE.
363
364 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
365
366         * actions.c (chill_convert_for_assignment): Don't use size_binop
367         for things that aren't sizes.
368         (expand_varying_length_assignment): Likewise.
369         * convert.c (digest_array_tuple, convert): Likewise.
370         * typeck.c (build_chill_slice, smash_dummy_type): Likewise.
371         (build_chill_slice_with_range): Likewise.
372         (build_chill_slice_with_length): Likewise.
373         (build_array_from_set): Adjust types for size_binop.
374         * expr.c (build_concat_expr, build_chill_repetition_op): Likewise.
375         (build_chill_sizeof): Use TYPE_SIZE_UNIT.
376         * tree.c (build_string_type): Pass proper type to size_binop.
377
378 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
379
380         * decl.c (layout_enum): Set DECL_SIZE_UNIT.
381         * satisfy.c (safe_satisfy_decl): Likewise.
382
383 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
384
385         * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
386
387 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
388
389         * grant.c: Don't declare `version_string'.
390
391 2000-02-11  Nathan Sidwell  <nathan@acm.org>
392
393         * decl.c (init_decl_processing): Remove duplicate decl of
394         set_alignment.
395
396 2000-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
397
398         * expr.c (compare_records): Delete maximum_field_alignment declaration.
399         * inout.c (inout_init): Likewise.
400         (build_chill_gettextaccess): Likewise.
401         (build_enum_tables): Likewise.
402         * lang.c: Likewise.
403         * satisfy.c (satisfy): Likewise.
404         * tasking.c (build_tasking_struct): Likewise.
405         (build_tasking_message_type): Likewise.
406         * typeck.c (build_init_struct): Likewise.
407
408         * except.c (emit_setup_handler): Make save_maximum_field_alignment
409         unsigned int to match maximum_field_alignment.
410         * inout.c (inout_init): Likewise.
411         (build_chill_gettextaccess): Likewise.
412         (build_enum_tables): Likewise.
413         * tasking.c (build_tasking_struct): Likewise.
414         (build_tasking_message_type): Likewise.
415         * typeck.c (build_init_struct): Likewise.
416
417 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
418
419         * except.c (maximum_field_alignment): Remove duplicate declaration.
420
421 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
422
423         * All files: PROTO -> PARAMS.
424
425 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
426
427         * lex.c: Include tm_p.h.
428
429 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
430
431         * actions.c (update_else_range_for_int_const): Initialize
432         variables `lowval' and `highval'.
433         (update_else_range_for_range): Likewise for `low_range_val' and
434         `high_range_val'.
435
436 1999-12-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
437
438         * typeck.c (apply_chill_array_layout, apply_chill_field_layout):
439         Avoid the use of ANSI string concatenation.
440
441         * expr.c (chill_expand_case_expr): Likewise.
442
443 1999-11-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
444
445         * expr.c (build_chill_function_call): Don't call a variadic
446         function with a non-literal format string.
447
448         * grant.c (write_spec_module): Likewise.
449
450         * parse.c (require, expect): Likewise.
451
452         * tasking.c (get_struct_type_name, get_struct_debug_type_name,
453         get_tasking_code_name, get_struct_variable_name,
454         get_process_wrapper_name, build_start_process): Likewise.
455
456         * typeck.c (valid_array_index_p): Likewise.
457
458 Sun Oct 31 22:33:33 1999  Jeffrey A Law  (law@cygnus.com)
459
460         * Makefile.in (convert.o, typeck.o): Depend on output.h
461         * convert.c: Include output.h.
462         * typeck.c: Include output.h.
463         (initializer_constant_valid_p): Delete fucntion.
464         * ch-tree.h (initializer_constant_valid_p): Delete prototype.
465
466 1999-10-26  Mark Mitchell  <mark@codesourcery.com>
467
468         * ch-tree.h (remember_end_note): Remove prototype.
469         * decl.c (poplevel): Don't call remember_end_note.
470
471 Fri Sep 24 10:48:10 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
472
473         * ch-tree.h (builtin_function): Don't declare.
474         * decl.c (builtin_function): New arg CLASS.  Arg FUNCTION_CODE now of
475         type int.  All callers changed.
476         Set the builtin's DECL_BUILT_IN_CLASS.
477
478 1999-09-20  Nick Clifton  <nickc@cygnus.com>
479
480         * lang.c (lang_decode_option): Extend comment.
481
482 1999-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
483
484         * lex.c (maybe_downcase, getlc, handle_generic_pragma,
485         check_newline): Use uppercase ctype macro from system.h.
486
487 1999-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
488
489         * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
490
491 Fri Sep 10 10:32:32 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
492
493         * ch-tree.h: Delete declarations for all tree nodes now moved to
494         global_trees.
495         * expr.c: Likewise.
496         * typeck.c: Likewise.
497         * decl.c: Delete their definitions.
498         (init_decl_processing): Call build_common_tree_nodes and
499         build_common_tree_nodes_2 instead of building their nodes here.
500         Use set_sizetype instead of assigning sizetype.
501
502 1999-09-08  Bruce Korb  autogen@linuxbox.com
503
504         * Makefile.in: Give the gperf user a hint about why "gperf -F" fails.
505
506 Tue Sep  7 15:59:56 1999  Dave Brolley  <brolley@cygnus.com>
507
508         * parse.h: Undefine DELAY if it's defined.
509         (PACK,NOPACK,POS): Remove erroneous comments regarding these tokens.
510         Also, move them to their proper place alphabetically.
511
512 1999-09-04  Mark Mitchell  <mark@codesourcery.com>
513
514         * Make-lang.in (cc1chill): Depend on ggc-callbacks.o.
515         * Makefile.in (CHILL_OBJS): Add ggc-callbacks.o.
516
517 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
518
519         * parse.c (language_string): Constify.
520
521 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
522
523         * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
524         Remove hacks for stuff which now comes from libiberty.
525
526 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
527
528         * lang.c (chill_print_error_function): Constify a char*.
529
530 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
531
532         * Makefile.in (ch-version.c): Constify a char*.
533
534         * actions.c (id_cmp, warn_unhandled, adjust_return_value,
535         update_else_range_for_int_const, update_else_range_for_range,
536         update_else_range_for_range_expr, update_else_range_for_type,
537         compute_else_range, check_case_value,
538         chill_handle_case_label_range,
539         chill_handle_multi_case_label_range,
540         chill_handle_multi_case_else_label, chill_handle_multi_case_label,
541         chill_handle_multi_case_label_list print_missing_cases): Add
542         static prototypes.
543         (build_exception_variant): Cast the function argument of qsort.
544         (build_rts_call, warn_unhandled, chill_convert_for_assignment,
545         adjust_return_value, chill_expand_result,
546         build_multi_case_selector_expression, print_missing_cases):
547         Constify a char*.
548         (print_missing_cases): Introduce an intermediary non-const ptr.
549         Add brackets and indent.
550
551         * ch-tree.h (maybe_building_objc_message_expr,
552         maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
553         (push_handler, pop_handler): Add prototypes.
554         (builtin_function, valid_array_index_p,
555         build_chill_exception_decl, build_rts_call,
556         chill_convert_for_assignment, display_int_cst,
557         build_chill_addr_expr, check_have_mode, get_identifier3,
558         build_chill_string, register_seize_path, get_unique_identifier,
559         add_taskstuff_to_list, gnuchill_version): Constify a char*.
560         (finish_chill_function): Add void prototype argument.
561
562         * convert.c (convert_to_reference, convert_to_boolean,
563         convert_to_char, base_type_size_in_bytes, remove_tree_element,
564         check_ps_range, digest_powerset_tuple, digest_structure_tuple,
565         digest_array_tuple, convert1): Add static prototypes.
566         (base_type_size_in_bytes): Hide unused function.
567         (display_int_cst, digest_array_tuple): Constify a char*.
568
569         * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
570         proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
571         build_implied_names, bind_sub_modules, layout_array_type,
572         do_based_decl, handle_one_level, label_value_cmp,
573         find_implied_types): Add static prototypes.
574         (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
575         Constify a char*.
576         (layout_chill_variants): Cast the function argument of qsort.
577         (start_chill_function, fix_identifier, init_decl_processing):
578         Constify a char*.
579         (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
580         Use xcalloc instead of xmalloc/bzero.
581         (builtin_function, build_chill_exception_decl,
582         finish_outer_function): Constify a char*.
583
584         * except.c (start_handler_array, finish_handler_array): Add static
585         prototypes.
586
587         * expr.c (chill_expand_expr, chill_expand_case_expr,
588         check_arglist_length, internal_build_compound_expr,
589         is_really_instance, invalid_operand, invalid_right_operand,
590         build_chill_abstime, build_allocate_memory_call,
591         build_allocate_global_memory_call, build_return_memory,
592         build_chill_duration, build_chill_floatcall,
593         build_allocate_getstack, build_chill_allocate,
594         build_chill_getstack, build_chill_terminate, build_chill_inttime,
595         build_chill_lower_or_upper, build_max_min,
596         build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
597         build_compare_set_expr, scalar_to_string, build_concat_expr,
598         build_compare_string_expr, compare_records, string_char_rep,
599         build_boring_bitstring): Add static prototypes.
600         (check_have_mode, chill_expand_expr, build_chill_floatcall,
601         build_allocate_getstack, build_max_min, build_chill_function_call,
602         expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
603         string_char_rep): Constify a char*.
604
605         * gperf (hash, in_word_set): Add prototypes.
606
607         * grant.c (newstring, strfree, append, prepend,
608         grant_use_seizefile, decode_layout, grant_array_type,
609         grant_array_type_selective, get_tag_value,
610         get_tag_value_selective, print_enumeral, print_enumeral_selective,
611         print_integer_type, find_enum_parent, print_integer_selective,
612         print_struct, print_struct_selective, print_proc_exceptions,
613         print_proc_tail, print_proc_tail_selective, find_in_decls,
614         in_ridpointers, grant_seized_identifier, globalize_decl,
615         grant_one_decl_selective, compare_memory_file, search_in_list,
616         really_grant_this): Add static prototypes.
617         (newstring, append, prepend, grant_use_seizefile,
618         print_integer_type, decode_constant, grant_one_decl_selective,
619         header_template): Constify a char *.
620
621         * inout.c (add_enum_to_list, build_chill_io_list_type,
622         build_io_types, declare_predefined_file, build_access_part,
623         textlocation_mode, check_assoc, assoc_call, check_transfer,
624         connect_process_optionals, connect_text, connect_access,
625         check_access, check_text, get_final_type_and_range,
626         process_io_list, check_format_string, get_max_size,
627         check_exprlist): Add static prototypes.
628         (declare_predefined_file, check_assoc, assoc_call, check_transfer,
629         check_access, check_text, process_io_list): Constify a char*.
630
631         * lang.c (deep_const_expr, chill_print_error_function): Add static
632         prototypes.
633
634         * lex.c (close_input_file, maybe_number, string_or_char): Constify
635         a char*.
636         (ch_lex_init, skip_directive, same_file, getlc, yywrap,
637         yy_refill): Add static prototypes.
638         (build_chill_string, same_file, register_seize_path): Constify a
639         char*.
640
641         * lex.h (finish_chill_seizes): Remove unused prototypes.
642
643         * loop.c (build_temporary_variable, maybe_make_for_temp,
644         get_unique_identifier): Constify a char*.
645
646         * parse.c (ch_parse_init, check_end_label, end_function,
647         build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
648         forward_token_, require, check_token, expect, define__PROCNAME__):
649         Add static prototypes.
650         (build_prefix_clause, expect): Constify a char*.
651         (parse_expression, parse_primval, parse_untyped_expr,
652         parse_opt_untyped_expr, parse_opt_actions): Add void prototype
653         argument.
654         (parse_opt_name_string, parse_simple_name_string,
655         parse_name_string, parse_defining_occurrence, parse_name,
656         parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
657         parse_spec_module, parse_semi_colon,
658         parse_defining_occurrence_list, parse_mode_definition,
659         parse_mode_definition_statement, parse_synonym_definition,
660         parse_synonym_definition_statement, parse_on_exception_list,
661         parse_on_alternatives, parse_loc_declaration,
662         parse_declaration_statement, parse_optforbid, parse_postfix,
663         parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
664         parse_grant_statement, parse_seize_statement,
665         parse_param_name_list, parse_param_attr, parse_formpar,
666         parse_formparlist, parse_opt_result_spec, parse_opt_except,
667         parse_opt_recursive, parse_procedureattr, parse_proc_body,
668         parse_procedure_definition, parse_processpar,
669         parse_processparlist, parse_process_definition,
670         parse_signal_definition, parse_signal_definition_statement,
671         parse_then_clause, parse_opt_else_clause, parse_expr_list,
672         parse_range_list_clause, pushback_paren_expr, parse_case_label,
673         parse_case_label_list, parse_case_label_specification,
674         parse_single_dimension_case_action,
675         parse_multi_dimension_case_action, parse_case_action,
676         parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
677         parse_asm_action, parse_begin_end_block, parse_if_action,
678         parse_iteration, parse_delay_case_event_list,
679         parse_delay_case_action, parse_do_action, parse_receive_spec,
680         parse_receive_case_action, parse_send_action, parse_start_action,
681         parse_call, parse_tuple_fieldname_list, parse_tuple_element,
682         parse_opt_element_list, parse_tuple, parse_operand6,
683         parse_operand5, parse_operand4, parse_operand3, parse_operand2,
684         parse_operand1, parse_operand0, parse_case_expression,
685         parse_then_alternative, parse_else_alternative,
686         parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
687         parse_step, parse_opt_layout, parse_field_name_list,
688         parse_fixed_field, parse_variant_field_list,
689         parse_variant_alternative, parse_field, parse_structure_mode,
690         parse_opt_queue_size, parse_procedure_mode, parse_program,
691         parse_pass_1_2): Add static prototypes.
692         (parse_process_definition): Remove extra argument in function call.
693         (parse_range_list_clause): Likewise.
694
695         * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
696         satisfy_list, satisfy_list_values): Add static prototype.
697         (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
698
699         * tasking.c (make_process_struct): Remove unused prototype.
700         (validate_process_parameters, get_struct_variable_name,
701         decl_tasking_code_variable, get_struct_debug_type_name,
702         get_process_wrapper_name, build_tasking_enum,
703         build_tasking_message_type, build_receive_signal_case_label,
704         build_receive_buffer_case_label, build_receive_buffer_case_end,
705         build_receive_signal_case_end): Add static prototypes.
706         (struct_name, struct_debug_name, data_name, wrapper_name,
707         get_struct_type_name, get_struct_debug_type_name,
708         get_tasking_code_name, get_struct_variable_name,
709         get_process_wrapper_name): Constify a char*.
710         (validate_process_parameters, get_struct_variable_name,
711         decl_tasking_code_variable): Hide unused functions.
712         (build_start_process, add_taskstuff_to_list, build_queue_length):
713         Constify a char*.
714
715         * tree.c (make_powerset_type): Add static prototype.
716         (get_identifier3, build_alias_decl, decl_check_rename): Constify a
717         char*.
718
719         * typeck.c (extract_constant_from_buffer,
720         expand_constant_to_buffer, build_empty_string,
721         make_chill_pointer_type, make_chill_range_type,
722         apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
723         apply_chill_field_layout): Add static prototype.
724         (valid_array_index_p, extract_constant_from_buffer,
725         chill_expand_tuple): Constify a char*.
726         (layout_chill_struct_type): Cast the function argument of qsort.
727
728 1999-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
729
730         * actions.c (lang_identify): Constify a char*.
731
732         * lang.c (chill_print_error_function): Likewise.
733         (lang_init): Remove redundant prototype for `print_error_function'.
734
735 1999-07-25  Richard Henderson  <rth@cygnus.com>
736
737         * decl.c (va_list_type_node): New.
738
739 1999-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
740
741         * Make-lang.in (CHILL.stage1): Depend on stage1-start.
742         (CHILL.stage2): Likewise for stage2-start.
743         (CHILL.stage3): Likewise for stage3-start.
744         (CHILL.stage4): Likewise for stage4-start.
745
746 Tue May 18 00:21:34 1999  Zack Weinberg  <zack@rabi.phys.columbia.edu>
747
748         * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
749         was not given.
750
751 1999-05-10 18:21 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
752
753         * lang-specs.h: Pass -$ to the preprocessor.
754
755 Tue May  4 14:52:53 1999  Dave Brolley  <brolley@cygnus.com>
756
757         * actions.c (chill_expand_assignment): Use powersetlen to calculate the
758         length of an array of packed bits.
759
760 Tue Apr 20 23:37:01 1999   Nathan Sidwell  <nathan@acm.org>
761
762         * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
763         order.
764
765 Wed Apr 14 21:07:30 1999  Mumit Khan  <khan@xraylith.wisc.edu>
766
767         * config-lang.in (compilers): Add exeext.
768         (stagestuff): Likewise.
769
770 Fri Apr  2 15:49:44 1999  Jeffrey A Law  (law@cygnus.com)
771
772         * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
773
774 Wed Mar 31 10:44:47 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
775
776         * Makefile.in (hash.h): Generate using gperf language 'C', not
777         'KR-C', so gperf uses the `const' keyword on strings.
778
779         * gperf (resword): Const-ify a char*.
780
781 Sun Mar 28 00:30:36 1999  Jeffrey A Law  (law@cygnus.com)
782
783         * Make-lang.in (CHILL.dvi): New target.
784         (CHILL.mostlyclean): Remove remnants of old runtime library structure.
785
786 1999-02-20  Craig Burley  <craig@jcb-sc.com>
787
788         * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
789         target instead of the chill.texi file.
790         (ch/chill.info): New target, depends on the chill.texi source file.
791         Its command writes ch/chill.info instead of chill.info.
792         (CHILL.install-info): Install from ch/chill.info instead of
793         chill.info.
794         If any ch/chill.info* files exist, delete *all* chill.info* files
795         in $infodir first, not just the ones corresponding to the
796         files to be installed (just in case the docs get smaller).
797
798 Sun Jan 31 20:34:29 1999  Zack Weinberg  <zack@rabi.columbia.edu>
799
800         * decl2.c: Don't define flag_no_ident here.  Don't process
801         -f(no-)ident here.
802         * ch-tree.h: Don't declare flag_no_ident here.
803         * lang-specs.h: Map -Qn to -fno-ident.
804
805 Tue Jan 19 23:24:36 1999  Jeffrey A Law  (law@cygnus.com)
806
807         * Makefile.in (typeck.o): Depend on insn-codes.h.
808         * actions.c (chill_handle_multi_case_label): Initialize "expr".
809         * decl.c (poplevel): Initialize "block_previously_created".
810         * expr.c (chill_expand_expr): Initialize "size0" and "size1".
811         (fold_set_expr): Initialize "buffer1".
812         * inout.c (process_io_list): Initialize "to_assign".
813         (check_exprlist): Initialize "result".
814         * parse.c (expand_expr): Declare.
815         (parse_multi_dimension_case_action): Initialize "end_case_label".
816         * tasking.c (build_start_process): Initialize "struct_type_node".
817         * typeck.c (apply_chill_field_layout): Initialize "word".
818         (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
819         signed/unsigned comparison warning.
820
821 Mon Jan 18 11:55:06 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
822
823         * ch-tree.h: Remove conflicting prototypes for pedwarn,
824         warning_with_decl, and make_dcl_rtl.
825
826 Sun Jan 17 21:53:23 1999  Jeffrey A Law  (law@cygnus.com)
827
828         * Makefile.in: Do not put ^Ls at the start of a line.
829
830 Wed Jan  6 02:53:38 1999  Jeffrey A Law  (law@cygnus.com)
831
832         * Makefile.in: Add some missing $(exeext).  Remove some obsolete
833         runtime stuff.
834         * Make-lang.in: Similarly.
835
836 Tue Nov 24 09:57:34 1998  Jeffrey A Law  (law@cygnus.com)
837
838         * Makefile.in (lex.c): Do not depend on hash.h.
839         (lex.o): Depend on hash.h.
840
841 Mon Oct 19 12:13:47 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
842
843         * Makefile.in (lex.o): Depend on dwarfout.h.
844
845         * lang-specs.h: Add missing braces in initializer.
846
847         * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
848
849 Thu Oct 15 09:25:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
850
851         * expr.c (build_chill_card): Use &&, not &, when comparing truth
852         values.
853
854         * parse.c (parse_spec_module): Remove unused variable
855         `module_name', but preserve function call from initialization.
856         (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
857
858         * inout.c (init_text_location): Remove unused variable `textlength'.
859
860 Wed Oct 14 22:19:48 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
861
862         * typeck.c (build_chill_cast): Fix typo in assignment statement.
863
864         * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
865         when printing a `tree'.
866
867 Fri Oct  9 13:01:23 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
868
869         * ch-tree.h (build_delay_case_end): Remove unused parameter.
870         (build_receive_case_end): Likewise.
871         (check_queue_size): Likewise.
872
873         * parse.c: Callers changed.
874
875         * satisfy.c: Likewise.
876
877         * tasking.c (build_receive_buffer_case_end): Remove unused
878         parameter `label_cnt'.
879         (build_receive_signal_case_end): Likewise.
880         (build_receive_case_end): Likewise.
881         (build_delay_case_end): Likewise.
882         (check_queue_size): Likewise for parameter `type'.
883         All callers changed.
884
885 Thu Oct  8 05:57:41 1998  Jeffrey A Law  (law@cygnus.com)
886
887         * typeck (type_for_mode): Only return TItype nodes when
888         HOST_BITS_PER_WIDE_INT is >= 64 bits.
889         (type_for_size): Similarly.
890         * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
891         when HOST_BITS_PER_WIDE_INT is >= 64 bits.
892         (init_decl_processing): Only create TItype nodes when
893         HOST_BITS_PER_WIDE_INT is >= 64 bits.
894
895 Wed Oct  7 12:19:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
896
897         * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
898         (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
899
900 Thu Oct  1 10:43:45 1998  Nick Clifton  <nickc@cygnus.com>
901
902         * lex.c: Replace occurrences of HANDLE_SYSV_PRAGMA with
903         HANDLE_GENERIC_PRAGMAS.
904         (handle_generic_pragma): New function: Parse generic pragmas.
905
906 Wed Sep 30 20:22:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
907
908         * parse.c (emit_label): Fix return-type of prototype.
909
910 Wed Sep 30 19:41:36 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
911
912         * actions.c (chill_handle_multi_case_label): Always return a value
913         in function returning non-void.
914
915         * except.c: Include OS headers before any local ones.
916
917         * typeck.c (layout_chill_range_type): Change type of variable
918         `negprecision' to int.
919         (apply_chill_array_layout): Initialize variables `stepsize' and
920         `start_bit'.
921         (layout_chill_struct_type): Change type of variable `min_align' to
922         unsigned int.
923         (smash_dummy_type): Change name of variable `main' to `main_tree'.
924
925 Wed Sep 30 19:24:41 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
926
927         * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
928         ensure enough bits for calculation.
929
930         * ch-tree.h (check_text_length): Remove unused parameter.
931
932         * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
933         function sprintf into the appropriate type for printing.
934
935         * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
936         format specifier.
937         (print_mode): Likewise.
938         (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
939
940         * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
941         the format specifier.
942
943         * inout.c (check_text_length): Remove unused parameter `type'.
944         (build_chill_associate): Initialize variables `arg1', `arg2',
945         `arg3', `arg4' and `arg5'.
946         (build_chill_modify): Likewise.
947         (scanformcont): Change type of variable `curr' to `unsigned char'.
948
949         * lex.c (maybe_downcase): Cast the argument of `tolower' to
950         `unsigned char'.
951
952         * satisfy.c (satisfy): Remove unused parameter in call to
953         `check_text_length'.
954
955         * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
956         as a `long' in call to function `error'.
957         (decl_tasking_code_variable): Likewise.
958
959 Wed Sep 30 19:03:02 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
960
961         * grant.c (decode_decl_selective): Cast switch's enum argument to
962         an int.
963         (really_grant_this): Add default case in switch.
964
965         * typeck.c (chill_resulting_class): Add default cases in switch.
966         Also add `break' statements after each case.
967
968 Tue Sep 29 21:37:33 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
969
970         * ch-tree.h (build_compare_expr): Change first argument's type
971         from `enum chill_tree_code' to `enum tree_code'.
972         (build_compare_discrete_expr): Likewise.
973
974         * expr.c (build_compare_set_expr): Likewise.
975         (build_compare_string_expr): Likewise.
976         (build_compare_expr): Likewise.
977         (build_compare_discrete_expr): Likewise.  Also add default case in
978         switch statement.
979         (compare_int_csts): Add default case in switch statement.
980
981 Sun Sep 20 11:02:55 1998  Robert Lipe  <robertl@dgii.com>
982
983         * except.c: Include system.h.
984
985         * Makefile.in (except.o): Depend on system.h.
986
987 Sun Sep 20 09:25:13 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
988
989         * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
990         lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
991         typeck.o): Depend on system.h and toplev.h.
992         (except.o): Depend on toplev.h.
993         (grant.o): Depend on system.h, toplev.h and output.h.
994
995         * actions.c: Include system.h and toplev.h.  Remove redundant
996         prototypes.
997         (build_cause_exception): Add default case in switch.
998         (update_else_range_for_range): Add parentheses around && within ||.
999         (chill_handle_multi_case_label_list): Remove unused variable
1000         `selector_value'.
1001         (print_missing_cases): Reconcile format specifiers vs arguments in
1002         calls to sprintf.
1003
1004         * ch-tree.h: Don't include stdio.h.  Wrap prototypes using FILE*
1005         with macro BUFSIZ.  Add missing prototypes.
1006
1007         * convert.c: Include system.h and toplev.h.  Remove redundant
1008         prototypes.
1009         (convert): Remove unused variable `errstr'.
1010
1011         * decl.c: Include system.h and toplev.h.  Remove redundant
1012         prototypes.
1013         (builtin_scope): Add missing initializers.
1014         (clear_scope): Likewise.
1015         (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
1016         (copy_lang_decl): Likewise for parameter `node'.
1017         (c_decode_option): Likewise for parameter `argc'.
1018         (push_extern_function): Likewise for parameter `granting'.
1019         (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
1020         (pushdecl): Remove unused variable `t'.
1021         (lookup_name_current_level): Make static and hide.
1022         (lookup_name_for_seizing): Make static.
1023         (finish_decl): Remove unused variable `type'.
1024         (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
1025         (complete_array_type): Mark parameters `type', `initial_value' and
1026         `do_default' with ATTRIBUTE_UNUSED.
1027         (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
1028         (start_enum): Likewise.
1029         (shadow_record_fields): Remove unused variables `type' and `parent'.
1030
1031         * except.c: Include toplev.h.  Remove redundant prototypes.
1032
1033         * expr.c: Include system.h and toplev.h.  Don't define NULL.
1034         Remove redundant prototypes.
1035         (internal_build_compound_expr): Mark parameter `first_p' with
1036         ATTRIBUTE_UNUSED.
1037         (build_allocate_getstack): Remove unused variable `init'.
1038         (build_chill_pred_or_succ): Likewise for variable `limit'.
1039         (varying_to_slice): Likewise for variable `doamin' [sic].
1040         (finish_chill_binary_op): Likewise for variables `code0' and
1041         `code1'.  Remove unused label `finish'.  Add explicit braces to
1042         avoid ambiguous `else'.
1043         (build_chill_addr_expr): Remove extra parameter in call to `error'.
1044         (build_chill_unary_op): Remove unused variables `class' and `type0'.
1045         (powersetlen): Remove unused variables `domain' and `temp'.
1046
1047         * grant.c: Include system.h, toplev.h and output.h.  Don't handle
1048         strchr/strrchr.  Remove redundant prototypes.
1049         (decode_constant_selective): Remove unused variables `op' and `wrk'.
1050         (push_granted): Mark parameters `name' and `decl' with
1051         ATTRIBUTE_UNUSED.
1052
1053         * inout.c: Include system.h and toplev.h.  Remove redundant
1054         prototypes.
1055         (textlocation_mode): Use &&, not &, when comparing two truth
1056         values.
1057         (scanformcont): Remove unused label `do_the_action'.
1058
1059         * lang.c: Include system.h and toplev.h.  Remove redundant
1060         prototypes.
1061         (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
1062         (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
1063         (lang_print_xnode): Likewise for parameters `file', `node' and
1064         `indent'.
1065         (lang_decode_option): Explicitly declare `explicit_ignore_case'.
1066         (incomplete_type_error): Mark parameters `value' and `type' with
1067         ATTRIBUTE_UNUSED.
1068
1069         * lex.c: Include system.h and toplev.h.  Remove redundant
1070         prototypes.  Don't handle strchr/strrchr.  Use CAPITALIZED
1071         versions of ctype macros from system.h.  Cast ctype arguments to
1072         unsigned char when necessary.
1073         (last_token, RETURN_TOKEN): Hide definition.
1074         (push_back): Remove unused function.
1075         (readstring): Change variable `i' to unsigned.
1076         (yywrap): Remove unused variable `node'.
1077
1078         * loop.c: Include system.h and toplev.h.  Remove redundant
1079         prototypes.
1080         (chill_unsigned_type): Hide prototype and definition.
1081         (begin_loop_scope): Remove unused variable `firstp'.
1082         (nonvalue_begin_loop_scope): Likewise.
1083
1084         * parse.c: Include system.h and toplev.h.  Remove redundant
1085         prototypes.
1086         (quasi_signal): Hide.
1087         (PEEK_TOKEN): Change return type to `enum terminal'.
1088         (parse_mode_definition_statement): Remove unused variable `names'.
1089         (parse_formpar): Remove unused parameter `in_spec_module'.  All
1090         callers changed.
1091         (parse_formparlist): Likewise.
1092         (parse_processpar): Remove unused variable `parms'.
1093         (parse_definition): Add explicit braces to avoid ambiguous `else'.
1094         (parse_multi_dimension_case_action): Initialize variable
1095         `begin_test_label'.  Remove unused variable `new_test'.
1096         (parse_case_action): Remove unused variable `caseaction_flag'.
1097         (parse_asm_clobbers): Remove unused variable `expr'.
1098         (parse_delay_case_action): Initialize variable `label_cnt'.
1099         (parse_action): Make function static.
1100         (parse_tuple_element): Remove unused variable `list'.
1101         (parse_primval): Add default case in switch.
1102         (parse_variant_alternative): Remove unused variables `x' and
1103         `variant_fields'.
1104
1105         * satisfy.c: Include system.h and toplev.h.  Remove redundant
1106         prototypes.
1107
1108         * tasking.c Include system.h and toplev.h.  Remove redundant
1109         prototypes.
1110         (data_name): Hide.
1111         (get_struct_variable_name): Likewise.
1112         (validate_process_parameters): Mark parameter `parms' with
1113         ATTRIBUTE_UNUSED.
1114         (build_start_process): Initialize variable `tuple'.
1115         (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
1116
1117         * timing.c: Include system.h and toplev.h.
1118         (build_after_timeout_start): Remove unused variable `goto_where'.
1119
1120         * tree.c: Include system.h and toplev.h.  Remove redundant
1121         prototypes.
1122
1123         * typeck.c: Include system.h and toplev.h.  Remove redundant
1124         prototypes.
1125         (extract_constant_from_buffer): Make function static.  Add
1126         explicit braces to avoid ambiguous `else'.
1127         (expand_constant_to_buffer): Likewise.
1128         (build_chill_slice): remove unused variable `is_static'.
1129         (chill_compatible): Add explicit braces to avoid ambiguous `else'.
1130         (apply_chill_array_layout): Remove unused variable `offset'.
1131         (smash_dummy_type): Remove unused variable `save_lang_specific'.
1132         (initializer_constant_valid_p): Add default case in switch.
1133
1134 Mon Sep 14 16:46:36 1998  Dave Brolley  <brolley@cygnus.com>
1135
1136         * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
1137         domain type of the array.
1138
1139         * expr.c (build_chill_function_call): Remove redundant call to
1140         chill_convert_to_assignment
1141
1142 Thu Sep 10 17:52:36 1998  Dave Brolley  <brolley@cygnus.com>
1143
1144         * actions.c (chill_convert_for_assignment): Make a copy of the result
1145         node before modifying it.
1146
1147 Sat Sep  5 16:55:37 1998  John Carr  <jfc@mit.edu>
1148
1149         * Make-lang.in: Comment ^L characters.  Sun make doesn't like them.
1150
1151 Sat Sep  5 23:49:50 1998  Jeffrey A Law  (law@cygnus.com)
1152
1153         * Makefile.in (INCLUDES): Update after recent reorganization at the
1154         toplevel gcc directory.
1155
1156 Sat Sep  5 22:25:51 1998  Richard Henderson  <rth@cygnus.com>
1157
1158         * Makefile.in: Update dependencies for top-level gcc files that moved.
1159
1160 Sat Sep  5 02:21:08 1998  Jeffrey A Law  (law@cygnus.com)
1161
1162         * Makefile.in: Tweak to avoid building runtime.  It's built
1163         elsewhere now.
1164
1165 Thu Sep  3 15:32:03 1998  Dave Brolley  <brolley@cygnus.com>
1166
1167         * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
1168
1169 Wed Sep 02 09:25:29 1998  Nick Clifton  <nickc@cygnus.com>
1170
1171         * lex.c (check_newline):  Change how HANDLE_PRAGMA is called.
1172         Generate warning messages if unknown pragmas are encountered.
1173         (pragma_getc): New function: retrieves characters from the
1174         input stream.  Defined when HANDLE_PRAGMA is defined.
1175         (pragma_ungetc): New function: replaces characters back into the
1176         input stream.  Defined when HANDLE_PRAGMA is defined.
1177
1178 Mon Aug 31 15:35:16 1998  Dave Brolley  <brolley@cygnus.com>
1179
1180         * decl.c (layout_chill_variants): Calculate nlables properly.
1181
1182 Mon Jul 27 17:21:01 1998  Dave Brolley  <brolley@cygnus.com>
1183
1184         * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
1185         element type.
1186
1187 Mon Jul 13 14:20:12 1998  Nick Clifton  <nickc@cygnus.com>
1188
1189         * lang-options.h: Format changed to match changes in gcc/toplev.c
1190         to implement a --help option.
1191
1192 Wed Jul  8 02:58:35 1998  Jeffrey A Law  (law@cygnus.com)
1193
1194         * lang.c (lang_init_options): New function.
1195
1196 Wed Jun 10 12:08:09 1998  Dave Brolley  <brolley@cygnus.com>
1197
1198         * lang-options.h: Remove -I.
1199         * ch-tree.h (c_decode_option): New argc/argv interface.
1200         * decl.c (c_decode_option): New argc/argv interface.
1201         * lang.c (lang_decode_option):  New argc/argv interface.
1202
1203 Wed May 27 10:33:41 1998  Dave Brolley  <brolley@cygnus.com>
1204
1205         * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
1206         chill_handle_multi_case_label_range were reversed.
1207
1208         * Make-lang.in (chill): Use the correct gcc in the driver script.
1209
1210 Thu May 21 14:40:44 1998  Dave Brolley  <brolley@cygnus.com>
1211
1212         * convert.c (digest_array_tuple): Move conversion to
1213         chill_convert_for_assignment.
1214
1215         * actions.c (chill_convert_for_assignment): Allow conversion of array
1216         constructor to bitstring constructor for assignment to array of packed bits.
1217
1218 Thu May 14 13:57:51 1998  Dave Brolley  <brolley@cygnus.com>
1219
1220         * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
1221
1222 Wed May 13 14:07:51 1998  Dave Brolley  <brolley@cygnus.com>
1223
1224         * typeck.c (build_chill_slice): Adjust slice index to account for the
1225         lower bound of the array.
1226
1227         * actions.c (chill_expand_assignment): Convert function arguments to the
1228         correct types.
1229         (chill_expand_assignment): Ditto.
1230
1231 Mon May 11 16:20:57 1998  Dave Brolley  <brolley@cygnus.com>
1232
1233         * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
1234         of the array_type to the slice_type.
1235         (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
1236         of bits.
1237
1238         * loop.c (build_loop_iterator): Disallow location enumeration for
1239         bit-packed arrays.
1240
1241         * convert.c (digest_array_tuple): Allow conversion of an array tuple
1242         to a bitstring for assignment to a packed array of bits.
1243
1244 Mon May  4 16:28:58 1998  Dave Brolley  <brolley@cygnus.com>
1245
1246         * ch-tree.def (PACKED_ARRAY_REF): New tree code.
1247         * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
1248         (chill_location): Handle PACKED_ARRAY_REF.
1249         (apply_chill_array_layout): Allow PACK for arrays of single bits.
1250         * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
1251         (invalid_operand): Check PACKED_ARRAY_REF operands.
1252         * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
1253
1254 Thu Apr 23 15:33:20 1998  Dave Brolley  <brolley@cygnus.com>
1255
1256         * typeck.c (apply_chill_field_layout): Only integral fields can be packed
1257         to the bit level.
1258
1259 Tue Apr 21 14:30:10 1998  Jeffrey A Law  (law@cygnus.com)
1260
1261         * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
1262         (init_decl_processing): Handle TI types.
1263         * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
1264         (type_for_size): Handle TI types.
1265         (type_for_mode): Handle TI types.
1266
1267 Mon Apr 20 13:12:26 1998  Dave Brolley  <brolley@cygnus.com>
1268
1269         * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
1270         int.
1271
1272         * actions.c (chill_convert_for_assignment): Check that the rhs is not
1273         a type declaration.
1274
1275 Tue Apr 14 13:17:44 1998  Dave Brolley  <brolley@cygnus.com>
1276
1277         * lex.c (init_parse): Now returns char* containing the filename.
1278
1279         * typeck.c (get_type_precision): Declare.
1280         (apply_chill_field_layout): Use the minimum number of bits necessary to
1281         represent discrete types as the natural length of the field.
1282
1283 Thu Apr  9 12:46:55 1998  Dave Brolley  <brolley@cygnus.com>
1284
1285         * lex.c (finput): Move definition here from toplev.c
1286         (init_parse): New function replaces init_lex.
1287         (init_parse): Add code to open source file.
1288         (finish_parse): New function.
1289         (close_input_file): File was being closed more than once.
1290
1291         * lang.c (finput): Declare.
1292         * ch-tree.h (init_lex): Remove.
1293
1294
1295 Wed Apr  8 14:47:33 1998  Dave Brolley  <brolley@cygnus.com>
1296
1297         * actions.c (compute_else_range): Fix loop index error.
1298         (chill_handle_multi_case_label_range): Move error checking to
1299         chill_handle_multi_case_label.
1300         (chill_handle_multi_case_else_label): Convert ELSE range values to
1301         the type of the corrersponding CASE selector.
1302
1303 Wed Apr  8 13:02:50 1998  Jeffrey A Law  (law@cygnus.com)
1304
1305         * actions.c (sizetype_tab): Do not declare.
1306         * lang.c (lang_print_xnode): New function.
1307
1308 Mon Mar 23 14:43:06 1998  Dave Brolley  <brolley@cygnus.com>
1309
1310         * grant.c (decode_layout): New function.
1311         (grant_array_type): Call decode_layout to export layout information to
1312         the grant file.
1313         (decode_decl): Ditto
1314
1315 Fri Mar 20 16:06:41 1998  Dave Brolley  <brolley@cygnus.com>
1316
1317         * parse.c (parse_tuple_element): Call had arguments in wrong order.
1318
1319 Thu Mar 19 13:42:33 1998  Dave Brolley  <brolley@cygnus.com>
1320
1321         * typeck.c (apply_chill_array_layout): Use
1322         TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
1323         the word size.
1324
1325 Wed Mar 18 16:25:48 1998  Dave Brolley  <brolley@cygnus.com>
1326
1327         * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
1328         fields.
1329
1330         * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
1331         proper places.
1332
1333 Tue Mar 17 14:16:08 1998  Dave Brolley  <brolley@cygnus.com>
1334
1335         * parse.c (gen_label_rtx): Declare before use.
1336         (emit_jump): Declare before use.
1337         (emit_label): Declare before use.
1338         (parse_case_label_list): Pass in CASE selector so we can mark it as having
1339         an (ELSE) label if necessary.
1340         (parse_case_label_specification): Pass in the CASE selector list so that
1341         the CASE selectors can be passed to parse_case_label_list.
1342         (parse_multi_dimension_case_action): Modify to generate branching code in
1343         one pass.
1344         (parse_case_expression): Compute (ELSE) range before generating CASE expression.
1345         (parse_variant_alternative): Remove error for (ELSE) specified.
1346
1347         * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
1348
1349         * decl.c (layout_chill_variants): Add code to check compatibility of ranges
1350         and discrete mode names.
1351
1352         * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
1353
1354         * actions.h (build_multi_case_selector_expression): Make it extern.
1355         (chill_handle_multi_dimension_case_label): Remove.
1356         (compute_else_ranges): New function.
1357
1358         * actions.c (update_else_range_for_int_const): New function.
1359         (update_else_range_for_range): New function.
1360         (update_else_range_for_range_expr): New function.
1361         (update_else_range_for_type): New function.
1362         (compute_else_range): New function.
1363         (compute_else_ranges): New function.
1364         (chill_handle_multi_case_else_label): New function
1365         (chill_handle_multi_case_label_range): Don't generate tests for conditions
1366         which are always true or false.
1367         (chill_handle_multi_case_label): Ditto.
1368         (chill_handle_multi_case_label): Implement (ELSE) label support.
1369         (chill_handle_multi_case_label): First argument is now the selector tree not
1370         its VALUE.
1371         (chill_handle_multi_dimension_case_label): Removed.
1372         (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
1373         reversed on entry, so reverse it here.
1374
1375 Tue Mar 10 15:02:26 1998  Dave Brolley  <brolley@cygnus.com>
1376
1377         * actions.c (chill_handle_multi_case_label_range): Add more error checking.
1378         (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
1379         (chill_handle_multi_case_label): Improve Error handling.
1380
1381 Mon Mar  9 12:39:00 1998  Dave Brolley  <brolley@cygnus.com>
1382
1383         * actions.c (chill_handle_multi_case_label_range): Added.
1384         (chill_handle_multi_case_label): Add support for discrete ranges and
1385         discrete modes.
1386
1387         * typeck.c (apply_chill_array_layout): Added more error checking.
1388         (apply_chill_field_layout): Added more error checking.
1389
1390 Wed Mar  4 16:08:26 1998  Dave Brolley  <brolley@cygnus.com>
1391
1392         * convert.c (convert): Call build_simple_array_type with new argument.
1393
1394         * ch-tree.h(build_simple_array_type): Add argument for array layout.
1395
1396         * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
1397         (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
1398         (apply_chill_array_layout): New function to implement array layout.
1399         (layout_chill_array_type): Call apply_chill_array_layout and reset
1400         TYPE_ATTRIBUTES to NULL_TREE.
1401         (build_chill_array_type): Extend to handle one array layout per index mode.
1402         (smash_dummy_type): Call build_simple_array_type with new argument.
1403
1404         * satisfy.c (satisfy): Call SATISFY on array layout tree.
1405
1406 Wed Feb 25 14:36:41 1998  Dave Brolley  <brolley@cygnus.com>
1407
1408         * typeck.c (next_struct_offset): Added.
1409         (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
1410         or POS layout to a structure field.
1411         (layout_chill_struct_type): Add call to apply_chill_field_layout.
1412
1413         * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
1414         in the field layout tree.
1415
1416         * parse.c (pack_warn_printed): Remove.
1417         (nopack_warn_printed): Remove.
1418         (step_warn_printed): Remove.
1419         (pos_warn_printed): Remove.
1420         (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
1421
1422         * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
1423         field declarations.
1424
1425 Thu Feb 19 17:33:06 1998  Dave Brolley  <brolley@cygnus.com>
1426
1427         * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
1428         (parse_opt_mode): Removed incorrect comment about association of array
1429         layouts with nested array elements.
1430         (parse_opt_mode): Allow for one layout per index mode specified.
1431
1432 Wed Feb 18 23:48:57 1998  Richard Henderson  <rth@cygnus.com>
1433
1434         * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependency.
1435
1436 Wed Feb 18 17:35:05 1998  Dave Brolley  <brolley@cygnus.com>
1437
1438         * parse.c (parse_field): Get rid of warning for multiple case selectors.
1439
1440         * decl.c (layout_chill_variants): Fix loop indexing error.
1441
1442 Mon Feb 16 15:54:47 1998  Dave Brolley  <brolley@cygnus.com>
1443
1444         * parse.c (parse_case_expression): Remove code which checked for
1445         unimplemented (ELSE) label.
1446         (parse_case_expression): Add code to handle multi dimensional case
1447         expression.
1448
1449         * expr.c (check_case_selector_list): Fixed to return a list of the
1450         selectors which were checked.
1451         (chill_expand_case_expr): Remove "sorry" message for multi dimension
1452         case.
1453         (chill_expand_case_expr): Reverse order of case alternatives.
1454         (chill_expand_case_expr): Add "error" message for multiple case
1455         selectors.
1456
1457         * actions.h (build_chill_multi_dimension_case_expr): Added.
1458
1459         * actions.c (build_multi_case_selector_expression): Renamed from
1460         build_multi_case_expression.
1461         (chill_handle_multi_dimension_case_label): Call above function by its
1462         new name.
1463         (build_chill_case_expr): Don't reverse the list elements here. It may
1464         not be necessary.
1465         (build_chill_multi_dimension_case_expr): New function implements multi
1466         dimensional case expression.
1467
1468 Thu Feb 12 15:44:50 1998  Dave Brolley  <brolley@cygnus.com>
1469
1470         * parse.c (parse_case_action): Implement multi-dimension CASE action.
1471         (parse_multi_dimension_case_action): Added.
1472         (parse_single_dimension_case_action): Added based on code moved from
1473         parse_case_action.
1474
1475         * expr.c (check_case_selector_list): Added.
1476
1477         * ch-tree.h (check_case_selector_list): Added.
1478
1479         * actions.h (chill_handle_single_dimension_case_label): Added.
1480         (chill_handle_multi_dimension_case_label): Added.
1481
1482         * actions.c (chill_handle_single_dimension_case_label): Added.
1483         (chill_handle_multi_case_label): Added.
1484         (chill_handle_multi_case_label_list): Added.
1485         (build_multi_case_expression): Added.
1486         (chill_handle_multi_dimension_case_label): Added
1487
1488 Fri Feb  6 16:43:41 1998  Dave Brolley  <brolley@cygnus.com>
1489
1490         * actions.c (sizetype_tab): Fix declaration to match gcc changes.
1491
1492 Thu Feb  5 14:03:00 1998  Dave Brolley  <brolley@cygnus.com>
1493
1494         * decl.c (chill_tree_code_type):  Change this to be an array of char like
1495         the tree_code_type in the rest of gcc.
1496
1497         * ch-tree.def (chill_tree_code_type): See decl.c.
1498
1499 Thu Jan 29 15:34:18 1998  Dave Brolley  <brolley@cygnus.com>
1500
1501         * tasking.c (error_with_decl): Correct prototype.
1502         (build_gen_ptype): Reverse arguments.
1503
1504         * lang.c (chill_real_input_filename): Add definition.
1505         (chill_print_error_function): Correct second argument.
1506         (lang_init): Set chill_real_input_filename.
1507
1508         * expr.c (NULL): Protect definition with #ifndef.
1509
1510         * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
1511         (init_decl_processing): Change last argument to 'sizeof(char)'.
1512
1513
1514 Tue Nov 25 10:44:19 1997  Nick Clifton  <nickc@cygnus.com>
1515
1516         * Make-lang.in (mostlyclean): Use && to separate commands, so that
1517         if the directory change fails, the rule will not loop.
1518
1519 Mon Mar  3 12:08:19 1997  Fred Fish  <fnf@cygnus.com>
1520
1521         * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1522         spaces and use single tab character on some lines.
1523         (cc1chill): Ditto.
1524
1525 Tue Nov 26 05:12:40 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1526
1527         * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1528         that the buffer location gets evaluated only once, in
1529         build_receive_buffer_case_end.
1530
1531         * typeck.c (build_chill_bin_type): Rework.
1532         (layout_chill_range_type): Process BIN mode.
1533         (build_chill_array_type): Remove checking of layout. This is done
1534         at the parse.
1535
1536         * parse.c (parse_on_exception_list): Don't allow ON name:.
1537         (parse_opt_layout): Parse POS and STEP and return a tree instead
1538         of int.
1539
1540         * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1541
1542         * grant.c (print_integer_type): Take care of BIN.
1543
1544         * expr.c (build_chill_descr): Make descr static if requested
1545         location is static.
1546         (build_chill_length): Process text mode name and text location as
1547         described in Z.200/1992.
1548         (build_compare_expr): Don't allow < <= > >= for composite modes.
1549
1550         * decl.c (grok_chill_fixedfields): Remove checking of
1551         layout. This is done at the parser.
1552
1553         * convert.c (digest_structure_tuple): Take care of wrong (probably
1554         array) tuple. Printing error may cause sigsegv.
1555
1556         * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1557         build_chill_array_type (layout is passed now as a tree instead of
1558         int).
1559
1560 Fri Nov 15 15:17:44 1996  Per Bothner  <bothner@deneb.cygnus.com>
1561
1562         * convert.c (display_int_cst):  Check that val is INTEGER_CST.
1563         (digest_array_tuple):  Some extra error checks (i.e. that indexes
1564         are constant).  If dynamic mode, result is not constant.
1565
1566 Mon Oct 28 12:48:06 1996  Jeffrey A Law  (law@cygnus.com)
1567
1568         * typeck.c (signed_or_unsigned_type): If the given type already
1569         as the correct signedness, then just return it.
1570
1571         * typeck.c ({un,}signed_type): If can't do anything, call
1572         signed_or_unsigned_type.
1573
1574 Fri Sep  6 02:50:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1575
1576         * typeck.c (build_chill_cast): In case of rangecheck, take care of
1577         constant expression (when defining a SYN).
1578
1579 Thu Sep  5 04:30:32 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1580
1581         * parse.c (define__PROCNAME__): New function to define a SYNONYM
1582         __PROCNAME__ (__procname__) which is a character string containing
1583         the name of the current procedure. This is quit the same as
1584         __FUNCTION__ in C.
1585         (parse_proc_body): Add call to define__PROCNAME__.
1586
1587         * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1588         modes on one side and procedures on the other side..
1589
1590 Wed Jul 24 01:13:51 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1591
1592         * typeck.c: Replace all local variables and arguments named `index'
1593         with `idx', `index' gets replaced by `strchr' which makes debugging
1594         somehow difficult.
1595         (valid_array_index_p): New argument to indicate that we are processing
1596         LENGTH (varying string) on the lefthand side of an assignment. The
1597         index check is different in this case.
1598         (build_chill_cast): In case of expression conversion do an OVERFLOW
1599         check with the limits of the target mode.
1600
1601         * ch-tree.h: New prototype for valid_array_index_p.
1602
1603         * actions.c (expand_varying_length_assignment): Add new argument to
1604         call to valid_array_index_p to indicate we are processing
1605         LENGTH on the lefthand side of an assignment.
1606
1607         * loop.c: Rename loop_stack to loopstack to avoid clashes with
1608         global variable ../stmt.c:loop_stack.
1609
1610 Tue Jun 18 23:04:06 1996  Per Bothner  <bothner@deneb.cygnus.com>
1611
1612         * expr.c (resolve_component_ref):  Set TREE_SIDE_EFFECTS properly.
1613
1614 Mon Jun 10 15:01:51 1996  Per Bothner  <bothner@deneb.cygnus.com>
1615
1616         * typeck.c (build_chill_reference_type):  Copy novelty for reference.
1617         * satisfy.c (satisfy):  If REFERENCE_TYPE, copy novelty.
1618
1619 Thu May 30 04:55:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1620
1621         * typeck.c (valid_array_index_p): For varying character strings
1622         we must check if the index is less then the actual length instead
1623         of less equal.
1624
1625 Wed May 15 06:07:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1626
1627         * ch-tree.h: Add prototype for test_range.
1628
1629         * inout.c (process_io_list): Fix duplicate function call if
1630         writetext argument is a function returning a varying string.
1631
1632 Tue May 14 21:08:47 1996  Per Bothner  <bothner@deneb.cygnus.com>
1633
1634         Re-do string comparisons.  Old way could re-use temporary
1635         (SAVE_EXPR created for an argumnet is variable) prematurely.
1636         * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR):  New codes.
1637         * decl.c (init_decl_processing):  Remove __eqstring, __gestring,
1638         __gtstring, __lestring, __ltstring, __nestring declarations.
1639         * expr.c (build_char_array_expr):  Rename to build_compare_string_expr.
1640         Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1641         (chill_expand_expr):    Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1642         (build_compare_expr):  Use new build_char_array_expr name.
1643
1644 Mon Apr  8 14:08:30 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1645
1646         Cleanup of April 5 fix:
1647         * actions.c (test_range):  New function.
1648         (check_range):  Simplify to use test_range.
1649         * convert.c (digest_powerset_tuple):  Move error message from here ...
1650         (check_ps_range):  ... to here.  Also, simplify to use test_range.
1651
1652 Fri Apr  5 03:41:05 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1653
1654         * convert.c (check_ps_range): New function to perform range check
1655         of powerset tuple elements. This is quite the same as check_range,
1656         however, the actions on rangefail are different.
1657         (digest_powerset_tuple): Call check_ps_range.
1658
1659         * loop.c (build_loop_iterator): Chaeck if location enumeration
1660         is requested for BOOLS(n) and print an error message.
1661
1662 Wed Mar  6 17:46:48 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1663
1664         * parse.c (parse_primval):  Emit error if !ignore (before: pass==2).
1665
1666         Implement parameterised array and string modes (using LANG_TYPE).
1667         * parse.c (parse_opt_mode):  Handle parameterized arrays and strings.
1668         * grant.c (decode_mode):  Support extended use of LANG_TYPE.
1669         * satisfy.c (cycle_error_print):  Ignore non-decls in chain.
1670         (safe_satisfy_decl):  No error if non-decl (pointer type) in cycle.
1671         (satisfy):  Return immediately if laid out non-pointer type.
1672         (satisfy case LANG_TYPE):  Handle paramertised mode.
1673         (satisfy case POINTER_TYPE/REFERENCE_TYPE):  Push type on chain;
1674         return immediately if already in chain.
1675         * typeck.c (smash_dummy_type):  Handle parameterized modes and CHAR(N).
1676         Change return type (can now return error_mark_node).
1677         (build_readonly_type):  Return return value from smash_dummy_type.
1678         * ch-tree.h:  Change smash_dummy_type return type.
1679
1680 Tue Mar  5 22:31:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1681
1682         * typeck.c (build_chill_slice):  Re-do index_type calculation.
1683         * typeck.c (layout_chill_range_type):  Use compare_int_csts rather
1684         than tree_int_cst_lt to avoid signed/unsigned problems.
1685
1686         * typeck.c (copy_novelty):  Use copy_node rather than build_type_node.
1687         * typeck.c (smash_dummy_type):  Use copy_novelty for NEWMODE of range.
1688
1689         * decl.c (init_decl_processing): More portable sizetype initialization.
1690
1691         * tree.c (build_string_type):  Generalize to also create bitstrings.
1692         Return error_mark_node if an argument is an ERROR_MARK.
1693         (build_bitstring_type):  Simplify - just call build_string_type.
1694
1695 Tue Mar  5 03:48:32 1996  Wilfried Moser  <moser@blues.cygnus.com>
1696
1697         * actions.c (warn_unhandled): Add missing assignment.
1698
1699         * loop.c (build_loop_iterator): In case of IN, check if
1700         expression has a mode, otherwise make an error.
1701
1702 Mon Mar  4 23:12:03 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1703
1704         *  convert.c (digest_powerset_tuple):  Check tuple elements
1705         for compatibility;  if compatible, call convert.
1706
1707 Thu Feb 29 23:39:54 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1708
1709         Simplify NOVELTY representation.
1710         * ch-tree.h (CH_NOVELTY):  Re-implement as plain TYPE_CONTEXT.
1711         (CH_NOVELTY_FLAG):  Removed.  (Just use CH_NOVELTY.)
1712         * decl.c (push_modedef):  Make copy even for SYNMODE.
1713         but not for internal typedefs (indicated by make_newmode==-1).
1714         * tasking.c:  Call push_modedef with make_newmode==-1.
1715         * typeck.c (chill_novelty):  Remove.
1716         (smash_dummy_type):  Removed unused event/buffer stuff.  Update.
1717         * grant.c (decode_decl), inout.c (build_io_types),
1718         expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1719         tasking.c (build_instance_type):  Simplify using new CH_NOVELTY.
1720
1721         Solidify READ mode handling.
1722         * decl.c (do_decl, push_syndecl, start_chill_function):
1723         Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1724         * typeck.c (build_chill_slice):  Set TREE_READONLY appropriately.
1725         (build_chill_array_ref_1, build_chill_bitref):  Likewise.
1726         (build_chill_cast):  Set TREE_READONLY depending on result type (only).
1727         * convert (convert_from_reference, convert):  Likewise.
1728         * expr.c (resolve_component_ref):  Set TREE_READONLY appropriately.
1729         (build_chill_function_call):  Error if OUT/INOUT arg is TREE_READONLY.
1730         * actions.c (chill_expand_assignment):  Also error if TREE_READONLY.
1731         Use convert_from_reference.
1732
1733 Thu Feb 29 11:14:09 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1734
1735         * parse.c (parse_do_action):  DO WITH expressions are evaluated in
1736         outer scope.  Also call save_if_needed.
1737         * decl.c (shadow_record_fields);  Fix and simplify.
1738
1739 Tue Feb 27 22:19:40 1996  Per Bothner  <bothner@cygnus.com>
1740
1741         * convert.c (display_int_cst):  Gereralize to wider range of ints.
1742
1743 Thu Feb 22 06:12:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1744
1745         * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1746
1747         * decl.c (do_decl): In case of chill_varying_type_p, check if
1748         type of fixed part is error mark and do nothing in this case.
1749
1750         * lex.c (convert_bitstring): Don't complain when length of
1751         bitstring is 0 (BOOLS(0) is a valid mode).
1752
1753         * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1754         (domain) is error mark.
1755
1756         * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1757         error_mark_node, just return.
1758
1759 Tue Feb 20 00:01:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1760
1761         * parse.c (parse_variant_alternative): When checking for ELSE take
1762         care of tagless variants.
1763
1764 Mon Feb 19 05:54:45 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1765
1766         * parse.c (parse_case_action): Check if ELSE was specified
1767         in a case label list (this is only valid for array tuples).
1768         (parse_case_expression): Deto.
1769         (parse_variant_alternative): Deto.
1770
1771 Tue Feb 13 17:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1772
1773         * typeck.c (chill_location):  Cleanup.  Neither SLICE_EXPR nor
1774         BIT_FIELD_REF are referable, even if their base strings are.
1775
1776 Fri Feb  9 02:25:33 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1777
1778         * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1779         checking the expression.
1780
1781         * convert.c (convert): Set TREE_CONSTANT when taking the
1782         address of a function.
1783
1784         * decl.c (start_chill_function): Check if the mode is really
1785         a mode to avoid subsequent segfaults.
1786
1787         * typeck.c (string_assignment_condition): Add checking of
1788         bitstring length.
1789
1790 Thu Feb  8 01:37:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1791
1792         * actions.c (build_cause_exception): Print warning of unhandled
1793         exception only once for each exception.
1794
1795 Mon Feb  5 22:17:13 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1796
1797         * tree.c (discrete_count), ch-tree.h:  New function.
1798         * expr.c (build_concate_expr, build_chill_repetition_op,
1799         chill_expand_expr):  Use discrete_count;  make sure arguments
1800         to size_binop are sizetype.
1801         (powersetlen):  Trvialize using discrete_count.
1802
1803         * inout.c (process_io_list):  Use new assign_temp function.
1804         * inout.c (build_enum_tables):  Avoid taking address of array_ref,
1805         which sometimes gets optimized to a constant.
1806
1807         * expr.c (finish_chill_unary_op):  Call convert_to_class on argument.
1808         Remove some obsolete TREE_UNSIGNED stuff.
1809         * lex.c (convert_integer):  Removed more TREE_UNSIGNED stuff.
1810
1811 Thu Feb  1 15:11:20 1996  Doug Evans  <dje@charmed.cygnus.com>
1812
1813         * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1814
1815 Wed Jan 31 17:13:25 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1816
1817         * decl.c (char_array_type_node, wchar_array_type_node):  Removed.
1818         (init_decl_processing):  Remove array_domain_type;  don't set
1819         char_array_type_node or wchar_array_type_node.
1820         * decl.c (init_decl_processing):  Use fixup_unsigned_type to
1821         simplify code to create boolean_type_node and char_type_node.
1822
1823 Mon Jan 29 14:20:10 1996  Doug Evans  <dje@charmed.cygnus.com>
1824
1825         * lex.c (check_newline): Pass character after `#pragma' to
1826         HANDLE_PRAGMA.  Don't call get_directive_line if at end of line.
1827
1828 Fri Jan 26 05:56:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1829
1830         * expr.c (build_chill_function_call): Add check and error for
1831         actual argument is a TYPE_DECL.
1832
1833         * parse.c (parse_set_mode): Print a warning if the set mode contains
1834         numbered and unnumbered set elements.
1835
1836 Wed Jan 24 05:10:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1837
1838         * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1839
1840         * decl.c (layout_enum): Add check for negative values if
1841         enum is numbered and duplicate values in an enum.
1842
1843 Mon Jan 15 06:21:52 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1844
1845         * actions.c (chill_expand_assignment): Add check for lefthand side
1846         of an assignment is a location.
1847
1848         * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1849         not "concat_expr".
1850
1851         * expr.c (is_really_instance): New function to check if a datum
1852         is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1853         for this case.
1854         (build_chill_component_ref): call is_really_instance.
1855
1856 Wed Jan 10 13:47:14 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1857
1858         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  Removed;  now in ../tree.h.
1859
1860 Mon Jan  8 15:29:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1861
1862         * expr.c (build_char_array_expr):  Add save_if_needed's if varying.
1863         Also, remove unused len0 and len1.
1864
1865 Mon Dec 11 17:36:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1866
1867         * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1868         build_chill_getassociation, build_chill_getusage,
1869         build_chill_gettextrecord,  build_chill_gettextaccess:  Simplify
1870         - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1871
1872         * parse.c (parse_action):  Minor simplification.
1873
1874 Thu Dec  7 00:02:47 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1875
1876         * parse.c (parse_action): In case of CALL, do a check if there
1877         is really a function call.
1878
1879 Tue Dec  5 05:06:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1880
1881         * convert.c (display_int_cst): Fix printing of control sequence.
1882
1883 Thu Nov 30 21:07:57 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1884
1885         * grant.c (decode_constant, decode_constant_selective):  Make work
1886         for REAL_IS_NOT_DOUBLE case.
1887
1888         * decl.c (CHILL_INT_IS_SHORT):  New macro.
1889         (init_decl_processing):  Use CHILL_INT_IS_SHORT.
1890         Change name of integer_type_node from _cint to long.
1891
1892 Mon Nov 27 17:07:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1893
1894         * loop.c (top_loop_end_check):  Check while condition *after*
1895         getting next powerset element.
1896
1897 Mon Nov 27 05:29:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1898
1899         * parse.c (parse_receive_case_action): Fix typo in error message.
1900
1901         * convert.c (display_int_cst): Format characters like strings in
1902         grant.c(decode_constant).
1903
1904         * grant.c: Remove the old forbid stuff.
1905
1906         * lex.c (readstring): Fix reading of '^^'.
1907
1908         * parse.c (parse_procedure_mode): nreverse param_types.
1909
1910 Thu Nov 23 05:39:57 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1911
1912         * actions.c (chill_expand_assignment): Check for assigning to
1913         location with non-value mode.
1914
1915         * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1916         Add new and change some prototypes.
1917
1918         * decl.c (init_nonvalue_struct): New function to generate
1919         initialisation code for non-value structs.
1920         (init_nonvalue_array): New function to generate initialisation
1921         code for non-value array's.
1922         (do_decl): Call one of the above mentioned functions in case
1923         we have a mode with the non-value property.
1924         (start_chill_function): Print error message if a non-value mode
1925         gets returned without LOC and check for arguments of non-value
1926         modes only gets passed by LOC.
1927
1928         * grant.c (print_proc_tail): Fix for procedure returning LOC.
1929
1930         * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1931         association_type_node.
1932         (invalidate_access_recordmode): New function to set the
1933         record mode of an ACCESS to error_mark_node in case of
1934         record mode has the non-value property.
1935         (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1936         (build_access_mode, build_chill_gettextaccess): Deto.
1937         (check_exprlist): Correct processing of repetition factor.
1938
1939         * lex.c (readstring): Correct processing of control
1940         sequences of the form '^([H | D | O | B]'xx)'.
1941
1942         * loop.c: Cleanup iterator handling (done by Per).
1943         (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1944         functions for starting and ending a loop scope in case
1945         of initialising an array with non-value property.
1946
1947         * parse.c (check_end_label): Remove '\n' from error message.
1948         (parse_loc_declaration): Print error in case of loc-identity
1949         declaration without initialisation or with keyword INIT.
1950         (parse_do_action): Clean up iterator handling (done by Per).
1951
1952         * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1953         message in case of TYPE_DECL is a signal and the mode has the
1954         non-value property.
1955         (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1956         the array type if the array element mode has the non-value
1957         property.
1958         (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1959         type if one of the fields have the non-value property. If the
1960         record is a buffer mode and the element mode of the buffer has
1961         the non-value-p., invalidate it (see
1962         tasking.c (invalidate_buffer_element_mode). Same for access modes.
1963
1964         * tasking.c (build_signal_descriptor): If the signal type have
1965         the non-value property, do nothing.
1966         (build_receive_signal_case_label): Don't do an assignment if the
1967         signal type have the non-value property.
1968         (build_receive_buffer_case_label): Add check for buffer element
1969         mode is ERROR_MARK.
1970         (expand_send_buffer): Deto.
1971         (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1972         (invalidate_buffer_element_mode): New function to set type of
1973         buffer element mode to error_mark_node.
1974         (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1975
1976 Wed Nov 15 13:26:20 1995  Jeffrey A Law  (law@cygnus.com)
1977
1978         * inout.c (intsize_of_charsexpr): Move declaration to top
1979         of file to avoid error from solaris2.5 cc.
1980
1981 Thu Nov  9 02:50:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1982
1983         * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1984         mode, temporarily reset maximum_field_alignment to 0 before
1985         layouting it to be compatible with the runtime library.
1986
1987         * inout.c (build_chill_gettextaccess): Deto.
1988
1989 Mon Nov  6 04:12:06 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1990
1991         * decl.c (do_decl): If type is READonly, add check if an
1992         ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1993         and print an error if this is true. Variables of this modes
1994         may not be declared READonly.
1995         Add check for mode is one of the above and an init value was
1996         given. This is also not allowed.
1997         Add initialisation of variables of the above modes during
1998         runtime. This influence the mechanism for detecting to
1999         build a constructor.
2000         (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
2001         BUFFER, and EVENT mode must not be READonly.
2002         (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
2003         TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
2004         (declare_predefined_file): Move to inout.c.
2005         (init_decl_processing): Add definitions for new built-in's.
2006         (finish_outer_function): Build a constructor only if
2007         build_constructor is set.
2008
2009         * except.c: On Linux native, setjmp is __setjmp.
2010
2011         * expr.c (build_chill_component_ref): New function. It gets called
2012         from parse.c instead of build_component_ref. Functions checks if the
2013         user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
2014         EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
2015         (build_chill_floatcall): New function to resolve CHILL's floating
2016         point builtin calls (SIN, COS, TAN, etc.).
2017         (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
2018         build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
2019         GETSTACK, and TERMINATE built-in's.
2020         (build_generalized_call): Process new built-in's.
2021
2022         * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
2023         (decode_mode_selective): deto.
2024
2025         * inout.c: Completely rewritten for implementing Chapter 7 of
2026         Z.200 (input and output).
2027
2028         * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
2029         parsing numbers.
2030
2031         * lex.h (enum rid): Add RID_ASSOCIATION.
2032
2033         * parse.c: New flag build_constructor to indicate if a constructor
2034         should be generated at the end of compilation or not. See
2035         decl.c(do_decl).
2036         (parse_begin_end_block): Don't emit a line note.
2037         (parse_primval): Call build_chill_component_ref instead of
2038         build_component_ref.
2039         (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
2040         modes, USAGE modes, WHERE modes.
2041
2042         * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
2043         ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
2044         (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
2045
2046         * typeck.c (extract_constant_from_buffer): Fix thinko in case
2047         of ! BYTES_BIG_ENDIAN.
2048         (build_chill_cast): Implement representation conversion between
2049         INT's and REAL's.
2050         (chill_similar): Add check of ACCESSes.
2051         (layout_chill_range_type): Check for real ranges and print
2052         sorry message.
2053
2054         * Make-lang.in: Change compiler version.
2055         chill also depends on Makefile.
2056
2057         * chill.in: Process command line option -Xlinker like -Tdata.
2058
2059         * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
2060         CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
2061         Add some prototypes.
2062         (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
2063         BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
2064         Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
2065
2066         * gperf, hash.h: Remove definition of WHERE.
2067
2068 Thu Oct  5 06:22:19 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2069
2070         * grant.c (decode_constant_selective): Add some newlines
2071         to generated SPEC MODULE.
2072
2073 Wed Oct  4 18:16:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2074
2075         * decl.c (pop_chill_function_context):  Remove some bogosity.
2076
2077 Wed Oct  4 05:14:00 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2078
2079         * grant.c (print_integer_selective): In case of a RANGE of
2080         a SET mode, try to find and grant the parent mode.
2081         (grant_seized_identifier): Don't write it out, if the identifier
2082         doesn't have a seize file (it may come from a SPEC MODULE
2083         defined in the compilation unit).
2084
2085 Fri Sep 22 14:04:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2086
2087         * actions.c (check_non_null):  Wrap expr in SAVE_EXPR if needed.
2088
2089 Wed Sep 20 13:51:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2090
2091         * expr.c (force_addr_of):  Optimize an INDIRECT_REF using
2092         convert_to_pointer rather than convert (which in case of
2093         a REFERENCE_TYPE would losingly call convert_from_reference).
2094
2095 Wed Sep 20 04:03:58 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2096
2097         * inout.c (build_chill_writetext): In case of character string:
2098         Add processing of a concatenation including varying character
2099         strings.
2100         (intsize_of_charsexpr, get_max_size): New functions to determine
2101         the maximum size of varying character strings.
2102
2103         * grant.c (decode_constant, decode_constant_selective): Add
2104         processing of COMPONENT_REF.
2105
2106         * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
2107         for SYNONYM's with STRUCT mode.
2108
2109 Mon Sep 18 17:25:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2110
2111         * expr.c (force_addr_of):  Optimize of value is INDIRECT_REF.
2112         * typeck.c (build_chill_slice):  Call mark_addressable.
2113
2114 Mon Sep 18 14:38:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2115
2116         * expr.c (chill_expand_expr):  Make a copy before calling __psslice
2117         if the array is neither referable nor BLKmode.
2118         (build_set_expr):  Renamed to ...
2119         (build_compare_set_expr):  Allow one opperand to be boolean.
2120         (build_compare_expr):  Check both operands for SET_EXPR,
2121         before checking for discrete types (for -fold-strings).
2122
2123 Fri Sep 15 11:35:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2124
2125         * satisfy.c (safe_satisfy_decl):  For a CONST_DECL, set TREE_TYPE
2126         to error_mark_node or error.
2127
2128 Fri Sep 15 00:26:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2129
2130         * grant.c (decode_constant_selective): Add processing of
2131         TREE_OPERAND (val, 0).
2132
2133 Wed Sep 13 14:24:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2134
2135         * ch-tree.h (CH_IS_INSTANCE_MODE):  Redefine to use CH_SIMILAR.
2136         * convert.c (convert):  Use CH_IS_INSTANCE_MODE.
2137         * inout.c (build_chill_writetext):  Likewise.
2138         * tasking.c (build_receive_case_start, build_delay_case_start):  Ditto.
2139         * parse.c (parse_start_action):  Remove redundant tests.
2140         * tasking.c (build_start_process):  Also test that optset is instance.
2141         (build_copy_number, build_proc_type, expand_send_signal):  Use
2142         CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
2143         * actions.c, convert.c (instance_type_node):  Remove redundant
2144         extern declaration.
2145
2146 Wed Sep 13 14:19:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2147
2148         * regression.awk2:  Use \ line-continuation-markers
2149         to remove gratuitous gawk dependency.
2150
2151 Mon Sep 11 17:26:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2152
2153         * typeck.c (build_chill_modify_expr):  Use force_addr_of.
2154         (mark_addressable):  Handle INDIRECT_REF of ADDR_EXPR.
2155
2156         * typeck.c (check_case_value), ch-tree.h:  Moved to ...
2157         * actions.c (check_case_value):  ... here.  Also check for
2158         compatibility with selector (which is passed as extra argument).
2159         (chill_handle_case_label_range):  Take selector argument,
2160         and use it to call check_case_value.
2161         (chill_handle_case_label):  Take extra selector argument.
2162         * ch-tree.h (chill_handle_case_labe):  Add prototype.
2163         * except.c expr.c, parse.c:  Remove chill_handle_case_label prototypes.
2164         * actions.c, except.c, expr.c, parse.c: Pass extra selector
2165         argument to function calls as needed.
2166
2167 Mon Aug 28 02:47:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2168
2169         * grant.c (decode_constant_selective): Fix a bug in writing items
2170         to grant file.
2171
2172 Thu Aug 24 04:52:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2173
2174         * parse.c (parse_case_expression): Print warning only in
2175         pass 1.
2176
2177         * actions.c (print_missing_cases): Correct printing of
2178         character ranges.
2179
2180 Wed Aug 23 15:26:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2181
2182         * parse.c (parse_case_label_list):  Take extra parameter to
2183         indicate if we're parsing a tuple or a case-label-spec.
2184         If former, don't allow '(' EXPR ')' ',' but backup instead.
2185         (parse_case_label_specification, parse_tuple_element):
2186         Pass appropriate new argument to parse_case_label_list.
2187
2188 Wed Aug 23 06:08:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2189
2190         * inout.c (build_chill_readtext): Add processing of BOOL's and
2191         CHARS(n).
2192
2193         * grant.c (decode_constant): Process nonprintable characters
2194         in a STRING_CST.
2195
2196 Fri Aug 11 15:26:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2197
2198         * except.c (initialize_exceptions):  Name setjmp "setjmp" and not
2199         "__builtin_setjmp" (which is not recognized by expand_call).
2200
2201 Wed Aug  9 23:35:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2202
2203         * loop.c (end_loop_scope):  Need to call kept_level_p,
2204         in argument to poplevel.
2205
2206 Wed Aug  9 05:48:30 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2207
2208         * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
2209         file might be empty). Install chill.install instead.
2210
2211 Tue Aug  8 21:46:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2212
2213         * loop.c (end_loop_scope):  Do poplevel *after* expand_end_bindings.
2214
2215 Tue Aug  8 00:51:09 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2216
2217         * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
2218         of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
2219
2220         * decl.c (start_chill_function): Likewise ...
2221
2222 Mon Aug  7 18:35:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2223
2224         * tasking.c (build_process_wrapper):  Also set DECL_ASSEMBLER_NAME
2225         of PARM_DECL, since otherwise dbxout_symbol_name may barf.
2226
2227 Mon Jul 31 14:32:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2228
2229         * loop.c:  Re-written implementation of powerset iteration.
2230         (declare_temps):  iter_var is now integer index into bitstring,
2231         and powerset_temp just uses save_expr (normally needs no temp).
2232         (top_loop_end_check):  Pass index to start searching (from iter_var)
2233         to library function, instead of dependning on latter to clear old bits.
2234         (increment_temps):  UNless DOWN, increment iter_var.
2235         * decl.c (init_decl_processing):  Declare new types for
2236         __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
2237
2238 Mon Jul 31 12:47:28 1995  Per Bothner  <bothner@cygnus.com>
2239
2240         * convert.c (digest_array_tuple):  Set TREE_STATIC if possible.
2241
2242 Fri Jul 28 05:11:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2243
2244         * lex.c (readstring): Process integer literals starting with
2245         H', D', or B' within a control sequence.
2246
2247 Thu Jul 27 23:08:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2248
2249         * parse.c (parse_do_action):  Don't call push_action, but defer
2250         push_handler until begin_loop_scope.
2251         Call parse_opt_handler here, to move handler scope inside loop block.
2252         (parse_action):  After do_action, nothing to do now.
2253         * loop.c (begin_loop_scope):  Also call push_handler here.
2254         (declare_temps):  Copy derived flag to user_var.
2255         (declare_temps):  For POWERSET, always copy to temporary (even if
2256         constant), since the runtime clears bits from it.
2257
2258         * expr.c (build_chill_sizeof):  Use convert_to_class.
2259         * satisfy.c (safe_satisfy_decl):  Cleanup handling of CONST_DECL -
2260         set proper value of CH_DECL_FLAG on both the decl and its value.
2261
2262         * convert.c (digest_array_tuple); Slightly better errors.
2263
2264 Wed Jul 26 22:13:39 1995  Per Bothner  <bothner@cygnus.com>
2265
2266         * expr.c (expand_packed_set):  Also allocate the CONSTRUCTOR itself.
2267         (fold_set_expr):  Simplify accordingly.
2268         (build_concat_expr):  Constant fold bitstring CONCAT_EXPRs.
2269
2270 Thu Jul 13 12:21:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2271
2272         * typeck.c (build_chill_slice):  Use build1 instead of build.
2273         * typeck.c (xtract_constant_from_buffer):  Pass correct precision
2274         to lshift_double.
2275
2276         * typeck.c (expand_constant_to_buffer):  Handle RANGE_EXPR index.
2277         * convert.c (digest_array_tuple):  Generate RANGE_EXPR as index
2278         for tuples with ranges.
2279
2280 Thu Jun 29 23:41:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2281
2282         * typeck.c (build_chill_slice):  Re-implement to use casts
2283         instead of build_chill_array_ref_1 (which doesn't always work).
2284         * convert.c (convert):  Remove old bugs code.
2285
2286 Tue Jun 27 05:00:04 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2287
2288         * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
2289         expression so that a possible handler at the if action will
2290         be found.
2291         (parse_proc_body): New argument to indicate if the function
2292         raises exceptions or not. In case the function will raise
2293         exception: start a handler, parse the function and generate
2294         code for reraising the exceptions (call chill_reraise_exceptions).
2295
2296         * except.c (chill_reraise_exceptions): New function to generate
2297         code for reraising exceptions are specified at the function
2298         definition.
2299
2300         * ch-tree.h: Add prototype for chill_reraise_exceptions.
2301
2302         * decl.c (build_chill_function_type): When the function (type)
2303         raise an exception, generate two new arguments (additional to the
2304         formal parameters), the filename and linenumber of the caller.
2305         (start_chill_function): likewise...
2306
2307         * expr.c (build_chill_function_call): If the called function raises
2308         exceptions, give current filename and linnumber as aditional
2309         arguments.
2310
2311         * actions.c (build_cause_exception): Handle case when function
2312         propagates the exception.
2313
2314         * grant.c (print_proc_tail, print_proc_tail_selective): If the
2315         function(type) raises exceptions, don't process the last to
2316         parmeters of the formal argument list, they are compiler
2317         generated.
2318
2319         * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
2320         the exception lists are equal.
2321
2322 Thu Jun 22 19:27:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2323
2324         * loop.c (flag_local_loop_counter):  Change default to 1.
2325         (end_loop_scope):  Set 'keep' parameter in poplevel call.
2326         (declare)_temps):  Don't set IDENTIFIER_LOCAL_VALUE, since that
2327         is handled (correctly!) by pushdecl.
2328         (begin_loop_scope):  Call pushlevel here,
2329         * parse.c (parse_do_action):  Move pushlevel so only called for WITH.
2330         * decl.c (struct scope):  Remove n_incomplete field and its uses.
2331         (pushdecl):  Re-write to use proclaim_decl.  Remove old C-isms.
2332         (init_decl_processing):  Re-name integer_type_node as "_cint" to
2333         remove complaint from pushdecl about chill_integer_type_node as "int".
2334
2335 Tue Jun 20 18:15:58 1995  Doug Evans  <dje@canuck.cygnus.com>
2336
2337         * Make-lang.in (chill-runtime): Restore patch to disable building of
2338         runtime libraries for cross compilers.  This patch should remain
2339         until a build of a freshly checked out devo "just works".
2340
2341 Mon Jun 19 06:01:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2342
2343         * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
2344
2345         * decl.c (init_decl_processing): Remove builtin function
2346         __cause_exception. New builtin functions __cause_ex1 and
2347         __unhandled_ex.
2348
2349         * except.c (is_handled): Return 0 when no handler found,
2350         1, if the handler is in local scope and 2, if function
2351         may propagate the exception.
2352
2353         * actions.c (build_cause_exception): New argument to
2354         indicate if a warning should be printed when
2355         causing an unhandled exception. Call is_handled here.
2356
2357         * ch-tree.h: Change prototype for build_cause_exception.
2358         New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
2359         identifier already has been written to grant file.
2360
2361         * grant.c (write_spec_module): If not GRANT ALL specified,
2362         write only this identifiers to grant file which are
2363         necessary to form a prober grant file. This will shorten
2364         grant files and speed up compilation.
2365         (decode_constant_selective, decode_mode_selective,
2366         get_type_selective, decode_decl_selective,
2367         grant_array_type_selective, get_tag_value_selective,
2368         print_enumeral_selective, print_integer_selective,
2369         print_struct_selective, print_proc_tail_selective,
2370         grant_one_decl_selective): New functions.
2371
2372         * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
2373         directives to grant file.
2374
2375         * parse.c (parse_on_exception_list): Fis constructing of
2376         exceptions list.
2377
2378 Wed Jun 14 15:21:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2379
2380         * typeck.c (valid_array_index_p):  Check for syntax error, where
2381         index is a mode, rather than a value.
2382
2383         * expr.c (build_chill_binary_op_1):  Remove unused function.
2384
2385 Sat Jun 10 11:36:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2386
2387         * except.c (is_handled):  New function.
2388         Various fixes here and there to make it work.
2389
2390         * parse.c (parse_param_name_list):  Set DECL_ASSEMBLER_NAME.
2391         (Otherwise dbxout may crash.)
2392
2393         * satisfy.c (satisfy case FUNCTION_TYPE):  Check for non-type result.
2394         * decl.c (start_chill_function):  If result type was error_mark,
2395         kludge type chill_os result_decl to avoid extra errors.
2396         * actions.c (chill_expand_result, chill_expand_return):  If type of
2397         chill_result_decl is error_mark, do nothing.
2398
2399         * typeck.c (chill_similar): Fix thinko in recent change.
2400
2401         * config-lang.in (diff_exclude):  Remove ch/lex.c - now it's a
2402         true source file, and is never longer generated with [f]lex.
2403
2404         * regression.sh:  Pass -s to make clean (to make it silent).
2405         Explicitly call gawk, instead of depending of '#!' to work.
2406         Add --objdir flags.  Never send mail to bill.
2407
2408 Thu Jun  8 15:08:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2409
2410         * typeck.c (chill_similar):  Add extra parameter.  Use to to prevent
2411         infinite recursion.
2412         (chill_equivalent, chill_l_equivalent):  Also add new parameter.
2413         * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT):  Modify to match.
2414
2415 Tue Jun  6 17:14:49 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2416
2417         * loop.c (declare_temps):  If -flocal-loop-counter, make sure to
2418         pushdecl the new variable (created with decl_temp1).
2419         And fix the type of the local variable for powerset iteration.
2420
2421 Tue Jun  6 15:07:19 1995  Per Bothner  <bothner@cygnus.com>
2422
2423         * typeck.c (mark_addressable):  Handle ADDR_EXPR inside
2424         NOP_EXPR inside INDIRECT_EXPR.  For TRUTH_ANDIF_EXPR,
2425         TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
2426         (which is used for range-checks and suchlike).
2427
2428 Thu Jun  1 02:45:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2429
2430         * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
2431         GE_EXPR (don't do invert_truthvalue, just switch operands).
2432
2433 Wed May 31 14:00:38 1995  Doug Evans  <dje@canuck.cygnus.com>
2434
2435         * lang-options.h: New file.
2436         * lang-specs.h: New file.
2437
2438 Wed May 24 01:45:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2439
2440         * actions.c (assign_stack_temp):  Remove unneeded declaration.
2441
2442 Tue May 23 00:17:38 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2443
2444         * parse.c (parse_on_exception_list):  Return list of exception
2445         names in pass 1, not in pass 2.  (Return non-NULL dummy if pass 2.)
2446         (parse_on_alternatives):  Call chill_handle_on_labels even if ignoring.
2447         (parse_opt_handler):  Likewise for chill_start_default_handler.
2448         * except.c (push_handler):  Clear on_alt_list only if pass 1.
2449         (chill_handle_on_labels):  Build on_alt_list in pass 1,
2450         retrieve it in pass 2.
2451
2452         Fix so that decl_temp1 does not expand_decl_init, which calls
2453         free_temp_slots, which loses in the middle on an expression.
2454         * decl.c (finish_decl):  Don't call expand_decl_init.
2455         (do-decl):  Do initialization assignment even if stack variable.
2456         * parse.c (parse_loc_declaration):  Call free_temp_slots.
2457
2458         * decl.c (finish_decl), ch-tree.h:  Remove last two always-NULL
2459         parameters.  Cleanup never-used code.
2460         * decl.c, except.c:  Update calls to finish_decl.
2461
2462         * decl.c (case_else_node):  Define new variable.
2463         (init_decl_processing):  Initialize it.
2464         (make_chill_variants): If variant label is case_else_node (i.e. it
2465         is (ELSE):), treat that as an ELSE variant.
2466         * ch-tree.h (case_else_node):  Declare case_else_node.
2467         * parse.c (parse_case_label):  Use case_else_node.
2468
2469 Mon May 22 10:18:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2470
2471         * grant.c (print_proc_tail):  Also call print_proc_exceptions.
2472         (decode_decl):  Don't explicitly call print_proc_exceptions for
2473         FUNCTION_DECL.
2474         (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
2475
2476         * actions.c (chill_convert_for_assignment):  Use save_if_needed,
2477         instead of save_expr, in case value is a reference.
2478
2479         * typeck.c (build_chill_slice):  Fix old thinko (missing call to
2480         build_pointer_type).
2481
2482         * actions.c (size_int):  Remove unused and conflicting prototype.
2483
2484 Wed May 17 16:23:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2485
2486         * actions.c (chill_convert_for_assignment):  Call save_expr if
2487         range_checking (twice).
2488
2489 Tue May 16 11:33:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2490
2491         * typeck.c (layout_chill_range_type):  Re-organize error checking.
2492         Add extra parameter to indicate if non-constant bounds are allowed.
2493         If bounds are bad, set them to the min_value of the parent.
2494         * ch-tree.h (layout_chill_range_type):  Update declaration.
2495         * satisfy.c (satisfy):    Update call of layout_chill_range_type.
2496         * typeck.c (build_chill_range_type):  Likewise.
2497         * tree.c (build_string_type):  Likewise.
2498
2499 Tue May 16 00:37:51 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2500
2501         * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
2502
2503 Mon May 15 12:54:32 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2504
2505         * satisfy.c (satisfy):  Supress error message for REF <error_mark>.
2506         * decl.c (push_modedef):  Check for TREE_CODE != ERROR_MARK, instead
2507         of against error_mark_node.  (smash_dummy_type can copy error marks.)
2508         (finish_decl):  Simplify C-derived check for incomplete type,
2509         and suppress if it is an ERROR_MARK.
2510         Don't call rest_of_decl_compilation if type is an ERROR_MARK.
2511
2512 Sun May 14 22:52:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2513
2514         * convert.c (convert):  Handle array types with different modes.
2515
2516 Thu May 11 15:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2517
2518         * loop.c (build_loop_iterator):  Handle the case of a non-local
2519         loop counter having reference type.
2520
2521 Thu May 11 07:04:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2522
2523         * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2524         build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2525         to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2526
2527 Mon May  8 15:27:16 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2528
2529         * expr.c (build_chill_card):  Do constant folding, if possible.
2530         (build_max_min):  Do constant folding for MIN/MAX of powersets.
2531
2532 Mon May  8 06:57:21 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2533
2534         * expr.c (build_chill_sizeof): Add corect processing of a
2535         SIGNAL definition without data.
2536
2537 Sat May  6 16:27:10 1995  Doug Evans  <dje@canuck.cygnus.com>
2538
2539         * Make-lang.in (maintainer-clean): Renamed from realclean.
2540
2541 Tue May  2 06:16:23 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2542
2543         * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2544         otherwise "handler stack" will get out of sync.
2545
2546 Mon Apr 24 09:51:07 1995  Per Bothner  <bothner@rtl.cygnus.com>
2547
2548         Fixes to support module-level non-static temporary variables.
2549         * parse.c (parse_loc_declaration):  If all_static_flag and not
2550         resursive, tell do_decls to make new decl static.
2551         * decl.c (do_decl):  Don't use maybe_static function to force static.
2552         (do_decl):  Don't let initialization count as "using" the variable.
2553         (maybe_static):  Removed.
2554         (finish_decl):  Call expand_decl and expand_decl_init if needed
2555         (as it will be for non-static temporaries).
2556
2557 Fri Apr 21 21:02:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2558
2559         * convert.c, expr,c typeck.c (expand_decl):  Remove usused declaration.
2560
2561 Fri Apr 21 02:27:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2562
2563         * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2564         LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2565         GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2566
2567 Thu Apr 20 15:29:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2568
2569         * parse.c (yytext, finput):  Remove unused declarations.
2570
2571         * parse.c (proc_action_level):  New variable.
2572         (parse_proc_body):  New function.  Common code from
2573         parse_procedure_definition and parse_process_definition moved here.
2574         Save, set, and restore proc_action_level from action_nesting_level.
2575         (parse_action case RETURN):  Pass proc_action_level to
2576         expand_goto_except_cleanup.
2577
2578 Thu Apr 20 06:02:20 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2579
2580         * grant.c (really_grant_this): Add processing of LABEL_DECL's
2581         (don't grant them).
2582
2583 Tue Apr 18 18:16:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2584
2585         * lex.c ( convert_bitstring):  Use BYTES_BIG_ENDIAN rather
2586         than BITS_BIG_ENDIAN to layout bits within bitstring.
2587         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2588         Likewise.
2589
2590 Sun Apr 16 19:55:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2591
2592         * decl.c (finish_chill_function):  If currently global_function_decl,
2593         don't set outer_function to global_function_decl.
2594
2595 Wed Apr 12 22:45:06 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2596
2597         * decl.c (start_chill_function):  Normal functions are nested.
2598         (finish_chill_function):  No longer takes a 'nested' parameter.
2599         Normal functions are nested.
2600         Never call permanent_allocation, since it does little good (all normal
2601         functions are nested), and trashes some things we need.
2602         (finish_outer_function):  Update call to finish_chill_function.
2603         * grant.c (chill_finish_compile):  Likewise.
2604         * tasking.c (build_process_wrapper):  Likewise.
2605         * parse.c (end_function):  Likewise.
2606         * ch-tree.h (finish_chill_function):  Update declaration.
2607
2608         * parse.c (parse_asm_clobbers):  Re-enable.
2609         (expand_asm_operands):  function.
2610         (parse_asm_action):  Re-enable.  Don't do anything in pass 1.
2611
2612         * typeck.c (build_chill_slice):  Do constant folding.
2613         Also, work around problem where expand_expr constant folds ARRAY_REF.
2614         (sort_constructor):  Remove unused function.
2615
2616         * expr.c (chill_expand_expr case CONCAT_EXPR):  Make sure we
2617         emit_block_move if needed with correct size.
2618
2619         * inout.c (build_chill_io_list_type):  Simplify.
2620
2621         * lex.c (check_newline):  Uncomment some dwarf stuff,
2622         which needs get_directive_line, which we no longer have.
2623
2624 Wed Apr  5 16:05:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2625
2626         * Makefile.in (C_OBJS, xcc1chill):  Removed.  We no longer
2627         link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2628
2629         * expr.c (build_chill_component_ref):  Renamed to build_component_ref.
2630         (chill_truthvalue_conversion):  Renamed to truthvalue_conversion.
2631         * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2632         typeck.c:  Update accordingly.
2633         * typeck.c (valid_array_index_p):  We only need to save_expr (index)
2634         if we're range-checking.
2635         * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2636         mark_addressable, initializer_constant_valid_p, check_case_value,
2637         type_for_size, type_for_mode):  New functions, copied from
2638         ../c-common.c and ../c-typeck.c.
2639
2640         * lang.c (incomplete_type_error):  New.  (Was in c-common.o.)
2641         * decl.c (constant_expression_warning):  New.  (Was in c-common.o.)
2642
2643         * lang.c (string_index_type_dummy):  Remove definition from here.
2644         * tree.c (string_index_type_dummy):  Define here instead.
2645         * lang.c (lang_init):  Move init of string_index_type_dummy
2646         (which is too late) from here ...
2647         * decl.c (init_decl_processing): ... to here.
2648
2649         * decl.c (signed_boolean_type_node):  New variable.
2650         (init_decl_processing):  Initialize it.
2651
2652         * parse.c:  Comment out ASM action support, for now.
2653
2654         * loop.c (maybe_skip_loop):  Make return void, not int.
2655         Use build_compare_discrete_expr.
2656         (increment_temps):  Use chill_expand_assignment.
2657
2658 Thu Mar 30 23:28:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2659
2660         * decl.c (do_decl):  If default-initializing variable-length
2661         string to "" (or []), make it lifetime_bound.
2662
2663 Thu Mar 30 02:51:59 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2664
2665         * parse.h, hash.h, gperf: New compiler directives
2666         EMPTY_ON and EMPTY_OFF.
2667
2668         * lex.c: New variables empty_checking and runtime_checking_flag.
2669         (ch_lex_init): Initialize empty_checking and range_checking
2670         when switching from pass 1 to 2.
2671         (read_directive): Add processing of EMPTY_OFF/ON.
2672
2673         * expr.c (build_chill_indirect_ref): New argument do_empty_check
2674         to indicate if null pointer checking should be done or not.
2675         It's not always necessary to do a null pointer check.
2676
2677         * decl.c (lookup_name): Add argument to call to
2678         build_chill_indirect_ref.
2679         (shadow_record_fields): ...
2680         * parse.c (parse_primval): ...
2681         * tasking.c (build_process_wrapper): ...
2682         (build_receive_buffer_case_label): ...
2683
2684         * ch-tree.h: Change prototype of build_chill_indirect_ref.
2685         Add declaration of runtime_checking_flag and empty_checking.
2686
2687         * actions.c (check_non_null): Do null pointer checking only
2688         when enabled (empty_checking != 0).
2689
2690 Wed Mar 29 15:18:23 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2691
2692         * actions.c (chill_expand_assignment):  Add 'else' so we don't do
2693         regular assignment in addition to spacial assignment (e.g. for slices).
2694
2695         * ch-tree.h (convert_to_discrete):  Add declaration.
2696         * typeck.c (convert_to_discrete):  New function.
2697         (valid_array_index_p):  Use convert_to_discrete.  Also simplify.
2698         (build_chill_slice):  Say sorry if variable-length bitstring.
2699         (build_chill_slice_with_length):  Re-do bounds check.
2700         * expr.c (check_case_selector):  Re-write to use convert_to_discrete.
2701         (build_chill_num, build_chill_pred_or_succ):  Use convert_to_discrete.
2702
2703         * decl.c (do_decl):  Don't do redundant chill_convert_for_assignment.
2704
2705 Wed Mar 29 00:00:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2706
2707         * expr.c (build_chill_num): need_unsigned have to be set for
2708         characyer strings of length 1 too. Happens when compiling
2709         with -fold-strings and do NUM(a(i)).
2710
2711         * parse.c (parse_loc_declaration): Print error message only
2712         in pass 1.
2713         (parse_mode): Likewise ...
2714
2715         * tasking.c (build_tasking_message_type): Temporarily reset
2716         maximum_field_alignment to get proper aligned temp. variables
2717         gets passed to runtime system.
2718
2719 Tue Mar 28 00:08:06 1995  Per Bothner  <bothner@cygnus.com>
2720
2721         * typeck.c (my_build_array-ref):  Merged into build_chill_array_ref_1.
2722         But don't convert index to integer_type_node.  And we don't need to
2723         check the we're given an array.
2724         * typeck.c (valid_array_index_p):  If flag_old_strings, convert
2725         chars(1) to char and bools(1) to bool before index checking.
2726
2727 Sun Mar 26 22:42:39 1995  Per Bothner  <bothner@cygnus.com>
2728
2729         * ch-tree.h (struct module):  Added next module field.
2730         * decl.c (first_mdoule, next_module):  New global variables.
2731         (switch_to_pass_2):  Re-initialize next_module.
2732         (push_module):  In pass 2, reuse the same module objects from pass 1.
2733
2734         * decl.c (declare_predefined_file):  Set DECL_IN_SYSTEM_HEADER.
2735
2736         * typeck.c (valid_array_index_p):  Do range check on original index,
2737         before we convert to domain type.
2738
2739 Fri Mar 24 11:43:39 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2740
2741         * parse.c (parse_fixed_field):  New function.
2742         (parse_variant_field_list):  New function replaces parse_simple_fields.
2743         (parse_variant_alternative, parse_field):  Update to use new functions.
2744         (parse_field):  Error message if neither CASE nor NAME.
2745
2746         * actions.c (check_non_null):  New function - checks for NULL pointers.
2747         * ch-tree.h (check_non_null):  New declaration.
2748         * tasking.c (expand_send_signal):  Call check_non_null.
2749         * expr.c (build_chill_indirect_ref, build_chill_function_call):  Same.
2750         * lex.h (enum rid):  Add RID_EMPTY.
2751         * lex.c (init_lex):  Initialize ridpointers[RID_EMPTY].
2752
2753         * lex.c (read_directive):  Remove 2 calls of to_global_binding_level
2754
2755 Wed Mar 22 16:36:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2756
2757         * tasking.c (tasking_list):  Change to chain of TREE_VEcs, rather than
2758         chain of (nested) TREE_LIST nodes.
2759         (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2760         TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE):  New macros.
2761         (tasking_setup, tasking_registry, add_taskstuff_to_list):  Use them.
2762
2763         * ch-tree.h (C_TYPE_FIELDS_READONLY):  Rename to TYPE_FIELDS_READONLY.
2764         (TYPE_READONLY_PROPERTY):  New macro, to match Z.200 concept.
2765         * typeck.c (build_chill_modify_expr):  Don't check for read-only-ness,
2766         since it is redundant for chill_expand_assignment and breaks
2767         reach-bound initialization in do_decl.
2768         (my_build_array_ref):  Simplify by using TYPE_READONLY_PROPERTY.
2769         (layout_chill_array_type):  Set TYPE_FIELDS_READONLY if appropriate.
2770         * actions.c (chill_expand_assignment):  Check TYPE_READONLY_PROPERTY
2771         instead of TREE_READONLY of the target's type.
2772         * expr.c (build_chill_function_call):  Likewise.
2773         * inout.c (build_chill_readtext):  Likewise.
2774         * decl.c (do_decl):  Likewise, to check if init is required.
2775
2776         * typeck.c (build_chill_bitref):  Removed unused RANGE_EXPR hack.
2777
2778 Wed Mar 22 07:52:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2779
2780         * tasking.c (build_start_process): Get a unique identifier for
2781         the start arguments.
2782
2783 Tue Mar 21 07:36:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2784
2785         * expr.c (fold_set_expr): At label build_result: Add setting unused
2786         bits to 0. This is the same as the runtime library does.
2787
2788         * parse.c (expect): Function returns now int, 0, if the expected
2789         token was not got, 1 when it was found.
2790         (parse_synonym_definition): In case of syntax error (missing =),
2791         set expr to NULL_TREE and mode to error_mark to avoid subsequent
2792         segfaults.
2793
2794         * chill.texi: Add chapter about differences to Z.200/1988.
2795
2796 Mon Mar 20 18:01:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2797
2798         * lang.c (chill_print_error_function):  New function, to report
2799         module name if not inside a function.
2800         (lang_init):  Set print_error_function to chill_print_error_function.
2801
2802         * tasking.c (max_queue_size, buffer_element_mode):  Cleanup
2803         to remove unreachable code.
2804
2805         * grant.c (chill_finish_compile):  Avoid doing a lookup_name
2806         to find init function (which got broken by recent nesting re-org).
2807
2808         * decl.c (poplevel):  Push and pop function context around
2809         call to output_inline_function (as done for C and C++).
2810
2811 Thu Mar 16 17:56:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2812
2813         * parse.c (parse_pass_1_2):  If unknown top-level token, skip pass 2.
2814
2815 Wed Mar  8 13:54:33 1995  Doug Evans  <dje@canuck.cygnus.com>
2816
2817         * Make-lang.in (chill-runtime): Temporarily disable building of
2818         runtime libraries for cross compilers.
2819
2820 Mon Mar  6 23:36:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2821
2822         * parse.c, decl.c:  Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2823
2824         * configure:  Merge in tolerance for new flags (e.g. --x-libraries).
2825
2826 Sat Mar  4 15:47:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2827
2828         * expr.c (build_chill_arrow_expr):  Error if pass == 1.
2829
2830 Thu Mar  2 19:28:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2831
2832         * decl.c (do_decl):  Setting seen_action must be done in pass 1.
2833         (save_decl):  Don't set DECL_CONTEXT to global_function_decl.
2834         (start_chill_function):  Simplify due to above change.
2835
2836         * parse.c (parse_case_label):  Hack to distinguish (ELSE) from (*).
2837         * grant.c (decode_constant):  Emit ELSE in case label.
2838
2839         * parse.c (serious_errors):  New global variable.
2840         * parse.c (to_global_binding_level):  Set serious_errors.
2841         (parse_pass_1_2):  Exit after pass 1 if serious_errors > 0.
2842         * lex.c (readstring):  Recover from unterminstaed control sequence.
2843
2844 Tue Feb 28 17:08:08 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2845
2846         Re-write of module-level actions.  No longer generate a module
2847         function for module-level actions.  Instead, put them inside
2848         a new global dummy function.  Nest everything logically inside it.
2849
2850         * lex.h, grant.c (chill_module_name):  Removed declaration.
2851         * grant.c (write_spec_module):  Instead use current_module->name.
2852         * grant.c (chill_start_module_code, chill_finish_module_code):
2853         Removed.
2854         * grant.c (chill_finish_compile):  Make rtl for global function.
2855
2856         * actions,c (push_action):  Don't call chill_start_module_code.
2857         * expr.c (build_chill_function_call, build_generalized_call):
2858         Likewise.
2859         * parse.c (INIT_ACTION):  Likewise.
2860
2861         * parse.c (seen_action):  New variable.
2862         * parse.c (end_function):  Always call pop_chill_function_context.
2863         (parse_procedure_definition):  Always call push_chill_function_context.
2864         (parse_modulion):  Parse optional handler.
2865         (parse_modulion, parse_spec_module):  Do find_granted_decls.
2866         (parse_action):  Set seen_action if global and a real action.
2867         ([arse_program):  Call start_outer_function and finish_outer_function.
2868
2869         * ch-tree.h:  Appropriate updates.
2870
2871         * tasking.c (generate_tasking_code_variable):  Make it lifetime-bound.
2872         (build_process_header):  Always push_chill_function_context;
2873         we are now always nested.
2874         (build_process_wrapper):  Always pop_chill_function_context.
2875
2876         * tasking.c (build_start_process):  Only expand_start_bindings and
2877         expand_end_bindings if pass 2.
2878
2879         * decl.c (global_function_decl):  New variable.
2880         (do_decl):  Implement reach-bound initialization of static variables.
2881         (start_chill_function):  Set DECL_CONTEXT to NULL if
2882         it would be global_function_decl (so as to not confuse gcc backend).
2883         (start_chill_function, finish_chill_function):  If compiling
2884         global_function_decl in pass 2 and !seen_action, suppress it.
2885         (set_module_name):  New function.
2886         (global_bindings_p):  Re-defined to check against global_function_decl.
2887         (start_outer_function, finish_outer_function):  New functions.
2888
2889 Tue Feb 28 16:00:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2890
2891         * typeck.c (build_chill_modify_expr):  Inline logic from
2892         chill_expand_array_assignment,
2893         * actions.c (chill_expand_array_assignment):  Removed.
2894         (chill_expand_assignment):  Remove call to removed function.
2895
2896         * lex.c (reinit_parse_for_function):  Removed empty unused function.
2897         * decl.c (start_chill_function):  Don't call removed function.
2898
2899 Tue Feb 28 00:29:51 1995  Per Bothner  <bothner@cygnus.com>
2900
2901         * configure:  Merge in code for calculating host, build, and
2902         target and canon_{host,build,target} from ../configure.
2903         Fix calculation of mainsrcdir.  Host canon_* variables
2904         to merge in build-make (as in ../configure).
2905
2906 Sun Feb 26 18:59:02 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2907
2908         * typeck.c (expand_constant_to_buffer):  Use new function
2909         get_set_constructor_bytes.
2910
2911 Tue Feb 21 01:41:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2912
2913         * inout.c (build_chill_writetext): Add processing of
2914         conditional expressions in argument list.
2915
2916         * parse.c (parse_opt_name_string): Print error message only
2917         in pass 1.
2918
2919         * chill.texi: Add chapter about compiler directives.
2920
2921 Tue Feb 14 16:45:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2922
2923         * decl.c (start_chill_function):  Set FUNCTION_NEEDS_STATIC_CHAIN
2924         unless nested.
2925
2926         * decl.c (decl_temp1):  Make lifetime_bound iff static.
2927
2928 Fri Feb  3 04:30:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2929
2930         * grant.c (really_grant_this, search_in_list): New static
2931         functions to determine if a decl should be written to
2932         grant file.
2933         (write_spec_module): Add call to really_grant_this.
2934
2935 Fri Jan 27 00:06:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2936
2937         * actions.c (check_expression): Apply Per's patch.
2938         (chill_expand_result): New argument to indicate if we come
2939         from a RETURN or RESULT action. Change various error messages.
2940
2941         * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2942         New argument for chill_expand_result.
2943
2944         * chill.in: In case of -fgrant-only, clear library, libpath and
2945         startfile to avoid warnings from gcc.
2946
2947         * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2948
2949         * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2950
2951         * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2952         and subsequent SEIZEs to grant file, if the seize file is
2953         used restricted.
2954
2955         * lex.c (read_directive): Process new compiler directive
2956         USE_SEIZE_FILE_RESTRICTED.
2957         (handle_use_seizefile_directive): Same as above.
2958         (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2959         if this seize file is used restricted.
2960
2961         * parse.c (parse_action, case RETURN): Change RETURN expr action
2962         to RESULT expr; RETURN. This enables range checking and
2963         exception delivery in case of rangefail.
2964
2965 Tue Jan 17 07:38:27 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2966
2967         * decl.c (init_decl_processing): Add definition of
2968         library function __inbitstring (see expr.c).
2969
2970         * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2971         __inpowerset fir POWERSET's and function __inbitstring for
2972         BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2973         in case of BITSTRING's we have to do one.
2974         (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2975         statement with no effect).
2976
2977 Fri Jan 13 13:35:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2978
2979         * actions.c (check_expression):  Simplify result.
2980
2981         * ch-tree.h (SET_CH_NOVELTY_NONNIL):  New macro.
2982         * expr.c, timing.c, typeck.c:  Use SET_CH_NOVELTY_NONNIL.
2983
2984         * typeck.c (valid_array_index_p), ch-tree.h:  Change interface
2985         to return modified index expression.  Call error if out-of-range.
2986         * actions.c, typeck.c:  Modify
2987         for new valid_array_index_p interface.
2988
2989         * actions.c (build_chill_slice):  Copy novelty of index type.
2990
2991 Fri Jan 13 13:04:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2992
2993         * convert.c (digest_array_tuple):  Allow mode name in array
2994         tuple label.  Print error message instead of aborting.
2995
2996         * parse.c (parse_body):  Error message only if pass 1.
2997
2998         * decl.c (check_identifier), ch-tree.h:  Remove.  Unused.
2999
3000 Wed Jan 11 14:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3001
3002         * parse.c (parse_modulion):  Undo yesterday's change (to allow
3003         an ON-handler to follow) until we re-implement module.
3004
3005 Tue Jan 10 17:23:55 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3006
3007         * loop.c (declare_temps):  Remove bogus prohibition against
3008         iterating over BOOL arrays.
3009
3010         * parse.c (parse_semi_colon):  Make it a pedwarn (instead of an
3011         error) if a semi-colon is missing before an END.
3012         (parse_action):  Likewise.
3013         * parse.c (parse_modulion):  Allow an ON-handler to follow.
3014
3015         * parse.c (parse_set_mode):  Use parse_expression to get
3016         values for number set elements.
3017
3018         * expr.c (build_compare_expr):  Make sure result has
3019         CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
3020         (finish_chill_binary_op):  Likewise for IN_EXPR.
3021
3022 Tue Jan 10 04:46:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
3023
3024         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
3025         checking the argument.
3026         (chill_expand_assignment): Take care of a newmoded dst_offset
3027         when calling __pscpy and a newmoded from_pos when calling
3028         __setpowersetbits.
3029
3030         * expr.c (chill_expand_expr): When calling __psslice take care
3031         of a newmoded min_value.
3032
3033         * parse.c (parse_name_string): Print error message only in
3034         pass 1.
3035
3036 Tue Jan  3 19:56:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3037
3038         * typeck.c (build_chill_array_ref_1):  Use varying_to_slice
3039         instead of building a VRAY_ARRAY_REF node.
3040         * ch-tree.def (VARY_ARRAY_REF):  Removed.
3041         * actions.c (chill_expand_assignment):  Will never call
3042         expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
3043         (expand_assignment_to_varying_array):  Removed.
3044         * convert.c (convert):  Remove unneeded VARY_ARRAY_REF support.
3045         * expr.c (chill_expand_expr):  Likewise.
3046
3047 Tue Jan  3 19:50:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3048
3049         * parse.c (parse_iteration):  Set step_value to NULL if missing.
3050         * loop.c (ITER_TYPE):  Remove DO_RANGE.
3051         (build_loop_iterator):  Implement old DO_RANGE in terms of DO_STEP.
3052         (begin_loop_scope):  Don't return on error.
3053         (build_loop_iterator):   Calculate loop variable type using
3054         resulting classes (as in Z200), rather than precision.
3055
3056         * loop.c (initialzie_iter_var, bottom_loop_end_check):  For DO_STEP,
3057         make iter_var one less to avoid overflow.
3058         * loop.c (build_loop_iterator):  If !flag_local_loop_counter,
3059         declare a new variable if needed, as allowed by Z200 (1984).
3060
3061         * ch-tree.h (ch_class):  Add typedef.
3062
3063         * typeck.c (chill_resulting_class):  New function.
3064         (chill_root_resulting_class):  Remove.
3065         * ch-tree.h (CH_RESULTING_CLASS):  New macro.
3066         (CH_ROOT_RESULTING_CLASS):  Re-implement using CH_RESULTING_CLASS.
3067
3068 Tue Jan  3 19:36:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3069
3070         * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
3071         Change interface to take IDENTIFIER tree node, rather char char*.
3072         (check_expression): Change (simplify) callers appropriately.
3073         * parse.c (parse_action), typeck.c (valid_array_index_p):  Likewise.
3074         * lex.h (enum rid):  Add RID_ASSERTFAIL.
3075         * lex.c (init_lex):  Enter RID_ASSERTFAIL.
3076         * parse.c (parse_action case ASSERT):  Fix thinko TRUTH_ANDIF_EXPR
3077         to TRUTH_ORIF_EXPR.  Use RID_ASSERTFAIL.
3078
3079         * typeck.c (discrete_type_p):  Re-implement using INTEGRAL_TYPE_P.
3080
3081 Tue Jan  3 19:20:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3082
3083         Move checking for modeless tuples in invalid contexts from parser
3084         to semantic function check_have_mode (for better error recovery):
3085         * expr.c (check_have_mode), ch-tree.h:  New function.
3086         * satisfy.c (safe_satisfy_decl):  Use check_have_mode.
3087         * expr.c (build_compare_expr, finish_chill_binary_op,
3088         finish_chill_unary_op):  Likewise.
3089         * parse.c (parse_primval):  Don't complain about mode-less tuple here.
3090
3091 Tue Jan  3 17:36:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3092
3093         * expr.c (varying_to_slice):  Support varying arrays whose
3094         lower bound is non-zero.
3095
3096         * parse.c (parse_body):  Allow (with warning) definition to
3097         follow action.
3098
3099         * expr.c (check_case_selector), ch-tree.h:  New function.
3100         (chill_expand_case_expr):  Use it.
3101         * parse.c (parse_case_action):  Likewise.
3102
3103 Fri Dec 23 00:47:54 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3104
3105         * actions.c (chill_expand_return): Change error message.
3106
3107         * ch-tree.h: Change prototypes of do_decl and do_decls.
3108
3109         * convert.c (convert): Add missing initialisation of
3110         variable orig_e_constant.
3111
3112         * decl.c: Change all calls to do_decl.
3113         (maybe_static): New function to process the ALL_STATIC_ON/OFF
3114         compiler directives.
3115         (do_decls): New argument.
3116         (do_decl): New argument and process reachbound and lifetime
3117         bound initialisation.
3118
3119         * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
3120         ALL_STATIC_OFF.
3121
3122         * grant.c: Change all calls to do_decl.
3123
3124         * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
3125         directive.
3126
3127         * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
3128         do_decls.
3129
3130         * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
3131
3132         * tasking.c: Change all calls to do_decl.
3133
3134 Mon Dec 19 23:13:58 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3135
3136         * parse.c (parse_procedure_definition): Save chill_at_module_level
3137         flag, set ot to 0 and restore it at the end of function.
3138         A sequence BEGIN x: PROC () RETURN; END x; END; at module level
3139         have produced an error.
3140
3141         * expr.c (build_chill_repetition_op): Fix typo in error message.
3142
3143 Tue Dec 13 12:26:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3144
3145         * actions.c (expand_assignment_to_varying_array):  Fix thinko:
3146         build_chill_array_ref -> build_chill_array_ref_1.
3147
3148 Sun Dec 11 23:04:27 1994  Per Bothner  <bothner@rtl.cygnus.com>
3149
3150         * actions.c (chill_expand_assignment):  Simplify the lhs if it is
3151         a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
3152
3153 Thu Dec  8 13:45:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3154
3155         * loop.c, ch-tree.h (build_loop_iterator):  Fix to return void.
3156         If start_exp is ERROR_MARK, return.
3157         * expr.c (build_generalized_call):  More robust on syntax errors.
3158
3159 Tue Dec  6 02:33:23 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3160
3161         * inout.c (build_chill_readtext): In case of reading a SET mode
3162         pass ignore_case flag to runtime library.
3163
3164 Tue Nov 29 14:41:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3165
3166         * parse.c (parse_receive_case_action):  Print error only if pass==1.
3167         * decl.c (push_scope_decls):  Use error_with_file_and_line
3168         to get correct line number of SEIZE.
3169
3170 Mon Nov 28 16:59:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3171
3172         * expr.c (resolve_component_ref):  Call fold on result.
3173
3174         * expr.c (resolve_component_ref):  Use check_expression.
3175         * actions.c (chill_convert_for_assignment):  Likewise.
3176         * actions.c (cond_exception), ch-tree.h:  Removed.
3177         * actions.c (check_expression):  First part of COMPOUND_EXPR
3178         should be boolean_type_node;  void_type_node loses in SAVE_EXPRs.
3179
3180         * actions.c (chill_convert_for_assignment):
3181         Check string_assignment_condition for varying strings too.
3182
3183         * typeck.c (build_chill_cast):  If the types have different sizes,
3184         don't allow nondiscrete->discrete conversion, and only allow
3185         discrete->nondiscrete if input expression is constant.
3186
3187         * typeck.c (chill_similar):  Don't use losing array_type_nelts.
3188
3189         * ch-tree.h (ELSE_VARIANT_NAME):  New.
3190         * convert.c, decl.c, grant.c:  Use ELSE_VARIANT_NAME.
3191         * decl.c (handle_one_level):  Recurse on ELSE_VARIANT_NAME too.
3192
3193         Reduce dependencies on ../c-typeck.c:
3194         * expr.c:  Fix c_expand_start_case -> expand_start_case.
3195         Fix c_expand_expr_stmt -> expand_expr_stmt.
3196         (build_chill_indirect_ref):  Call convert instead of build_c_cast.
3197         * loop.c (bottom_loop_end_check):  Don't use build_modify_statement.
3198         * expr.c, except.c, typeck.c:  Don't call default_conversion.
3199         * typeck.c (string_assignment_condition):  Fix build_component_ref ->
3200         build_chill_component_ref.
3201         * decl.c:  Fix build_indirect_ref -> build_chill_indirect_ref (twice).
3202         * decl.c:  Don't set unused constructor_no_implicit (from c-typeck.c).
3203         * decl.c:  Don't call declare_function_name.
3204
3205         * parse.c: Don't always keep a valid token in terminal_buffer[0].
3206         The extra look-ahead may have made the parser faster, but caused
3207         some problems synchronizing with the lexer.  Specifically:
3208         (PEEK_TOKEN):  Now calls an optimized variant of peek_token_(0).
3209         (next_token_):  Don't call peek_token_.  Renamed to forward_token_.
3210         (NEXT_TOKEN):  Renamed to FORWARD_TOKEN.
3211         (parse_program):  Don't call yylex yet.
3212
3213         * parse.c (parse_action):  Re-do case ASSERT.
3214         Fix c_expand_expr_stmt -> expand_expr_stmt.
3215
3216         * lex.l:  Re-written to not use [f]lex, and renamed to ...
3217         * lex.c:  ... new lexer.
3218         * Makefile.in, Make-lang.in:  Remove [f]lex crud.
3219
3220         * lex.h (enum rid), lex.c (init_lex):  Added RID_ELSE.
3221
3222 Tue Nov 22 15:19:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3223
3224         * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
3225
3226 Fri Nov 18 14:27:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3227
3228         * parse.c (parse_structure_node):  Simpler, and more robust.
3229
3230 Wed Nov 16 14:40:52 1994  Ian Lance Taylor  (ian@cygnus.com)
3231
3232         * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
3233         not at compile time.
3234         * typeck.c (expand_constant_to_buffer): Likewise.
3235         extract_constant_from_buffer): Likewise.
3236
3237 Tue Nov 15 14:41:53 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3238
3239         * convert.c (convert):  Call build_chill_range_type rather than
3240         build_index_2_type (which has obstack and canonicalization problems).
3241         * expr.c (build_chill_pred_or_succ):  Convert expr to root class
3242         before arithmetic.
3243         * loop.c (declare_temps):  If location iterated over is not
3244         a location, make a temporary variable for it.
3245
3246 Mon Nov 14 16:33:47 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3247
3248         * typeck.c, ch-tree.h (chill_equivalent):  Change to return
3249         a tree (a Boolean expression).  Also, add some missing tests.
3250         * ch-tree.h (CH_EQUIVALENT):  Modify accordingly.
3251
3252         * expr.c (chill_expand_expr case CONCAT_EXPR):  When the 2nd operand
3253         is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
3254         Also, replace MEM (which is not a mode) by Pmode.
3255
3256         * ch-tree.h, typeck.c (chill_comptypes):  Removed.
3257         * convert.c (convert):  Remove calls to chill_comptypes.
3258
3259 Fri Nov 11 13:06:29 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3260
3261         * grant.c (write_grant_file): Call pfatal_with_name instead
3262         of abort when something goes wrong when opening or writing
3263         the grant file.
3264         unlink grant file if something goes wrong during writing
3265         (i.e. device full).
3266
3267         * Make-lang.in (CHILL_SRCS): Add timing.c
3268
3269         * ch-tree.h: Add prototype for chill_tasking_type_node.
3270         * lex.l (equal_number): Use chill_tasking_type_node instead of
3271         integer_type_node for converting the result.
3272         Print error messages in pass 2, in pass 1 no error will be
3273         detected.
3274         * tasking.c: New variable chill_tasking_type_node for all
3275         generated tasking related variables.
3276         Use chill_tasking_type_node instead of chill_unsigned_type_node.
3277
3278         * expr.c (chill_expand_expr): Apply Per's change.
3279
3280         * expr.c (build_chill_sizeof): In case of error just
3281         return error_makr_node.
3282         Set CH_DERIVED_FLAG at the result.
3283
3284         * timing.c (build_after_timeout_start): Clear the the timeout
3285         level to know if we are in the action part of AFTER statement
3286         or in the TIMEOUT part.
3287
3288         * typeck.c (build_chill_slice_with_length): Convert the class
3289         of the result to class of first value in expression.
3290
3291         * inout.c (build_chill_writetext, build_chill_readtext): Use stack
3292         temporary variables for the iolist so that they can get reused in
3293         subsequent calls. Emit code immediately instead of building a
3294         compound expr.
3295
3296 Fri Nov  4 12:00:54 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3297
3298         * expr.c (build_chill_function_call):  Don't set TREE_TYPE
3299         of assignment to void_type_node - it confuses save_expr.
3300         * decl.c (init_decl_processing):  Removed unused code.
3301         * parse.c:  Changes to avoid warnings.
3302
3303         * grant.c (chill_finish_module_code):  Minor simplification.
3304         * lex.l (readstring):  Set *len to 1 on error.
3305
3306 Thu Nov  3 01:05:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3307
3308         * grant.c (decode_decl): Add granting of BASED declarations.
3309
3310 Wed Nov  2 12:14:31 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3311
3312         * expr.c (build_chill_lower_or_upper):  Take more care to
3313         ensure result has the right class.
3314         (build_chill_pred_or_succ):  Be more careful to get the right
3315         resulting class, and check bounds using *root* mode.
3316
3317         * typeck.c (build_chill_slice_with_range):  Check that array
3318         really is an array or string.
3319         (build_chill_slice_with_length):  Likewise.
3320
3321         * typeck.c (extract_constant_from_buffer):  Fix calculation of
3322         SET_TYPE size.  (Cannot depend on 1-byte TYPE_PRECISION field.)
3323
3324 Wed Nov  2 05:33:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3325
3326         * Make-lang.in: Change version of compiler.
3327
3328         * ch-tree.h: Add new prototypes.
3329
3330         * decl.c (init_decl_processing): Remove timing related
3331         initialisations. Add call to timing_init.
3332
3333         * parse.c (parse_action): Process AFTER action.
3334
3335         * tasking.c (build_receive_case_start,
3336         build_receive_signal_case_label, build_receive_buffer_case_label,
3337         build_delay_case_start, build_delay_action, expand_send_buffer):
3338         Add processing of timesupervision.
3339         (tasking_init): Change definitions of runtime   functions.
3340
3341         * timing.c (timing_init): New function for initialisation of
3342         timing related stuff.
3343         (build_cycle_start, build_cycle_end): Changed due to
3344         implementation of timesupervision.
3345         (build_after_start, build_after_timeout_start, build_after_end):
3346         Implement the AFTER action.
3347         (build_timeout_preface, build_timesupervised_call): New functions
3348         to handle timesupervision in case of blocking system calls (i.e.
3349         SEND buffer action, RECEIVE CASE action etc.).
3350
3351 Thu Oct 27 12:50:24 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3352
3353         * expr.c (build_chill_repetition_op):  Fix repeating all-zero
3354         bitstring with orig_len!=1.  Also, call build_boring_bitstring
3355         if original string was all ones, using one range.  Also:
3356         Cannot use one-bit TYPE_PRECISION to get bitstring length.
3357
3358 Tue Oct 25 14:11:07 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3359
3360         * convert.c (convert):  When converting BOOL constant to
3361         bit-string, bit_one_node and bit_zero_node were switched.
3362         * actions.c (chill_expand_assignment):  Use force_addr_of,
3363         not build_chill_addr_expr - latter yields bogus error.
3364
3365 Fri Oct 21 14:26:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3366
3367         * expr.c (build_chill_indirect_ref):  Check for POINTER_TYPE (only)
3368         after converting from REFERENCE_TYPE.
3369         * expr.c (build_compare_expr):  Convert to common mode *after*
3370         we've checked compatibility.
3371
3372 Fri Oct 21 02:29:15 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3373
3374         * lex.l (check_newline): Use getc instead of getlc to read
3375         the filename in a # line name directive to avoid possibly
3376         downcaseing of a filename.
3377
3378 Thu Oct 20 05:37:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3379
3380         * expr.c (build_chill_indirect_ref): Add check for really
3381         dereferencing a pointer.
3382
3383         * convert.c (convert): Take care of TREE_CONSTANT of a
3384         SYNONYM having mode ARRAY () VARYING something.
3385
3386 Mon Oct 17 02:30:38 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3387
3388         * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
3389         boolean_true_node and boolean_false_node. TRUE and FALSE have
3390         the BOOL derived class.
3391
3392         * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
3393         of NUM. NUM delivers the INT derived class.
3394
3395         * grant.c (write_spec_module): Add writing of
3396           <> USE_SEIZE_FILE "x.grt" <>
3397           SEIZE ALL;
3398         to generated grant file.
3399
3400 Thu Oct 13 14:45:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3401
3402         * convert.c (convert_from_reference):  Make non-static.
3403         * ch-tree.h (convert_from_reference):  Add prototype.
3404         * parse.c (parse_name):  If the decl is a REFERENCE_TYPE, just
3405         call convert_from_reference - and not a full-scale convert.
3406
3407         * convert.c (convert):  Only call digest_array_tuple if ARRAY_TYPE.
3408         * typeck.c (chill_expand_tuple):  Print error if type is
3409         neither array, struct, or powerset.
3410
3411         * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
3412         UNDEFINED_EXPR):  Call preserve_temp_slots for temp targets.
3413         If target is not MEM, make temp (even if not REG) to simplify
3414         - and don't copy original target to temp target first.  (Not needed.)
3415
3416         * lang.c (maybe_objc_comptypes):  Just return -1.
3417
3418 Wed Oct 12 12:24:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3419
3420         * tasking.c (tasking_setup):  Fix breakage from previous check-in.
3421
3422 Tue Oct 11 16:00:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3423
3424         * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
3425         timing.c, typeck.c:  Change build1 (ADDR_EXPR, ptr_type_node, XX)
3426         to force_addr_of (XX).  Add call to mark_addressable where needed
3427         for other calls to build 1 (ADDR_EXPR, TYPE, XX).
3428
3429 Thu Oct  6 06:36:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3430
3431         * inout.c (build_chill_writetext): Remove processing
3432         of POWERSET's.
3433
3434 Tue Oct  4 14:08:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3435
3436         * convert.c (convert):  If flag_old_strings, support converting
3437         CHARS(1) and BOOLS(1) to INT.
3438
3439 Fri Sep 30 01:44:51 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3440
3441         * inout.c (build_chill_readtext): Add check for item is
3442         referable and not READonly. Add processing of BITSTRINGs.
3443
3444 Mon Sep 26 16:19:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3445
3446         * expr.c (build_chill_descr):  Add missing call to mark_addressable.
3447         * loop.c (toop_loop_end_check):  Replace build1 (ADDR_EXPR ...)
3448         with call to force_addr_of (which calls mark_addressable).
3449         * expr.c (build_chill_descr, build_chill_inttime):  Likewise.
3450         * inout.c (build_chill_writetext):  Likewise.
3451
3452 Mon Sep 26 05:19:21 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3453
3454         * grant.c (print_struct): Move printing of VARYING from
3455         here ...
3456         * grant.c (grant_array_type): ... to here.
3457
3458 Mon Sep 26 00:09:08 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3459
3460         * ch-tree.h (force_addr_of):  New prototype.
3461         * expr.c (force_addr_of):  Call mark_addressable.  Make non-static.
3462         * inout.c (build_chill_writetext):  Use force_addr_of.
3463
3464 Sun Sep 25 23:41:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3465
3466         * except.c (push_handler), actions.h:  Removed unused parameter.
3467         * actions.c (push_action):  Remove unused paramater.
3468         * parse.c, actions.c:  Remove no-longer-used parameter to
3469         calls to push_handler and push_action.
3470
3471         * decl.c (push_extern_process):  Only build types in pass 1.
3472         * tasking.c (build_process_header):  Only build types in pass 1.
3473         * tasking.c (build_start_process):  Do pushdecl/popdecl etc
3474         even after an error (to maintain consistency between passes).
3475
3476         * convert.c (convert_to_boolean):  Allow any integral input type.
3477
3478 Sat Sep 24 22:47:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3479
3480         * typeck.c (extract_constant_from_buffer):  Add (somewhat kludgey)
3481         support for UNION_TYPE.  (Patch from Wilfried.)
3482         Also, reverse RECORD_TYPE constructor list.
3483
3484 Fri Sep 23 19:06:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3485
3486         * expr.c (build_concat_expr):  Fix calculation of result_size.
3487
3488 Wed Sep 21 00:54:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3489
3490         Give up on trying to use the cleanup mechanism in stmt.c to
3491         make sure the exception handler get unlinked on goto/exit/return.
3492         Instead, do it ourselves.  (Much simpler.)
3493         * except.c, ch-tree.h (action_nesting_level):  New global.
3494         * ch-tree.h (DECL_ACTION_NESTING_LEVEL):  New macro.
3495         * decl.c (define_label):  Set DECL_ACTION_NESTING_LEVEL.
3496         * except.c (expand_goto_except_cleanup):  New function.
3497         (cleanup_chain):  New variable.
3498         (push_handler, pop_handler):  Adjust action_nesting_level.
3499         (emit_setup_handler):  Push cleanup.
3500         (chill_finish_on):  Pop cleanup.
3501         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
3502         Call expand_goto_except_cleanup.
3503         * parse.c (parse_action):  Before RETURN, call
3504         expand_goto_except_cleanup.
3505
3506 Mon Sep 19 00:59:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3507
3508         * lex.l (equal_number):  Make sure converted synonym
3509         is on permanent obstack.
3510         * typeck.c (extract_constant_from_buffer):  Fix INTEGER_TYPE
3511         loop to traverse in big-endian order.
3512
3513 Sat Sep 17 20:48:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3514
3515         * typeck.c (build_chill_cast):  Call mark_addressable.
3516         * expr.c (build_chill_function_call):  Call mark_addressable.
3517
3518 Thu Sep 15 23:47:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3519
3520         * typeck.c (expand_constant_to_buffer):  Fix an endian-ness
3521         problem for INTEGER_CST.
3522         (extract_constant_from_buffer):  Likewise.
3523
3524 Thu Sep 15 22:59:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3525
3526         * decl.c (pushlevel):  Do different things depending on
3527         actual parameter.
3528         * decl.c, parse.c, tasking.c:  Change argument to to pushlevel to 1.
3529         * actions.c (push_action):  Take new parameter.
3530         * except.c (push_handler):  Likewise.
3531         * parse.c:  Change calls to push_action and push_handler.
3532         * loop.c (begin_loop_scope):  Always call expand_start_bindings.
3533         * loop.c (end_loop_scope):  Always call expand_end_bindings.
3534         * except.c (emit_setup_handler):  Add a cleanup to
3535         unlink from exception stack if we return/exit/goto from here.
3536         * loop.c (begin_loop_scope):  Move pushlevel from here ...
3537         * parse.c (parse_do_action): ... to here.
3538
3539         Clean up do-decl interface (for decl_temp1).
3540         * parse.c (parse_loc_declaration):  If global_bindings_p (),
3541         treat as static.
3542         * decl.c (do_decl):  Don't test global_bindings_p ().
3543
3544         * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3545         Not used.  Removed.
3546         (struct scope::keep, scope::keep_if_subblocks):  Likewise.
3547         (keep_next_level):  Likewise.
3548         (kept_level_p, pushlevel, poplevel):  Simplify.
3549
3550         * decl.c (init_decl_processing):  Don't call init_iterators.
3551         * Makefile.in (C_OBJS):  Don't get ../c-iterator.o - not needed.
3552
3553 Thu Sep 15 05:54:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3554
3555         * lex.l (readstring): Add processing of control sequence
3556         in character string literals. The granting mechanism writes
3557         this to grant files.
3558
3559 Tue Sep 13 06:19:42 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3560
3561         * expr.c (compare_records): In case of -fpack do always
3562         a memcmp instead of comparing each field of the
3563         structure. If the structure is a variant structure,
3564         issue a warning.
3565
3566 Mon Sep 12 13:15:09 1994  Per Bothner  (bothner@cygnus.com)
3567
3568         * grant.c (write_spec_module):  Add cast, to avoid PCC warning.
3569         * grant.c (header_template):  Don't use ANSI-specific string
3570         literal concatenation.
3571
3572 Fri Sep  9 01:53:30 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3573
3574         * tasking.c (get_process_wrapper_name): New function.
3575         (add_taskstuff_to_list): Add a new argument, which is
3576         the entrypoint of a process.
3577         (build_process_header): Change PROCESS arguments to be
3578         like arguments of a function. There will be a wrapper
3579         which is the real entry point for a PROCESS. This wrapper
3580         is automatically build after a PROCESS definition and gets
3581         as argument a pointer to a structure looking like the
3582         arguments of the PROCESS. This wrapper will call the
3583         PROCESS (see build_process_wrapper).
3584         (build_process_wrapper): New function (see above).
3585         (build_start_process): Change processing of arguments.
3586         (tasking_setup): Add processing of a different entry point
3587         in case of PROCESSes.
3588
3589         * parse.c (parse_process_definition): Add call to
3590         build_process_wrapper.
3591         * parse.c (end_function): Remove the poplevel() call.
3592         build_process_header no longer makes the corresponding
3593         pushlevel().
3594
3595         * grant.c (print_proc_tail): Remove special processing
3596         of PROCESSes, they look now like normal functions.
3597
3598         * decl.c (init_decl_processing): Add declaration of memcmp
3599         function.
3600
3601         * ch-tree.h: Add new prototype for build_process_wrapper,
3602         change prototypes for add_taskstuff_to_list and
3603         build_process_header.
3604
3605         * grant.c (write_spec_module): Write GNUCHILL and gcc
3606         version into grant file.
3607
3608         * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
3609         GNUCHILL_VERSION to ch/Makefile.
3610         * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3611
3612         * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3613         will get generated every time a new Makefile will get
3614         generated.
3615         * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3616         Make-lang.in.
3617
3618         * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3619         to the compiler to avoid generation of an object file.
3620
3621 Thu Sep  8 12:07:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3622
3623         * convert.c (display_int_cst), ch-tree.h:  New function.
3624         * convert.c (digest_array_tuple):  Use digest_int_cst to
3625         provide better error messages.  Return error_mark_node on error.
3626         * grant.c (decode_const):  Simplify by using digest_int_cst.
3627         * grant.c (format_character, find_assoc):  Removed.
3628
3629         * decl.c (do_decl):  Add missing TREE_CHAIN.
3630
3631         * decl.c (finish_incomplete_decl):  Removed.
3632         (init_decl_processing):  Don't set incomplete_decl_finalize_hook.
3633         (finish_decl):  Remove old C-specific code to deduce size of
3634         array from initialization.
3635         (complete_array_type):  Just make it abort.
3636
3637         * except.c (finish_handler_array):  Avoid calling C-specific kludge
3638         complete_array_type.
3639
3640         * convert.c (digest_constructor):  Rename, and re-write to:
3641         (digest_array_tuple, convert):  No longer use the code in
3642         ../c-typeck.c;  use a Chill-only implementation (sigh).
3643
3644         * typeck.c (chill_expand_tuple):  Remove unneeded call to
3645         complete_array_type.
3646
3647         * expr.c (fold_set_expr), grant.c (decode_constant),
3648         typeck.c (expand_constant_to_buffer):  Update name of called
3649         function unpack_set_constructor to get_set_constructor_bits.
3650         * expr.c (powersetlen ):  Remove redundant call to convert.
3651
3652         * ch-tree.h (unpack_set_constructor):  Removed obsolete declaration.
3653
3654         * inout.c (build_chill_writetext):  Handle 64-bit integer literals
3655         by trying to convert them to a smaller type.
3656
3657         * lex.l (convert_number):  Always use long long type (possibly
3658         unsigned) to avoid problems with constant folding truncation.
3659
3660 Mon Sep  5 08:08:22 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3661
3662         * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3663         Add new prototype (see tasking.c).
3664
3665         * expr.c (build_generalized_call): Add processing of
3666         BUILT_IN_QUEUE_LENGTH.
3667
3668         * tasking.c (build_queue_length): New function.
3669
3670         * tasking.c (tasking_init): Add new external function definition.
3671
3672 Thu Sep  1 15:38:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3673
3674         * lex.l (default_lex):  New function.  Progress towards
3675         getting rid of [f]lex.
3676
3677         * lex.l (convert_number):  Use mul_double and add_double.
3678         Set result type to a reasonable type in which the literal
3679         will fit.  Give error message if literal is too big.
3680
3681         * lex.l (equal_number):  Switch (temporarily) to permanent obstack.
3682
3683         * typeck.c (build_chill_slice_with_range):  Check for empty
3684         slice *after* we have checked for upper/lower limit in range.
3685
3686         * grant.c (decode_mode):  Remove unused code.  (BOOL and
3687         CHAR ranges are represented as INTEGER_TYPEs.)
3688
3689         * tasking.c (build_process_header):  Add missing call to
3690         expand_start_bindings.
3691         * parse.c (end_function):  Add missing expand_end_bindings.
3692
3693 Wed Aug 31 17:25:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3694
3695         * decl.c (init_decl_processing):  Set set_alignment.
3696
3697 Tue Aug 30 16:40:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3698
3699         * actions.c (print_missing_cases, check_missing_cases,
3700         BITARRAY_TEST, BITARRAY_SET):  New functions and macros,
3701         to check for completeness of case actions and expressions.
3702         * decl.c (c_decode_option, init_decl_processing):
3703         Don't set warn_switch.
3704         * expr.c (chill_expand_case_expr):  Call check_missing_cases
3705         instead of check_for_full_enumeration_handling.
3706         * parse.c (parse_case_actions):  Call check_missing_cases.
3707
3708         * expr.c (build_chill_binary_op):  Remove some dead code.
3709         * expr.c (chill_truthvalue_conversion):  Call build_chill_binary_op
3710         instead of build_binary_op.
3711         * ch-tree.h (binary_op_error, build_binary_op):  Unused.  Removed.
3712
3713         * parse.c (end_function):  Use kept_level_p in parameter to
3714         poplevel.  This reverts a June 13 change.
3715
3716 Fri Aug 26 11:50:19 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3717
3718         * configure: Ignore --without, as ../configure does.
3719
3720 Wed Aug 24 01:17:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3721
3722         * lex.l: Change rule for decimal numbers to allow identifiers
3723         to start with an underscore (_).
3724
3725 Fri Aug 19 16:38:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3726
3727         * tasking.c (build_receive_signal_case_label):  Remove backwards
3728         chill_convert_for_assignment (which converted whatever garbage
3729         was in the *target* to the type of the signal argument!).
3730
3731 Fri Aug 19 07:10:43 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3732
3733         * inout.c (build_chill_io_list_type, build_enum_tables),
3734         tasking.c (build_tasking_struct): Temporarily reset
3735         maximum_field_alignment to 0, so that the compiler-built
3736         data structures needed by the RTS can be independent of -fpack.
3737
3738 Thu Aug 18 13:39:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3739
3740         * typeck.c (build_init_struct):  Temporarily reset
3741         maximum_field_alignment to 0, so that the compiler-built
3742         data structures needed by the RTS can be independent of -fpack.
3743
3744 Wed Aug 17 23:48:33 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3745
3746         * parse.c (parse_primval, expect, parse_on_exception_list):
3747         Print error message only in pass 2.
3748
3749 Wed Aug 17 13:47:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3750
3751         * decl.c (switch_to_pass_2):  Revert June 13 change,
3752         (Don't exit after pass 1 if an error was found.)
3753
3754         * ch-tree.def (SLICE_EXPR):  New tree-code.
3755         * typeck.c (build_chill_slice):  For building a slice of a
3756         bit-string, just generate a SLICE_EXPR.
3757         * decl.c (init_decl_processing):  Declare __pscpy.
3758         * actions.c (chill_expand_assignment):  Handle a SLICE_EXPR
3759         on the LHS of assignment, by calling __pscpy.
3760         * expr.c (chill_expand_expr):  Handle SLICE_EXPR (as a RHS
3761         value) by using __psslice to copy slice to a temp.
3762
3763 Wed Aug 17 05:52:44 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3764
3765         * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3766         * expr.c (build_chill_length): Enable LENGTH built-in to process
3767         Buffers and Events too (Z.200/1992).
3768         * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3769         a linux system the previous version was not able to run.
3770         * tasking.c: Correct processing of infinite buffer- and event-length
3771         to avoid RANGEFAIL warning.
3772
3773 Thu Aug 11 11:46:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3774
3775         * parse.c (parse_if_expression_body):  Don't call the C-specific
3776         build_conditional_expr.  Just do build_nt (COND_EXPR, ...).
3777         * convert.c (convert):  Convert a COND_EXPR by converting
3778         each branch.
3779
3780         * convert.c (convert):  Don't call convert before
3781         convert_to_reference.  It's apt to do weird and unneedful things.
3782         * convert.c (convert):  If the expression is varying, just call
3783         varying_to_slice, which simplifies quite a bit.
3784
3785         * ch-tree.h (varying_to_slice):  Add prototype.
3786         * typeck.c (varying_to_slice):  Remove prototype.
3787
3788         * satisfy.c (satisfy):  Move case PAREN_EXPR from type 'e'
3789         to type '1'.
3790
3791         * except.c (emit_setup_handler):  Temporarily reset the
3792         maximum_field_alignment to zero so the compiler's exception
3793         data structures can be compatible with the run-time system,
3794         even when we're compiling with -fpack.
3795
3796         * expr.c (compare_records):  Call saved_if_needed on operands.
3797
3798         * expr.c (build_set_expr case NE_EXPR):  Don't use __nepowerset
3799         which has been reimplemented to just call __eqpowerset and
3800         invert the result.  Inline this new implementation by
3801         handling as EQ_EXPR, and inverting the result.
3802         * decl.c (init_decl_processing):  Don't define unused __eqpowerset.
3803
3804         * typeck.c (valid_array_index_p):  The TRUTH_ANDIF_EXPR has
3805         type boolean_type_node, not void_type_node.  (Fixing this
3806         avoids a crash in the back-end.)
3807
3808         * grant.c (decode_constant):  In a CALL_EXPR, if the argument
3809         list is not a TREE_LIST (as in string repetiation), don't
3810         emit parentheses.
3811
3812 Wed Aug 10 13:13:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3813
3814         * decl.c (proclaim_decl):  Use CH_DECL_ENUM to check that a
3815         CONST_DECL is from a SET definition.  (This is safer than
3816         checking that the type is ENUMERAL_TYPE, because synonym
3817         definitions may have a NULL TREE_TYPE.)
3818         Also, if we have duplicate enums whose types are identical,
3819         this is an error.
3820         * decl.c (proclaim_decl, pushdecllist, push_scope_decls):  Add
3821         an extra 'quiet' parameter, which is true if we're called from
3822         bind_sub_modules.  (In that case an error message about duplicated
3823         decls would be repeated later, so suppress it.)
3824
3825         * parse.c (stmt_count):  Removed, not used.
3826         (INIT_ACTION):  Call emit_line_note only if !ignoring.
3827         (parse_begin_end_block):  Do INIT_ACTION even if ignoring.
3828
3829 Fri Aug  5 12:39:11 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3830
3831         * parse.c (parse_untyped_expr):  Add missing semi-colon.
3832
3833 Thu Aug  4 17:40:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3834
3835         * parse.c (parse_untyped_expr):  Fix various problem for the
3836         case that we see a '(':  Add missing 'case' keyword.
3837         Only recurse if '(' is followed by 'if', 'case' or '[',
3838         and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3839
3840         * parse.c (parse_send_action):  Remove extra nreverse.
3841
3842 Thu Jul 28 04:00:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3843
3844         * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3845         Add new checks.
3846
3847 Tue Jul 26 22:48:15 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
3848
3849         * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3850         Added a missing call to `require' as well.
3851
3852 Tue Jul 19 10:30:12 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3853
3854         * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3855         the extern declaration in the flex skeleton.
3856
3857 Mon Jul 18 23:06:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3858
3859         * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3860         Check the type of the instance expr using CH_COMPATIBLE,
3861         and not just == instance_type_node.  (This allows
3862         the expression to have mode READ INSTANCE).
3863         * tasking.c (build_instance_type):  Give instance_type_node
3864         a non-null novelty (i.e. different from a struct).
3865         * tasking.c (build_receive_case_start, build_delay_case_start):
3866         Check that for a location using CH_LOCATION_P.
3867
3868 Mon Jul 18 13:22:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3869
3870         * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3871         to modify a tree code.
3872
3873 Mon Jul 18 11:24:57 1994  Bill Cox  (bill@rtl.cygnus.com)
3874
3875         * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3876           comparison.
3877
3878 Mon Jul 18 05:40:15 1994  Doug Evans  (dje@canuck.cygnus.com)
3879
3880         * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3881
3882 Thu Jul 14 18:37:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3883
3884         * parse.c (parse_send_action):  Do tree_cons *before* checking
3885         for end of loop.
3886
3887 Mon Jul 11 15:33:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3888
3889         * convert.c (digest_structure_tuple):  Don't use convert to
3890         coerce initial value,  use chill_convert_for_assignment instead.
3891         (Thus we also get range_checking.)
3892
3893         * expr.c (build_chill_card):  Use force_addr_of instead of
3894         build_chill_addr_expr.
3895
3896         * loop.c (build_temporary_variable):  Stylistic tweak.
3897         * loop.c (maybe_make_for_temp):  Initialize temp using
3898         explicitly, not using assignment.  Avoids a problem if
3899         the expression is read-only.
3900         * typeck.c (smash_dummy_type):  Always used the saved TYPE_NAME
3901         and CH_NOVELTY_FLAG.
3902
3903 Wed Jul  6 20:12:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3904
3905         * expr.c, ch-tree.h (finish_chill_unary_op):  New function,
3906         based on code ripped out of build_chill_unary_op.
3907         (build_chill_unary_op):  Call finish_chill_unary_op unless pass==1.
3908         * satisfy.c (satisfy):   Call finish_chill_unary_op when needed.
3909
3910 Mon Jun 27 11:29:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3911
3912         * tree.c (save_if_needed), ch-tree.h:  New function.
3913         * typeck.c (build_chill_slice_with_range,
3914         build_chill_slice_with_length):  Call save_if_neeed on array arg.
3915         * expr.c (varying_to_slice):  Re-write to use save_if_needed.
3916
3917         * typeck.c (extract_constant_from_buffer):  Handle BOOLEAN_TYPE.
3918
3919 Mon Jun 27 01:11:10 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3920
3921         * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3922         that it is always the same, regardless if compiled with -fpack
3923         or not.
3924
3925 Tue Jun 14 16:44:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3926
3927         * lex.l (yywrap):  Kludge to work around mis-synchronization
3928         between lexer (which read ahead) and parser:  Don't emit
3929         (left-over) uze_seizefile directives at the end of file.
3930
3931         * typeck.c (build_chill_array_ref):  Allow the derived
3932         array indexing syntax for arrays of bit strings.
3933         Add a comment explaining why.
3934
3935         * typeck.c, ch-tree.h (string_assignment_condition):  Change
3936         the interface.  Return a boolean expression (which can be
3937         used in a conditional at run-time);  never expand anything.
3938
3939         * actions.c (chill_convert_for_assignment):  Check
3940         string_assignment_condition here, rather than in callers.
3941         * actions.c (chill_expand_assignment):  Don't need to check
3942         string_assignment_condition here.
3943         * expr.c (build_chill_function_call):  Likewise.
3944         * satisfy.c (safe_satisfy_decl):  Update accordingly.
3945         * decl.c (do_decl):  Simplify testing and conversion by
3946         deferring everything to chill_convert_for_assignment.
3947
3948         * parse.c:  Combine the two variables 'ignore_exprs' and
3949         'ignore_actions' into one variable called 'ignoring'.
3950         * ch-tree.h:  Add 'extern int ignoring'.
3951         * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3952         Rename ignore_actions and ignore_exprs to ignoring.
3953         Remove unneeded extern declarations.
3954         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3955         build_chill_arrow_expr, build_generalized_call, build_delay_action,
3956         build_buffer_type, build_event_type):  I changed my mind.  It is
3957         cleaner to check for 'ignoring' in the parser, rather than here.
3958         * parse.c (parse_action, parse_primval, parse_opt_mode):
3959         Therefore we must check for ignoring here.
3960         * parse.c (parse_loc_declaration):  Set ignoring in pass 2
3961         when parsing the mode.
3962
3963         * tasking.c (generate_tasking_code_variable):  Do arithmetic
3964         on signal_code etc using unsigned rather than signed shorts.
3965
3966         * grant.c (static char* current_grant_modename):  Removed.
3967         * grant.c (decode_decl case CONST_DECL):  Remove error message.
3968
3969         * Make-lang.in (CHILL_SRCS):  Add $(srcdir)/ch/parse.c.
3970         * Makefile.in:  Fix dependencies for parse.o.
3971         Remove some duplicate dependencies for $(TREE_H).
3972
3973 Mon Jun 13 14:25:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3974
3975         * typeck.c (build_chill_cast):  Allow a value cast between
3976         non-discrete object of the same size, but with a pedwarn.
3977         * typeck.c (bit_string_assignment_condition,
3978         char_string_assignment_condition):  Merge near-duplicate functions
3979         and place the code in string_assignment_condition.
3980
3981         * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3982         Removed.  Not used.
3983         * decl.c (start_chill_function, finish_chill_function):  Make
3984         parameter level have same nesting level as body, as required by Z200.
3985         * decl.c (switch_to_pass_2):  Always exit if an error has been found.
3986         * decl.c (pop_module):  Copy DECL_SEIZEFILE to a new ALIAS_DECL
3987         generated from GRANT ALL.
3988         * decl.c (lookup_name_for_seizing):  Don't seize from
3989         the nesting level of builtins (predefined objects).
3990         * decl.c (lookup_name_for_seizing):  Make more robust on error.
3991
3992         * decl.c (start_chill_function):  MAKE DECL_NAME (chill_result_decl)
3993         be 'RESULT' (or 'result').  This makes it more accessible from gdb.
3994         Also, use do_decl to declare it, so that debugging symbols are
3995         generated.  And, re-arrange so that actions that need to
3996         be done both passes (such as push_levels) use the same code.
3997
3998         * parse.c (get_type_of):  If ignore_exprs, don't lookup name.
3999         * parse.c (end_function):  Fix poplevel params.
4000         * parse.c (expect):  Don't read forwards on an error.
4001         * parse.c (parse_field):  Don't define two tag_list locals!
4002         * parse.c (parse_pass_1_2):  Better error message.
4003
4004         * parse.c (parse_mode, parse_opt_mode):  Have parse_mode call
4005         parse_opt_mode, rather than vice versa.  If parse_opt_mode
4006         returns NULL_EXPR, then parse_mode gives an error.
4007         Change parse_opt_mode (and any functions it calls) to only
4008         return NULL_TREE if there is no mode (even on ignore_exprs).
4009         (parse_set_mode, parse_structure_mode, parse_procedure_mode):
4010         Never return NULL_EXPR.
4011         * tasking.c (build_buffer_type, build_event_type):  Return
4012         void_type_node instead of NULL_EXPR if ignore_exprs is true.
4013
4014         * parse.c (parse_synonym_definition):  Call parse_untyped_expr
4015         only if we have a mode.
4016         * parse.c (parse_send_action):  Parse list of untyped_expr's,
4017         rather than a list of (typed) expressions.
4018         * parse.c (parse_primval):  Emit error if '[' seen without
4019         preceding mode name.  (If this is to be allowed, call
4020         parse_untyped_expr instead.)
4021
4022         * parse.c (parse_array_index):  Renamed to ...
4023         (parse_index_mode):  ... to match Z200 terminology.
4024         Re-write to resolve some of the nastier ambiguities,
4025         and allow things like ' CHAR(10) : CHAR(20) '.
4026
4027         * parse.c (parse_tuple_element):  Change interface to return
4028         reversed list, so don't call nreverse.
4029         * parse.c (parse_tuple):  No longer nreverse element list here.
4030         * parse.c (parse_opt_element_list):  Do nreverse here instead.
4031         * parse.c (parse_case_label_list):  Call nreverse at end.
4032
4033 Fri Jun 10 15:36:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4034
4035         * typeck.c (chill_similar):  Remove bogus "else".
4036
4037 Wed Jun  8 00:01:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4038
4039         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  New macro (and comment)
4040         to make it clearer that we are using TYPE_MAX_VALUE in a special way.
4041         * typeck.c (build_chill_slice):  Use TYPE_ARRAY_MAX_SIZE.
4042         * expr.c (chill_expand_expr case CONCAT_EXPR):  Likewise.
4043         * convert.c (convert):  When converting a fixed string/array
4044         to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
4045         of (the type of) the padding.
4046         * convert.c (convert): If the concatenation is non-constant, use
4047         the low-level 'build' to set the type of the result (which is usually
4048         a fixed-size array) rather than depend on build_chill_binary_op
4049         to figure it out (it's unable to simplify the size to a constant).
4050
4051 Mon Jun  6 18:16:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4052
4053         * lang.c (lang_decode_option):  Let -fspecial_UC imply
4054         -fno-ignore-case without requiring it explicitly.
4055         * lang.c (lang_decode_option):  Support (experimentally)
4056         the -fpack and -fno-pack flags.
4057
4058 Thu Jun  2 20:49:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4059
4060         * configure: Add support for --program-prefix and --program-suffix.
4061
4062 Tue May 31 18:12:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4063
4064         * convert.c (digest_constructor):  Check that initial value
4065         is compatible with element mode before calling convert.
4066         * typeck.c (chill_compatible):  A string mode is not compatible
4067         with an untyped constructor.
4068         * decl.c (do_decl):  Clean up error messages.  Use error_with_decl.
4069
4070         * ch-tree.h:  Fix inconsistencies: bool_true_node ->
4071         boolean_true_node, and bool_false_node -> boolean_false_node.
4072         * typeck.c (valid_array_index_):  Minor simplification.
4073
4074 Tue May 31 04:33:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4075
4076         * inout.c (build_chill_writetext): Add correct processing
4077         of POWERSET RANGE (setmode).
4078
4079         * lex.l (same_file): Add searching for file(s) in
4080         seize_path_list.
4081
4082 Fri May 27 14:22:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4083
4084         * Make-lang.c (CHILL.mostlyclean, CHILL.distdir):  Don't list
4085         yacc/bison output files, since the grammer is no longer in yacc.
4086         * config-lang.in (diff_excludes):  Likewise.
4087
4088 Thu May 26 16:38:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4089
4090         * gperf, hash.h, lex.l, parse.h:  Rename PROCESS_TYPE token
4091         (in some files spelled PROCESS_TYPE_ to avoid clashes
4092         with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
4093
4094 Thu May 26 02:18:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4095
4096         * timing.c (build_cycle_start): Change call to __define_timeout.
4097         * decl.c (init_decl_processing): Change definitions of
4098         __define_timeout and __wait_timeout.
4099
4100 Wed May 25 11:53:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4101
4102         Replace yacc-based parser with a recursive-decent parser.
4103         (This may seem backwards, but Chill [like C++] is not a
4104         language that is remotely LALR(1).  Using a R-D parser
4105         allows us to use look-ahead and to back-up to resolve the
4106         difficult ambiguities.)
4107         * parse.y:  Removed.
4108         * parse.c, parse.h:  New files, containing new r-d parser.
4109         * Makefile.in:  Update accordingly.
4110         * actions.c (chill_convert_for_assignment):  Don't return
4111         NULL_EXPR if ignore_exprs is true.  It simplifies the parser
4112         if we consistently reserve NULL_EXPR for a missing expression.
4113         * expr.c (build_chill_function_call):  Likewise.
4114
4115         * lex.l:  Tweaks for new parser.
4116         * lex.l (prepare_paren_colon, paren_paren_colon_level,
4117         paren_level):  Ugly hack no longer needed.
4118
4119         * expr.c (build_chill_function_call):  Cleanup.
4120         Call chill_convert_for_assignment to convert IN/INOUT
4121         paramaters on both input and output.  For LOC parameters,
4122         give error if actual is a non-referable location.
4123         * actions.c (convert_for_assignment):  Add new parameter (a
4124         "place" string used in error messages).
4125         * actions.c (adjust_parm_or_field):  Removed.
4126         * actions.c (chill_expand_assignment):  Take just a single LHS,
4127         and move support for multiple assignments to ...
4128         (expand_assignment_action): ... here.  Some cleaning up.
4129         * timing.c (build_cycle_start):  Adjust accordingly.
4130         * actions.c (expand_assignment_to_varying_array):  Likewise.
4131         * tasking.c (many places): Ditto.
4132         * ch-tree.h:  Fix declarations appropriately.
4133
4134         * parse.c (parse_defining_occurrence_list):  Return a single
4135         IDENTIFIER_NODE (instead of a singleton list) in the common
4136         case.  Minor complication to save a minor amount of space.
4137         * decl.c (do_based_decls):  Move guts of code into ...
4138         (do_based_decl):  ... this new function.
4139         * decl.c (do_decls):  Handle either IDENTIFIER_NODE or a TREE_LIST.
4140         * decl.c (push_syndecl):  Replace by ...
4141         (push_syndecl):  ... (which only supports a single name).
4142         (push_modedef):  Only handle a single name.
4143         * tasking.c (build_process_header, build_signal_struct_type):
4144         Adjust accordingly.
4145
4146         * expr.c (build_generalized_call):  Handle string repetition.
4147         * expr.c (build_chill_repetition_op):  Change interface.
4148         * grant.c (decode_constant):  Allow parameter list to be
4149         a non-TREE_LIST.  (Used for string repetition.)
4150
4151 Wed May 25 11:28:48 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4152
4153         * lex.l (make_identifier):  Replaced by ...
4154         (read_identifier, handle_name): ... new functions.
4155         * lex.l: Parse an identifiers using read_identifier using
4156         read_identifier and handle_name, rather than having [f]lex
4157         do it.  (One reason is that lex uses a fixed-size buffer.)
4158
4159         * lex.l (read_directive, skip_directive):  New functions.
4160         Use them to parse compiler-directives, instead of rather
4161         ugly and useless use of lexer start conditions.
4162
4163 Tue May 24 22:36:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4164
4165         * decl.c (unnamed_module_number):  Renamed to ...
4166         (module_number):  .. and make non-static.
4167         (push_module):  Always increment module_number.
4168         * lex.l (yywrap):  Print warning if no modules seen.
4169
4170         * decl.c (pop_module):  Don't set DECL_SEIZEFILE of granted
4171         decl to current_seizefile_name (which is unreliable).
4172         * grant.c (chill_grant):  Set it here instead.
4173
4174         * expr.c (fold_set_expr):  Use int_size_in_bytes instead of
4175         TYPE_PRECISION (which is not defined for a SET_TYPE).
4176
4177 Fri May 20 15:21:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4178
4179         Cleanup to remove need for variables in common storage.
4180         * decl.c:  Remove unused use of current_obstack.
4181         * actions.c (maybe_chill_check_decl):  Remove unused function.
4182         * actions.h, lang.c:  Remove uses of doing_chill_thang.
4183         * ch-tree.h (void_list_node):  Make extern (rather than common).
4184         * decl.c (void_list_node):  Add definition.
4185
4186 Thu May 19 06:54:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4187
4188         * configure (build): Build canon_host and canon_target
4189         to pass it to all subsequently generated Makefiles (needed
4190         for testsuite/execute in case of cross build).
4191
4192 Wed May 18 13:27:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4193
4194         * grant.c (decode_mode):  Remove.  It checks the TYPE_NAME of
4195         the input type, which loses with the no-longer-new 2-pass
4196         implementation, since the input "type" could be an IDENTIFIER_NODE.
4197         * grant.c (raw_decode_mode):  Rename to decode_mode.
4198
4199 Tue May 17 13:19:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4200
4201         * typeck.c (chill_location):  Neither a STRING_CST nor a
4202         CONSTRUCTOR is a location.
4203         * typeck.c (chill_root_mode):  Convert a function to a
4204         pointer-to-function.
4205         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
4206         build_chill_arrow_expr):  If ignore_exprs, return operand
4207         rather than NULL_EXPR.  This makes it easier for the parser to
4208         distinguish missing expressions.
4209         * expr.c (build_max_min):  Convert the lower bound of a
4210         set to a long before calling run-time routine.
4211         * expr.c (build_chill_pred_or_succ):  Use discrete_type_p
4212         to check the argument type.
4213         * expr.c (build_chill_arrow_expr):  If argument is not a location,
4214         do a predwarn if it is a STRING_CST or has function type.
4215
4216 Tue May 17 06:05:13 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4217
4218         * configure (build): Remove building of canon_host and canon_target.
4219         It doesn't work in any case.
4220
4221 Mon May 16 02:10:35 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4222
4223         * configure (build): Build canon_host and canon_target
4224         to pass it to all subsequently generated Makefiles (needed
4225         for testsuite/execute in case of cross build).
4226         * Make-lang.in (chill-runtime): Change chill to CHILL in the case
4227         statement to build chill-runtime automatically.
4228
4229 Mon May  9 15:30:08 1994  Doug Evans  (dje@canuck.cygnus.com)
4230
4231         * Makefile.in (FLAGS_TO_PASS): Define.
4232         (OBJDEPS): Define.
4233         (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
4234         * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
4235         (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
4236
4237 Sun May  8 13:05:00 1994  Per Bothner  (bothner@cygnus.com)
4238
4239         * Make-lang.in (cc1chill):  Should not depend on libgcc.a.
4240
4241 Thu May  5 18:58:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4242
4243         * decl.c (copy_lang_decl):  New (dummy) function.
4244
4245 Mon May  2 14:33:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4246
4247         * parse.y (sendaction):   Fix thinko (in sense of condition).
4248         * tasking.c (build_receive_case_label):  Another thinko.
4249
4250         * parse.y (optsigdest):  Force ignore_exprs to 0 while parsing
4251         the (signal-)name.
4252
4253         * decl.c (build_chill_function_type):  Don't call layout_type
4254         (since that may prevent parameter or result types being
4255         properly satisfied).
4256         * satisfy.c (satisfy):  Layout FUNCTION_TYPEs.
4257         * parse.y (procmode):  Call build_chill_pointer_type, rather
4258         than build_pointer_type (which incorrectly sets TYPE_SIZE).
4259
4260         * parse.y (get_type_of):  Handle TYPE_DECL (again).
4261         * parse.y (optresultspec):  Call build_chill_reference_type, rather
4262         than build_reference_type (which incorrectly sets TYPE_SIZE).
4263         * parse.y (range_or_mode):  Rename to plain range, since it
4264         no longer matches modename.
4265         * actions.c (chill_handle_case_label_range):  New function, with
4266         functionality moved out of chill_handle_case_label.
4267         * actions.c (chill_handle_case_label):  Handle here the case that
4268         the label_value is a TYPE_DECL (modename).   Also clean up some.
4269         * typeck.c (build_chill_slice_with_length):  Convert max_index
4270         to the type of min_value.  (Old code broke on varying strings.)
4271
4272 Sun May  1 13:53:36 1994  Doug Evans  (dje@canuck.cygnus.com)
4273
4274         * Makefile.in (BC_OBJS): Delete all references
4275         (OBJS): Cat ../stamp-objlist to get language independent files.
4276         (../cc1chill): Delete dependency on $(OBJS).
4277         * Make-lang.in (cc1chill): Depend on stamp-objlist.
4278
4279 Sat Apr 30 14:50:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4280
4281         * lex.h, lex.c:  Remove lastiddecl.
4282         * lex.l (name_type_signal):  Simplify.  We no longer check for
4283         TYPENAME or SIGNALNAME (which was unreliable with two passes).
4284         Also rename to make_identifier.
4285         * parse.y:  Cleaned up grammar to not need SIGNALNAME or TYPENAME.
4286         * Makefile.in (stamp-parse);  One conflict fewer!
4287         * parse.y (rccase_label_flag):  Moved to tasking.c.
4288         * parse.y (rccase_label):  Move most of the logic to
4289         build_receive_case_label in tasking.c.
4290         * parse.y (sendaction):  Re-write to not depend on SIGNALNAME.
4291
4292         * parse.y (name):  Do name lookup here (and not in location).
4293         * parse.y:  Replace most uses of NAME by higher-level non-terminals:
4294         simple_name_string, name_string, defining_occurrence, or name.
4295
4296         * tasking.c (build_receive_signal_case_label,
4297         build_receive_buffer_case_label):  New functions, split out from
4298         build_receive_case_label.
4299         * tasking.c (build_receive_case_label):  Change parameters
4300         and return type.  Moved stuff here (from the parser).
4301         * tasking.c (struct rc_state_type):  Removed had_errors.
4302         Return error_mark_node instead.
4303         * tasking.c (build_rccase_set_error), ch-tree.h:  Removed.
4304
4305         * expr.c (build_generalized_call):  If func is a signal type,
4306         call build_signal_descriptor.
4307
4308         * parse.y (arrayindex):  Renamed to index_mode, to match Z.200.
4309         * parse.y (ioindexmode):  Removed;  use index_mode instead.
4310         * expr.c (build_generalized_call):  If args is a RANGE_EXPR,
4311         we have either a slice or a range mode, depending on func.
4312         * parse.y (index_mode):  If we got an 'expr', only allow a name,
4313         or a range mode.
4314         * parse.y (call):  A slice with both end points can be a range
4315         mode, so defer handling to build_generalized_call (or index_mode).
4316
4317         * typeck.c (build_chill_slice_with_length):  Fix type-checking.
4318         * typeck.c (chill_novelty):  Undo (part of) change of April 28:
4319         The novelty of a range mode is the novlety of the parent.
4320         * typeck.c (chill_root_mode):  Don't return integer_type_node
4321         if argument has non-nil novelty.
4322
4323         * decl.c (global_bindings_p):  Return -1 as true, for the sake
4324         of variable_size (in ../stor-layout.c).
4325
4326 Fri Apr 29 13:42:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4327
4328         * parse.y:  Remove TYPENAME and modename.  These are now plain
4329         NAMEs.  Modify parsing actions appropriately.
4330         * expr.c (build_generalized_call):  Handle the case that
4331         TREE_CODE (func) == TYPE_DECL (as in a cast).
4332         * lex.l (name_type_signal):  Never return TYPENAME.
4333         * parse.y (get_type_of):  If pass 1, just return the argument.
4334
4335         * decl.c (do_decl):  If an initializer has the wrong type,
4336         replace it by NULL_TREE, to avoid subsequent errors.
4337
4338 Thu Apr 28 15:21:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4339
4340         * Makefile.in: Add new file timing.c to rules.
4341         * timing.c: New file. Implements the timing actions AT,
4342           CYCLE and AFTER.
4343         * decl.c (init_decl_processing): Add new builtin function
4344           descriptions.
4345         * expr.c (build_chill_indirect_ref): Change error message and
4346           add check agains an IDENTIFIER_NODE.
4347         * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
4348           They are no longer needed.
4349         * grant.c (print_integer_type): Add processing of builtin types
4350           DURATION and TIME.
4351         * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
4352         * parse.y (timingactions): split up to afteraction, ataction
4353           and cycleaction.
4354         * parse.y (afteraction): New rule.
4355         * parse.y (ataction): New rule and put actions in.
4356         * parse.y (cycleaction): New rule and put actions in.
4357         * parse.y (sendaction): Add code for SEND buffer.
4358         * parse.y (rccase_label): Change error processing.
4359         * tasking.c (build_gen_inst): More checks.
4360         * tasking.c (build_gen_code): Add checking for argument is a
4361           PROCESS or a SIGNAL.
4362         * tasking.c (struct rc_state_type): Add new fields for easier
4363           error processing.
4364         * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
4365         * tasking.c (build_rccase_set_error), ch-tree.h: New function.
4366         * tasking.c (build_receive_case_label): Add processing of BUFFER's.
4367         * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
4368           New functions to process the end of a RECEIVE CASE action in case
4369           of BUFFER's and SIGNAL's.
4370         * tasking.c (build_receive_case_end): Do only general processing and
4371           call one of the above mentioned functions.
4372         * tasking.c (build_delay_case_start, build_delay_case_label,
4373           build_delay_case_end): Rewritten due to new implementation of events.
4374         * tasking.c (build_delay_action): Rewritten due to new implementation
4375           of EVENT's.
4376         * tasking.c (expand_send_buffer), ch-tree.h: New function.
4377         * timing.c (build_at_action, build_cycle_start, build_cycle_end),
4378           ch-tree: New functions.
4379
4380 Thu Apr 28 14:11:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4381
4382         * typeck.c (smash_dummy_type):  Handle the special case of a
4383         NEWMODE of a range mode, as required by Z200, by creating a
4384         new parent mode with the new novelty (and casting the min
4385         and max of the range to teh new parent mode).
4386         * typeck.c (chill_novelty, chill_root_mode):  Remove special
4387         kludges for of NEWMODE ranges.
4388         * expr.c (build_chill_lower_or_upper):  New function, combining
4389         the "guts" of build_chill_lower and build_chill_upper.
4390         * expr.c (build_chill_lower_or_upper):  Simplify;  no longer
4391         need to kludge the novelties.
4392
4393         * typeck.c (valid_array_index_p):  A string index expression
4394         need not be Compatible with the index type;  only similar.
4395
4396         * decl.c (layout_chill_variants):  If error seen, skip stuff
4397         (rather than aborting or crashing).
4398         * decl (push_modedef):  If newdecl's type is an error mark,
4399         continue rather than aborting.
4400
4401 Thu Apr 28 02:07:42 1994  Doug Evans  (dje@cygnus.com)
4402
4403         * Make-lang.in: Update of directory reorg from fsf.
4404         * config-lang.in: Ditto.
4405
4406 Mon Apr 25 13:09:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4407
4408         * typeck.c (chill_similar):  Check RECORD_TYPEs properly,
4409         * convert.c (convert):  If all else fails, just call convert1.
4410         Thus we can now convert RECORD_TYPEs (assuming they are similar).
4411
4412         * parse.y, lex.l:  Remove BUFFERNAME (use location/expr instead).
4413         * parse.y:  Re-do BUFFER handling (similar to previous EVENT change).
4414         * grant.c (raw_decode_mode):  Re-do BUFFER mode handling.
4415         * ch-tree (lang_type_record):  Removed max_queue_size field.
4416         * tasking.c (build_buffer_type):  Re-write.
4417         * tasking.c (max_queue_size):  Fix to support buffer modes.
4418         * tasking.c (buffer_element_mode), ch-tree.h:  New function.
4419         * tasking.c ch-tree.h (expand_send_buffer):  Now has 3 parameters.
4420         * parse.y (modename):  No longer match SIGNALNAME.  Instead, add it
4421         to name and simple_name_string.  This removes a reduce/reduce conflict.
4422         * Makefile.in (stamp-parse):  Expect fewer conlicts.
4423
4424         * lex.l (yywrap):  Move check for circularly seizeing current
4425         grant-file from here ...
4426         * lex.l (handle_use_seizefile_directive):  ... to here.
4427         This is to avoid calling stat on a not-yet written grantfile,
4428         now that we're using same_file (which calls stat).
4429         * grant.c (set_use_this_gf):  Removed.
4430         * grant.c (set_default_grant_file):  Set grant_file_name here,
4431         because we need it earlier (due to above lexer change).
4432
4433         * typeck.c (layout_chill_struct_type):  Remove useless code to
4434         remove zero-width bitfield (which messes up CONST_DECLs).
4435
4436 Sat Apr 23 13:16:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4437
4438         * Makefile.in (check): Assure that 'ld' is available before checking.
4439
4440 Thu Apr 21 13:23:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4441
4442         * grant.c (print_an_int):  Removed.
4443         (raw_decode_mode):  Generalized to use decode_constant
4444         instead of print_an_int.
4445         (decode_constant):  Print directly, instead of calling print_an_int.
4446         * parse.y (event_list):  Fix syntax.
4447         * parse.y (optqueuesize):  Default is NULL_TREE, not zero.
4448         * tasking.c (check_queue_size):  New function, for error checking.
4449         * ch-tree.h:  Add declaration for check_queue_size.
4450         * satisfy.c (satisfy case RECORD_TYPE):  Satisfy constant fields
4451         (used for queue size of EVENT and BUFFER), and call check_queue_size.
4452
4453 Tue Apr 19 13:42:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4454
4455         Re-implement EVENT modes to support general EVENT objects
4456         (and not just EVENT names), according to Z200.  (Not finished!)
4457         * tasking.c, ch-tree.h (max_queue_size):  New function.
4458         * parse.y (dcalternative, event_list, event_list_head):  New
4459         implementation of DELAY CASE, avoiding parsing ambiguities.
4460         (call, locdec, delayaction):  Remove old EVENTNAME kludges.
4461         * lex.l (name_type_signal):  Remove EVENTNAME recognition.
4462         * tasking.c (build_event_type):  Re-written.
4463         * typeck.c (chill_similar), decl.c (print_lang_type):
4464         Use new max_queue_size function.
4465         * typeck.c (layout_chill_struct_size):  Ignore CONST_DECL.
4466         * tasking.c (build_delay_action):  Preliminary changes - just to
4467         make it compile.  FIXME!
4468         * grant.c (raw_decode_mode):  Use new max_queue_size function.
4469         Move EVENT support from LANG_TYPE to RECORD_TYPE.
4470         * ch-tree.h (process_event_decls):  Removed.
4471
4472 Tue Apr 19 11:44:01 1994  Bill Cox  (bill@rtl.cygnus.com)
4473
4474         * regression.sh: Complete previous change - eliminate all
4475           references to objdir as a user parameter.
4476
4477 Mon Apr 18 10:17:55 1994  Bill Cox  (bill@cygnus.com)
4478
4479         * Makefile.in (check): Simplified regression.sh call.
4480         * regression.sh: Change command-line parsing.  Default
4481           srcdir to the script's path.  Calculate objdir
4482           internally - don't pass it in.
4483
4484 Thu Apr 14 13:30:19 1994  Wilfried Moser  (moser@phishhead.cygnus.com)
4485
4486         * expr.c (build_chill_duration): Add range checking.
4487
4488         * lex.l (init_lex): Add predefined names DURATION and TIME.
4489         * lex.h (enum rid): Add RID_DURATION and RID_TIME.
4490         * ch-tree.h: Add prototypes and externals.
4491         * decl.c (init_decl_processing): Add builtin function
4492         descriptions.
4493         * expr.c (build_generalized_call): Add processing of some
4494         builtin's.
4495         * expr.c (build_chill_abstime): New function to process builtin
4496         ABSTIME.
4497         * expr.c (build_chill_inttime_type): New function to built type
4498         for the INTTIME builtin.
4499         * expr.c (build_chill_inttime): New function to process builtin
4500         INTTIME.
4501         * expr.c (build_chill_duration): New function to process builtin's
4502         MILLISECS, SECS, MINUTES, HOURS and DAYS.
4503
4504 Tue Apr 12 11:55:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4505
4506         * lex.l (chill_same_grant_file):  Rename to same_file.  Change to
4507         take two files names rather than two DECLs.  Also check that the
4508         filesystems (st_dev) are equal.  Finally, make static.
4509         * lex.l (handle_use_seizefile_directive):  Check for duplicate
4510         USE_SEIZE_FILE directives using same_file.
4511         * decl.c (pop_module):  Remove dubious call to chill_same_grant_file.
4512
4513 Sun Apr 10 17:19:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4514
4515         * decl.c, ch-tree.h (chill_result_decl):  New variable.  Used to
4516         store RESULT value.  (Cannot use DECL_RESULT;  see comment in decl.c.)
4517         * actions.c (chill_expand_result, chill_expand_return):
4518         Use chill_result_decl appropriately.
4519         * ch-tree.h, decl.c, actions.c (saved_result_rtx):  Removed.
4520         Subsumed by chill_result_decl.
4521
4522         * expr.c (chill_expand-expr case CONCAT_EXPR):  Generate temporary
4523         using the mode of the result type, and don't assume it is BLKmode.
4524
4525 Fri Apr  8 17:46:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4526
4527         * actions.c (chill_expand_assignment):  Check for compatibility
4528         _after_ "expanding out" a binary operation.  This fixes
4529         the case "STRING //:= CHAR".
4530
4531         * lex.l (equal_number):  Convert symbol to integer_type_node, to
4532         force the value to be INT-derived (and avoid novelty conflicts).
4533
4534 Mon Apr  4 22:06:31 1994  Per Bothner  (bothner@cygnus.com)
4535
4536         * ch-tree.h (CH_FUNCTION_SETS_RESULT):  New flag.
4537         * ch-actions.c (chill_expand_return), ch-tree.h:  Extra
4538         parameter, indicates if implicit return at end of function.
4539         * ch-parse.y:  Modify accordingly.
4540         * ch-actions.c (chill_expand_return):  Various improvements.
4541
4542         * decl.c, ch-tree.h (result_never_set):  New variable.
4543         * actions.c (chill_expand_result, chill_expand_return):  Clear it.
4544         * ch-parse.y (end_function):  Warn if no RETURN or RESULT action.
4545
4546         * decl.c, ch-tree.h (saved_result_rtx):  New variable.
4547         * decl.c (start_chill_function):  Use saved_result_rtx as return
4548         value if there is a RESULT in a REG that might get clobbered.
4549         * actions.c (chill_expand_result):  Save result in saved_result_rtx
4550         or assign to DECL_RESULT as appropriate.
4551         * decl.c, ch-tree.h (current_function_returns_value,
4552         current_function_returns_null, current_extern_inline):
4553         Don't use.  Only define first two to allow linking with ch-typeck.c.
4554
4555         * typeck.c (chill_l_equivalent):  Add forward declaration.
4556
4557 Fri Apr  1 11:02:27 1994  Wilfried Moser  (fs_moser at rcsw47)
4558
4559         * lex.l (readstring): Handle control sequence in all cases (Z.200
4560         5.2.4.4 page 54).
4561
4562 Fri Apr  1 13:11:27 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4563
4564         * configure:  Simplify and fix the logic for looping through
4565         sub-directories.
4566
4567 Thu Mar 31 18:59:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4568
4569         * ch-tree.h (CH_L_EQUIVALENT):  Moved from typeck.c.
4570         * typeck.c (chill_similar):  Add support for checking
4571         FUNCTION_TYPEs for similarity.  Also, treat
4572         pointer-to-function-type the same as function-type.
4573
4574 Thu Mar 31 11:22:56 1994  Wilfried Moser  (fs_moser at rcsw47)
4575
4576         * ch-tree.h: Change prototype of function expand_send_signal.
4577         * parse.y: Change calls to expand_send_signal.
4578         * tasking.c (expand_send_signal): Change handling of optsetto
4579         argument. New argument signame to get a possible destination
4580         process for the signal.
4581
4582 Wed Mar 30 14:54:48 1994  Wilfried Moser  (fs_moser at rcsw1j)
4583
4584         * tasking.c (make_process_struct): Change error message in case of
4585         a process argument has other attribute then IN or LOC.
4586         * tasking.c (build_start_process): Add check that the optset is
4587         referable in case it is specified (this makes
4588         noncompile/start_.ch working).
4589
4590 Tue Mar 29 13:24:27 1994  Wilfried Moser  (fs_moser at rcsw1h)
4591
4592         * Makefile.in: Change version string to 1.2.1
4593         * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4594           entries.
4595         * ch-tree.h: Change prototype for build_chill_readtext.
4596         * decl.c (init_decl_processing): Add builtin_function _readstring,
4597           _readunixstd and READTEXT.
4598         * expr.c (build_generalized_call): Add processing of READTEXT.
4599           Delete handling of no longer valid builtin_functions.
4600         * gperf: Remove keyword READTEXT.
4601         * parse.y: Remove token READTEXT.
4602         * inout.c (build_chill_io_list_type): Add building type for
4603           READTEXT.
4604         * inout.c (build_chill_readtext): Implement the function
4605           (partial).
4606         * inout.c (build_chill_writetext): Do some cleanups.
4607
4608 Tue Mar 29 12:30:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4609
4610         * typeck.c (build_chill_cast):  Re-arrange, to support casts
4611         of const integer to type of different size, if there is
4612         an integral type of the desired size:  Go through the
4613         const conversion code.
4614
4615         * actions.c (adjust_parm_or_field):  Move support for LOC to ...
4616         * expr.c (build_chill_function_call): ... here.
4617         Fix a number of bugs in OUT/INOUT handling.
4618
4619         * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4620         parse.y (location), typeck.c (chill_comptypes):  Remove unused
4621         support for ENCAPSULATED_ARRAY_P.
4622         * typeck.c (build_chill_array_parm_type), ch-tree.h:  Remove; unused.
4623
4624         * ch-tree.h, decl.c (shadow_record_fields), decl.c
4625         (shadow_record_fields), expr.c (chill_expand_case_expr,
4626         build_chill_function_call), grant.c (chill_finish_compile),
4627         typeck.c (build_empty_string, build_init_struct):  Rename magic
4628         identifiers of the form "<...>" to "__..." for better portability.
4629
4630         * actions.c (adjust_parm_or_field):  Remove extraneous
4631         call to build_chill_repetition_op.
4632         * expr.c (build_chill_function_call):  Some simplifictions
4633         (since neither valtail nor typetail can be NULL).
4634         Clean up error message for OUT//INOUT not location to use only 1 line.
4635         Add error message for OUT/INOUT if type is READonly.
4636         * typeck.c (build_chill_modify_expr):  Simplify.
4637
4638 Sun Mar 27 19:30:25 1994  Bill Cox  (bill@rtl.cygnus.com)
4639
4640         * Makefile.in: Clean up generally.  Assure that
4641           runtime is built before running regressions.
4642           Build correct parameters to regression.sh.
4643           Remove a lot of 'clean' cruft.
4644         * Make-lang.in, config-lang.in: New files for
4645           subdirectory architecture.
4646
4647 Sat Mar 26 10:39:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4648
4649         * Makefile.in (check): Build correct parameters for regression.sh.
4650
4651 Fri Mar 25 10:13:06 1994  Bill Cox  (bill@rtl.cygnus.com)
4652
4653         * configure: Also mark regression.awk3 as executable.
4654         * regression.sh: Add comments about command-line options.
4655           Calculate srcdir correctly, defaulting to the script's path.
4656           Add OPT flag to pass to the Makefiles, to specify the
4657           compiler's optimization level, and -O  and -O2 options.
4658           Delete GLOBAL flag and tests.  Use a different make.log
4659           file for optimized and unoptimized test results.  Add the
4660           compiler's host and target triples to the report header.
4661
4662 Wed Mar 23 21:41:26 1994  Bill Cox  (bill@rtl.cygnus.com)
4663
4664         * expr.c (build_chill_function_call): Handle INOUT and OUT
4665           parameters better (for the rangefail test, at least).
4666
4667 Wed Mar 23 14:13:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4668
4669         * regression.sh (srcdir, objdir):  Fixed hard-wired paths.
4670         (grep args):  Changed [XYZ-] to [-XYZ] for SCO.
4671
4672 Wed Mar 23 13:34:18 1994  Bill Cox  (bill@rtl.cygnus.com)
4673
4674         * expr.c (build_generalized_call): Revert previous change.
4675           To do this correctly, we need a new parsing mechanism, and
4676           C++ initializer technology.
4677
4678 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4679
4680         * expr.c (build_generalized_call): Be sure we're inside the
4681           module-level function before calling build_gen_inst, for
4682           example.
4683
4684 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4685
4686         * regression.sh (dodirectory): Count the gcov and abort tests
4687           among the .dat files.
4688
4689 Tue Mar 22 15:39:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4690
4691         * satisfy.c (safe_satisfy_decl):  When checking that a SYN
4692         value fits in a specified discrete type, don't convert first,
4693         and use compare_int_csts instead of tree_int_cst_lt.
4694
4695 Tue Mar 22 15:25:38 1994  Bill Cox  (bill@rtl.cygnus.com)
4696
4697         * configure: Generate better .gdbinit files.
4698
4699 Tue Mar 22 11:59:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4700
4701         * actions.c (check_range):  Don't emit dynamic checks
4702         if not current_function_decl.
4703
4704         * parse.y (arrayindex):  Allow expr (error is emitted
4705         at semantic level if not the NAME of a type).
4706         * typeck.c (build_chill_cast):  Re-enable some casts.
4707         * satisfy.c (safe_satisfy_decl):  Remove redundant CONST check.
4708
4709 Tue Mar 22 11:46:28 1994  Bill Cox  (bill@rtl.cygnus.com)
4710
4711         * configure: Access the utils directory correctly.
4712         * expr.c (build_compare_expr): Reenable compatibility test.
4713
4714 Tue Mar 22 11:24:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4715
4716         * typeck.c (valid_array_index_p):  Call
4717         build_compare_discrete_expr instead of build_compare_expr.
4718         * typeck.c (build_chill_cast):  Improve logic.
4719         * satisfy.c (safe_satisfy_decl):  Simplify test.
4720
4721 Tue Mar 22 10:17:58 1994  Bill Cox  (bill@rtl.cygnus.com)
4722
4723         * actions.c (chill_expand_assignment): Correct detection of
4724           string assignment case.
4725         * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4726           the actual parameters need to be converted to the unsigned long
4727           type explicitly.  Do that.
4728         * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4729
4730 Mon Mar 21 16:25:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4731
4732         * Makefile.in: Correct prediction of grammar conflicts.
4733         * actions.c(check_range): Fix reference to NULL_TREE pointer.
4734           And allow compile-time errors even if range_checking is off.
4735         * parse.y: Clean up some comments.
4736         * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4737
4738 Mon Mar 21 13:29:23 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4739
4740         * typeck.c (layout_chill_range_type):  Instead of tree_int_cst_lt
4741         use compare_int_csts (which is more robust when signedness differs).
4742         Also, convert the bounds *after* doing range checking.
4743
4744         * ch-tree.def (SET_IN_EXPR):  New.
4745         * expr.c (chill_expand_expr):  Code to expand SET_IN_EXPR,
4746         moved from expand_expr in ../expr.c.  Also add some extra
4747         conversions (because we're now using build_chill_function-call).
4748         * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4749         Use SET_IN_EXPR in place of IN_EXPR.
4750
4751         * expr.c (build_compare_discrete_expr), ch-tree.h:  New function,
4752         with code moved from build_compare_expr.
4753         * expr.c (build_compare_expr):  Re-enable compatibility test.
4754
4755 Mon Mar 21 11:02:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4756
4757         * Makefile.in: Rewrite byacc related rules.
4758         * actions.c (chill_convert_for_assignment): Use the
4759           referenced type only for generating range checks.
4760         * configure: Add 'utils' directory to SUBDIRS variable.
4761
4762 Sun Mar 20 21:49:59 1994  Bill Cox  (bill@rtl.cygnus.com)
4763
4764         * actions.c (check_range): Call build_compare_expr rather than
4765           build_binary_op.
4766           (adjust_parm_or_field): Call convert_for_assignment rathern than
4767           convert, to get the range-checking.
4768         * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4769           Generate a compile-time message if possible.
4770           (build_compare_expr): Comment out compatibility test - should
4771           not be needed in here.  Fix a couple of typos.  Add some types
4772           to some build calls.
4773
4774 Sun Mar 20 11:48:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4775
4776         * decl.c (init_decl_processing):  Clean up parameter type
4777         list for __setbitpowerset,
4778
4779         * typeck.c (chill_compatible_classes):  Allow the M-reference
4780         to be compatible with the N-value class, with suitable M and N.
4781         * typeck.c (build_chill_slice):  Don't smash a void TREE_TYPE.
4782         (We don't need to, and it causes confusion.)
4783
4784         * expr.c (build_compare_expr):  Fix thinko.  Add save_exprs.
4785
4786         * expr.c (build_compare_expr):   Fix a transcription bug
4787         (for converting NULL INSTANCEs).  Also #include convert.h.
4788
4789         * expr.c (compare_int_csts):  New.  Compare INTEGER_CSTs.
4790         Works even if their types have different TREE_UNSIGNED.
4791         * expr.c (finish_chill_binary_op):  Moved code dealing with
4792         the comparison operators from here ...
4793         * expr.c (build_compare_expr):  ... to new function here.
4794         Also, for discrete types, tries to Do The Right Thing, even for
4795         differing values of TYPE_PRECISION and TREE_UNSIGNED.
4796         the code from lay
4797         * ch-tree.h:  Declare new functions.
4798         * typeck.c (valid_array_index_p):  Various cleanups,
4799         including using new build_parse_expr.
4800         * parse.y:  Use new build_compare_expr.
4801
4802         * inout.c (build_chill_writetext):  Handle REFERENCE_TYPE args.
4803
4804 Sun Mar 20 08:54:27 1994  Bill Cox  (bill@rtl.cygnus.com)
4805
4806         * actions.c (expand_assignment_to_varying_array):
4807           Call build_chill_array_ref to get index checking.
4808           (chill_convert_for_assignment): Delete unused errstr
4809           variable.
4810           (chill_expand_assignment): Call build_chill_array_ref
4811           to get runtime index checking.
4812           (expand_varying_length_assignment): Use new interface
4813           to varying_array_index_p.
4814         * ch-tree.h (varying_array_index_p): New proto.
4815         * convert.c (convert): Call build_chill_array_ref
4816           to get runtime index checking.
4817         * expr.c (build_chill_pred_or_succ): Fix cond tree
4818           to have consistent operand types.
4819         * typeck.c (valid_array_index_p): Change interface to pass
4820           validity conditions back on caller's TREE_LIST.  We
4821           cannot link the conditions to anything which a
4822           layout_type routine will expand, since that will occur
4823            before the exception handler is set up.
4824           Change calls to valid_array_index_p also.
4825
4826 Fri Mar 18 14:40:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4827
4828         * actions.c, except.c, loop.c, tasking.c:  Call
4829         build_chill_function_call instead of the C-specific
4830         build_function_call.
4831         * except.c (initialize_exceptions):  Fix parmtype of __builtin_setjmp.
4832         * loop.c (top_loop_end_check):  Coerce library function arg.
4833         * convert.c, expr.c:  Re-write to avoid calls to C-specific
4834         function build_unary_op (e.g. by calling build1 directly).
4835
4836         * typeck.c (chill_equivalent):  Change to force failure
4837         for non-matching integral types (even if not ranges).
4838
4839         * typeck.c, ch-tree.h (build_chill_slice):  Make non-static.
4840         * expr.c (varying_to_slice):  Call build_chill_slice (and not
4841         build_chill_slice_with_length, which does bunches of range
4842         checking and does not allow the length to be zero).
4843         * convert.c (convert):  Fix off-by-one error.
4844         * actions.c (chill_expand_array_assignment):  Minor cleaning up.
4845
4846 Fri Mar 18 00:12:48 1994  Per Bothner  (bothner@deneb.cygnus.com)
4847
4848         * decl.c (init_decl_processing):  __lepowerset and __ltpowerset
4849         take *two* pointer parameters, not one.
4850         * satisfy.c (satisfy):  Only call the appropriate layout routine
4851         if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4852         * typeck.c (build_chill_slice_with_length):  Fix Bill's previous fix.
4853
4854 Thu Mar 17 17:29:43 1994  Bill Cox  (bill@rtl.cygnus.com)
4855
4856         * expr.c (build_chill_function_call): Give function call the correct
4857           type tree.
4858         * typeck.c (build_chill_slice_with_length): Restore dynamic range
4859           checking, so it doesn't obscure the CONSTANTness of the length.
4860
4861 Wed Mar 16 17:23:31 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4862
4863         * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4864         [case CONCAT_EXPR]):  Remove kludge setting slice size upper bound
4865         in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4866         * typeck.c (build_chill_slice):  Use TYPE_MAX_VALUE of
4867         array_type if needed for size upper bound of slice_type.
4868         * expr.c (build_concat_expr):  Improve calculation of size upper bound.
4869
4870         * typeck.c (valid_array_index_p):  Check compatibility using
4871         correct types.
4872         * typeck.c (build_chill_slice_with_length);  For now revert
4873         calling valid_array_index_p on length.  (It makes it harder
4874         to realize when the slice is constant length.)
4875         * expr.c (build_chill_indirect_expr):  Minor tweak.  (This
4876         seems to work around a weird C compiler bug. ??)
4877
4878         * expr.c (build_chill_function_call):  Cleanup so it doesn't
4879         call build_function_call (in c-typeck.c).
4880         * typeck.c, expr.c:  Use build_chill_function_call instead of
4881         build_function_call (in c-typeck.c).
4882
4883         * parse.y (discrete_mode):  Move some of the rules from
4884         non_array_mode into new non-terminal.
4885         (arrayindex):  Use discrete_mode (with NAME and TYPENAME) to
4886         avoid some misparses.
4887         * ch-tree.h (SLICE_PTR, SLICE_LENGTH):  Removed;  unused.
4888         * convert.c (digest_structure_tuple):  Add missing parameter.
4889         * decl.c (comptypes):  Remove unused prototype.
4890         * decl.c (build_chill_function_type):  Handle NULL return_type
4891         correctly (convert to void_type_node).
4892         * decl.c (init_decl_processing):  layout boolean_type_node *after*
4893         we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4894
4895 Wed Mar 16 16:08:22 1994  Bill Cox  (bill@rtl.cygnus.com)
4896
4897         * ch-tree.h: Add prototype.
4898         * convert.c (convert): Correct calculation of padding length.
4899         * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4900           parse.y where it belongs.  This permits the removal of a kludge
4901           in make_process_struct.
4902         * lex.l, parse.y: Call to_global_level for several errors.  Add
4903           code to output error in only one pass.
4904         * tasking.c (make_process_struct): Delete kludge inserted on
4905           March 8.
4906           (build_receive_case_end): Add Wilfried's check for errors.
4907
4908 Tue Mar 15 08:42:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4909
4910         * actions.c: Fix comment.
4911           (build_rts_call): Ifdef it out - never used.
4912           (expand_varying_length_assignment): call valid_array_index_p.
4913           rather than validate_varying_array_ref.
4914         * ch-tree.h: Fix prototype for valid_array_index_p.
4915         * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4916           index validation.
4917           (build_hill_lower, build_chill_upper): Return value now inherits
4918           the novelty of the input parameter.
4919           (varying_to_slice): Use CH_NOVELTY macro rather than calling
4920           chill_novelty directly.
4921         * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4922           to unsigned.
4923           (print_integer_type): Pass string value as APPEND's second parameter.
4924           (decode_decl): Pass a boolean expression as print_proc_tail's
4925           first parameter.
4926           (chill_finish_module_code): Make xmalloc's parameter unsigned.
4927         * lex.l: Pass sizes to xmalloc as unsigned ints.  Pass second
4928           parameter to in_word_set as unsigned.
4929         * loop.c (build_loop_start): Check top_loop_end_check return value.
4930         * parse.y: Add casts to int for third do_decls parameter, fifth
4931           build_loop_iterator parameter, etc.
4932         * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4933         * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4934           valid_array_index): Delete them.  They're now unused.
4935           (valid_array_index_p): Add function, call it everywhere that an
4936           array index is checked.
4937           (build_chill_slice): Restore old functionality where varying_to_slice
4938           is called to handle slices of varying arrays, rather than handling
4939           handling them here.
4940           (build_chill_slice_with_range, build_chill_slice_with_length):
4941           Check range limits for TREE_CONST before calling tree_int_cst_lt.
4942           Delete now-obsolete checks of constant indices.
4943
4944 Mon Mar 14 17:26:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4945
4946         * parse.y (modeless_expr):  New rule to allow ([...]) and (if...)
4947         to count as untyped_exprs.  (This is not really permitted by the
4948         Blue Book, but has been requested by customers.)
4949
4950 Thu Mar 10 10:11:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4951
4952         * chill.texi: Document new command-line options.
4953         * expr.c (build_chill_num): Set unsigned parameter for
4954           type_for_size call correctly (unsigned for enums).
4955         * lang.c (lang_decode_option): Add command-line options to
4956           enable/disable runtime range-checking.
4957         * lex.l: Eat more whitespace.
4958
4959 Thu Mar 10 09:41:37 1994  Bill Cox  (bill@rtl.cygnus.com)
4960
4961         * Makefile.in: Have rules to make parse.h, y.tab.c and other
4962           derived files.  This allows the gcc/configure list of CHILL
4963           files machinery to work.
4964         * ch-tree.h (permanent_allocation): Add a parameter flag.
4965         * decl.c (finish_chill_function, finish_decl): Provide the
4966           new permanent_allocation flag.
4967           (poplevel): Return early, avoid a seg fault.
4968         * lex.l (NORMAL): Replace this whole state with the predefined
4969           INITIAL state.  Force compilation state to global level after
4970           compiler directive error - prevents endless loop on error.
4971           (handle_use_seizefile_directive): Rewrite for readability.
4972           (chill_same_grant_file): Reindent.
4973           Generally handle whitespace differently.
4974         * regression.prpt: Print ten PR numbers per line.  The report's
4975           getting too long.
4976
4977 Wed Mar  9 09:58:51 1994  Bill Cox  (bill@rtl.cygnus.com)
4978
4979         * decl.c (do_decl): Suppress the string-assignment-condition
4980           error - it was too often seen.
4981         * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4982           runtime-changing length (as in a slice), get the parent array's
4983           allocation size from its type tree.
4984         * typeck.c (build_chill_slice): Support VARYING arrays.  Pass
4985           parent array's static allocation size along in the slice type.
4986
4987 Wed Mar  9 08:54:24 1994  Bill Cox  (bill@rtl.cygnus.com)
4988
4989         * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4990
4991 Tue Mar  8 11:51:10 1994  Bill Cox  (bill@rtl.cygnus.com)
4992
4993         * expr.c (build_chill_sizeof): Fix typo in error msg, add
4994           some whitespace.
4995         * lex.l (name_type_signal): Add debug output.
4996         * parse.y (call):  Allow EVENTNAME and BUFFERNAME parameters
4997           to a call, so that SIZE () works on them.
4998         * tasking.c (make_process_struct): Force ignore_exprs non-zero
4999           when processing a SEIZEd PROCESS declaration.  This prevents
5000           grox-fixed_fields from returning a NULL, and indirectly protects
5001           the chill_integer_type_node tree from corruption.
5002
5003 Mon Mar  7 19:14:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5004
5005         * Makefile.in: Use the 'all' target to build the runtime
5006           library and chillrt0.o.
5007         * README: Explain rules for files in this directory.
5008         * addtest, addtest.man, build-release,
5009           chill.regress.cron: Move to utils subdirectory.
5010         * expr.c (build_chill_function_call): Mark the INOUT
5011           temporary so it doesn't get optimized into a
5012           register.  Fixes the execute/inout.ch bug.
5013         * typeck.c (layout_chill_range_type): Restrict it
5014           from complaining about an empty string type's
5015           bounds (0:-1).
5016
5017 Mon Mar  7 09:06:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5018
5019         * Makefile.in (compiler): Restore this target.
5020           (OBJS, BC_OBJS): Delete unused variables.
5021           Add $(FLAGS_TO_PASS) to sub-make invocations.
5022         * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
5023           tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
5024
5025 Sat Mar  5 18:37:50 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5026
5027         * except.c (finish_handler_array): When computing address of
5028         the array ex_decl, don't call build_array_ref.
5029
5030 Sat Mar  5 17:43:36 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5031
5032         * loop.c (declare_temps): Force powerset temp to memory.
5033
5034 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
5035
5036         * typeck.c (layout_chill_range_type): Convert highval and
5037           lowval to a common type before range-checking them.
5038
5039 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
5040
5041         * ch-tree.h: Add loop-related prototypes.
5042         * decl.c, grant.c: Fix -Wall violations.
5043         * parse.y: Fix format of %type directives.
5044
5045 Fri Mar  4 10:04:18 1994  Wilfried Moser  (fs_moser at rcsw1h)
5046
5047         * Makefile.in: Update version number.
5048         * expr.c: Fix a comment.
5049         * inout.c (build_chill_writetext): Add handling of a REAL.
5050         * lex.l (INITIAL): Remove all code to discard 'header lines'.
5051           no longer needed.
5052         * parse.y (optheader): Remove - it's obsolete, as is the
5053           HEADEREL token definition.
5054
5055 Fri Mar  4 09:41:18 1994  Bill Cox  (bill@rtl.cygnus.com)
5056
5057         * addtest: Fix suffix removal when suffix is .c186.
5058         * regression.sh: Allow for underscores on PR filenames.
5059         * typeck.c: Check in the rewrite mentioned earlier.
5060
5061 Thu Mar  3 09:42:10 1994  Wilfried Moser  (fs_moser at rcsw1h)
5062
5063         * tasking.c (build_process_header): Build a debug structure
5064           for easier access to PROCESS parameters.
5065
5066 Thu Mar  3 09:42:10 1994  Bill Cox  (bill@rtl.cygnus.com)
5067
5068         * typeck.c (*string_assignment_condition): Complete rewrite
5069           of a verbose first draft.
5070
5071 Wed Mar  2 16:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5072
5073         * actions.c (adjust_return_value): Simplify.
5074           Delete references to CH_RETURNS_LOC, extra parameters to
5075           push_extern_function and start_chill_functions.
5076           (convert_for_assignment): Check whether to generate runtime
5077           range-checking code.  Handle reference_type in convert call.
5078           (chill_expand_assignment): Produce an INDIRECT_REF for a
5079           reference_type on the LHS.  Delete conversions subsumed by
5080           convert_for_assignment.
5081         * ch-tree.h: Delete parameters from prototypes.
5082         * decl.c (print_lang_decl): Print out signal flag.
5083           (push_extern_function, start_chill_function): Delete
5084           extra parameters, references to CH_RETURNS_LOC.
5085         * grant.c (chill_finish_compile): Delete extra parameter.
5086         * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
5087           push_extern_function and start_chill_functions.
5088         * regression.sh (checkprms): Skip PRMS discrepancies if we
5089           can't access PRMS for some reason.
5090         * satisfy.c: Correct indentation.
5091         * tasking.c (build_process_header): Delete extra parameters
5092           passed to push_extern_function and start_chill_functions.
5093
5094 Wed Mar  2 10:33:50 1994  Bill Cox  (bill@rtl.cygnus.com)
5095
5096         * addtest: Require a fill filename.  Be more careful about
5097           adding the same test twice.
5098         * expr.c: Add FIXME to comment.
5099         * regression.sh: Add configure script call.
5100
5101 Tue Mar  1 16:24:20 1994  Wilfried Moser  (fs_moser at rcsw1h)
5102
5103         * Makefile.in: Change version of chill to 1.1.2
5104         * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
5105
5106 Tue Mar  1 07:34:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5107
5108         RETURN of LOC value is only half-baked.  Stay tuned...
5109         * actions.c (adjust_parm_or_field): Add to comment.
5110           (adjust_return_value): New function for issuing errors about
5111           RETURN and RESULT expressions.  Also converts them.
5112           (chill_expand_result, chill_expand_return): Call new
5113           adjust_return_value function.
5114         * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
5115           New parameter for push_extern_function and start_chill_function.
5116         * decl.c (push_extern_function, start_chill_function): New parameter
5117           to say whether return value is a LOC.
5118         * expr.c (build_chill_indirect_ref): Further qualify the issuing
5119           of the error message.
5120         * grant.c (raw_decode_mode): Move test for instance mode under
5121           STRUCT handling.
5122           (start_chill_module_code, chill_finish_compile): Add new
5123           parameter to start_chill_function calls.
5124         * parse.y (get_type_of): Do lookup_name more often.
5125           (quasi_pdef, procedure, procmode, optresultspec): Set
5126           CH_RETURNS_LOC flag.
5127           (optresultattr): Code keywords as a bitmask.
5128         * tasking.c (build_process_header): Add new parameter to
5129           start_chill_function call.
5130
5131 Sat Feb 26 12:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5132
5133         * Makefile.in: Replace undefined $(RM) with rm -f.
5134         * configure: Make sure scripts are executable.
5135         * regression.sh: Make variables to invoke make
5136           and awk.  Don't process a directory if it
5137           doesn't exist.
5138
5139 Fri Feb 25 14:48:48 1994  Bill Cox  (bill@rtl.cygnus.com)
5140
5141         * Makefile.in (check): Force the building of ../gcov and
5142           ../xgcc before testing.  Move the printf dependency here
5143           since we don't need it until we're testing.
5144         * addtest: Strip suffix from each input filename.
5145         * decl.c (do_decl): Correct error checking.  Call
5146           string_assignment_condition for some of it.
5147         * tasking.c (build_gen_inst): Add ability to pass an integer
5148           for either the process ID or the copy number.  If a number
5149           is passed, range-check it against the CHILL unsigned type
5150           limits.
5151           (build_buffer_descriptor): Add draft code to check the buffer
5152           name for correctness.
5153
5154 Wed Feb 23 15:07:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5155
5156         New cleaner solution to the following problem:
5157         Chill allows an action to be followed by an ON-handler.
5158         But we don't know if an action has a handler until we've parsed
5159         its end, yet we want to generate extra code to set up an
5160         exception handling contour only if needed.  The old solution
5161         would generate code for the action into an rtl sequence, and then
5162         splice in the exception-setup code if we later found we needed it.
5163         This has a few problems (for example it confuses the management
5164         of stack temporaries), and is ugly.  Now that the compiler is 2-pass
5165         we have a cleaner solution:  In pass 1, we remember which actions
5166         were followed by ON-handlers.  In pass 2, we use this information
5167         to generate appropriate code before an action.
5168         * except.c (push_handler, pop_handler):  In pass 1, set up data
5169         structures (global_handler_list) to remember if an action has an
5170         ON-handler.  In  pass 2, digest this information, and setup
5171         handler if needed.
5172         * except.c, actions.h (pop_handler):  Take an extra int arg.
5173         * except.c (emit_setup_handler):  New function, with code (moved
5174         from chill_start_on) to emit code before an action that has a handler.
5175         * except.c (except_init_pass_2):  New function.
5176         * parse.y (pass1_2):  Call except_init_pass_2 before pass 2.
5177         * parse.y (POP_UNUSED_ON_CONTEXT):  Don't call pop_sequence.
5178         * parse.y:  Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
5179         in pass 1 as well as pass 2.
5180         * parse.y (BEGIN ... END):  Re-arrange logic to avoid block_stack
5181         (local to ../stmt.c) getting out of sync.
5182         * actions.c (push_action):  Don't need to emit a NOP,
5183         now that we're no longer moving sequences around.
5184         * actions.c (push_action):  Call push_handler even in pass one.
5185
5186 Wed Feb 23 11:06:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5187
5188         * decl.c (do_decl): Check for possible overflow in initializing
5189           a declared variable.
5190         * expr.c (build-chill_indirect_ref): Add error message for
5191           a syntax error that C programmers converting to CHILL are
5192           quite likely to make.
5193         * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
5194           seg-faulting.
5195
5196 Tue Feb 22 17:54:43 1994  Bill Cox  (bill@rtl.cygnus.com)
5197
5198         * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
5199           defined.  Build chill script differently, and build an install script.
5200           Add an action to run the regression test.
5201         * actions.c (chill_expand_assignment): Change
5202           string_assignment_condition call.
5203         * ch-tree.h: Add prototype.
5204         * expr.c (build_chill_function_call): Change
5205           string_assignment_condition call.
5206         * satisfy.c (safe_satisfy_decl): Add check that string INIT value
5207           will fit in the declared mode.
5208         * typeck.c (string_assignment_condition): Add flag to disable
5209           runtime code generation.  Add code to generate runtime test.
5210
5211 Mon Feb 21 14:04:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5212
5213         * Makefile.in (check): Add target to trigger a regression test.
5214
5215 Mon Feb 21 13:54:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5216
5217         * decl.c (do _based_decls): Add error check for
5218           decls BASED on a PROC or PROCESS name.
5219
5220 Mon Feb 21 13:24:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5221
5222         * grant.c (chill_finish_compile): Bypass handling
5223           module-level code if an earlier error has made
5224           is useless.
5225         * tasking.c (build_start_process): Generate error,
5226           return if process name unknown.
5227
5228 Mon Feb 21 14:29:41 1994  Wilfried Moser  (fs_moser at rcsw47)
5229
5230         * expr.c (build_generalized_call): Use
5231           build_arrow_expr semantics for ADDR () builtin.
5232
5233 Mon Feb 21 12:49:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5234
5235         * tasking.c (build_gen_inst): Output correct
5236           constructor for GEN_INST.
5237
5238 Mon Feb 21 08:14:59 1994  Wilfried Moser  (fs_moser at rcsw47)
5239
5240         * lex.l (yywrap): Fix punctuation error.
5241
5242 Sun Feb 20 19:58:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5243
5244         * regression.sh: Fix cvs update-related commands.
5245           Have cron job always perform the update, so it's
5246           always reporting on the current state of the
5247           sources.
5248         * typeck.c (string_assignment_condition): Allow a
5249           mis-match if the LHS is varying.
5250
5251 Fri Feb 18 18:10:04 1994  Bill Cox  (bill@rtl.cygnus.com)
5252
5253         * actions.c (expand_chill_assignment): Add call to test the
5254           string assignment condition.
5255         * expr.c (build_chill_function_call):  Add call to test the
5256           string assignment condition.
5257         * regression.awk2: Report WITHDRAWN PRs as well.
5258         * regression.sh: Delete extra commentary about FEEDBACK PRs.
5259         * typeck.c (string_assignment_condition): Add function to
5260           perform the check.
5261
5262 Fri Feb 18 16:30:40 1994  Bill Cox  (bill@rtl.cygnus.com)
5263
5264         * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
5265           and exclude them from the regression test report.  Mark them
5266           in the list of PRs as 'W' status.
5267
5268 Thu Feb 17 09:13:42 1994  Wilfried Moser  (fs_moser at rcsw47)
5269
5270         * Makefile.in: Define a version number.  Build chill script
5271           differently.  Makefile depends upon ../configure, not configure.
5272         * chill.in: Define some new flags.
5273
5274 Wed Feb 16 19:44:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5275
5276         * grant.c (decode_constant): Restore a 'return result' statement
5277           that seems to have gotten lost.
5278
5279 Wed Feb 16 12:37:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5280
5281         * ch-tree.h (various STRING-type macros):  Use new TYPE_STRING_FLAG.
5282
5283         * typeck.c (make_chill_array_type):  Remove unused args.
5284         Simplify to build only one-dimensionsal arrays, so change
5285         index list to single index.  Call layout_chill_array_type
5286         if pass!=1.  And rename to:  build_simple_array_type.
5287         * typeck.c (layout_chill_array_type):  Only recurse
5288         if TREE_TYPE has not been laid out.
5289         * typeck.c (build_chill_array_type):  Update accordingly.
5290         * typeck.c (build_chill_slice):  Replace calls to build_array_type
5291         (which does hash-canonicalization, which breaks if we later set
5292         the TYPE_STRING_FLAG) by calls to build_simple_array_type.
5293         * convert.c (convert):  The same.
5294
5295         * grant.c (decode_constant):  Clean up.  Remove remnants of switch
5296         on TREE_TYPE of the value, and fold those cases into first switch.
5297
5298 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5299
5300         * Makefile.in: Add printf as a dependency of ../cc1chill.
5301         * regression.sh: Make srcdir and objdir really work.
5302
5303 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5304
5305         * expr.c (build_char_array_expr): Fix spelling
5306           error in error msg.
5307         * tree.c (build_string_type): Make check for overlarge
5308           string more robust.
5309
5310 Wed Feb 16 02:37:43 1994  Mike Stump  (mrs@cygnus.com)
5311
5312         * grant.c (decode_constant): Remove useless tests
5313         for STRING_TYPE (which isn't used by anyone, including CHILL).
5314
5315 Tue Feb 15 15:35:07 1994  Bill Cox  (bill@cygnus.com)
5316
5317         * build-release:  Add refinements to checkout commands.
5318         * decl.c (init_decl_processing): Move initialization of
5319           chill_unsigned_type_node before 1st call to build_string_type.
5320         * tree.c (build_string_type): Add compile-time test of string
5321           allocated length.
5322         * typeck.c (layout_chill_range_type): Add compile-time range limit
5323           checking.
5324
5325 Tue Feb 15 08:55:37 1994  Bill Cox  (bill@cygnus.com)
5326
5327         * Makefile.in:  Add stamp-chill-objs as a dependency of ../cc1chill.
5328         * regression.sh: Rename test directory names.
5329
5330 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5331
5332         * Makefile.in: Change interface with parent directory's
5333           Makefile, decoupling the lists of each others' files.
5334
5335 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5336
5337         * lex.l: Delete obsolete comment.
5338         * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
5339           instance constructor.
5340
5341 Mon Feb 14 04:04:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5342
5343         * lex.l (maybe_number): Add octal to numbers
5344           handled by Feb 1 change.
5345
5346 Sat Feb 12 16:24:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5347
5348         * actions.c, convert.c, decl.c, expr.c, lex.l,
5349           tasking.c, typeck.c: gcc -Wall cleanups.
5350         * ch-tree.h: Change loop-related prototypes.
5351         * loop.c, parse.y: Rewrite to set up correct loop scope.
5352           Fix error path where loop variable not declared.
5353
5354 Fri Feb 11 11:12:29 1994  Bill Cox  (bill@rtl.cygnus.com)
5355
5356         * Makefile.in: Add rule to build printf.  Make it a dependency
5357           of ../cc1chill.
5358         * printf.c: New tool for regression testing script.
5359         * regression.sh: Look for print in ${objdir}.
5360
5361 Thu Feb 24 17:31:12 1994  Wilfried Moser  (fs_moser at rcsw1j)
5362
5363         * tasking.c (build_gen_inst): Allow integer expression as argument
5364           1 to this function. This was a change request to get rid of
5365           unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
5366           or STRUCT (t UINT, c UINT).
5367
5368 Thu Feb 10 09:49:31 1994  Bill Cox  (bill@rtl.cygnus.com)
5369
5370         * regression.awk3: Recognize upper-case PRMS state names.
5371
5372 Wed Feb  9 15:26:19 1994  Bill Cox  (bill@cygnus.com)
5373
5374         * parse.y (dowithaction): Allow EXIT from DO WITH.
5375
5376 Tue Feb  8 13:13:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5377
5378         * configure: Change to require grant.c for evidence that we've
5379           found the source directory.
5380         * decl.c (init_decl_processing): delete unused builtin_slice
5381           function declaration.
5382         * expr.c (chill_expand_expr): Calculate powerset's length
5383           correctly, calling powersetlen to do it.
5384         * regression.sh: Replace BASE references with objdir references.
5385         * typeck.c (build_chill_slice): Build the compound expression
5386           in the right order.
5387
5388 Mon Feb  7 15:56:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5389
5390         * expr.c (build_chill_lower, build_chill_upper): Handle
5391           LOC parameter types.
5392         * regression.sh: Correct path to executable sub-shell-scripts.
5393
5394 Mon Feb  7 11:33:47 1994  Bill Cox  (bill@rtl.cygnus.com)
5395
5396         * regression.sh: Pervasive changes to allow for separate
5397           source and object directories.
5398
5399 Wed Feb  2 17:5620 1994  Bill Cox  (bill@rtl.cygnus.com)
5400
5401         * decl.c (find_implied_typed): Delete obsolete reference to
5402           PROCESS_TYPE.
5403         * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
5404           obsolete.
5405
5406 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5407
5408         * Makefile.in: Delete bogus runtime/Makefile lines.
5409         * configure: Build testsuite directory.
5410
5411 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5412
5413         * configure: Correct srcdir for chill.examples directory.
5414
5415 Wed Feb  2 11:24:57 1994  Wilfried Moser  (fs_moser at rcsw47)
5416
5417         * ch-parse.y (rule call): Add
5418               BUFFERNAME LPRN untyped_expr RPRN
5419           to enable generating a descriptor same as for SIGNALS.
5420         * ch-tasking.c (generate_tasking_code variable,
5421           decl_tasking_code_variable): Implement overflow check of
5422           taskingcode in case a tasking code is specified with the
5423           compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
5424           PROCESS_TYPE.
5425
5426 Wed Feb  2 09:31:37 1994  Bill Cox  (bill@rtl.cygnus.com)
5427
5428         * configure: Add ${srcdir} to Makefile.in's path.
5429         * loop.c: Delete unused whitespace.
5430
5431 Tue Feb  1 17:09:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5432
5433         * expr.c (string_char_rep): Process STRING_CST correctly.
5434
5435 Tue Feb  1 15:29:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5436
5437         * expr.c (build_boring_bitstring):  New function.
5438         * expr.c (build_chill_repetition_op):  Fix a number of bugs in
5439         implementation of bitstring repetition.
5440         Also, implement repetition of Booleans.
5441
5442 Tue Feb  1 15:28:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5443
5444         * configure: Delete code to check for gas or ld.  Add code to
5445           store a config.status file in each configured subdirectory.
5446         * expr.c (): Spell concatbitstring as concatps, which is the
5447           runtime routine name.
5448         * regression.sh: Force use of GNU make.
5449
5450 Tue Feb  1 15:22:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5451
5452         * tasking.c: Mark compiler-generated temps to prevent
5453           GRANTing them.
5454
5455 Tue Feb  1 17:38:51 1994  Wilfried Moser  (fs_moser at rcsw1j)
5456
5457         * lex.l (equal_number): Improve check for number after = in a
5458           compiler directive.
5459         * tasking.c (build_tasking_struct): Make field TaskValue
5460           pointer to chill_unsigned_type_node.
5461         * tasking.c (generate_tasking_code_variable): Declare tasking
5462           code variable as chill_unsigned_type_node.
5463         * tasking.c (decl_tasking_code_variable): Declare tasking
5464           code variable as chill_unsigned_type_node.
5465
5466 Mon Jan 31 14:01:58 1994  Bill Cox  (bill@rtl.cygnus.com)
5467
5468         * addtest (update_Makefile): No longer build actions - they're
5469           now in pattern rules.
5470         * ch_makedepend: Do the grep first, to avoid processing non
5471           USE_SEIZE_FILE lines.
5472         * configure: Pervasive rewrite to support configuring regression
5473           test directories.
5474
5475 Mon Jan 31 04:35:53 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5476
5477         * typeck.c (build_chill_slice): Compute EXTENT correctly.
5478
5479 Sun Jan 30 14:33:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5480
5481         * tasking.c (build_gen_inst): Return a typed tuple with
5482           INSTANCE type.
5483
5484 Sun Jan 30 12:01:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5485
5486         * actions.c (chill_expand_assignment): Recognize LENGTH builtin
5487           in the left hand side, pass it to
5488           expand_varying_length_assignment.
5489           (expand_varying_length_assignment): Clean up bitrot.
5490         * convert.c (convert): Revert most recent change.
5491         * loop.c (maybe_skip_loop): New function, split out of
5492           begin_chill_loop.  Add conditional to skip processing an empty
5493           VARYING array.
5494         * parse.y (assignaction): Delete code to recognize LENGTH
5495           on left-hand-side.
5496         * typeck.c (validate_varying_array_ref): Correct misleading comment.
5497
5498 Sat Jan 29 10:54:06 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5499
5500         * typeck.c (build_chill_slice): Pass a valid identifier to
5501         `get_unique_identifier'.
5502
5503         * convert.c (convert): Rename LENGTH variable to MAXIDX, and
5504         use correct value for VAR_LENGTH when initializing a varying array.
5505
5506         * decl.c (do_decl): Set DECL_COMMON.
5507
5508         * actions.c (check_range): Temporarily inhibit warnings so the
5509         compiler doesn't warn the user about useless range checks that it
5510         might create.  It's far easier for the compiler to figure out that
5511         a range check need not be done than it is for us to try to figure
5512         it out for ourselves.
5513
5514         * expr.c (build_concat_expr): Generalize to handle bitstrings.
5515         (scalar_to_string): New function.
5516         (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5517         library call (__concatbitstring).
5518
5519 Sat Jan 29 08:43:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5520
5521         * ch_makedepend: Fix the 'sed' command so that seize file
5522           name can be delimited by double quotes as well as apostrophes.
5523
5524 Thu Jan 27 17:26:19 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5525
5526         * typeck.c (my_build_array_ref):  Do constant folding.
5527
5528 Thu Jan 27 16:24:24 1994  Bill Cox  (bill@rtl.cygnus.com)
5529
5530         * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5531           decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5532           lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5533           tree.c, typeck.c: New 'Copyright' line for 1994.
5534
5535 Thu Jan 27 14:12:07 1994  Mike Stump  (mrs@cygnus.com)
5536
5537         * configure: Don't configure this directory with this configure,
5538         just subdirectories and cleanup.
5539         * Makefile.in (Makefile): Run config.status in parent directory,
5540         if we need rebuilding.
5541
5542 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5543
5544         * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5545           Thanks, Zoo!
5546
5547 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5548
5549         * expr.c (build_concat_expr): Fix SunOS portability problem.
5550
5551 Wed Jan 26 14:57:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5552
5553         * convert.c (digest_powerset_tuple):  New function, used to set
5554         TREE_CONSTANT and TREE_STATIC properly.
5555         (digest_structure_tuple, convert (NULL to instance, non-varying
5556         to varying)):  Set TREE_CONSTANT and TREE_STATIC when appropriate.
5557         * expr.c (varying_to_slice):  Preserve novelty of slice type.
5558         * expr.c (build_concat_expr):  Make sure class of result is
5559         correct (including correct novelty).
5560         * satisfy.c (safe_satisfy_decl):  If value of CONST_DECL is
5561         not TREE_CONSTANT, emit an error.
5562         * typeck.c (build_chill_slice):  Preserve novelty of result.
5563         * typeck.c (build_chill_slice):  Simplify for varying argument
5564         (by using varying_to_slice).
5565         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5566         New functions.
5567         * typeck.c (build_chill_cast): Use above new functions to convert
5568         constant expressions.
5569         * typeck.c (copy_novelty), ch-tree.h:  New function.
5570         * chill.texi:  Update for new constant conversion semantics.
5571
5572 Tue Jan 25 14:00:02 1994  Wilfried Moser  (fs_moser at rcsw1j)
5573
5574         * ch-decl.c (init_decl_processing): Add new builtin function
5575           DESCR. Add call to build_chill_descr_type.
5576         * ch-expr.c: Add function build_chill_descr_type, which actually
5577           build the type the DESCR builtin returns.
5578           Add function build_chill_descr, which process the DESCR builtin.
5579         * ch-expr.c (build_chill_length): Add code to enable
5580           LENGTH (bitstring).
5581         * ch-expr.ch (build_generalized_call): Add processing of DESCR
5582           builtin.
5583         * ch-grant.c: Add code to avoid producing of unnecessary grant
5584           files.
5585         * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5586           for build_chill_descr.
5587         * ch-inout.c (build_chill_io_list_type): Change generation of the
5588           type passed to runtime library according to the new definition.
5589         * ch-inout.c (build_chill_writetext): Change processing of format
5590           string that a character constant is allowed as format string if
5591           compiler gets called with -fold-strings option.
5592         * ch-inout.c (build_chill_writetext): Change processing of
5593           integers in case NEWMODE x = INT.
5594         * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5595         * ch-inout.c (build_chill_writetext): Add processing of
5596           bitstrings.
5597
5598 Tue Jan 25 09:07:10 1994  Mike Stump  (mrs@cygnus.com)
5599
5600         * Makefile.in (all, OBSTACK): Build interesting things be default,
5601         and make sure we include OBSTACK.
5602
5603 Sun Jan 23 12:35:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5604
5605         * grant.c (decode_constant):  Handle RANGE_EXPR.
5606         Simplify handling of CONSTRUCTOR.
5607
5608         * typeck.c (build_chill_slice):  Use build_chill_array_ref_1,
5609         not build_chill_array_ref.
5610
5611 Sat Jan 22 16:23:30 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5612
5613         * parse.y:  Generate a RANGE_EXPR (instead of a confusing
5614         TREE_LIST) to indicate a range in case and tuple lables.
5615         * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5616         Update accordingly to handle these RANGE_EXPRs.
5617         * satisfy.c (satisfy):  Don't call finish_chill_binary_op
5618         for a RANGE_EXPR.
5619
5620 Fri Jan 21 15:39:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5621
5622         * expr.c (force_addr_of):  New function, to encapsulate passing
5623         by reference a powerset or string  to a library function.
5624         * expr.c (build_min_max, build_set_expr):  Use force_addr_of.
5625         * expr.c (chill_expand_expr case CONCAT_EXPR):  Fix passing of
5626         rtl modes.  (Old code fails on 64-bit Alpha.)
5627         * expr.c (build_chill_function_call):  Remove bogues check for
5628         READonly variable passed as parameter.
5629         * expr.c (build_set_expr):  Merge common code.
5630         * parse.y (string repetition):  Fix logic for 2-pass scheme.
5631         * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5632         satisfy.c (satisfy):  Handle REPLICATE_EXPR.
5633         * chill.texi:  Fix typo.
5634
5635 Mon Jan 17 13:55:48 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5636
5637         * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5638         tree.c can find ch-tree.h.
5639
5640 Sat Jan 15 15:34:11 1994  Mike Stump  (mrs@rtl.cygnus.com)
5641
5642         * configure: Fix problem so that building in a separate directory
5643         works.
5644
5645 Sat Jan 15 09:51:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5646
5647         * Makefile.in: Recurse down into runtime to
5648           create its Makefile, and to clean up.
5649         * configure: Recurse into runtime to make its Makefile.
5650
5651 Sat Jan 15 09:15:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5652
5653  << This set of CHILL frontend sources is now the
5654     maintainable and master set. Accept no substitutes! >>
5655         * Makefile.in, configure: Completely rewritten
5656           to be invoked by gcc/Makefile.in and
5657           gcc/configure.
5658         * addtest (update_ChangeLog): Fix insertion
5659           of the '*'.
5660         * regression.sh: Add global option to suppress results of
5661           proprietary tests.
5662         * cpy.sh: Add necessary edits to files as they
5663           are copied down.
5664         * actions.c, ch-tree.def, ch-tree.h, convert.c,
5665           decl.c, except.c, expr.c, grant.c, inout.c,
5666           lang.c, lex.h, lex.l, loop.c, parse.y,
5667           satisfy.c, tasking.c, typeck.c: Latest
5668           versions from the repository.
5669
5670 Fri Jan 14 12:28:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5671
5672         * addtest: Fix insertion of line into ChangeLog.
5673         * configure: Add a script.
5674         * Makefile.in: Hack from ../Makefile.in
5675         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5676         * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5677
5678 Mon Jan 10 11:38:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5679
5680         * build-release: Rewrite for easier tailoring.
5681
5682 Wed Jan  5 08:38:21 1994  Bill Cox  (bill@cygnus.com)
5683
5684         * actions.c, convert.c, decl.c, except.c, expr.c,
5685           inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5686           Current versions from devo/gcc.
5687
5688 Wed Dec 29 14:07:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5689
5690         * addtest: Don't add comment headers to source or .dat files
5691           if they're already present.
5692
5693 Wed Dec 29 13:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
5694
5695         * mktg_leads: New file.
5696         * regression.sh, regression.awk2: Updated status report scripts.
5697         * addtest: New script to add a test to a directory.
5698         * ch_makedepend: Add full path to ch_decomment.
5699         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5700           lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5701           Updated copies of actual sources.
5702         * chill.brochure, chill.texi: Update with current status.
5703         * cpy.sh: Script for updating copies of sources.
5704         * chill.patches: New script for creating a patch release.
5705           Pretty rough.
5706
5707 Wed Dec  8 09:35:54 1993  Bill Cox  (bill@rtl.cygnus.com)
5708
5709         * build-release: Delete lots of unused regression-testing cruft.
5710         * chill.brochure: Initial draft of marketing brochure.
5711         * chill.patches: Preliminary script for building patch sets
5712           for CHILL.
5713         * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5714           building a tcov report on the CHILL compiler.
5715
5716 Sun Nov 21 08:34:33 1993  Bill Cox  (bill@rtl.cygnus.com)
5717
5718         * Makefile.in: Adjust gperf rule for names in this directory.
5719         * ch_decomment.l: New file.  Ignores CHILL comments.
5720           Executable is used bu ch_makedepend.
5721         * ch_makedepend: New script.  Makes CHILL dependencies for
5722           Makefiles.
5723         * gperf, hash.h: New files about lexer tokens.
5724         * regression.sh: Delete notes justifying non-summing
5725           report rows.
5726         * regression.awk2: Report PRMS status when there are
5727           missing test results.
5728         * regression.awk3: Add #! line, so this can be used separately.
5729         * Other files: latest versions copied from devo/gcc.
5730
5731 Sat Oct 30 15:02:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5732
5733         * chill.texi:  Add new node about conversions.
5734
5735 Fri Oct 29 14:17:31 1993  Bill Cox  (bill@cygnus.com)
5736
5737         * chill.regress.cron: Change path to executable, enable PR report.
5738         * regression.awk2: Add terminating periods to messages.
5739         * regression.sh: Change path to testsuites.  Add disclaimer at end
5740           of report.  Print explicit lists of resolved/unresolved PRs.
5741
5742 Thu Oct 28 09:22:20 1993  Bill Cox  (bill@rtl.cygnus.com)
5743
5744         * regression.sh: More PR-related status is printed.
5745
5746 Thu Oct 21 19:24:02 1993  Bill Cox  (bill@rtl.cygnus.com)
5747
5748         * regression.sh: Simplify the paths, make the source
5749           and test files accessed separately from the executables.
5750
5751 Wed Oct 20 16:35:30 1993  Bill Cox  (bill@rtl.cygnus.com)
5752
5753         * regression.sh: Finally fix the file-delete problem.
5754           Thanks, Jeffrey!
5755         * build-release: Make more verbose, fix comment.
5756
5757 Mon Oct 18 00:21:24 1993  Bill Cox  (bill@cygnus.com)
5758
5759         * regression.sh: Build linker if -U option.  Put stderr
5760           into make.log files, too.  Also report on Z.200 examples.
5761         * regression.awk3: New script to help build release note.
5762
5763 Fri Oct 15 16:33:54 1993  Bill Cox  (bill@cygnus.com)
5764
5765         * regression.sh, regression.prpt: Output PR status only
5766           conditionally.  Add command-line flag for CVS updates.
5767
5768 Thu Oct 14 07:53:59 1993  Bill Cox  (bill@rtl.cygnus.com)
5769
5770         * regression.sh: Count PRs accurately.
5771         * Makefile.in: New file.
5772
5773 Sat Oct  9 19:46:58 1993  Bill Cox  (bill@rtl.cygnus.com)
5774
5775         * regression.awk?: Add program fragments for
5776           report of PRMS/test exceptions.
5777         * regression.sh: Add options and PRMS reports.
5778
5779 Fri Oct  8 06:44:41 1993  Bill Cox  (bill@rtl.cygnus.com)
5780
5781     Create chill frontend directory, populate it.
5782     Later, the chill-specific frontend files will be moved here.
5783
5784         * chill: Moved here from gcc directory.
5785         * chill.regress.cron: Add crontab file for regression tests.
5786         * regression.sh: Add regression test control script.
5787
5788 #
5789 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5790 #
5791 Sat Jan 15 14:54:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5792
5793         * ch-*.*: All of these files are now moved to the ch subdirectory.
5794         Further update changes should be recorded in the ch/ChangeLog file.
5795
5796 Fri Jan 14 21:09:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5797
5798         * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5799         ch-satisfy.c, ch-typeck.c:  Undo all of initializer-related changes
5800         that Tiemann did earlier this month.
5801         * c-typeck.c (really_start_incremental_init):  Save
5802         constructor_elements and (old value of) constructor_stack
5803         on constructor_stack, to allow for nested initializers.
5804         * ch-convert.c (digest_constructor):  If we need a varying
5805         array, and have a constructor (for the array elements),
5806         make sure to use convert so that the constructor gets
5807         wrapped in an implicit record constructor.
5808         * ch-decl.c (do_decl):  If there is no initializer for a
5809         varying array (or bitstring), create default constructor.
5810
5811         * ch-expr.c (build_chill_lower):  Fix thinko for ARRAY_TYPE.
5812         * ch-satisfy.c (safe_satisfy_decl):  Make sure that we make
5813         original decl to check if we need to make an rtl.
5814
5815         * ch-typeck.c (build_chill_array_ref_1), ch-tree.h:  New function
5816         which does the actual work for build_chill_array_ref (which
5817         now just loops over an argument list).
5818         * ch-actions.c, ch-expr.c, ch-inout.c:  Use build_chill_array_ref_1
5819         instead of build_chill_array_ref where appropriate.
5820         * ch-actions.c, ch-expr.c, ch-typeck.c:  Make operand 1 of a
5821         VARY_ARRAY_REF is a single index, not an index list.
5822
5823         * ch-grant.c (__init_list):  Renamed to _ch_init_list, to
5824         avoid a conflict on the Alpha.
5825
5826 Wed Jan 12 10:19:35 1994  Bill Cox  (bill@rtl.cygnus.com)
5827
5828         * ch-lex.l (WS): Add BS, VT and CR to definition of
5829           whitespace.
5830           (convert_number): Allow for uppercase hex digits.
5831
5832 Tue Jan 11 19:43:55 1994  Bill Cox  (bill@cygnus.com)
5833
5834         * ch-actions.c (lookup_and_handle_exit): Correct
5835           conditional so error messages are output.
5836         * ch-expr.c (build_chill_addr_expr): Add error message.
5837         * ch-grant.c (chill_finish_module_code): Avoid abort by
5838           giving the init_list constructor a type.
5839           (chill_finish_compile): Delete unused code.
5840         * ch-lex.l: Make most build_init_2 calls from the
5841           permanent obstack, so that enumeration values endure.
5842         * ch-loop.c (build_chill_iterator): Add several error
5843           messages.
5844
5845 Tue Jan 11 12:31:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5846
5847         * ch-expr.c, ch-typeck.c:  Rewrite some instances of
5848         'struct ch_class class = chill_expr_class (expr);' to
5849         'struct ch_class class; class = chill_expr_class (expr);'
5850         to work around a bug in /usr/ucb/cc on SunOS4.
5851
5852 Mon Jan 10 18:29:36 1994  Bill Cox  (bill@rtl.cygnus.com)
5853
5854         * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5855         * ch-expr.c (expand_packed_set): Add new parameter to pass
5856           set's minimum ordinal value.  Fix loop invariant problem.
5857           (fold_set_expr): Change to add new parameter to
5858           expand_packed_set call.
5859         * ch-grant.c: Move extern declaration to ch-tree.h.
5860         * ch-lex.l (convert_bitstring): Also output the bitstring
5861           if yydebug is set.
5862         * ch-tree.h: Add prototype.
5863
5864 Mon Jan 10 11:29:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5865
5866         * ch-inout.c: Fix comment.
5867         * ch-tree.h: Add prototype.
5868
5869 Sun Jan  9 18:22:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5870
5871         * ch-tree.h (chill_expr_class):  New prototype.
5872         * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5873         Convert result to correct class.
5874         * ch-expr.c (build_chill_repetition_op):  Preserve CH_DERIVED_FLAG.
5875         Also, fix some bugs for bitstrings (with ranges).
5876
5877         (Patches from Tiemann.)
5878         * ch-convert.c (convert1):  New function to force TREE_TYPE.
5879         (convert):  Use convert1 where appropriate.
5880         * ch-typeck.c:  Formatting change.
5881         * ch-parse.y (build_chill_constructor):  Fix thinko.
5882
5883         * ch-expr.c (varying_to_slice):  If array is not referable,
5884         call save_expr on it, rather than stabilize_reference.
5885         * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5886         Don't force value to value class if mode is not explicitly
5887         specified.  Also, make sure convert etc is only done once.
5888
5889 Sat Jan  8 16:37:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5890
5891         * ch-decl.c (build_chill_function_type):  Don't call
5892         build_function_type, because it does hash canonicalization,
5893         which once in a while looses badly.
5894         * tree.c (build_function_type):  Remove no-longer-needed test
5895         for doing_chill_thang.
5896
5897         * ch-tree.h (CH_DERIVED_FLAG):  New flag.
5898         * ch-tree.h (enum ch_expr_class):  Renamed to ch_class_kind.
5899         (struct ch_class):  New type, used to represent a Chill
5900         'class' as a first-class value.
5901         (CH_ROOT_RESULTING_MODE):  Replaced by CH_ROOT_RESULTING_CLASS.
5902         * ch-typeck.c (chill_expr_class):  Change interface to return
5903         a struct ch_class.
5904         (chill_compatible, chill_compatible_classes):  Update accordingly.
5905         (chill_root_resulting_mode):  Replace by ....
5906         (chill_root_resulting_class):  ... new function.
5907         * ch-convert.c (convert_to_class):  New function.
5908         * ch-decl.c (layout_enum):  Mark enum values with CH_DERIVED_FLAG.
5909         * ch-lex.l (string_or_int):  Rename to string_or_char.
5910         * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5911         convert_float, convert_number):  Set CH_DERIVED_FLAG for literals.
5912         * ch-expr.c (finish_chill_binary_op):  Use convert_to_class.
5913         * ch-satisfy.c (safe_satisfy_decl):  For CONST_DECL, make sure
5914         DECL_INITIAL gets set to result of convert.
5915         Also, clear CH_DERIVED_FLAG for SYN value.
5916         * expr.c (store_constructor):  If a [power]set is exactly one
5917         word long, use single-word move.
5918
5919 Sat Jan  8 08:38:29 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5920
5921         * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5922
5923 Wed Jan  5 05:18:46 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5924
5925         * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5926         ARRAY_TYPE before assuming so.  Also, subtract 1 from LENGTH in
5927         computation of SLICE_END.
5928
5929         * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5930
5931         * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5932
5933         * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5934         for unary set operations).
5935
5936         * ch-expr.c (build_chill_array_expr): Take new argument FORCE.  All
5937         callers changed.  All callers changed.
5938
5939         * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5940         being NULL_TREE until we've started walking the list of values via
5941         the loop over VARIANTs.
5942
5943         * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5944         treat it as an enum value (and hence constant).  Also, only set
5945         TREE_STATIC if the constructor is indeed constant.
5946         * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5947         VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5948         recurse on the DECL_INITIAL.
5949
5950 Wed Jan  5 01:24:50 1994  Bill Cox  (bill@cygnus.com)
5951
5952         * Makefile.in: Add CHILL to LANGUAGES variable.
5953         * ch-actions.c (check_range): Call build_binary_op instead of
5954           fold, build to get the common types chosen.
5955           (cond_range_exception, cond_overflow_exception,
5956            cond_type_range_exception): Delete, obsolete.
5957           (chill_convert_for_assignment): Enable this, get particular
5958           about when to generate rangecheck code.
5959         * ch-expr.c (build_chill_function_call): Sketch in where to
5960           perform chill_convert_for_assignment on actual parameters.
5961           (build_chill_addr_expr): Correct compiler warning.
5962         * ch-loop.c (build_chill_iterator): Add runtime check for
5963           negative loop step expression.
5964         * ch-tree.h: Add prototype.
5965         * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5966           A varying array's length field counts the NUMBER of active array
5967           array entries, not the byte-length of them.
5968
5969 Tue Jan  4 17:57:39 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5970
5971         * ch-decl.c (do_decl): Call `suspend_momenary' if the
5972         converted constructor must live on the permanent_obstack.
5973         * ch-convert.c (convert): When building a new SET_TYPE
5974         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5975         * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5976
5977         * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5978         are locations.
5979         * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5980         on permanent_obstack if necessary.
5981
5982         * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5983         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5984
5985         * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5986         the patch below helped to mess up.
5987
5988         * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5989         (build_chill_addr_expr): Take new argument ERRORMSG.
5990         All callers changed.  Also, call `build_chill_addr_expr' where
5991         we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5992         that now calls `mark_addressable' automagically.
5993
5994         * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5995         This is needed because variables may appear in initialization
5996         statements, and their DECL_INITIALs are their values at
5997         initialization time.
5998         * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5999         to handle VAR_DECLs as initializers.
6000
6001         * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
6002         they aren't destroyed for later use.
6003
6004 Tue Jan  4 15:25:30 1994  Bill Cox  (bill@cygnus.com)
6005
6006         * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
6007           parameter for varying_array_ref calculations.
6008           (build_chill_indirect_ref): Prevent seg fault due to syntax error.
6009         * ch-typeck.c (build_chill_slice_with_range): Correct issuance
6010           of bogus error in votrics.
6011           (build_chill_slice_with_length): Change for debug tracability.
6012
6013 Tue Jan  4 02:43:37 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6014
6015         * ch-convert.c (digest_structure_tuple): Fix phasing problem in
6016         handling variant record initializers.
6017         (various places): Change `pop_init_level' calls to match
6018         `push_init_level' wrt implicit variable.
6019
6020         * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
6021         `integer_type_node' before using it in comparisons.  FIXME: should
6022         this be done in `chill_max_vary_array_index' by default?
6023
6024 Tue Jan  4 00:24:14 1994  Bill Cox  (bill@cygnus.com)
6025
6026         * ch-actions.c: Fix comments.
6027         * ch-parse.y: Define caseaction_flag.
6028           (caseaction): Create new caseaction_flag node at the start,
6029           then free it at the end.  Check it before the ELSE code.
6030           (expanded_case_label): Check the flag here.  If set in either
6031           place, generate a jump to the end of the case.
6032         * ch-typeck.c (build_chill_slice_with_length,
6033           build_chill_slice_with_range): Add lots of compile-time
6034           parameter range checking.
6035
6036 Mon Jan  3 21:49:04 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6037
6038         * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
6039         implicit==0 everywhere, not 1.
6040         (digest_constructor): Ditto.
6041
6042         * ch-actions.c (check_range): Permit limits to be NULL_TREE.
6043         Also, hack out some dead code.
6044         * ch-typeck.c (build_chill_slice): Check varying and non-varying
6045         slice constructs for range failures.
6046         (build_chill_slice_with_range): Reindented, but not changed.
6047
6048         * ch-typeck.c (chill_max_vary_array_index): New function.
6049         * ch-expr.c (chill_expand_expr): Call it.
6050
6051         * ch-decl.c (var_data_id, var_length_id): New variables.
6052         (init_decl_processing): Initialize them.  All calls to
6053         get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
6054         by references to these variables.  This simplifies the code
6055         w/o obscuring anything.
6056
6057 Mon Jan  3 21:24:44 1994  Bill Cox  (bill@cygnus.com)
6058
6059         * c-typeck.c: Fix comment.
6060         * ch-actions.c (chill_expand_assignment): Error assigning to
6061           READONLY location.  (PR_3903)  Pass filename, linenumber
6062           to setbitpowerset runtime routine.
6063         * ch-decl.c (init_decl_processing): Add filename, linenumber
6064           parameters to setbitpowerset prototype.
6065         * ch-expr.c (build_chill_function_call): Error when passing a
6066           READonly location as a LOC or INOUT parameter.
6067         * ch-parse.y (mode): Correct code marking type as readonly.
6068
6069 Mon Jan  3 19:03:55 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6070
6071         * ch-actions.c (chill_expand_assignment): Disable code that defeats
6072         building varying array references.
6073         * ch-expr.c (chill_expand_expr): Add rangecheck code to
6074         VARY_ARRAY_REF case.
6075         * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
6076         function (in this case, `validate_varying_array_ref') when we're
6077         doing a `build_' operation.
6078
6079         * ch-typeck.c (validate_varying_array_ref): Simplify interface
6080         since INDEX parameter can never meaningfully be an INDEXLIST.
6081         * ch-actions.c (expand_varying_length_assignment): Caller changed.
6082
6083 Mon Jan  3 07:29:45 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6084
6085         * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
6086         * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
6087         if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
6088         (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
6089         call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD).  This
6090         can happen when constructors are output incrementally.
6091         * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
6092         * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
6093         CONSTRUCTORS.
6094
6095 Sun Jan  2 08:17:09 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6096
6097         * ch-convert (digest_structure_tuple): Handle SET_TYPEs.  Also, call
6098         `convert' so we can handle INSTANCE types (and other anomolies)
6099         correctly.
6100
6101         * ch-convert.c (digest_structure_tuple): Fixed variant
6102         structure initialization.  Also fixed a typo (TYPE_NAME
6103         was being used on a FIELD_DECL instead of DECL_NAME).
6104         * c-typeck.c (initializer_constant_valid_p): Pass missing
6105         ENDTYPE argument on recursive call.
6106         (set_init_field): New function, needed by ch-convert.c change above.
6107
6108         * ch-decl.c (layout_chill_variants): Added a FIXME next to an
6109         almost certain typo.
6110
6111         * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
6112         TREE_CONSTANT for static references.
6113         * ch-except.c (chill_start_on): Change calls to
6114         `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
6115         which has CHILL semantics.
6116         * ch-convert.c (convert): Ditto (albeit in some disabled code).
6117
6118 Sat Jan  1 21:26:43 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6119
6120         * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
6121         TREE_CODE of DECL in case it's altered by actions in the switch.
6122
6123         * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan.  CVS log
6124         mentions where to find code that triggers this case.
6125
6126         * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
6127         well.
6128
6129         * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
6130         we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
6131         (digest_constructor): Ditto.
6132
6133 Sat Jan  1 10:29:19 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6134
6135         * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
6136         so that CONSTRUCTORS are properly handled before being used.
6137
6138         * ch-convert.c (chill_start_init): New function.  All callers to
6139         `start_init' changed to call this function instead.
6140         (digest_struct_tuple): Defend against initialization machinery
6141         mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
6142         IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots.  This is
6143         needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
6144         can be refered to throughout the compilation unit.  Also remove an
6145         extraneous call to `process_init_element' erroneously added to the
6146         variant record sub-loop.
6147         (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
6148         CONSTRUCTORS of SET_TYPE.
6149         * ch-parse.y (build_chill_constructor): Refix typo.  Also set
6150         TREE_STATIC if at top level.
6151
6152         * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
6153         TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
6154         should have been called.
6155
6156         * ch-convert.c (digest_struct_tuple): Restore code which tracks
6157         field initializations so that the compiler can deduce what variant
6158         initializations to assume.
6159
6160         * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
6161         when we push into a scope that has a DECL with a CONSTRUCTOR as its
6162         DECL_INIT.
6163
6164         * ch-parse.y (build_chill_constructor): Change the name of the
6165         parameter to something more meaningful.  Fix typo.  Also, handle case
6166         where element is an untyped CONSTRUCTOR.
6167
6168         * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
6169         constant ADDR_EXPRs.
6170         (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
6171         on JBUF_REF (instead of calling `build1' which does not).
6172
6173         * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
6174
6175         * ch-typeck.c (chill_expand_tuple): Deleted.
6176         * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
6177         instead, use initialization machinery for CONSTRUCTORS that
6178         come through here.
6179         * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
6180         that are created here.
6181         * ch-satisfy (satisfy): Abort in case we would have called
6182         chill_expand_tuple.  FIXME: some other code is needed here,
6183         but I don't know what yet.
6184
6185         * ch-parse.y (build_chill_constructor): New function to
6186         propagate TREE_CONSTANT bits to CONSTRUCTORS.
6187         (untyped_expr rule): Use it.
6188         (primval rule): Use it.
6189
6190         * ch-decl.c (do_decl): Call `finish_init'.
6191         * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
6192         this function, make sure the initialization machinery is set up.
6193
6194         * ch-convert.c (digest_structure_tuple, digest_constructor): Add
6195         missing prototypes.
6196
6197 Fri Dec 31 11:31:01 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6198
6199         * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
6200         as being TREE_CONSTANT.  Otherwise it gets bounded by the initializer
6201         code.
6202
6203         * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
6204         * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
6205         rewritten to work with GCC's initialization code.  The basic change
6206         was to keep the initializers in sync with the initialization
6207         machinery that `process_init_element' imposes.  Both of these
6208         functions now return `void'.
6209         * ch-convert.c (convert): Changed calls to `digest_...' functions.
6210
6211         FIXME: the code handling UNION_TYPE (and variant records) has not
6212         been tested yet.
6213
6214 Fri Dec 31 15:32:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6215
6216         * ch-lex.l (convert_number): Output the converted number if
6217           yydebug is enabled.
6218         * ch-parse.y (signaldef): Set ignore_exprs correctly for a
6219           SIGNAL declaration.
6220
6221 Fri Dec 31 13:17:48 1993  Bill Cox  (bill@cygnus.com)
6222
6223         * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
6224           a RETURN without a value (which cannot have an exception
6225           handler) from a RETURN with a value (which can).  Eliminate
6226           some shift/reduce and reduce/reduce conflicts.
6227
6228 Thu Dec 30 17:42:32 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6229
6230         * ch-inout.c (build_chill_writetext): Deal with 2 cases where
6231         types returned from `type_for_size' are not expected.  FIXME.
6232         * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
6233         This is required when range checking is enabled.
6234
6235 Thu Dec 30 14:28:25 1993  Bill Cox  (bill@rtl.cygnus.com)
6236
6237         DELAY CASE works now.
6238         * ch-decl.c (init_decl_processing): Move rest of tasking-related
6239           initialization into tasking_init().
6240         * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
6241           (optsetprio): New non-terminal.
6242         * ch-tasking.c (get_task_name): Delete, obsolete.
6243           (build_instance_type): build pointer to instance type also.
6244           (build_receive_case_start): Cleanup per -Wall messages.
6245           (build_receive_case_label): Move between start and end functions.
6246           (build_delay_case_start): Pass SET name and priority also.
6247           Generally update to correct functioning.
6248           (build_delay_case_label): Move between start and end fucntions,
6249           correct its functioning.
6250           (build_delay_case_end): Correct the code.
6251           (tasking_init): Lots of tasking-related code moved here from
6252           init_decl_processing.
6253         * ch-tree.h: Update, add prototypes.
6254
6255 Wed Dec 29 10:13:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6256
6257         * ch-expr.c (build_chill_indirect_ref): Revert change which
6258           failed full regression testing.
6259         * ch-lex.l (name_type_signal): Add debug output.
6260         * ch-parse.y (structured_variable): Add a debug variable.
6261
6262 Wed Dec 29 02:05:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6263
6264         * ch-decl.c (get_next_decl): Revert change which failed full
6265           regression testing.
6266
6267 Tue Dec 28 18:20:14 1993  Bill Cox  (bill@rtl.cygnus.com)
6268
6269         DELAY actions work now.
6270         * ch-decl.c: Correct spelling in comments.
6271           (get_next_decl): NULL out the decl's TREE_CHAIN before returning
6272           it, to prevent accidental access to the remembered_decls.
6273           (init_decl_processing): Add wait_event to runtime functions.
6274         * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
6275           becoming a seg fault.
6276         * ch-grant.c: Correct a comment.
6277         * ch-loop.c: Delete/correct comments.
6278         * ch-parse.y (delaycaseaction): Add push/poplevel calls.  Turn 'sorry'
6279           into rough draft of actual code.
6280           (delayaction): Don't make a new scope here, use get_unique_identifier
6281           instead.
6282           (locdec): process event decls here, too.
6283           (mode): Add code to forbid READonly EVENT and BUFFER decls.  Delete
6284           code which required EVENTs and BUFFERs to be declared at global scope.
6285           (simple_name_string): Add an EVENTNAME.
6286         * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
6287           becoming a seg fault.
6288         * ch-tasking.c (tasking_setup): Add the event queue's max. length
6289           as the 'entry_point' parameter in the list.
6290           (build_receive_case_start, build_receive_case_label): Defer
6291           calling runtime routine until we know whether we have a signal
6292           or a buffer to wait for.
6293           (build_delay_case_start, build_delay_case_end,
6294            build_delay_case_label, build_delay_action,
6295            process_event_decls): Added functions.
6296         * ch-typeck.c (chill_similar): Allow all integers of differing
6297           precisions to be similar.
6298
6299 Thu Dec 23 18:00:40 1993  Bill Cox  (bill@rtl.cygnus.com)
6300
6301         * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
6302           options.  Delete C-specific defines.  Disable piping from
6303           pre-processor to cc1chill (even if -pipe is specified), since cc1chill
6304           rewinds its input for its second pass.  Piping still works
6305           from cc1chill to as.
6306
6307 Thu Dec 23 12:31:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6308
6309         * ch-tasking.c (decl_tasking_code_variable): Assure that the
6310           tasking_code variable is allocated on the permanent obstack.
6311           (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
6312           queue length (passed as the entry_point parameter).
6313           Other changes to variable names to increase 'self-documentation'
6314           the only kind GNU CHILL will get, for a while..
6315
6316 Wed Dec 22 10:46:31 1993  Bill Cox  (bill@rtl.cygnus.com)
6317
6318         * ch-decl.c (do_seize): Delete - it's unused.  Fix comments.
6319         * ch-loop.c (build_chill_iterator): Convert BY expression
6320           so loop involving a SET works.  Additional errors generated
6321           for numbered SET expression as start or end expression.
6322         * ch-tree.h: Prototypes for future DELAY functions.
6323         * ch-typeck.c: Standard indentation.
6324
6325 Tue Dec 21 15:30:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6326
6327         * ch-actions.c (build_cause_exception):  New function.
6328         (expand_cause_exception):  Re-write to use build_cause_exception.
6329         (check_expression, check_range):  New functions.
6330         (chill_convert_for_assignment):  New function.
6331         * ch-expr.c (build_chill_pred_or_succ):  New function.
6332         (build_chill_succ, build_chill_pred):  Removed.
6333         (build_generalized_call):  Use build_chill_pred_or_succ.
6334         * ch-lex.h, ch-lex.l (init_lex):  Add RID_OVERFLOW and RID_RANGEFAIL.
6335         * ch-lex.l (init_lex):  Use new macro to make more terse.
6336         * ch-typeck.c (chill_equivalent):  New function.
6337         Also check that ranges have the same bounds.
6338         * ch-typeck.c (my_build_array_ref):  Add optional range-checking.
6339         * ch-typeck.c (chill_location):  Handle COMPOUND_EXPR properly.
6340         Return 2 if also a referable.
6341         * ch-typeck.c (chill_referable):  Re-define to use chill_location.
6342         * ch-tree.h (CH_EQUIVALENT):  Re-defined to use chill_equivalent.
6343
6344         * dbxout.c (dbxout_type):  Output the type attribute "@S;" to
6345         distinguish a string from a char array, and to distinguish a
6346         bitstring from regulat (power)set.  (Needed for Chill.)
6347         * dbxout.c (dbxout_type):  Only check for baseclasses in
6348         type.binfo is a vector.  (It is used in Chill for tagged unions.)
6349
6350 Fri Dec 17 09:56:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6351
6352         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6353           ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
6354           ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
6355           Fix -Wall problems.
6356         * ch-actions.c (chill_expand_assignment): Error if assigning
6357           a value to a BUFFER or EVENT variable.
6358         * ch-expr.c (invalid_left_operand): Delete, unused.
6359         * ch-grant.c (tasking_setup): Call build_enum_tables.
6360         * ch-inout.c (get_final_type_and_range, build_enum_tables,):
6361           New functions.
6362           (build_chill_writetext): Lots of changes to support other
6363           basic CHILL data types.
6364         * ch-loop.c (build_chill_iterator): Lots of new code to check
6365           the expressions in a STEP loop.
6366         * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
6367           names in receivecasealternative.  Generate error messages
6368           if they're mixed in the same receive case.
6369           (process_buffer_decl): Renamed from build_buffer_decl.
6370         * ch-tree.h: Fix prototypes.
6371         * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
6372           correctly.  Thanks Per!
6373
6374 Wed Dec 15 15:05:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6375
6376         * ch-decl.c (push_scope_decls):  Re-arrange some more, so
6377         that normal SEIZES (without ALL) are handled before SEIZE ALL.
6378
6379 Wed Dec 15 13:01:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6380
6381         * ch-loop.c (declare_temps): Calculate end-of-array pointer
6382           using correct type (NOT chill_integer_type).
6383           (begin_chill_loop): Build loop-bypass expression in the
6384           type of the start expression, not in the unsigned type.
6385
6386 Tue Dec 14 15:41:32 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6387
6388         * ch-decl.c (push_scope_decls):  Re-arrange so that normal
6389         (non-seize) declarations are proclaim_decl'd *before* we
6390         handle the ALIAS_DECLs for seizes.  The advantage is
6391         that we can now test for (an approximation) to the
6392         'seizeable' concept, thus avoiding duplicate definitions
6393         when a module has both GRANTs and SEIZE ALL.
6394
6395         * ch-expr.c (build_chill_arrow_expr): No longer re-write
6396         addr-of-conversion to pointer-conversion-of-addr.
6397         * ch-expr.c (build_chill_addr_expr): Re-write to just use
6398         build_chill_arrow_expr.
6399
6400 Mon Dec 13 16:44:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6401
6402         * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr):  Don't re-write
6403
6404         * ch-tree.h (chill_root_resulting_mode):  Fix typo (missing '_').
6405
6406         * ch-expr.c (finish_chill_binary_op):  Use CH_ROOT_RESULTING_MODE
6407         macro (which works on expressions), rather than CH_RESULTING_MODE
6408         (which works on modes, and isn't quite correct).
6409         * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE):  New macro.
6410         * ch-typeck.c (chill_read_compatible, chill_compatible):
6411         Use the new macro, which handles NEWMODEs of PTR correctly.
6412         * ch-typeck.c (chill_similar):  Return 1 rather than 0 for
6413         dynamic-length array (and string) types (e.g. slices).
6414         * ch-typeck.c (chill_root_mode):  If the mode has a Novelty,
6415         just return it as is.  (This is still not 100% correct for
6416         NEWMODE of RANGEs, but is close enough.)
6417
6418 Mon Dec 13 16:27:06 1993  Bill Cox  (bill@rtl.cygnus.com)
6419
6420         * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
6421           build_buffer_decl, which then seg faults.
6422         * ch-tasking.c (build_buffer_descriptor): Move declaration
6423           of bufdecl closer to its use.
6424
6425 Mon Dec 13 14:57:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6426
6427         * ch-actions.c (chill_expand_result): Use expand_expr_stmt
6428           to avoid C-specific conversions.
6429         * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
6430         * ch-parse.y (sendaction): Delete unused statement, use the 'name'
6431           variable.
6432         * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
6433           conversions.
6434           (build_buffer_decl): Save the tasking_code_variable's decl
6435           in the buffer decl tree.
6436           (build_buffer_descriptor): Real, working version.
6437
6438 Mon Dec 13 03:13:36 1993  Bill Cox  (bill@rtl.cygnus.com)
6439
6440         * ch-decl.c (print_lang_identifier): Delete code
6441           to print buffer size - it's no longer kept here.
6442         * ch-parse.y (expand_send_buffer): Renamed from
6443           build_send_buffer.
6444           (locdec): Enable building of a buffer decl.
6445           (optresultspec, optresultattr): Add optional
6446           result attributes such as LOC.  Semantics
6447           not enabled yet.
6448         * ch-tasking.c (expand_send_buffer): Renamed.
6449         * ch-tree.h (build_send_buffer): Renamed.
6450         * ch-typeck.c (chill_expr_class): Do more complete,
6451           job of classifying expressions.  Thanks, Per.
6452
6453 Mon Dec 13 00:59:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6454
6455         * ch-typeck.c (chill_expr_class):  Return CH_DERIVED_CLASS
6456         for bitstring constants.
6457         * ch-typeck.c (chill_novelty):  The novelty of an (unnamed)
6458         range mode is that of its parent mode; the novelty of READ M
6459         is that of M.
6460
6461 Sat Dec 11 15:14:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6462
6463         * ch-expr.c (varying_to_slice):  Call stabilize_reference
6464         rather than save_expr.
6465         * ch-typeck.c (build_chill_slice):  Don't emit warning
6466         if array is a SAVE_EXPR (it is effectively referable).
6467         * ch-typeck.c (chill_root_resulting_mode):  Handle
6468         correctly the case that one operand is DERIVED and one is VALUE.
6469
6470 Fri Dec 10 10:00:42 1993  Bill Cox  (bill@rtl.cygnus.com)
6471
6472         * ch-grant.c (decode_decl): Restore code mistakenly deleted.
6473           Move instance-handling code to raw_decode_mode.
6474         * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
6475           Add rough draft of DELAY statement handling.
6476         * ch-tasking.c (build_event_type): New function.
6477         * ch-tree.h (build_event_type): Add prototype.
6478         * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
6479
6480 Wed Dec  8 18:02:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6481
6482         Parse and grant BUFFER modes.
6483         * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
6484           Moved from decode_decl.
6485         * ch-parse.y: Fix several sorry() messages.
6486         * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
6487           info.
6488
6489 Wed Dec  8 12:59:54 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6490
6491         * ch-actions.c (chill_expand_assignment):  In a multiple
6492         assignment, check that all the targets are equivalent.
6493
6494         * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT):  New function
6495         and macro to (partially) implement the relation l-equivalent.
6496         * ch-typeck.c (chill_read_compatible):  Implement at least
6497         initial check of read-only-ness.
6498         * ch-typeck.c (build_readonly_type):  Fix thinkos.
6499
6500 Wed Dec  8 09:11:46 1993  Bill Cox  (bill@rtl.cygnus.com)
6501
6502         * ch-decl.c (pop_module): Only warn about duplicate grant
6503           statements if they inhabit different files, by examining
6504           inode numbers.  Only report compatibility problems in pass 1.
6505         * ch-lex.l (chill_same_grant_file): New function to support the
6506           above test.
6507
6508 Tue Dec  7 17:10:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6509
6510         * ch-decl.c (start_chill_function):  Handle attributes in pass 1,
6511         rather than in pass 2.  (It seems to make more sense that way.)
6512         * ch-parse.y (procedureattr):  Build attribute list if pass != 2.
6513
6514         * ch-parse.y (mode):  Don't call build_readonly_type in pass 2.
6515
6516 Mon Dec  6 14:35:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6517
6518         This implements NOVELTY and READONLY checking.
6519         * ch-tree.def:  Added comment about use of LANG_TYPE.
6520         * ch-typeck.c (build_readonly_type, smash_dummy_type):  New functions.
6521         * ch-tree.h: New prototypes.
6522         * ch-decl.c (push_modedef):  If newmode, lazily "copy" the given mode
6523         immediately (even if it's just a type name), using a LANG_TYPE.
6524         * ch-parse.y (mode):  Call build_readonly_type to handle READ.
6525         * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6526         ch-satisfy.c (satisfy):  Handle a LANG_TYPE.
6527         * ch-decl.c:  Remove chill_modes_equiv and other unused junk.
6528         * ch-satisfy.c (safe_satisfy_decl/CONST_DECL):  Better
6529         mode compatibility checking for SYN declarations.
6530
6531         * ch-typeck.c (chill_similar):  Be more general when checking set
6532         modes for similarity - specifically support calling chill_similar
6533         BEFORE the modes have been satisfied (needed by proclaim_decl).
6534         * ch-decl.c (proclaim_decl):  Allow duplicate definitions
6535         of set elements of similar set modes.
6536
6537         * ch-parse.y (caseaction):  Call language-independent
6538         expand_start_case rather than c_expand_start_case (which
6539         doesn't allow chars or booleans).
6540
6541 Sat Dec  4 22:16:19 1993  Bill Cox  (bill@rtl.cygnus.com)
6542
6543         * ch-actions.c (cond_range_exception,
6544           cond_type_range_exception): Check command-line flag before
6545           generating code.  Fix comments.
6546         * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6547           code, commented out.
6548         * ch-loop.c (build_chill_iterator): Comment out
6549           exception code generation.
6550         * ch-parse.y: Delete quasi_signal flag, use
6551           current_module->is_spec_module instead.
6552         * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6553           Delete quasi_decl flag.  Look at current_module
6554           instead.
6555         * ch-tree.h: Take quasi_decl flag out of buffer
6556           related prototypes.
6557         * ch-typeck.c (valid_array_index, chill_similar):
6558           Comment out runtime range checking for now.
6559         * expr.c (store_constructor): Fix word-size set problem.
6560         * varasm.c (emit_set_data): Fix word-size set problem.
6561
6562 Wed Dec  1 19:08:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6563
6564         * ch-actions.c: Delete unused prototype for build_compound_expr.
6565         * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6566           expression to lp->iter_type before expanding it.  Prevents an abort
6567           deep in expand_expr and friends.
6568
6569 Wed Dec  1 17:00:44 1993  Bill Cox  (bill@rtl.cygnus.com)
6570
6571         * ch-actions.c (chill_expand_assignment): Comment out strange
6572           test and its error message.
6573         * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6574           jump around the loop.
6575         * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6576
6577 Wed Dec  1 14:19:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6578
6579         * ch-actions.c (cond_exception): Clarify that it generates
6580           an exception if the given expression is TRUE.  Make it so, Number One.
6581         * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6582           (print_lang_type): Print max queue size.
6583           Add casts to DECL_TASKING_CODE_DECL references.  Fixes a
6584           portability problem.
6585           (init_decl_processing): Add filename and linenumber arameters
6586           to tasking and memory-allocate runtime prototypes.
6587         * ch-expr.c (finish_chill_binary_op): Check for division
6588           by a constant zero.  Replace build_temporary_variable
6589           calls with decl_temp1 calls, to decouple from ch-loop.c.
6590           (build_chill_succ, build_chill_pred): Sketch code to generate
6591           exceptions.  Add error check for numbered set.
6592           (build_generalized-call): Correct call for return_memory.
6593           Standardize whitespace before left parens.
6594         * ch-grant.c: Use new macro for checking for BUFFER mode.
6595         * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6596           and EVENT names.
6597         * ch-loop.c (build_temporary_variable): Make static, unavailable
6598           to outsiders.
6599           (declare_temps): Make user's variable for him/her, in the
6600           true Z.200 case, where it hasn't previously been declared.
6601           (begin_chill_loop): simplify control flow a bit.
6602         * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6603           (rccase_label): Delete bogus error checks.  Rough draft of
6604           BUFFER-related code.
6605           (assertaction): Remove logical negation - it's now in cond_exception.
6606           (locdec): Sketch of buffer-related code.
6607           (non_array_mode): Add EVENT and BUFFER modes here.  Add setting of
6608           set-numbered flag for pred and succ functions.
6609           (optqueuesize): Default to integer_zero_node.
6610           (simple_name_string): Add BUFFERNAME.
6611         * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6612           (build_chill_start_process, expand_send_signal,
6613            build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6614           to tasking-related runtime calls.  Sketches of BUFFER mode
6615           processing.
6616         * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6617           macro, for portability to non-gcc compilers.  Add prototypes
6618           for buffer-related functions.
6619         * ch-typeck.c: Replace build_temporary_variable calls with
6620           decl_temp1 calls, to decouple from ch-loop.c.
6621           (chill_similar): Add tests for BUFFER and EVENT modes.
6622
6623 Wed Dec  1 14:05:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6624
6625         * ch-actions.c (malloc prototype):  Remove; can cause conflicts.
6626
6627 Wed Dec  1 09:49:58 1993  Bill Cox  (bill@rtl.cygnus.com)
6628
6629         * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6630
6631 Tue Nov 30 14:05:23 1993  Bill Cox  (bill@rtl.cygnus.com)
6632
6633         * ch-decl.c (init_decl_processing): Add filename, line number
6634           parameters to tasking-related runtime routines.
6635         * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6636         * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
6637           lex-only list.
6638           (quasi_locdec): Set/reset quasi_decl flag.
6639         * ch-tasking.c (build_start_process, expand_send_signal,
6640           build_receive_case_start, build_send_buffer): Add filename. linenumber to
6641           (build_buffer_decl, build_buffer-type): New rough-draft functions.
6642           generated runtime routine call.
6643         * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6644           to mark a synchronization mode.  Update the prototypes.
6645         * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6646           similarity.
6647
6648 Tue Nov 30 09:51:47 1993  Doug Evans  (dje@canuck.cygnus.com)
6649
6650         * cccp.c (main): Add missing chill sanitization.
6651
6652 Sun Nov 28 15:50:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6653
6654         * ch-loop.c (initialize_iter_var): Build count expression
6655           more robustly.
6656           (bottom_loop_end_check): Call emit_line_note.
6657           (end_chill_loop): Delete emit_line_note call.
6658         * ch-parse.y (doaction): Move DO keyword
6659           after end_chill_loop call.
6660
6661 Wed Nov 24 08:49:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6662
6663         * c-typeck.c (c_expand_start_case): Back out previous
6664           change.
6665
6666 Tue Nov 23 12:33:50 1993  Bill Cox  (bill@rtl.cygnus.com)
6667
6668         * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6669           type as a CASE label.
6670
6671 Tue Nov 23 11:37:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6672
6673         * ch-decl.c (grok_chill_variantdefs):  Use NULL as the name
6674         of variant fields (not __CASE or anything based on it).
6675         * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6676         Don't check for field name __CASE.
6677
6678 Tue Nov 23 09:37:54 1993  Bill Cox  (bill@rtl.cygnus.com)
6679
6680         * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6681           name for the FIELD_DECL.
6682         * ch-parse.y (optstartset): More error tests.
6683         * ch-tasking.c (make_process_struct): Only report error in pass 1.
6684           (build_start_process): Remove bogus restriction, allowing
6685           an INSTANCE expression as the optset parameter.
6686
6687 Mon Nov 22 17:56:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6688
6689         * ch-tree.h (expand_function_end):  Now is takes parameters, not 2.
6690         * ch-decl.c (finish_chill_function):  Add 3rd parameter to
6691         call of expand_function_end.
6692
6693         * ch-expr.c (chill_expand_expr):  For set and strings ops,
6694         if target is in a register, use a stack temporary (since we must
6695         take its address).  (Similar to Oct 29 change for store_constructor.)
6696         * ch-expr.c (resolve_component_ref):  Fix variant field lookups.
6697
6698 Mon Nov 22 14:23:13 1993  Bill Cox  (bill@rtl.cygnus.com)
6699
6700         * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6701           parameter 1 and its mode are always in sync.
6702           (build_chill_pred, build_chill_succ): Allow pred/succ of a
6703           pointer.
6704         * ch-loop.c (chill_unsigned_type): New function, used instead of
6705           unsigned-type, since it understands the chill_integer_type.
6706           (decl_iteration_var): Delete, use build_temporary_variable
6707           instead.
6708           (declare_temps): Use lp->iter_type for the temp evaluations.
6709           (initialize_iter_var): More careful calculation, to handle
6710           MININT to MAXINT loops w/o overflow/underflow.
6711           (begin_chill_loop): Use the original start/end expressions
6712           for the loop bypass test.
6713
6714 Mon Nov 22 14:02:06 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6715
6716         * ch-typeck.c (build_chill_slice):  If the argument is
6717         is constant, use a read-only static variant, as the
6718         existing algorithm assumes addressability.
6719         * ch-typeck.c (chill_compatible):  De-reference reference types.
6720         * ch-typeck.c (layout_chill_range_type):  Set TREE_UNSIGNED.
6721
6722 Sat Nov 20 20:17:15 1993  Bill Cox  (bill@rtl.cygnus.com)
6723
6724         * ch-decl.c (init_decl_processing): Add filename
6725           and linenumber to allocate, free memory calls.
6726         * ch-expr.c (build_allocate_memory_call,
6727           (build_allocate_global_memory_call): Add
6728           filename, linenumber to call.
6729         * ch-loop.c: Complete rewrite for maintainability.
6730
6731 Sat Nov 20 17:30:05 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6732
6733         * ch-except.c:  Make it so that (by default at least) the
6734         code to push/pop the __exceptionStack is done using library
6735         functions __ch_link_handler and __ch_unlink_handler.  This
6736         provides better flexibility (for e.g. multi-threading).
6737
6738         * ch-decl.c (layout_chill_variants):  Allow (useless) selectors
6739         even for tag-less variants.
6740
6741 Fri Nov 19 14:32:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6742
6743         * ch-decl.c (init_decl_processing): Add memmove builtin
6744           function definition.
6745         * ch-actions.c (chill_expand_array_assignment): Use memmove
6746           call to copy an array or slice across the assignment.
6747
6748 Wed Nov 17 18:23:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6749
6750         * ch-satisfy.c (satisfy):  If a CONTRUCTOR already has a
6751         TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6752         to force expansion (processing of the elements).
6753         * ch-grant.c (decode_constant):  If a tuple (CONTRUCTOR) has
6754         a mode, write it out.
6755         * ch-decl.c (init_decl_processing): Add some missing inits.
6756
6757 Wed Nov 17 17:13:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6758
6759         * ch-loop.c: Fix unterminated strings in design comments.
6760           Add enumeration to the iterator structure for type of loop.
6761           unused for now.
6762
6763 Wed Nov 17 16:40:05 1993  Bill Cox  (bill@rtl.cygnus.com)
6764
6765         * ch-decl.c (init_decl_processing): Add long parameters to lots
6766           of powerset runtime routines.
6767         * ch-expr.c (chill_expand_expr): Change parameters to powerset
6768           runtimes so bitlengths are long unsigned ints.
6769         * ch-inout.c (build_chill_writetext): Add filename and linenumber
6770           as runtime parameters, for better error messages.
6771         * ch-loop.c: general pre-rewrite cleanup.
6772         * expr.c (store_constructor): Rewrite set interface to
6773           setpowersetbits for long bitnumbers, rather than shorts.
6774
6775 Tue Nov 16 13:41:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6776
6777         * ch-expr.c (build_chill_function_call): Stop generating empty
6778           copyback statements, which lead to a seg fault.
6779
6780 Tue Nov 16 12:20:17 1993  Per Bothner  (bothner@cygnus.com)
6781
6782         * ch-satisfy.c (satisfy):  If satisfying a type whose
6783         TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6784         * ch-actions.c (build_exception_variant):  Remove some crud.
6785         * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6786         Remove unused first argument.
6787         * ch-decl.c (start_chill_function):  Call build_exception_variant
6788         in pass 1, not in pass 2.
6789
6790 Tue Nov 16 11:10:03 1993  Bill Cox  (bill@rtl.cygnus.com)
6791
6792         * ch-decl.c (shadow_record_fields): Call new function
6793           build_chill_arrow_expr, which returns a ptr-to-a-type.
6794         * ch-expr.c (build_chill_arrow_expr): New function, works like
6795           build_chill_addr_expr used to do, returning a typed ptr.
6796           (build_chill_addr_expr): Now returns unbound ref - analogous
6797           to C 'void *'.
6798         * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6799           (operand6): Call build_chill_arrow_expr.  Reindent a bit.
6800         * ch-tree.h (build_chill_arrow_expr): New prototype.
6801
6802 Mon Nov 15 16:38:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6803
6804         * stor-layout.c (layout_type): If a SET_TYPE needs more than
6805         INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6806
6807         * ch-decl.c (start_chill_function):  Set DECL_CONTEXT of params.
6808
6809 Mon Nov 15 14:49:17 1993  Bill Cox  (bill@rtl.cygnus.com)
6810
6811         * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6812           build_function_call, etc.) to tasking_init.
6813         * ch-gperf, ch-hash.h: Add ASM keyword.
6814         * ch-parse.y: Add ASM statement rules.
6815           (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6816         * ch-tasking.c: Move tasking stuff here.
6817
6818 Sun Nov 14 15:50:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6819
6820         * ch-parse.y (mode2):  Split into array_mode and non_array_mode
6821         to resolve layout ambiguity.
6822         * ch-parse.y (checked_name):  Remove.  Use name_string instead.
6823         * ch-parse.y (variantdef):  Don't crash if no tag fields.
6824         * ch-typeck.c (build_chill_array_type):  If varying_p,
6825         actually do build_varying_struct here (rather than in ch-parse.y).
6826
6827 Fri Nov 12 15:37:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6828
6829         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6830         static names.  (Let make_decl_rtl generate a unique name.)
6831
6832 Sun Nov 14 13:15:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6833
6834         * ch-expr.c (build_chill_lower, cuild_chill_upper):
6835           Rewrite for modes, values, etc.
6836         * ch-inout.c (build_chill_writetext): Add ability
6837           to write out characters.
6838         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6839           static names.  (Let make_decl_rtl generate a unique name.)
6840         * varasm.c (unpack_set_constructor): Subtract
6841           lower domain value from a bit's index value,
6842           to match the runtime and allow powersets
6843           with negative lower bounds.
6844
6845 Fri Nov 12 14:00:48 1993  Bill Cox  (bill@rtl.cygnus.com)
6846
6847         * ch-inout.c (build_chill_writetext): Save reserved words in
6848           uppercase if -fspecial_UC was specified.
6849
6850 Fri Nov 12 13:27:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
6851
6852         * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6853         string concatenation by treating varying strings as slices.
6854         (varying_to_slice): New function.
6855         * ch-typeck.c (build_chill_slice): Changed to support the above.
6856
6857 Fri Nov 12 12:07:28 1993  Bill Cox  (bill@rtl.cygnus.com)
6858
6859         * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6860         * ch-expr.c (build_generalized_call): Start module before a
6861           writetext action, so its variables are inside the module-level
6862           function.
6863         * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6864           for enumeration loop on a varying array.
6865
6866 Thu Nov 11 07:49:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6867
6868         * cccp.c (main): Disable trigraphs for CHILL.
6869         * ch-decl.c (grok_chill_fixedfields): Add special_UC
6870           to conditional to determine case of reserved words.
6871           Make PACK/UNPACK warning more specific.
6872         * ch-expr.c (build_generalized_call): Enable recognition
6873           of WRITETEXT call here.
6874         * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6875           word.  It's only predefined.
6876         * ch-inout.c: Add special_UC to conditionals
6877           to determine case of reserved words.
6878           (build_chill_writetext): Change for call from
6879           build_generalized_call.  Add code to format
6880           integers.
6881         * ch-lang.c (lang_decode_option): Add special_UC and
6882           special_LC flags and logic to interlock with
6883           ignore_case flag.
6884         * ch-lex.l: Add special_UC to conditionals
6885           to determine case of reserved words.
6886         * ch-parse.y: Delete WRITETEXT as reserved word.
6887         * ch-tasking.c: Add special_UC to conditionals
6888           to determine case of reserved words.
6889           (build_instance_type): Make components of INSTANCE
6890           unsigned 16-bit integers.
6891         * ch-tree.h (build_chill_writetext): Fix prototype.
6892         * ch-typeck.c (build_chill_array_type): Make PACK
6893           /UNPACK warning more specific.
6894         * toplev.c (lang_options): Add -fspecial_LC
6895           and -fspecial_UC flags.
6896
6897 Wed Nov 10 02:29:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6898
6899         * Makefile.in: Move ch-hash.h from ch-lex.o
6900           rule to ch-lex.c rule, so flex is rerun.
6901         * ch-actions.c (chill_expand_assignment): Error if
6902           user tries to assign to a LHS function.
6903         * ch-decl.c (grok_chill_fixedfields): Use of PACK
6904           /UNPACK is only a warning.
6905           (init_decl_processing): Add ADDR as a builtin function.
6906         * ch-expr.c (build_generalized_call): Add ADDR
6907           as a builtin function.
6908           (build_chill_addr_expr): Sanity check parameters.
6909         * ch-gperf: Remove ADDR as a reserved word,
6910           make ASM into one.
6911         * ch-hash.h: gperf'd version of the above.
6912         * ch-inout.c (chill_stdio_p): Recognize upper/lower
6913           case file names.
6914         * ch-lex.l: Make ignore-case work.  Downcase
6915           token before checking for reserved words.
6916         * ch-parse.y: Delete ADDR as a reserved word.
6917           (mode2, optlayout): Allow PACK/UNPACK specifier.
6918           (call): Use build_generalized_call for
6919                   primval LPRN modename RPRN.
6920           (primval): Delete ADDR reference.  It's now only
6921           predefined, not reserved.
6922         * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6923         * ch-typeck.c (build_chill_array_type): Just
6924           a warning for PACK/UNPACK usage.
6925         * toplev.c: Add -fignore-case and -fno-ignore-case.
6926
6927 Tue Nov  9 15:07:02 1993  Bill Cox  (bill@rtl.cygnus.com)
6928
6929         * ch-actions.c: Reindent for readability.
6930         * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6931           a conversion to INSTANCE.
6932         * ch-decl.c: Change special_UC to ignore_case everywhere.
6933           (init_decl_processing): Add builtin_function calls for lots of
6934           predefined functions.
6935         * ch-expr.c: Change builtin function handlers back to accepting
6936           args, not a treelist.
6937           (route_to_predefined_function): Delete it and its call.
6938           (build_generalized_call): Add lots of builtin functions.
6939         * ch-gperf (backwards, duration, inttime, null): Delete them.
6940         * ch-hash.h: New version.
6941         * ch-inout.c: Change special_UC to ignore_case everywhere.
6942         * ch-lang.c: Delete special_UC flag.
6943         * ch-lex.l: Change special_UC to ignore_case everywhere.
6944         * ch-loop.c (high_domain_value, low_domain_value): Change
6945           interfaces to build_chill_upper and built_chill_lower.
6946         * ch-parse.y: Delete lots of stuff which should only be predefined.
6947         * ch-tasking.c: Change special_UC to ignore_case everywhere.
6948           Change builtin function handlers back to accepting args,
6949           not a treelist.
6950         * ch-tree.h: Add lots of builtin functions to the enumerator.
6951
6952 Mon Nov  8 18:08:27 1993  Bill Cox  (bill@rtl.cygnus.com)
6953
6954         * ch-tasking.c (tasking_init): Disable last-minute change for now.
6955
6956 Mon Nov  8 17:30:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6957
6958         * Makefile.in: New commands to build ch-hash.h.  Add ch-lex.h to
6959           dependencies where it's used.
6960         * ch-decl.c (init_decl_processing): Build predefined constants
6961           for TRUE, FALSE and NULL.  Add declaration for abs builtin
6962           function.
6963           (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6964           stuff for builtin constant like TRUE.
6965         * ch-expr.c (route_to_predefined_function): Add a bunch of
6966           predefined functions to the list.
6967         * ch-gperf: Define the list of reserved words, minus the predefined
6968           words, using the special_UC flag.  Remove NULL, TRUE, FALSE -
6969           these are only predefined, not reserved.
6970         * ch-hash.h: Check this into repository, even though it's derived
6971           from ch-gperf, for those users who don't have gperf.
6972         * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6973           to refer to the IO types. Standardize the indentation.
6974         * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6975         * ch-lex.l: Total rewrite of reserved-word recognition, using
6976           the ch-hash.h lookup routines.
6977         * ch-parse.y: Delete a bunch of unused rules for predefined
6978           procedures and their parameters.
6979         * ch-tasking.c (tasking_init): Build predefined functions
6980           for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE.  Not
6981           complete yet.  Change interface to builtin handlers to accept
6982           just an expression list.
6983
6984 Wed Nov  3 18:07:08 1993  Bill Cox  (bill@rtl.cygnus.com)
6985
6986         * Makefile.in: Debug, activate rule to make CHILL hash table.
6987         * ch-actions.c: Compress parameter type lists per standard.
6988         * ch-decl.c: Correct spelling in comment, compress parameter lists.
6989           (init_decl_processing): Check special_UC flag to build builtin
6990           function declarations.
6991         * ch-expr.c (route_to_predefined_function): Check for upper OR
6992           lowercase function names.
6993         * ch-gperf: Update the list of keywords.
6994         * ch-inout.c (build_chill_io_list): Check for special_UC flag
6995           to build I/O list type.  Compress parameter lists.
6996           (chill_stdio_p): Check for special_UC flag in recognizing
6997           file streams.
6998         * ch-lang.c (lang_decode_option): Add command-line options
6999           for upper-case keywords and user labels.
7000         * ch-lex.l (init_lex): Initialize ridpointers to uppercase
7001           if special_UC flag is set.
7002           (downcase, getlc, check_newline): Don't do this if ignore_case
7003           flag is set.
7004         * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
7005           multiple selector expressions.
7006
7007 Sat Oct 30 01:06:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7008
7009         * ch-expr.c (compare_record, finish_chill_binary_op): Compare
7010         STRUCTs (and INSTANCEs) for equality.
7011         * ch-expr.c (invalid_operand):  New functions, combines most of
7012         the functionality of invalid_left_operand and invalid_right_operand.
7013         * ch-convert.c (digest_constructor):  Set TREE_CONSTANT if it is.
7014
7015 Sat Oct 30 11:12:47 1993  Bill Cox  (bill@rtl.cygnus.com)
7016
7017         * Makefile.in (chill): Add back in the commands to build chill
7018           (the script) from chill.in.
7019
7020 Fri Oct 29 16:25:38 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7021
7022         * expr.c (store_constructor):  If SET_TYPE target is in a register,
7023         use a stack temporary (since we must take its address).
7024
7025         * ch-expr.c (build_allocate_global_memory_call,
7026         build_allocate_memory_call):  Cast argument pointer to PTR,
7027         if needed (using location cast).  Also, some other cleanups.
7028         * ch-parse.y (bracketed_action):  Re-arrange things so that
7029         a handler following BEGIN END comes before the final poplevel.
7030         * ch-typeck.c (build_chill_cast): Just return if already correct type.
7031
7032         Re-do DO WITH so that build_component_ref for is done lazily
7033         (at each reference) instead of eagerly (at the beginning
7034         of DO WITH).  This is needed for tagged variants,
7035         * ch-tree.def (WITH_DECL):  New declaration tree code.
7036         * ch-decl.c (lookup_name):  Recognize WITH_DECLs.
7037         * ch-decl.c (handle_one_level):  Variant parts are currently
7038         indicacted with '__CASE'.  Recognize that.
7039         Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
7040
7041 Thu Oct 28 22:17:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7042
7043         * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
7044         Remove some old crud.
7045         * ch-typeck.c (build_chill_cast):  Another attempt at a
7046         compromise between robustness and generality for casts.
7047         Location conversions are now less likely to confuse things.
7048         * ch-parse.y (optactions):  Allow further optactions following
7049         an initial semicolon.
7050         * ch-parse.y:  Add error messages on EVENT and BUFFER.
7051
7052         * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
7053         Undo some of the Oct 27 changes.
7054
7055         Convert (some) builtin functions previously using reserved
7056         names to be just predefined.
7057         * tree.h (enum builtin_in_function):  Added END_BUILTINS at end.
7058         * ch-decl.c:  Add predefines for allocate_memory,
7059         allocate_global_memory, return_memory, writetext.
7060         * ch-expr.c (check_arglist_length):  New function.
7061         * ch-expr.c (build_generalized_call):  If "function" is
7062         a builtin, build the appropriate tree.
7063         * ch-parse.y, ch-lex.l:  No longer recognize many pre-defined
7064         functions at the lexer/parser level.
7065         * ch-tree.h (enum chill_built_in_function):  New type.
7066
7067 Thu Oct 28 16:43:36 1993  Bill Cox  (bill@rtl.cygnus.com)
7068
7069         * ch-expr.c (allocate_memory, allocate_global_memory):
7070           Check for invalid parameters, issue errors.
7071         * expr.c (store_constructor): Calculate bitlength, startrtx
7072           and endrtx of powerset correctly.  Define targetx, use it
7073           and XEXP correctly.
7074
7075 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7076
7077         * ch-expr.c (build_max_min): Error for passing empty tuple
7078           as the argument.
7079
7080 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7081
7082         * ch-decl.c (init_decl_processing): Make allocate
7083           builtins have a pointer-to-pointer-to-void
7084           first parameter, rather than a reference parameter.
7085         * ch-expr.c (build_allocate_memory_call,
7086           build_allocate_global_memory_call): Do automatic
7087           ADDR () on the first parameter, for backward
7088           compatibility.
7089         * ch-grant.c (grant_one_decl): Don't grant if
7090           DECL_SOURCE_LINE is zero.
7091           (start_chill_module_code): Set DECL_SOURCE_LINE
7092           to zero so that module-level function isn't granted.
7093         * ch-parse.y (handleraction): Add return_memory action.
7094         * ch-typeck.c (chill_similar): Allow a void_type
7095           to be similar to anything.  This makes allocate_memory
7096           and return_memory pointer parameters slide through.
7097
7098 Tue Oct 26 00:12:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7099
7100         * ch-typeck.c (build_chill_array_ref):  Check for and complain
7101         if there are more index expressions than the array rank.
7102
7103         * ch-actions.c (chill_expand_assignment):  Emit appropriate
7104         error message if RHS of multiple assignment is tuple/case/if.
7105         * ch-tree.def (CONCAT_EXPR):  Change TREE_CODE_CLASS from
7106         'e' to the more specific '2'.  (Fixes a satisfy bug.)
7107
7108 Thu Oct 21 17:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
7109
7110         * ch-parse.y: Revert experimental error-generating change
7111           that was checked in by mistake.
7112
7113 Thu Oct 21 12:15:30 1993  Bill Cox  (bill@rtl.cygnus.com)
7114
7115         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7116           code variables associated with a process or signal.
7117           (Apparently I forgot to actually check these in last time.)
7118         * ch-tasking.c: Replace last calls to get_tasking_code with
7119           working references to DECL_TASKING_CODE_DECL.
7120
7121 Thu Oct 21 10:27:42 1993  Bill Cox  (bill@rtl.cygnus.com)
7122
7123         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7124           code variables associated with a process or signal.
7125         * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
7126           tasking_code_decl pointer, rather than trying to look it up
7127           in the hash table or linked scope list.
7128
7129 Wed Oct 20 09:52:44 1993  Bill Cox  (bill@rtl.cygnus.com)
7130
7131         * ch-actions.c (lookup_and_handle_exit): Only output error message
7132           in pass 1.
7133         * ch-convert.c (convert): Correct conversion of VARYING array to/
7134           from non-VARYING one.
7135         * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
7136           field in the node.
7137           (decl_tasking_code_var): Delete it.  Its calls are replaced woth
7138           generate_tasking_code_variable calls, plus a little glue.
7139           (push_extern_process): generate tasking_code_variable as local
7140           static variable, point the process' function_decl at it for later
7141           reference by build_start_process.
7142           (print_mode): Use CHILL upper-case convention to print modes.
7143         * ch-lex.l: Must initialize tasking-related trees to NULL at start
7144           of each pass, or we lose the fact that the user did or did not
7145           specify a value for each of them.
7146         * ch-parse.y (check_end_label, action, exceptlist): Only output
7147           error message in pass 1.
7148           (sendaction): Add comments.
7149           (sigdef): Comment out special handling for external signals.
7150           Chain tasking_variable_decl onto signal structure decl, for
7151           easier non-symbol-table access later.
7152         * ch-tasking.c (generate_tasking_code_variable): Do work in both
7153           passes, using do_decl so we can pass the pass 2 value of the
7154           process_type or signal_code to it.  Only update the process_type
7155           if the incoming pointer isn't null and pass == 2.  Use a new
7156           parameter to know whether to include an init expression.
7157           (build_process_header): Attach tasking-code_variable to process
7158           function_decl for easy access later, not through the hash table.
7159           (build_start_process): Get tasking_code_variable out of the process'
7160           function decl.
7161           (build_signal_struct_type): Return the type decl, to be accessed by ...
7162           (build_signal_descriptor): .. this function.
7163           (build_receive_case_label): Get data buffer pointer not from hash
7164           table, but from Tiemann's current rc_state structure instead.
7165         * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
7166           macro for tasking_code_variable storage.
7167
7168 Tue Oct 19 17:39:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7169
7170         * ch-lex.l (equal_number):  If the "number" is a CONST_DECL,
7171         return its DECL_INITIAL.
7172         * ch-satisfy.c (safe_satisfy_decl):  Change logic for rtl
7173         generation for decls to not use DECL_ASSEMBLER_NAME.
7174         * ch-decl.c:  Set DECL_ASSEMBLER_NAME to DECL_NAME.
7175         This matches C, and allows dbxout to emit proper user-level names.
7176         (It would be cleaner to fix dbxout to use DECL_NAME ...)
7177         * ch-decl.c (outer_decls):  New global list of the decls granted
7178         into the outer scope.
7179         (pop_module):  Change code that grants into outer scope accordingly.
7180         (lookup_name_for_seizing):  Similarly update.
7181         (push_scope_decls):  Handle SEIZE ALL from the global scope
7182         by searching outer_decls.
7183         * ch-grant.c (grant_array_type):  Fix thinko.
7184         * ch-inout.c (build_chill_writetext):  Remove excessive TREE_TYPE.
7185
7186 Mon Oct 18 15:57:00 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7187
7188         * varasm.c (output_constructor):  Add support for non-zero
7189         lower array bound.
7190         * c-typeck.c (output_init_element):  Revert recent changes.
7191         * varasm.c (emit_set_data):  Fix emitting set constant data.
7192         * ch-lex.l (yywrap):  Reset line number to 0, not 1.
7193         It sets incremented to 1 by check_newline.
7194         * ch-tree.h:  Restore old version.
7195         * ch-expr.c (finish_chill_binary_op):  Convert TRUNC_DIV_EXPR
7196         to RDIV_EXPR if an operand is floating.  (This functionality
7197         got dropped when hacking finish_chill_binary_op).
7198
7199         * ch-actions.c (build_chill_case_expr):  Set type to NULL_TREE.
7200         not error_mark_node.
7201         * ch-actions.c (chill_expand_assignment):  Allow such borderline
7202         constructs as:  LHS OR:= [X].
7203         * ch-convert.c (convert):  Hande CASE_EXPR (and COND_EXPR)
7204         with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
7205         * ch-decl.c (do_decl):  Remove CONSTRUCTOR kludge.
7206         * ch-typeck.c (chill_compatible):  Allow expr to have NULL mode
7207         if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
7208
7209 Mon Oct 18 13:20:53 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
7210
7211         * c-typeck.c (output_init_element): Limit previous changes to
7212         ARRAY_TYPE and SET_TYPE initializers.
7213
7214 Sun Oct 17 23:15:00 1993  Bill Cox  (bill@cygnus.com)
7215
7216         * c-typeck.c (output_init_element): Handle NULL domain case.
7217         * ch-decl.c (do_decl): Revert bogus initializer type change.
7218         * ch-grant.c (chill_finish_module_code): Put module's decl onto
7219           the module_init_list, for chill_finish_compile's possible use.
7220           (chill_finish_compile): Rename variables for clarity, add
7221           commented-out code as example for assignment of module address to its
7222           init_list entry.
7223
7224 Sun Oct 17 15:16:54 1993  Bill Cox  (bill@cygnus.com)
7225
7226         * ch-convert.c: Move semicolon to separate line - easier to see.
7227         * ch-decl.c (do_decl): Handle untyped_expr initializers by
7228           simply using the variable's declared type - no compatibility
7229           check can be made if the expression has no type.
7230         * ch-expr.c (expand_packed_set): Fix endless loop - increment
7231           the loop variable.
7232           (fold_set_expr): Fix two other endless loops by passing
7233           correct parameters to unpack_set_constructor.
7234         * varasm.c: Standardize 'for' loop.
7235
7236 Sun Oct 17 12:16:21 1993  Bill Cox  (bill@cygnus.com)
7237
7238         * c-typeck.c (output_init_element): Handle initializer for
7239           array with non-zero lower index bound.
7240
7241 Sat Oct 16 16:48:48 1993  Per Bothner  (bothner@cygnus.com)
7242
7243         * ch-expr.c (finish_chill_binary_op):  Use TREE_SET_CODE
7244         to change TREE_CODE.
7245
7246 Sat Oct 16 08:07:17 1993  Bill Cox  (bill@rtl.cygnus.com)
7247
7248         * ch-expr.c (finish_chill_binary_op): Disable
7249           rough-draft code, not intended for release.
7250
7251 Fri Oct 15 21:44:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
7252
7253         * expr.c (store_constructor): use PROTO for pack_set_constructor
7254
7255 Fri Oct 15 10:30:09 1993  Bill Cox  (bill@cygnus.com)
7256
7257         * ch-expr.c (finish_chill_binary_op): Activate some
7258           type-setup code.
7259         * expr.c (store_constructor): Subtract arrays minimum element.
7260           Makes orientexpress work.
7261
7262 Fri Oct 15 09:26:24 1993  Bill Cox  (bill@cygnus.com)
7263
7264         * ch-convert.c, ch-expr.c: Add externs so it'll compile.
7265         * ch-tree.def: Add BASED_DECL definition.
7266
7267 Thu Oct 14 13:20:02 1993  Bill Cox  (bill@cygnus.com)
7268
7269         * ch-actions.c (build_chill_cause_exception): Pass the
7270           *address* of the filename string to the runtime routine,
7271           rather than passing the string by value.
7272
7273 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7274
7275         * expr.c (store_constructor):  Use a (usually) more efficient
7276         algorithm for setting SET types.
7277
7278 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7279
7280         Changes to better support 1984 version of Chill, which doesn't
7281         really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
7282         * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings):  New flag.
7283         * ch-typeck.c (chill_similar):  Support flag_old_strings.
7284         * ch-convert.c (convert_to_boolean):  Generalize code to
7285         convert singleton bitstring to Boolean.
7286         * ch-convert.c (convert):  Use string_one_type_node.
7287         * ch-convert.c (convert):  Add code to convert Boolean to BOOLS(1).
7288         * ch-convert.c (convert):  In code that converts fixed string to
7289         varying use new 'e' variable, rather than original 'expr' variable.
7290         Allows cascaded conversions:  CHAR -> CHARS(1) -> varying CHARS.
7291         * ch-decl.c (string_type_node, const_string_type_node,
7292         int_array_type_node), ch-tree.h:  Removed.
7293         * ch-decl.c (string_one_type_node, bitstring_one_type_node,
7294         bit_zero_node, bit_one_node), ch-tree.h:  New globals tree nodes.
7295         * ch-decl.c (init_decl_precessing):  Remove some junk.
7296         * ch-expr.c (build_generalized_call):  If flag_old_strings,
7297         treat string index as string slice.  Also, better error checking.
7298
7299         Added support for (some kinds of) BASED declarations.
7300         * ch-tree.def (BASED_DECL):  New tree code.
7301         * ch-decl.c (lookup_name):  Implement BASED_DECL using
7302         build_chill_indirect_ref.
7303         * ch-decl.c (do_based_decls):  Make a BASED_DECL.
7304         * ch-parse.y:  Call do_based_decls for DCL ... BASED(...).
7305         * ch-satisfy.c (safe_satisfy_decl):  Handle BASED_DECL.
7306
7307         Improve handling of set binary operations.
7308         * ch-expr.c (expand_packed_set):  New function.
7309         (fold_set_expr):  Re-write.  Simpler, more general algorithm.
7310         (build_set_expr):  Only used for comparsions now.
7311         (finish_chill_binary_op):  Handle set ops better (more directly).
7312         (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
7313         fold_set_ne, fold_set_xor):  Removed.  No longer needed.
7314
7315         * ch-decl.c:  Remove calls to allocate_lang_decl.
7316         * ch-tree.c (build_string_type):  If const length, layout immediately.
7317
7318 Mon Oct 11 17:23:02 1993  Bill Cox  (bill@cygnus.com)
7319
7320         * ch-decl.c (init_decl_processing): Define __whoami and
7321           __wait_buffer functions.
7322         * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
7323         * ch-parse.y (sigdef): Add new add_taskstuff_to_list
7324           parameter.
7325         * ch-tasking.c (get_tasking_code): Search tasking_list for
7326           tasking code name match.  Can't use lookup_name.
7327           (get_task_name): New function.
7328           (generate_tasking_code_variable): Return if pass 1.
7329           Always update *tasking_code_ptr.
7330           (build_process_header): Add new add_taskstuff_to_list
7331           parameter.
7332           (tasking_setup): New code to unpack the tasking
7333           list entries no built by ..
7334           (add_taskstuff_to_list): Accept new parameter,
7335           add it to the list.
7336         * ch-tree.h (add_taskstuff_to_list): Add new
7337           parameter.
7338
7339 Mon Oct 11 14:54:50 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7340
7341         * Makefile.in (cc1chill):  Also link in $(BC_OBJS).
7342
7343 Mon Oct 11 06:28:39 1993  Doug Evans  (dje@canuck.cygnus.com)
7344
7345         * ch-decl.c (flag_allow_single_precision): New global,
7346         from ss-931002 merge.
7347
7348 Sun Oct 10 09:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7349
7350         * Makefile.in: Remove references to chill.in and
7351           ch-hash.h.  Remove bogus cc1chil : chill
7352           dependency.
7353
7354 Fri Oct  8 16:00:04 1993  Bill Cox  (bill@cygnus.com)
7355
7356         * ch-actions.c (adjust_parm_or_field): Add parameter to
7357           decl_temp1 call.
7358         *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
7359           decl_temp1 call.
7360           (decl_temp1): Add parameter to signal 'make this external'.
7361           (shadow_record_fields): Add parameter to decl_temp1 call.
7362         * ch-expr.c (chill_expand_case_expr): Add parameter
7363           to decl_temp1 call.
7364         * ch-grant.c (chill_finish_compile): Add code to spoof
7365           get_file_function_name,  so we don't get __tmp_s1_code,
7366           for example, as the module-level code's name.
7367         * ch-loop.c (build_temporary_variable, begin_for_range,
7368           init_loop_counter): Add parameter to decl_temp1 call.
7369         * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
7370           for easier maintenance.
7371           (sendaction): Rewrite to receive SIGNALNAME token correctly
7372           from ch-lex.l (name_type_signal).
7373           (signaldef): Don't clear quasi_signal here.
7374         * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
7375           to make the variable public (visible to linker).
7376           (build_start_process): Add parameter to decl_temp1 call.
7377           (tasking_setup): Comment out band-aid hack which calls
7378           generate_tasking_code_variable.  Shouldn't be necessary.
7379           Use null_pointer_node rather than integer_zero_node in
7380           entry_point.  More rewrites.
7381           (build_signal_descriptor): Name the non-signal in the error msg.
7382           Rewrite the building of the signal envelope - avoid seg fault.
7383           Add parameter to decl_temp1 call.
7384           (expand_send_signal, build_receive_case_start,
7385           build_receive_case_end, build_buffer_descriptor): Add parameter
7386           to decl_temp1 call.
7387         * ch-tree.h: Add parameter to decl_temp1 proto.
7388         * chill: Add new CHILL frontend directory
7389
7390 Tue Oct  5 13:51:27 1993  Bill Cox  (bill@cygnus.com)
7391
7392         * ch-grant.c: Standardize indentation.
7393         * ch-parse.y (end_function): Unconditionally poplevel for processes.
7394         * ch-tasking.c (build_process_header): Unconditionally pushlevel.
7395           (generate_tasking_code_variable): Stop using pass number to
7396           force a one-time action.
7397         * ch-tree.h (build_chill_slice): Delete proto since function went static.
7398
7399 Mon Oct  4 13:52:36 1993  Bill Cox  (bill@cygnus.com)
7400
7401         * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
7402           called here in both passes.  Set DECL_ASSEMBLER_NAME.
7403           (lookup_name_for_seizing): Move NULL test forward to prevent
7404           seg fault.
7405         * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
7406           to prevent a seg fault in telebras/dynsto.ch.  Make indentation
7407           changes.
7408         * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
7409           (build_send_signal): Rename to expand_send_signal.
7410           (generate_tasking_code_variable): Return the var's decl.
7411           (build_signal_struct_type): Move generate_tasking_code_variable
7412           and add_taskstuff_to_list calls to ..
7413         * ch-parse.y (sigdef): .. here.  And make indentation changes.
7414         * ch-tree.h: Rename functions, add return values.
7415
7416 Mon Oct  4 15:43:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7417
7418         * ch-convert.c (digest_constructor):  Convert element to element_type.
7419         * ch-parse.y (end_function):  Use DECL_ARGUMENTS to check
7420         for parameterless process.
7421
7422 Fri Oct  1 13:57:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7423
7424         * ch-typeck.c (chill_location):  New function.
7425         Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
7426         * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c:  Use
7427         chill_location instead of lvalue_p.
7428
7429
7430 Fri Oct  1 11:28:42 1993  Bill Cox  (bill@cygnus.com)
7431
7432         * ch-convert.c (convert): Back out Michael's changes, unintentionally
7433           checked in.
7434         * ch-lex.l (handle_use_seizefile_directive): No longer downcase
7435           seize file names.
7436         * ch-parse.y (sendaction): Fix a couple of seg faults.  Comment out
7437           SEND BUFFER processing for now.
7438         * ch-tree.h: Fix comment.
7439
7440 Thu Sep 30 17:00:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7441
7442         * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P):  New macros,
7443         for recognizing singleton strings.
7444         * ch-tree.h (MARK_AS_STRING_TYPE):  New macro.
7445         * ch-tree.c (build_string_type, build_bitstring_type),
7446         ch-convert.c (convert):  Use it.
7447         * ch-typeck.c (build_chill_slice):  Take length rather than upper
7448         bound.  This makes it easier to recognize that A(X UP LENGTH)
7449         really has fixed length.  Also, if the argument is string,
7450         mark the slice as a string too.  Also, handle varying strings.
7451
7452         * ch-typeck.c (conflate_singleton_strings):  New global.
7453         * ch-typeck.c (chill_similar):  If conflate_singleton_strings is
7454         set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
7455         to CHAR/BOOL, as required by the 1984 version of Z.200.
7456         * ch-convert.c (convert_to_char):  Convert CHARS(1) to CHAR.
7457         * ch-convert.c ( build_array_type_for_scalar):  If input is string,
7458         so is output.
7459         * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h:  Removed.
7460         * ch-convert.c (convert):  Convert CHAR to CHARS(1).
7461
7462         This fixes 'X // := Y' and is also a general simplification.
7463         * ch-actions.c (chill_expand_assignment):  Convert 'LHS OP := RHS'
7464         to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
7465         Also, call save_expr on RHS if a multiple assignment.
7466         * ch-parse.y (assignaction):  Therefore, no longer need to call
7467         stabilize_reference on RHS.
7468         * ch-typeck.c (build_chill_modify_expr), ch-tree.h:  Remove
7469         modifycode parameter.  Make it the caller's responsibility to
7470         handle <assigning operator>.
7471         * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
7472         ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
7473
7474 Wed Sep 29 18:02:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7475
7476         * ch-lang.c (string_index_type_dummy), ch-tree.h:  New variable.
7477         * ch-decl.c (integer_minus_one_node), ch-tree.h:  New variable.
7478
7479         * ch-parse.y (arrayindex: modename):  Remove useless code.
7480         * ch-satisfy.c (satisfy):  Don't gag on string_index_type_dummy,
7481         * ch-tree.c (build_string_type):  Pass string_index_type_dummy as
7482         the parent type of the index range.
7483         * ch-typeck.c (layout_chill_range_type):  Recognize and handle
7484         string_index_type_dummy - specifically allow an empty range.
7485
7486 Wed Sep 29 13:36:23 1993 1993  Bill Cox  (bill@cygnus.com)
7487
7488         * ch-convert.c (convert_to_reference): Check for loc-identity
7489           mismatches correctly (and remove one of those chill_compatible
7490           calls).
7491         * ch-decl.c (decl_tasking_code_var): New function, called from
7492           push_extern_process and push_extern_signal.
7493         * ch-parse.y (end_function): Delete parameter.  Check current_function_decl
7494           whether it's actually a process, and whether it has parameters.
7495           Make Michael's change simplifying the pass 2 test, preventing a seg
7496           fault.
7497           (procedure, process): Change calls to end_function, remove
7498           code saving value from build_process_header.  Delete redundant chill_
7499           phrases from some function calls.
7500         * ch-tasking.c: Remove some redundant _chill phrases from function
7501           names.
7502         * ch-tree.h: Remove some redundant _chill phrases from function
7503           names.  Add the CH_VARYING_ARRAY_TYPE macro, call it from
7504           all relevant places.
7505         * ch-typeck.c: Use the new macro.  Cast TREE_CODEs to chill_tree_code.
7506
7507 Wed Sep 29 13:07:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7508
7509         * ch-convert.c (convert_to_reference):  Remove redundancies.
7510         * ch-convert.c (convert):  Handle convert_to_reference
7511         with a recursive convert call.
7512         * ch-decl.c (do_decl): Add missing compatibility-checking
7513         of initializer (don't depend on convert).
7514
7515 Tue Sep 28 00:02:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7516
7517         * ch-tree.h (CH_LOCATION_P):  New macro.
7518         * ch-typeck.c (layout_chill_range_type):  Fix call to
7519         type_for_size, when figuring out a defaulted parent type.
7520         * ch-expr.c (build_chill_lower, build_chill_sizeof):  Check
7521         for TREE_CODE_CLASS != 't' rather than == 'd'.
7522         * ch-expr.c (build_chill_function_call):  Use CH_LOCATION_P
7523         to check for location, rather than TYPE_CODE_CLASS == 'd'.
7524
7525         * ch-tree.c (build_string_type):  Make 2-pass safe.  Also,
7526         change parameter to be length, not index type.
7527         * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7528         (build_chill_string): Modify callers of build_string_type accordingly.
7529         * ch-lex.l (check_newline):  Don't look for # directive inside a
7530         C-style comment.
7531         * ch-grant.c (grant_array_type):  Make more robust for char-
7532         and bit-strings (allow non-constant sizes).  Change parameters
7533         and return types.  (raw_decode_mode):  Use grant_array_type
7534         for bitstrings.  (otherwise):  Fix grant_array_type callers.
7535
7536 Mon Sep 27 16:57:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7537
7538         Remove changes of Sep 15.
7539         * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7540         * ch-typeck.c (chill_similar):  Don't allow a singleton
7541         powerset to be similar to its domain.
7542         * ch-convert.c (convert_to_boolean):  Don't convert a singleton
7543         SET_TYPE constructor to a Boolean.
7544
7545         * ch-actions.c (chill_expand_assignment):  Handle IN_EXPR on
7546         LHS of assignment, which is what we're current (temporarily?) using.
7547
7548 Mon Sep 27 06:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7549
7550         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7551           ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7552           ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7553           -Wall cleanup.  Add prototypes where missing.
7554           Delete unused variables.  Cast uses of tree_codes
7555           to chill_tree_code, which they are.
7556
7557 Sun Sep 26 13:09:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7558
7559         * ch-decl.c (do_decl): Save initializer in pass zero
7560           case also.
7561         * ch-lex.l: Fix comments, indentation.
7562         * ch-parse.y: Standardize error messages to use
7563           uppercase for CHILL keywords rather than quoting them.
7564           Suggestion from docs department.
7565         * ch-tasking.c: Pervasive changes to get processes to
7566           compile and START.
7567         * ch-tree.h: Delete prototypes for functions whic
7568           I made static inside ch-tasking.c.
7569
7570 Sun Sep 26 02:40:02 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7571
7572         * ch-lex.l (yywrap): Call `check_newline' in case the file
7573         started with a line directive.
7574
7575 Sat Sep 25 13:54:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7576
7577         * ch-decl.c:  Expand pre-amble comment.
7578         * ch-decl.c (struct scope, push_module):  Use new field
7579         tail_chain_module to build child-module list in order.
7580         (Just to make compiler debugging a little less confusing.)
7581
7582         * ch-decl.c (struct scope):  New field weak_decls.
7583         * ch-decl.c (find_implied_types):  New interface.  Now pre-pend
7584         new enum types to a given input list.  This makes it easier to
7585         avoid duplicates, which should at least be more efficient.
7586         Also, handle FUNCTION_DECL.
7587         * ch-decl.c (bind_saved_names):  Removed.  Distribute its
7588         functionality over new functions (push_scope_decls, pop_scope_decls,
7589         build_implied_names, bind_sub_modules).  The goal (which seems to
7590         have been more-or-less attained) was to fix weak name handling.
7591         * ch-decl.c (poplevel):  Use new function pop_scope_decls.
7592
7593         * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7594         Use build_decl directly, rather than grok_chill_fixedfields
7595         (which depends on ignore_exprs and has more overhead).
7596         * ch-tasking.c (build_signal_struct):  Construct the type
7597         only in pass 1.
7598         * ch-typeck.c (build_chill_slice):  Use my_build_array_ref rather
7599         than build_array_ref (which does C-specific "optimizations").
7600         (Hence move my_build_array_ref up earlier in the file.)
7601
7602 Sat Sep 25 03:47:28 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7603
7604         * ch-tasking.c: Declare static variable `void_ftype_void'.
7605         (chill_tasking_init): Initialize `void_ftype_void' here.
7606         (build_tasking_struct): Use, don't declare `void_ftype_void'.
7607         (generate_tasking_code_variable): Call `do_decl', not
7608         `decl_temp1' to declare TASKING_CODE_NAME.
7609         (tasking_setup): Drop into 1-pass mode so that all
7610         tasking-related declarations are installed in the global
7611         scope.  Use correct CHILL types for initializers (since
7612         ptr_type_node doesn't have the right meaning for CHILL).
7613         Also, call `do_decl' instead of `decl_temp1' for
7614         `init_struct'.
7615         (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7616         `chill_finish_compile' in sync between passes.
7617
7618         * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7619         declarations on pass zero.  Keep obstacks in sync, and always
7620         call `finish_decl' for pass zero declarations.
7621         (push_chill_extern_function): Keep obstacks in sync, and always
7622         call `finish_decl' for pass zero declarations.
7623         (build_enumerator): Ditto.
7624         (grok_chill_variantdefs): Change PASS test to exclude only
7625         pass one.
7626         (finish_struct): Ditto.
7627         * ch-expr.c (build_chill_component_ref): Ditto.
7628         (build_chill_binary_op): Ditto.
7629         * ch-tree.c (build_powerset_type): Ditto.
7630         (build_bitstring_type): Ditto.
7631         * ch-typeck.c (build_chill_range_type): Ditto.
7632         (build_chill_struct_type): Ditto.
7633
7634         * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7635         extra pushing and popping of obstacks.
7636
7637         * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7638         on IO_DESCRIPTOR.  This causes IO_DESCRIPTOR to be laid out.
7639
7640         * ch-grant.c (chill_finish_compile): Clear out both
7641         MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7642         from pass one.
7643
7644         * ch-parse.y (rccase_label): Add NAME rules so that pass one
7645         works w/o knowing we're parsing a signal.  Simplify SIGNALNAME
7646         rules since we only get SIGNALNAME tokens in pass two.
7647         (sendaction): Ditto.
7648         * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7649         BUFFERNAME on pass two.  The grammar now handles this.
7650         * ch-decl.c (lookup_remembered_decl): Deleted.
7651
7652 Fri Sep 24 15:27:13 1993  Bill Cox  (bill@cygnus.com)
7653
7654         * ch-decl.c (lookup_remembered_names): Removed.  It was being
7655           misused in ch-lex.l.
7656         * ch-lex.l (name_type_signal): Revert last change.  Basically,
7657           we cannot use the C typedef/variable name trick in CHILL, due
7658           due to the language's 2-pass nature.
7659         * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7660           a seg fault.
7661         * ch-tree.h (lookup_remembered_name): Comment out the prototype.
7662
7663 Fri Sep 24 11:01:31 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7664
7665         * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7666           checks so the pass == 0 case is handled for built-in types.
7667           (push_modedef): Add check for error_mark_node.
7668           (lookup_remembered_decl): New function.
7669           (pushlevel, poplevel) Change pass checks.
7670           (pushdecl): Check type as well for NULL.
7671           (build_enumerator): Handle pass == 0 case.
7672         * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7673           during pass 1.
7674         * ch-parse.y: Set pass to zero to indicate initial decl processing.
7675           Replace NAME references with SIGNALNAME references.
7676           (startaction): Only check copy number if not ignoring actions.
7677           Always call build_chill_start_process.
7678           (optstartset): Don't lookup the instance name.
7679         * ch-tasking.c (generate_tasking_code_variable): Replace
7680           do_decl call with decl_temp1 call.
7681           (build_chill_start_action): Check for ignore_actions here.
7682           (build_tasking_message_type): Layout the type.
7683           (rc_state_type): New structure to keep nested receive-case
7684           info in.
7685           (build_chill_receive_case_start, build_chill_receive_case_end):
7686           Use the new struct.
7687
7688
7689 Fri Sep 24 04:19:15 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7690
7691         * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7692         should be a _DECL, not an IDENTIFIER_NODE.
7693
7694 Thu Sep 23 18:18:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7695
7696         * ch-decl.c (find_implied_types):  Handle VAR_DECLs.
7697
7698         * ch-decl.c (print_lang_identifier):  Print IDENTIFIER_OUTER_VALUE.
7699         * ch-actions.c (chill_expand_result):  Allow value-less RETURN.
7700         * ch-expr.c (resolve_component_ref):  Recognize error_mark.
7701
7702         * ch-convert.c (digest_constructor):  Handle a nested powerset tuple.
7703         * ch-satisfy.c (satisfy):  Use return value of layout_chill_range_type.
7704         * ch-typeck.c (chill_similar):  Repeatedly get parent modes
7705         of ranges, not just once.
7706         * ch-typeck.c (chill_root_resulting_mode), ch-tree.h:  New function.
7707         * ch-typeck.c (layout_chill_rang_type):  Re-do type-checking
7708         to follow Blue Book better (check for Compatibility).
7709
7710         * ch-tree.h (CH_ROOT_RESULTING_MODE):  New macro.
7711         * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7712         New variables.  The latter replaces in_seizefile.
7713
7714         Changes to store in the new DECL_SEIZEFILE field each seize
7715         ALIAS_DECL the name in the most recent use_seize_file directive.
7716         (This requires that use_seize_file directives written to the
7717         grant file be written before the SEIZEs that need it.)
7718         Allow clashing declarations granted into the global scope
7719         (produce a warning), but remember the seizefile case from
7720         (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7721         The a SEIZE will select the granted decl that matches its
7722         DECL_SEIZEFILE (in other words:  grants from the most recent
7723         use_seize_file will be preferred).
7724         * ch-tree.h (DECL_SEIZEFILE), ch-tree.def:  New macro.
7725         * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE):  Renamed
7726         to outer_value, IDENTIFIER_OUTER_VALUE.
7727         Changes to cause the use_seize_file directives to be written
7728         out in order as they're seen in source.
7729         * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7730         Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7731         * ch-lex.l (handle_use_seizefile_directive):  Modify appropriately.
7732         Don't call grant_use_seizefile.
7733         * ch-lex.l (mark_use_seizefile_written):  New function.
7734         * ch-grant.c (decode_decl):  Write out use_seize_file directive,
7735         if needed, before writing a seize declarations.
7736         * ch-decl.c (pop_module):  Handle decls granted into the global
7737         module specially, setting IDENTIFIER_OUTER_VALUE.
7738         * ch-decl.c (lookup_name_for_seizing):  Check IDENTIFIER_OUTER_VALUE.
7739
7740 Thu Sep 23 19:05:37 1993  Bill Cox  (bill@cygnus.com)
7741
7742         * ch-decl.c (push_chill_extern_process): Delete unused variables,
7743           declare the process' tasking_code variable as external.
7744         * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7745           the process header.
7746         * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7747           to (signaldef).
7748         * ch-tree.h: Add prototype.
7749         * expr.c (store_constructor): Emergency first-aid.  Rewrite later.
7750
7751 Thu Sep 23 12:57:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7752
7753         * ch-expr.c (build_chill_function_call):  Move possible call to
7754         chill_start_module_code until we know we're not calling a builtin.
7755         * ch-decl.c (save_expr_under_name):  Use pushdecllist,
7756         not proclaim_decl (which provide for popping the decl).
7757         * ch-parse.y (optname):  Also allow TYPENAME.
7758
7759 Thu Sep 23 09:18:35 1993  Bill Cox  (bill@cygnus.com)
7760
7761         * ch-decl.c (print_lang_decl): Make weak name output more standard.
7762           (print_lang_identifier): Make signal-data flag output more standard.
7763           (push_chill_extern_process): Pass correct arg tree to
7764           push_chill_extern_function.
7765           (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7766           Standardize function header layouts (Makes the tcov script
7767           work better).
7768         * ch-except.c (chill_finish_on): Standardize function header.
7769         * ch-expr.c (fold_set_or): Standardize function header.
7770         * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7771           function headers.
7772           (decode_constant): Make sure that alpha operators are surrounded
7773           with whitespace.
7774         * ch-parse.y: Spell Z.200 correctly in comments.
7775
7776 Wed Sep 22 10:42:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7777
7778         * ch-expr.c (build_chill_addr_expr), ch-tree.h:  New function.
7779         * ch-parse.y, ch-decl.c (shadow_record_fields):  Use it.
7780         * ch-lex.l (handle_use_seizefile_directive):  Don't emit
7781         use_seize_file directive if in_seizefile.
7782
7783         * ch-convert.c (digest_structure_tuple):  Fix code that checks
7784         for excess init values.
7785         * ch-decl.c (layout_chill_variants):  Move increment of nlabels
7786         inside the proper loop.
7787         * ch-grant.c (print_struct):  Add missing loop for tag_list.
7788         (print_struct):  Look for variant fields by checking for a
7789         UNION_TYPE, not a NULL name, since we must use a dummy name.
7790         * ch-parse.y (structured_variable):  Various fixing.
7791         * ch-decl.c (shadow_record_fields):  Rename arg decl -> struct_val.
7792
7793         * ch-satisfy.c (safe_satisfy_decl):  Disable copying of modes
7794         for NEWMODE (and hence novelty checking), until we figure out
7795         a better way.
7796
7797         * ch-except.c (finish_handler_array):  Use null_pointer_node,
7798         not integer_zero_node (which fails to type-check).
7799
7800         * c-typeck.c (get_constructor_element_type):  New function.
7801         * ch-tree.h (CH_NOVELTY_FLAG):  Now also used in TYPE_DECLs.
7802         (CH_NOVELTY):  Redefined to call new function chill_novelty.
7803         (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE):  Removed.
7804         * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7805         Take extra output parameter (for M, as in M-value class).
7806         * ch-typeck.c (chill_novelty):  New function.  (Also de-references.)
7807
7808         * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7809         New functions.  Handle 2-pass and variant records.
7810         * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7811         * ch-satisfy.c (satisfy, case COMPONENT_REF):
7812         New case, call resolve_component_ref.
7813
7814         * ch-expr.c (build_generalized_call):  Extract single arg from
7815         arg list before calling build_chill_cast.
7816
7817         * ch-parse.y (defining_occurrence_list):  New non-terminal.
7818         Use it to replace locnamelist, synnames, and modenames.
7819         * ch-parse.y:  Re-write parsing of variant records.
7820
7821         * ch-decl.c (grok_chill_variantdefs):  Now return a FIELD_DECL
7822         rather than just its type.
7823         * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7824         Change callers appropriately.
7825
7826         * ch-tree.h (TYPE_TAG_VALUES):  Add an extra level of TREE_LIST,
7827         to support multiple tag fields.
7828         * ch-grant.c  (print_struct), ch-decl.c (layout_chill_variants):
7829         Support multiple tag fields.
7830
7831         * ch-convert.c (remove_tree_element, digest_structure_tuple):
7832         New functions, to digest structure tuples, without calling the
7833         code in c-typeck.c.  Handles variant tuples and tags (partially).
7834         * ch-convert.c (digest_constructor, convert):  Call
7835         digest_structure_tuple when appropriate.
7836         * ch-convert.c (digest_constructor): Re-arrange a bit.
7837
7838         * ch-decl.c (push_modedef):  Defer copying of tree until ...
7839         * ch-satisfy (safe_satisfy_decl): ... here.
7840
7841         * ch-decl.c (getdecls):  Add kludge to help dbxout_init.
7842
7843 Tue Sep 21 14:19:11 1993  Bill Cox  (bill@cygnus.com)
7844
7845         Partial tasking update - not done yet.
7846         * ch-actions.c: Comments, indentation.
7847         * ch-decl.c (push_chill_extern_process): No longer need to
7848           reformat the arg list for make_process_struct.
7849           (pop_module): Don't seg fault on null DECL_NAME.
7850           (handle_one_level): Error, not warning if tree not recognized.
7851           (shadow_record_fields): Rename formal param for readability.
7852         * ch-grant.c (decode_decl): Write proper header for a process.
7853         * ch-parse.y (quasi_pdef): process now uses processparlist,
7854           which doesn't change with the passes.
7855           (quasi_locdec): Call build_chill_reference_type to defer
7856           doing the type's layout.
7857           (processpar): Use paramnamelist, but reformat it into a
7858           list of identifiers in pass 2, so a processpar is the same
7859           structure in both passes.
7860           (locdec): Call build_chill_reference_type to defer doing the
7861           type's layout.
7862         * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7863           build the decl.  Only update the variable's tree in pass 2.
7864           (make_process_struct): Call build_chill_reference_type to defer
7865           doing the type's layout.
7866           (build_process_header): New code to call make_process_struct.
7867           New pass-2 code to make a PARM_DECL for start_chill_function.
7868           Pass a void_type_node, not a NULL_TREE for an empty list.
7869           Get input for shadow_record_fields from current_function_decl.
7870           (build_buffer_decl): Call do_decl not decl_temp1.
7871         * ch-typeck.c: Reindent to standards.
7872         * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7873
7874 Mon Sep 20 12:00:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7875
7876         * ch-typeck.c (classify_chill_expr):  An expression with a
7877         REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7878         * ch-actions.c (adjust_parm_or_field):, ch-tree.h:  Change last
7879         parameter, so we can reliably recognize LOC parameters.
7880         * ch-tasking.c, ch-expr.c:  Change callers appropriately.
7881
7882 Sun Sep 19 22:26:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7883
7884         * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE):  New macros.
7885         * ch-typeck.c (chill_referable, chill_read_compatible):  New functions.
7886         * ch-typeck.c (chill_compatible):  Allow un-resolved CONSTRUCTOR
7887         (with NULL TREE_TYPE), when reasonable.  (Simplifies callers.)
7888         Also, handle case of expr being of reference class.
7889         * ch-actions.c (adjust_parm_or_field):  Major re-arrange
7890         to handle conversions and LOC args better.
7891         * ch-actions.c (chill_expand_assignment):  Simplify conversions.
7892         * ch-expr.c (build_chill_function_call):  If needed, call
7893         chill_start_module_code.
7894         * ch-decl.c (declare_predefined_file):  New function, used
7895         to pre-define stdin, stdout, and stderr.
7896         * ch-inout.c (chill_stdio_p):  Change names of predefined
7897         files from chill-stdin etc to plain stdin (and change their types).
7898         * ch-lex.l:  Remove some obsolete stuff.
7899         * ch-convert.c (convert):  Move conversion from reference to
7900         to beginning of convert() so other conversion can work better.
7901         Also, remove bogus direct setting of TREE_TYPE.
7902
7903 Fri Sep 10 12:23:41 1993  Wilfried Moser  (fs_moser@cygnus.com)
7904
7905         * Makefile.in: Change installation of the chill script. gcc will
7906           be called always with the full path. That made problems when
7907           somebody was using chill but didn't have the installation
7908           directory in PATH.
7909         * ch-parse.y: Change parsing of WRITETEXT action.
7910         * ch-tree.h: Add some new prototypes according to the
7911           (partial) implementation of WRITETEXT.
7912         * ch-typeck.c: Add new function chill_varying_string_type_p. This
7913           functions checks a type for being CHAR(n) VARYING.
7914         * ch-decl.c (init_decl_processing): Add new built-in functions
7915           _writestring and _writeunixstd.
7916           Add call to  build_chill_io_list_type in ch-inout.c.
7917         * ch-inout.c (build_chill_writetext): Add some code there.
7918           Add new function build_chill_io_list_type.
7919           Add new static function chill_stdio_p. This function checks
7920           the text argument for being chill_stdin, chill_stdout or
7921           chill_stderr.
7922
7923 Fri Sep 17 22:02:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7924
7925         * ch-decl.c (push_modedef):  Fix TYPE_MAIN_VARIANT thinko.
7926
7927 Thu Sep 16 18:38:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7928
7929         * ch-decl.c (allocate_lang_decl):  Do nothing.
7930         * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7931         No longer used;  remove.
7932
7933         * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7934         (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7935         (make_chill_variants, layout_chill_variants):  Add (initial) part
7936         of support for multiple tags.
7937         * ch-decl.c (lookup_tag_fields):  New function.
7938         * ch-parse.y (stmt_count):  Not used; removed.
7939         * ch-parse.y (mode2):  Clear current_fieldlist before
7940         parsing STRUCT fields;  restore afterwards.
7941
7942         * ch-parse.y (push_action):  Moved to ch-actions.c.
7943
7944 Wed Sep 15 18:19:37 1993  Bill Cox  (bill@rtl.cygnus.com)
7945
7946         * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7947           constructor to a boolean.
7948
7949 Wed Sep 15 17:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7950
7951         * ch-decl.c (push_modedef): Enable novelty-setting code.
7952         * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7953         * ch-typeck.c (chill_similar): Add checking of singleton
7954           powerset against its base type.
7955
7956 Tue Sep 14 17:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7957
7958         * ch-actions.c (adjust_parm_or_field): Create a
7959           temporary for an non-referencable actual parameter
7960           passed to a LOC formal parameter.
7961           (chill_expand_assignment): Correct compatibility checking.
7962
7963         * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7964         * ch-parse.y (opsigdest): Only check for process name
7965           in pass 2, when we know.
7966         * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7967         * ch-typeck.c: Fix comment.
7968
7969 Mon Sep 13 17:33:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7970
7971         * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7972         decl_seen_p, processed_decls, allocated, nr_decls):  Removed
7973         no-longer-useful functions and variables that used to guard
7974         against writing a decl multiple times.  Since we now just
7975         go through the decl list linearly, that is no longer an issue.
7976         * ch-satisfy.c (safe_satisfy_decl):  Handle missing current_module.
7977
7978         * ch-decl.c (start_chill_function):  Clear DECL_ASSEMBLER_NAME.
7979         Don't make TREE_PUBLIC.  Don't generate rtl yet.
7980         * ch-decl.c (pop_module):  If a decl is granted, set TREE_PUBLIC,
7981         and its DECL_ASSEMBLER_NAME.
7982         * ch-decl.c (fix_identifier):  New function.
7983         * ch-grant.c (grant_one_decl):  Don't set TREE_PUBLIC.
7984         * ch-tree.h (struct module):  New field prefix_name.
7985         * ch-satisfy.c (safe_satisfy_decl):  If assembler_name isn't
7986         set, prefix it by the module name(s).
7987         * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7988         Call make_function_rtl if needed and !LOOKUP_ONLY.
7989         * ch-typeck.c (chill_similar):  Flesh out substantially.
7990         * ch-typeck.c (chill_compatible):  Re-structure.
7991
7992         * ch-actions.c (adjust_parm_or_field):  Use CH_COMPATIBLE
7993         instead of chill_comptypes to compare actual and formal.
7994
7995 Sun Sep 12 21:10:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7996
7997         * ch-parse.y (labellist):  Don't do anything if ignore_exprs.
7998
7999         * c-typeck.c (output_pending_init_elements): Handle
8000         !constructor_incremental case of filling in empty positions.
8001         (Patch by Jim Wilson.  CYGNUS LOCAL until we have approval.)
8002         * ch-decl.c (pop_module):  Don't grant a seized name.
8003         * ch-grant.c (decode_constant):  Support CALL_EXPR.
8004         * ch-tree.c (build_bitstring_type):  Don't try to fold non-constant
8005         size if pass==1 (since it may be an unsatisfied name).
8006
8007
8008 Sun Sep 12 18:06:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8009
8010         2-pass fixes for processes.  Partially done.
8011         * ch-actions.c (chill_expand_assignment): Add real
8012           novelty-checking sketch, $ifdef'd out for now.
8013         * ch-decl.c: Generally fix indentation.  Move tasking
8014           init code from init_decl_processing to ch-tasking.c.
8015           Delete ObjC-related cruft.  More accurate parameter name
8016           for shadow_record_fields.  Move debug_scope before
8017           its first call.
8018         * ch-expr.c (build_chill_function_call): Return if not
8019           pass 2.
8020         * ch-grant.c (print_proc_tail): Avoid trying to format
8021           a VOID return type, or using a NULL pointer.
8022           (decode_decl): Minor changes for PROCESS arg access.
8023         * ch-lang.c (lang_decode_option): Use -itu flag to
8024           enable 'pedantic' mode.
8025         * ch-lex.l (init_lex): Initialize compiler-directive
8026           variable trees.
8027           (name_type-signal): Disable the returning of SIGNAL and BUFFER
8028           name tokens.
8029         * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
8030           All uses renamed also.
8031           (end_function): Always poplevel, not just in pass 2.
8032           (quasi_pdef): Check for end-label matching.
8033           (quasi_formparlist): Write more clearly.
8034           (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
8035           guards.
8036           (rccase_label, sendaction): Use NAME, not SIGNALNAME
8037           or BUFFERNAME.
8038           (process): Handle like procedure.
8039           (mode): Add SIGNAL as a generic signal parameter.  This
8040           is a client-specific extension, so pedantic is checked.
8041         * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
8042         * ch-tree.h (CH_NOVELTY): Make it an lvalue.
8043         * ch-typeck.c: Fix comment.
8044
8045 Sun Sep 12 15:03:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8046
8047         * c-typeck.c (digest_init):  Compare types using comptypes
8048         instead of comparing pointers.  (Helps Chill front end.)
8049         * ch-expr.c (finish_chill_binary_op):
8050         * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
8051         ch-expr.c (finish_chill_binary_op):  For now, prefer IN_EXPR
8052         over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
8053         (incomplete support for variable fields, and possible bug in
8054         optimize_bit_field_compare).
8055         * ch-expr.c (finish_chill_binary_op):  Fix type-checking
8056         and appropriately coerce operands for IN_EXPR and comparsions.
8057         * expr.c (expand_expr, case ARRAY_REF):  Coerce lower bound (if
8058         non-zero) to sizetype before subtraction.
8059         * expr.c (expand_expr):  Remove Chills-specific calls to
8060         __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
8061
8062 Fri Sep 10 15:47:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8063
8064         * ch-tree.def (UNDEFINED_EXPR):  New kind of expression.
8065         * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
8066         ch-convert.c (convert):  Handle UNDEFINED_EXPR.
8067
8068         * ch-expr.c (build_char_array_expr):  Move CONCAT_EXPR support to ...
8069         * ch-expr.c (build_concat_expr):  ... here.
8070         Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
8071         Also, make result varying only if one of the operands are.
8072
8073         * ch-expr.c (build_chill_binary_op):  Move stuff from here to ...
8074         * ch-expr.c (finish_chill_binary_op):  ... here, as needed for
8075         proper 2-pass split.  Also, clean up and simplify heavily.
8076
8077         * ch-tree.h (enum ch_expr_class):  The 5 kinds of expression classes.
8078         * ch-typeck.c (classify_chill_expr):  New function:  Determine
8079         class of expression.
8080         * ch-typeck.c (chill_compatible_classes):  Re-structure; fix
8081         asymmetry bugs.
8082         * ch-tree.h (CH_CLASS_IS_XXX):  Re-define to use classify_chill_expr.
8083
8084         * ch-convert.c (maybe_turn_scalar_into_array):  Complain
8085         unless scalar is a char constant (and we want a string).
8086         * ch-convert.c (convert):  New code for converting to variable
8087         string/array.  Avoid type errors by padding (with an UNDFIEND_EXPR).
8088         * ch-typeck.c (chill_expand_tuple):  Don't do conversion to
8089         varying type here;  that is handled by convert now.
8090         * ch-decl.c (digest_constructor):  Moved to ...
8091         * ch-convert.c (digest_constructor):  ... here.
8092         * ch-decl.c (do_decl):  Simplify; just use convert for initializer.
8093         * ch-decl.c (chill_digest_init):  Merged into convert, and removed.
8094         * ch-decl.c (init_decl_processing):  Set constructor_no_implicit flag.
8095         * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
8096         Replace chill_digest_init by convert.
8097         * ch-actions.c (chill_expand_array_assignment):  Simplify; use convert.
8098         * ch-lex.l (build_chill_string):  Make string type be derived
8099         from integer, not sizetype, because upper bound can be -1.
8100
8101 Thu Sep  9 18:21:46 1993  Bill Cox  (bill@rtl.cygnus.com)
8102
8103         * ch-typeck.c (my_build_array_ref): Delete pedantic
8104           C-specific error message.
8105
8106 Thu Sep  9 17:44:20 1993  Jeffrey Wheat  (cassidy@eclipse.cygnus.com)
8107
8108         * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
8109
8110 Thu Sep  9 12:22:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8111
8112         * ch-typeck.c (build_chill_array_ref):  Remove redundant and
8113         broken call to my_build_array_ref.
8114
8115 Wed Sep  8 13:03:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8116
8117         * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
8118         Don't use store_init_value, since it calls digest_init instead
8119         of chill_digest_init.
8120         * ch-except.c (finish_handler_array):  Use build1 (ADDR_EXPR, ...)
8121         instead build_unary_op to avoid C-specific optimizations.
8122         * ch-typeck.c (my_build_array_ref):  Don't use default_conversion
8123         to convert array to pointer.
8124         * c-typeck.c (process_init_default):  New function, to support
8125         default values for array tuples in Chill.
8126         * c-typeck.c (default_conversion):  Don't convert array to pointer
8127         if compiling Chill.
8128         * ch-decl.c (digest_constructor):  New function;  used to be guts
8129         of chill_digest_init.  Now recursive, to handle nested tuples.
8130
8131         * ch-decl.c (chill_digest_init):  Handle struct labels.
8132         * ch-grant.c (get_tag_value):  Use decode_constant in general case.
8133         * ch-grant.c (decode_constant):  Add support for lots of missing
8134         binary and unary operators.
8135
8136 Wed Sep  8 10:11:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8137
8138         * ch-lang.c: Look for '-I' option for seize file path.
8139         * ch-lex.l: Fix comment about above option.
8140
8141 Wed Sep  8 00:37:32 1993  Per Bothner  (bothner@rtl.cygnus.com)
8142
8143         * ch-satisfy.c:  Move code to set (and restore) file-and-line
8144         from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
8145         alias decls that refer to real decls with errors.
8146         * ch-actions.c (lang_init):  Move to ch-lang.c.
8147         * ch-decl.c (init_decl_processing):  Move code to initialize
8148         file-and-line from here ...
8149         * ch-lang.c (lang_init): ... to here, to avoid clobbering.
8150
8151         * ch-decl.c (chill_digest_init):  Add support for SET_TYPE,
8152         and index values.
8153         * ch-typeck.c (chill_expand_typle):  Just call chill_digest_init.
8154         * c-typeck.c:  Fix various things that got broken
8155         in the latest merge.
8156
8157 Tue Sep  7 15:45:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8158
8159         * ch-decl.c (build_enumerator):  Handle a "unnamed set element"
8160         (obsolete feature) by generating a dummy name.
8161         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation with
8162         "correct" value of top-level (to get better debugging output).
8163         * ch-decl.c (bind_saved_names):  Allow a null DECL_NAME.
8164
8165 Tue Sep  7 15:48:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8166
8167         * ch-actions.c (chill_expand_return): Correct breakage
8168           due to recent fsf merge.
8169
8170 Tue Sep  7 11:16:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8171
8172         * .cvsignore: Add multilib.h.
8173         * ch-decl.c (chill_digest_init): New function.  Calls were
8174           changed, since it has fewer parameters than old digest_init.
8175         * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
8176           new init stuff.
8177           (elementlist): Delete unused code.
8178         * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
8179         * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
8180         * ch-tree.h: Delete digest_init prototype.
8181         * ch-typeck.c (digest_init): Much new code.
8182
8183 Tue Sep  7 12:06:28 1993  Bill Cox  (bill@rtl.cygnus.com)
8184
8185         * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
8186           files to their pre-init-change state.
8187
8188 Mon Sep  6 15:28:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8189
8190         Preliminary adaptation to rms' new initializer code.
8191         * ch-decl.c (do_decl): Call chill_digest_init, not
8192           digest_init, which rms made static.
8193         * ch-expr.c (chill_truthvalue_conversion): Delete C-
8194           specific code.
8195         * ch-loop.c (init_loop_counter): Indent for readability.
8196         * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
8197         * ch-tree.h: Prototype changes for new init code.
8198         * ch-typeck.c (chill_expand_tuple): Call new init code.
8199         * chill.texi: Add necessary '-f' prefix on options.
8200
8201 Wed Sep  1 13:21:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8202
8203         * ch-convert.c (build_array_type_for_scalar),
8204         ch-tasking.c (build_chill_receive_case_end):  Index type
8205         specification is now chain of types (not chain of TREE_LIST).
8206         * ch-satisfy.c (satisfy):  Don't try to satisfy the
8207         abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
8208         * ch-expr.c (build_chill_binary_op):  If pass 1, do NOT
8209         call finish_chill_binary_op.
8210         * ch-parse.y (arrayindex):  Simplify.
8211
8212 Tue Aug 31 14:57:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8213
8214         * ch-decl.c (print_lang_decl): Print weak-name status.
8215           (print_lang_identifier): Print signal_data as T or F.
8216         * ch-lex.l (convert_bitstring, convert_charliteral,
8217           convert_float, convert_number): Pass string directly to convert
8218           as a parameter.  Return token code consistently, return 0
8219           for error.
8220           (equal_number): Parse differently, allowing hex, binary
8221           and octal constants.
8222         * ch-parse.y (dowithaction, structured_variable): Only
8223           push/pop scopes once per DO WITH.
8224           (structured_variable_list): Check ignore_actions flag here.
8225         * gcc.c: Delete 'traditional' from string, add 'itu'
8226           as the standard flag's name.
8227
8228 Mon Aug 30 15:12:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8229
8230         * ch-typeck.c, ch-tree.h (build_chill_range_type):  Take 3
8231         parameters instead of 2 (explicit low and high bounds).
8232         * ch-parse.y (arrayindex):  Build range type from low:high.
8233         (rangesize, optrangesize):  Removed.
8234         (where appropriate):  Use new build_chill_range_type interface.
8235         * ch-grant.c:  Clean up writing of range and array types.
8236         * ch-satisfy.c (satisfy):  Don't ignore the return value of
8237         layout_chill_array_type. (It may be an error mark.)
8238         * ch-typeck.c (build_chill_array_type):  Simplify.
8239         * ch-typeck.c (layout_chill_array_type):  Clean up checks.
8240
8241 Fri Aug 27 12:55:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8242
8243         * ch-decl.c (decl_temp1):  Set DECL_ASSEMBLER_NAME.
8244         (push_chill_extern_function)  Don't set current_function_decl.
8245         * ch-parse.y (tupleelement):  Don't wrap index is a TREE_LIST
8246         (i.e. a range), don't wrap a PAREN_EXPR around it.
8247         * ch-grant.c (decode_constant):  For tuple CONSTRUCTORs,
8248         add support for ranges in purpose.
8249
8250 Wed Aug 25 16:58:13 1993  Bill Cox  (bill@rtl.cygnus.com)
8251
8252         * .cvsignore: Add g++.sum
8253         * ch-actions.c (chill_expand_result): Stop building a temp.
8254           Assign the expression directly into function's DECL_RESULT.
8255         * ch-decl.c: Add formfeeds.
8256           (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
8257           (push_chill_function_context): Delete C pedwarn message.
8258         * ch-expr.c: Move builtin functions together.
8259         * ch-parse.y (end_function): Delete unused code.
8260           Reformat %union for readability.  Delete _MAX and _MIN
8261           tokens.
8262
8263 Wed Aug 25 13:24:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8264
8265         * ch-actions.c (get_result_tmp_name): Delete unused function.
8266           (chill_expand_result, chill_expand_return): Rewrite for
8267           2-pass.
8268         * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
8269           chain field, so we can make a temp, evaluate a RESULT action's
8270           expression into it, and hang it on here.
8271         * ch-parse.y (end_function): Look for RESULT temps to emit.
8272           (assertaction): Indentation.
8273
8274 Wed Aug 25 08:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8275
8276         * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
8277           It wasn't used anyway.
8278
8279 Tue Aug 24 17:51:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8280
8281         * ch-actions.c (chill_expand_result, chill_expand_return):
8282           No need to make a temp for the value, just use DECL_RESULT.
8283
8284 Tue Aug 24 16:38:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8285
8286         * ch-tree.c (layout_powerset_type):  Remove redundant code.
8287         Generalize (in error message) to also handle bitstrings.
8288         * ch-tree.c (build_bitstring_type):  Remove all layout-like
8289         stuff, and defer that to layout_powerset_type.
8290         * ch-expr.c (chill_expand_expr):  For various SET_xxx_EXPRs,
8291         allocate stack temp for target using correct mode.
8292
8293 Tue Aug 24 10:27:19 1993  Bill Cox  (bill@rtl.cygnus.com)
8294
8295         * ch-actions.c, ch-decl.c, ch-except.c,
8296           ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
8297           ch-typeck.c: Change build_modify_expr calls to
8298           build_CHILL_modify_expr calls.
8299         * ch-expr.c (build_chill_modify_expr): Adapted from
8300           build_modify_expr in c-typeck.c.
8301
8302 Mon Aug 23 16:48:39 1993  Bill Cox  (bill@rtl.cygnus.com)
8303
8304         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
8305           ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
8306           ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
8307           Major re-allocation of functions to files.
8308
8309 Mon Aug 23 12:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
8310
8311         Thanks for the tip, Jim.
8312         * Makefile.in: Add dependency lines for ch-except.o and
8313           ch-satisfy.o.  Correct dependency lines for ch-convert.o,
8314           ch-expr.o, ch-inout.o, and ch-loop.o.
8315           (chill, install-common): Add clean-up commands.
8316
8317 Sat Aug 21 17:11:26 1993  Bill Cox  (bill@rtl.cygnus.com)
8318
8319         * ch-decl.c (get_type_precision): New function.
8320           (layout_enum): Call it.
8321         * ch-tree.c (layout_powerset_type, build_bitstring_type):
8322           Call it.
8323
8324 Sat Aug 21 13:59:40 1993  Bill Cox  (bill@rtl.cygnus.com)
8325
8326         * ch-decl.c (init_decl_processing): Define setbitpowerset
8327           runtime function.
8328         * ch-expr.c (chill_expand_assignment): Call setbitpowerset
8329           to set a bit.
8330         * ch-parse.y: Indentation.
8331
8332 Fri Aug 20 17:29:56 1993  Bill Cox  (bill@rtl.cygnus.com)
8333
8334         * ch-parse.y: Delete unused %type declaration.
8335         * ch-tasking.c (build_signal_struct): Delete return, since
8336           function returns void.
8337         * ch-typeck.c: Indent to standard.
8338         * stor-layout.c: Fix comment.
8339         * toplev.c: Change -L option ti -I.
8340         * varasm.c (emit_set_data): Align set constant to word
8341           boundary.
8342
8343 Fri Aug 20 08:20:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8344
8345         * ch-actions.c: Fix indentation, comments.
8346         * ch-decl.c (push_chill_extern_signal): Use same interface
8347           as build_signal_struct.
8348         * ch-parse.y (quasi_signaldef): Move build_signal_decl
8349           here to sigdef.  Add quasi_signal to distinguish contexts
8350           where sigdef gets used.
8351         * ch-tasking.c: Replace make_signal_struct and build_signal_decl
8352           with build_signal_decl, which doesn't loop through a
8353           TREE_LIST.
8354         * ch-tree.h: Fix protos.
8355
8356 Wed Aug 18 17:36:53 1993  Bill Cox  (bill@cygnus.com)
8357
8358         * ch-actions.c: Fix comments.
8359         * ch-decl.c (push_modedefs): Return the new decl.
8360           (shadow_record_fields): Move pushlevel (0) calls into
8361           the grammar, so they'll get done in both passes.
8362         * ch-parse.y (dowithaction): Always compute & save # of
8363           'with' variables seen (both passes), and always pop that
8364           number of levels.
8365           (structured_variable_list): Always chain variables into a list.
8366           (structured_variable): Put pushlevel here (from shadow_record_fields).
8367         * ch-tasking.c: Indentation fixes.
8368         * ch-tree.h: Change proto.
8369         * chill.texi: Add Blue Book section numbers to unimplemented
8370           features list.
8371
8372 Wed Aug 18 15:48:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8373
8374         * ch-actions.c (build_generalized_call):  New function.
8375         Classifies semantically (if pass 2) this that look like calls.
8376         * ch-parse.y (call):  Invoke build_generalized_call.
8377         * ch-parse.y (sigdef):  Use defining_occurrence instead of NAME.
8378         * ch-parse.y (opt_untyped_exprlist):  New non-terminal.
8379         * ch-satisfy.c (satisfy):  Handle CALL_EXPR.
8380
8381 Tue Aug 17 16:36:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8382
8383         * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
8384
8385 Mon Aug 16 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8386
8387         * ch-tree.h (TUPLE_NAMED_FIELD):  New macro.
8388         * ch-parse.y (labelled structure tupleelement):
8389         Set TUPLE_NAMED_FIELD flag.
8390         * ch-grant.c (decode_constant):  Check for TUPLE_NAMED_FLAG.
8391         * ch-satisfy.c (satisfy):  Check for TUPLE_NAMED_FLAG.
8392         Do satisfy the elements of a CONSTRUCTOR even if call
8393         chill_expand_tuple isn't correct.
8394         * ch-satisfy.c (satisfy):  Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
8395         * ch-parse.y (label_spec):  Defer any semantic checking until ...
8396         * ch-decl.c (layout_chill_variants):  ... here.
8397         Also make sure to call layout_type on the union type.
8398         * ch-decl.c (bind_saved_names):  For weak names, allocate an
8399         ALIAS_DECL, rather than a CONST_DECL.
8400
8401         Add support for implied (weakly visible) names.
8402         * ch-tree.h (DECL_WEAK_NAME):  New macro.
8403         * ch-satisfy.c (satisfy of IDENTIFIER_NODE):  Don't complain
8404         if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
8405         * ch-decl.c (proclaim_name):  Handle DECL_WEAK_NAME appropriately.
8406         * ch-decl.c (concat_lists, find_implied_types):  New functions.
8407         * ch-decl.c (bind_saved_names):  Search for implied names.
8408         * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
8409         * ch-lang.c (layout_chill_struct_type):  Don't use
8410         C_DECL_VARIABLE_SIZE.
8411
8412 Mon Aug 16 16:10:43 1993  Bill Cox  (bill@rtl.cygnus.com)
8413
8414         * ch-actions.c: Delete extra space in error message.
8415         * ch-parse.y: Fix comment.
8416         * expr.c (store_constructor): Avoid passing NULL to convert,
8417           and getting back an error_mark_node and trying to process
8418           *that* node.
8419
8420 Mon Aug 16 14:41:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8421
8422         * ch-decl.c:  Add more overview comments.
8423         * ch-decl.c (proclaim_decl):  New function.
8424         * ch-decl.c (temp_pushdecl, struct shadowing):  Removed.
8425         * ch-decl.c (bind_saved_names):  Remove blevel parameter;
8426         use current_scope global instead.  Do some other cleanups.
8427         * ch-decl.c (save_expr_under_name):  Create an ALIAS_DECL.
8428         * ch-decl.c (pushdecllist, save_expr_under_name):  Use proclaim_decl.
8429         * ch-satisfy.c (satisfy, safe_satisfy_decl):  Be more careful
8430         to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
8431
8432         * chill.texi:  Start collecting Chill documentation here.
8433         * ch-parse.y (mode):  Ignore READ specifier, for now.
8434
8435 Mon Aug 16 11:13:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8436
8437         * ch-actions.c (chill_comptypes): Correct handling reference
8438           of type 1.
8439           (build_chill_length, build_chill_num,
8440            build_chill_sizeof): Convert result to CHILL integer.
8441           (build_chill_function_call): Clean up INOUT and OUT
8442           parameter handling.
8443         * ch-decl.c (build_chill_function_type): Handle INOUT and
8444           OUT parameters.
8445         * ch-loop.c: Fix up comments.
8446         * ch-parse.y: Fix up comments.
8447
8448 Sun Aug 15 15:06:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8449
8450         * ch-actions.c (build_chill_lower, build_chill_upper):
8451           Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
8452         * ch-decl.c (save_expr_under_name): New function to save
8453           addressing expressions for DO WITH and DO FOR handling.
8454           (handle_one_level): Call new function.
8455         * ch-loop.c (init_loop_counter): Call it here, too.
8456           Check lp->user_var before passing it to lookup_name.
8457           (high_domain_value, low_domain_value): Correct call
8458           to build_chill_upper and build_chill_lower.
8459           (begin_chill_loop, end_chill_loop): Move pushlevel,
8460           poplevel up into the grammar, so they're done in both
8461           passes.
8462         * ch-parse.y (doaction): Unconditionally make a scope
8463           for a loop, pop it later.
8464           (controlpart, iteration): Save return from
8465           build_chill_iterator.
8466         * expr.c: Readability changes.
8467
8468 Sat Aug 14 19:42:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8469
8470         * ch-expr.c (chill_expand_case_expr): Complete rewrite
8471           for 2-pass.  About 1/2 the size, too.
8472         * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
8473           This assures that a label preceding a module's first action
8474           is enclosed in the module-level function that's generated.
8475
8476 Sat Aug 14 14:56:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8477
8478         Re-implement how EXIT is done.
8479         'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
8480         'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
8481         Hence we no longer need any support for EXIT in stmt.c.
8482         * stmt.c (stamp_nesting_label, expand_exit_labelled):  Removed.
8483         * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
8484         * ch-tree.c, ch-tree.h (munge_exit_label): New function.
8485         * ch-parse.y:  Re-write bracked actions to support EXIT new way.
8486         * ch-decl.c, ch-loop.c:  Remove calls to stamp_nesting_level.
8487         * ch-parse.y:  Replace SC by new token semi_colon, which
8488         resets the 'label' global.  Also make sure that label gets
8489         reset whenever we might start a new action statement.
8490         * ch-parse.y (possibly_define_exit_label):  New function.
8491
8492         * ch-except.c (chill_start_on):  Wrap an ADDR_EXPR round the jmpbuf.
8493         * ch-grant.c (chill_finish_compile):  Make sure
8494         get_file_function_name is only called once.
8495         * ch-expr.c (chill_expand_array_assignment):  Use store_expr,
8496         instead of incorrectly calling emit_block_move.
8497
8498         * ch-parse.y (procedure):  Call push_chill_function_context
8499         in *both* passes (if nested).
8500         * ch-parse.y (primval):  Call get_type_of before chill_expand_type.
8501         * ch-parse.y (tupleelement):  Only build PAREN_EXPR during pass 1.
8502
8503 Fri Aug 13 16:36:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8504
8505         Re-implement GRANT and SEIZE, to support prefixes and prefix
8506         rename.  All of the Blue Book semantics for these should
8507         now work (except FORBID).
8508         * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
8509         DECL_POSTFIX, DECL_POSTFIX_ALL):  New ALIAS_DECL layout and macros.
8510         * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
8511         decl_check_rename):  New functions.
8512         * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
8513         * ch-satisfy.c (satisfy_decl):  Handle SYN initialized with tuple.
8514         * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
8515         * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8516         * ch-grant.c (decode_prefix_rename):  New function.
8517         Use to print out GRANT and SEIZE statements.
8518         * ch-decl.c (ALL_POSTFIX):  New global variable.
8519         * ch-decl.c (bind_saved_names, pop_module):  Change to use new
8520         ALIAS_DECL layout, and support general prefix rename and ALL.
8521         * ch-decl.c (various places):  Don't barf if DECL_ANME is NULL.
8522         * ch-parse.y (build_prefix_clause):  New function (handle PREFIXED).
8523         * ch-parse.y (optprogendname, optname):  Rename to opt_end_label.
8524         * ch-parse.y:  Add support for compound name strings, but defer
8525         using all over teh place, due to parser ambiguities.
8526         However, do use defining_occurrence where appropriate.
8527         * ch-parse.y:  Re-write syntax and semantics of GRANT and SEIZE
8528         statements to support Blue Book functionality.  Neato!
8529
8530 Fri Aug 13 17:10:52 1993  Bill Cox  (bill@rtl.cygnus.com)
8531
8532         * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8533         * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8534           (decl_temp): Deleted.
8535         * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8536         * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8537           readability, add comment.
8538         * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8539         * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8540
8541 Fri Aug 13 13:39:59 1993  Bill Cox  (bill@rtl.cygnus.com)
8542
8543         * ch-decl.c (decl_temp): Break the chain of decls.  This
8544           prevents an infinite loop.
8545         * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8546         * ch-lex.l (equal_number): Check passes in looking up a
8547           symbolic value.
8548         * ch-parse.y: Fix comments.
8549         * ch-tasking.c (tasking_setup): Only act in pass 2.
8550           (make_signal_struct, build_signal_decl,
8551            build_chill_receive_case_label): Don't go indirect
8552            thru NULL decl pointer.
8553
8554 Thu Aug 12 11:02:34 1993  Bill Cox  (bill@rtl.cygnus.com)
8555
8556         * ch-actions.c (route_to_predefined_function): New function called
8557           from build_chill_function_call, to call the proper predefined routine.
8558           (build_chill_card, build_chill_length, build_chill_lower,
8559           build_chill_max, build_chill_min, build_chill_num,
8560           build_chill_pred, build_chill_sizeof, build_chill_succ,
8561           build_chill_upper): Rewritten to run only in pass 2.
8562         * ch-decl.c (init_decl_processing): Build predefined functions for card,
8563           length, lower, max, min, num, pred, sizeof, succ and upper.  Delete
8564           unused builtin_function calls.
8565         * ch-grant.c (chill_finish_module_code): Save current_function_decl
8566           before calling finish_chill_function, and use that to build the
8567           initializer structure.
8568         * ch-lex.l: Remove following tokens, since they're now just predefined,
8569           not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8570           and upper.
8571         * ch-loop.c: Readability, indentation changes.
8572         * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8573           sizeof, succ and upper.  Delete special rules for calls to these.
8574           Delete mode_location and upper_lower_arg non-terminals.
8575           (pmodearg): Eliminate convolutions.
8576           (call): Add rule for typename parameter.
8577         * ch-tasking.c: Readability changes.
8578         * ch-tree.h: Add prototypes.
8579
8580 Thu Aug 12 00:38:17 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8581
8582         * ch-decl.c (save_decl):  Set DECL_CONTEXT (decl).
8583         * ch-grant.c (chill_finish_module_code):  Call
8584         finish_chill_function with nested==0.
8585         * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y:  Rename
8586         {push,pop}_c_function_context to {push,pop}_chill_function_context.
8587         * ch-parse.y (end_function): If nested, call
8588         pop_chill_function_context regardless of which pass we're in.
8589
8590 Wed Aug 11 02:34:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8591
8592         * ch-actions.c (finish_chill_binary_op):  Handle error marks.
8593         * ch-decl.c (do_decl):  Laying out decl and generating rtl
8594         is too late to do here (if there are forward references), so ...
8595         * ch-satisfy.c (satify_decl):  ... do it here instead.
8596         * ch-decl.c (finish_enum):  Fixup types of enum decls now.
8597         * ch-satisfy.c (safe_satisfy_decl):  New routine.  Supports
8598         checking illegal cyclic definitions.
8599         All *satisfy* routines now take a 'chain' parameter (instead
8600         of 'lookup_only') used for checking cycles.
8601         * ch-satisfy.c (satisfy_decl):  Return DECL_INITIAL if appropriate.
8602         * ch-satisfy.c (satisfy):  Lots of little fixes.
8603
8604         * ch-lex.l (init_lex):  Make all the standard ridpointers be
8605         lowercase, so that lookup_name on lower-cased user input
8606         will find the standard types.
8607         * ch-lex.l:  Remove all the standard types, in effect
8608         converting them from reservered anmes to predefined names.
8609         * ch-lex.l, ch-parse.y:  Remove PREDEF_MODEDECL - no longer used.
8610         * ch-grant.c (gfile):  Rename to grant_file_name.
8611         * ch-lex.l (yywrap):  Don't try to seize current grant_file_name.
8612
8613         * initname.c:  Removed. get_file_function_name is now in tree.c
8614         * Makefile.in (CHILL_OBJS): Remove initname.o
8615
8616         * ch-decl.c (do_decl):  New function, based on loop body of do_decls,
8617         * ch-decl.c (do_decls):  Just call do_decl.
8618         * ch-grant.c (chill_finish_module_code):  Minor cleasnups.
8619         Use new do_decl routine.  Clear init_entry_decl's source line.
8620         * ch-grant.c (print_proc_tail):  Fix for new param list structure.
8621         * ch-parse.y (whatpdef):  Removed.  Cleaned up procedure
8622         and process, allowing proper end-label-checking.
8623         * ch-typeck.c (build_chill_cast):  Remove decl->type conversion.
8624
8625 Wed Aug 11 00:33:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8626
8627         * ch-decl.c (layout_enum):  Don't call rest_of_type_compilation.
8628
8629         * ch-lex.l (RETURN_PREDEF):  Don't call lookup_name.
8630         * ch-expr.c (build_chill_indirect_ref):  Call get_type_of.
8631         * ch-parse.y (call):  Call get_type_of before build_chill_cast.
8632
8633 Tue Aug 10 21:33:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8634
8635         *  ch-actions.c (build_char_array_expr):  If a concat operand is
8636         a constant char, convert it to a STRING_CST.
8637         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation
8638         with toplev=0.
8639         * ch-typeck.c (build_chill_cast):  Allow type to be TYPE_DECL.
8640
8641         * ch-parse.y (actionlabel):  Call define_label in both passes.
8642         * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8643         New functions, using lookup_name to find LABEL_DECLs.
8644         * ch-parse.y (GOTO, EXIT):  Use above new functions.
8645         * ch-tasking.c (struct rc_state_type *current_rc_state):
8646         Use to store state for the current receive case statement.
8647         (build_chill_receive_case_start, build_chill_receive_case_end):
8648         Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8649         * ch-decl.c:  Remove all stuff dealing with specific label scopes,
8650         including functions push_label_level, pop_label_level.
8651         * ch-decl.c (define_label):  Re-write for 2-pass.
8652         * ch_tree.h (lang_identifier):  Removed label_value.
8653         * ch-tree.h (IDENTIFIER_LABEL_VALUE):  Removed.
8654
8655         * ch-parse.y (modename):  Changed to yield identifier, not type.
8656         This allows following changes, which work better for 2-pass:
8657         (location):  primval ARROW optmodename -> primval ARROW optname.
8658         (primval):  Tuple can now be prefixed by unsatisfied name.
8659
8660         * ch-actions.c (chill_grant_only):  Renamed to grant_only_flag.
8661         * ch-lex.l (yywrap):  Don't read seizefiles if grant_only_flag.
8662         * ch-decl.c (switch_to_pass_2):  Exit if grant_only_flag,
8663
8664         * ch-satisfy.c (satisfy):  Support CONSTRUCTOR, REFERENCE_TYPE.
8665         * ch-satisfy.c (satisfy_decl, satisfy):  Kludge around
8666         to a TYPE_DECL can be simplified to its type.
8667         * ch-expr.c (build_chill_indirect_ref):  New function.
8668         * ch-lex.l (prepare_paren_colon):  Make kludge even uglier,
8669         since the left paran might already have been seen.
8670         * ch-lang.c (make_chill_pointer_type):  Allow parameter
8671         to select pointer or reference type.
8672         (build_chill_reference_type):  New function.
8673         Either function:  Be more careful (in case arg is identifier).
8674         * ch-except.c (initialize_exceptions):  Make
8675         exception_stack_decl be public.
8676         * ch-actions.c (build_char_array_expr):   Can only
8677         constant fold if operands are STRING_CST.
8678         * ch-grant.c (raw_decode_mode):  Allow TYPE_DECL.
8679         (chill_finish_compile:  Set TREE_PUBLIC of init function to 1.
8680
8681 Tue Aug 10 17:55:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8682
8683         * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8684         * ch-decl.c: Fix comment.
8685         * ch-parse.y (pmodearg): Build tree_list in all cases.
8686         * varasm.c (assemble_tasssking_entry): Delete unused code.
8687
8688 Tue Aug 10 13:58:21 1993  Bill Cox  (bill@rtl.cygnus.com)
8689
8690         * ch-actions.c (build_char_array_expr): save/restore
8691           a tree's constant status.
8692           (build_chill_binary_op): Don't convert an expression
8693           if the type we're converting to is NULL.
8694         * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8695           Call it from convert, and from ..
8696         * ch-expr.c (chill_expand_assignment): call new function.
8697           Move convert code earlier, too.
8698         * ch-decl.c (lookup_name): Delete bogus error message.
8699         * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8700           Add protos.
8701         * ch-typeck.c (valid_array_index): Comment out some strange code
8702           which now seg faults.
8703           (chill_expand_tuple): Re-enable prepending of VARYING
8704           length to a tuple.
8705           (chill_similar): Return FALSE if either mode is NULL_TREE.
8706
8707 Tue Aug 10 07:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
8708
8709         * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8710           Add commented-out calls to pushtag, in case we decide later
8711           to fill in TYPE_STUB_DECL for dbxout.
8712         * ch-lang.c (build_chill_struct_type): Add commented-out
8713           calls to pushtag, in case we decide later to fill in
8714           TYPE_STUB_DECL for dbxout.
8715
8716 Mon Aug  9 23:09:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8717
8718         * ch-decl.c (chill_seize):  Don't get_next_next in pass 2.
8719         * ch-decl.c (get_next_decl):  Skip ALIAS_DECLs.
8720         * ch-decl.c (bind_saved_names):  Handle SEIZE ALL.
8721         * ch-lang.c (layout_chill_struct_type):  Don't call
8722         rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8723         * initname.c (get_file_function_name):  Get new file and
8724         function for language-independent constructor name generation.
8725         * ch-grant.c (get_init_function_id):  Removed.
8726         * ch-grant.c (chill_finish_compile):  Call get_file_function_name
8727         instead of get_init_function_id.
8728
8729 Mon Aug  9 18:33:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8730
8731         * ch-decl.c: Formfeeds and comments.
8732         * ch-parse.y (quasi_formpar): Treat just like real formpar.
8733           Eliminate restriction on single name.
8734           (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8735
8736 Mon Aug  9 17:21:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8737
8738         * ch-lex.h (enum rid), ch-lex.l (init_lex):  Added RID_ALL.
8739         * ch-lang.c (build_chill_pointer_type):  Layout the pointer type,
8740         if the pointee is laid out, even if pass==1.
8741         * ch-parse.y:  Set ignore_exprs=(pass=2) for entire spec module.
8742
8743 Mon Aug  9 15:44:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8744
8745         This version compiles the 5-line program.  Thanks, Per!
8746         * ch-decl.c (print_lang_decl, print_lang_identifier):
8747           Add appropriate calls to indent_to().  Rename reverse_scopes
8748           to switch_to_pass_2, and wait to set pass = 2 until
8749           here.
8750         * ch-grant.c (chill_finish_module_code): Set module_init_list
8751           non-NULL in pass 1;  in pass2, chain on the module_init
8752           structure's decl.
8753           (chill_finish_compile): Clear module_init_list to NULL.
8754         * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8755           Rename reverse_scopes to switch_to_pass_2, delete setting
8756           of pass = 2.
8757         * ch-tree.h: Rename reverse_scopes proto.
8758
8759 Mon Aug  9 13:21:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8760
8761         * ch-decl.c (build_enumerator):  If name is NULL,
8762         don't call save_decl or get_next_decl.
8763         * ch-decl.c (layout_enum):  Fix calculation of next value.
8764         * ch-grant.c (print_enumeral):  Re-do for new 2-pass scheme.
8765         * ch-grant.c (decode_constant):  Better CONSTRUCTOR support.
8766
8767 Mon Aug  9 11:59:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8768
8769         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8770           ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8771           Lots of new prototypes.
8772
8773 Mon Aug  9 01:00:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8774
8775         * ch-lex.h:  Remove unused RID_'s.  Make sure RID_MAX is last.
8776         * ch-decl.c (init_decl_processing):  Moved ridpointers
8777         initialization to init_lex().  Use them consistently.
8778         * ch-lex.l (RETURN_PREDEF):  New macro.  Uses ridpointers
8779         for all preferedined types.
8780         * ch-lex.l (init_lex):  Upper case all RIDs, so grantfiles
8781         (and error messages?) will use uppercase.
8782         * ch-decl.c (build_chill_enumerator):  Merged into build_enumerator.
8783         * ch-lang.c (finish_chill_enum):  Merged into ...
8784         * ch-decl.c (finish_enum): .... this function.
8785         * ch-decl.c (layout_enum):  New function.  Does all the pass-2
8786         stuff for enumerations.
8787         * ch-decl.c (finish_enum, start_enum):  Only trivial pass-1 stuff.
8788         * ch-satisfy.c (satisfy):  Support ENUMERAL_TYPE.  Improve ranges.
8789         * ch-parse.y:  Check ignore_exprs instead of ignore_decls when
8790         parsing and building types.
8791
8792 Sun Aug  8 16:26:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8793
8794         * ch-lex.h:  Add some missing RID_'s.
8795         * ch-decl.c (init_decl_processing):
8796
8797 Sun Aug  8 15:32:54 1993  Bill Cox  (bill@rtl.cygnus.com)
8798
8799         * ch-grant.c (module_has_actions): Delete this and all
8800           references.  It was a botch.
8801           (chill_finish_module_code): Move finish_chill_function_call inside
8802           the test whether actions were found at module level.
8803           Use current_function_name in the initializer build,
8804           and init_entry_id in the module_list setup.
8805           (chill_finish_compile): Call lookup_name to get the
8806           decl from a module_init_list entry.
8807         * ch-parse.y: Revert module_has_actions additions.
8808         * ch-satisfy.c (satisfy): After satisfying the type  referenced
8809           by a pointer_type, call layout type for the pointer.
8810         * ch-tasking.c (tasking_registry): Only active in pass 2.
8811         * ch-typeck.c: Call build_chill_pointer_type everywhere.
8812
8813 Sun Aug  8 13:13:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8814
8815         * ch-tree.def (PAREN_EXPR):  New unary op:  '(' EXPR ')'.
8816         * ch-parse.y (primval):  If pass 1, generate PAREN_EXRR.
8817         * ch-satisfy.c (satisfy):  Reduce PAREN_EXPR to its operand.
8818         * ch-grant.c (decode_const):  Handle PAREN_EXPR.
8819         * ch-decl.c (pop_module):  Fix think.  Inprove error message.
8820
8821 Sun Aug  8 10:31:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8822
8823         Generally, replace 'function' with 'procedure'
8824         and 'type' with 'mode' in error/warning messages.
8825         * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8826         * ch-decl.c: See Generally.
8827           (init_decl_processing): Call build_tasking_enum from here.
8828           Now, it doesn't need a flag to do its work only once.
8829           Also, build the TaskingStruct decl here.
8830         * ch-grant.c: Remove references to `current_grant_file';
8831           there's now only one.  See Generally.  Do gcc -Wall cleanup.
8832         * ch-lex.l: Remove references to `current_grant_file'
8833           and delete USE_GRANT_FILE token.
8834         * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8835         * ch-tasking.c (tasking_setup): Move TaskingStruct build
8836           to init_decl_procesing.  Delete build_tasking_enum calls.
8837         * ch-tree.c: See Generally.
8838         * ch-tree.h: Add proto for build_tasking_struct.
8839
8840 Sun Aug  8 08:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8841
8842         * ch-decl.c: Make unnamed_module_number static, reset it to zero
8843           before pass 2, so same module names get generated in both passes.
8844           (push_module): Return user name or generated name.
8845           (init_decl_processing): Build __tmp_initializer_type.
8846           Code moved from chill_finish_module_code.
8847         * ch-grant.c: New flag module_has_actions.  Set TRUE by push_actions,
8848           used, reset by chill_finish_module_code.    Replaces test of
8849           module_function_name.  Shuffled finish-up code to end of module.
8850           (chill_finish_module_code): Use global_bindings_p to determine
8851           'nested' parameter for finish_chill_function.  Use new
8852           module_has_actions flag to trigger generation of module_init list
8853           entry.  We now can handle not only multiple modules per file,
8854           but modules nested inside functions (I think).
8855         * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8856         * ch-parse.y (push_actions): Set module_has_actions flag.
8857           (modulion, spec_module): Save possibly-generated module name
8858           returned by push_module.
8859         * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8860           case for POINTER_TYPE.
8861         * ch-tasking.c: Replace build_pointer_type calls with
8862           build_chill_pointer_type calls.
8863         * ch-tree.h: Fix, add prototypes.
8864
8865 Sat Aug  7 17:32:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8866
8867         * ch-parse.y:  Remove many useless tests for ignore_decls.
8868         * ch-parse.y:  Remove obsolete support for _EXTERN and _INIT.
8869         * ch-parse.y:  Reset ignore_exprs while parsing declarations,
8870         but handle initializers appropriately.
8871         * ch-grant.c (decode_constant):  Update (for 2-pass) support
8872         for CONSTRUCTOR and SET_TYPE.
8873         * ch-grant.c (chill_initializer_name):  Renamed to
8874         module_function_name.
8875         * ch-grant.c (function_generated):  Removed;
8876         use module_function_name != NULL instead.
8877         * ch-tree.h, ch-parse.y:  Removed unused current_locnamelist.
8878         * ch-decl.c (push_modedef):  Simplify to take just one mode.
8879         * ch-tasking.c (make_process_struct, make_signal_struct):
8880         Change calls to push_modedef correspondingly.
8881         * ch-tree.c (build_powerset_type):  Move the stuff that's
8882         suitable for pass 1 into new function make_powerset_type,
8883         and that for pass 2 into new function layout_powerset_type.
8884         * ch-lang.c:  Move pass-1 stuff from build_chill_pointer_type
8885         into new function make_chill_pointer_type, and split
8886         build_chill_struct_type into make_chill_struct_type
8887         and layout_chill_struct_type.
8888         * ch-decl.c (grok_chill_variantdefs):  Similarly split up
8889         into make_chill_variants and layout_chill_variants.
8890         * ch-satisfy.c (satisfy):  Add support for SET_TYPE, and UNION_TYPE.
8891         Call layout_chill_struct_type for RECORD_TYPE.
8892
8893 Sat Aug  7 09:59:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8894
8895         Fixup previous check-in.
8896         * ch-decl.c: Restore unnamed_module_number, which *was*
8897           used after all.
8898         * ch-grant.c (get_init_function_id): Return type s.b. tree.
8899
8900 Sat Aug  7 09:28:17 1993  Bill Cox  (bill@rtl.cygnus.com)
8901
8902         * ch-decl.c (print_lang_decl, print_lang_type): Add
8903           correct parameter list.  Add print statements for
8904           nesting_level, signal_dest, buffer_size, and the
8905           signal_data flag.
8906           (decl_temp, decl_temp1): Delete unused code.
8907           (init_decl_processing): Call build_instance_type and
8908           build_tasking_type in both passes.
8909           Generally change current_scope comparisons against
8910           global_scope to global_biidings_p calls.
8911         * ch-except.c (push_handler): Add space before parameter paren.
8912         * ch-grant.c (chill_start_module, chill_finish_module,
8913           chill_finish_compile): Complete re-write for 2-pass and
8914           multiple modules per source file.
8915         * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8916         * ch-tasking.c: Diffused small adaptations to 2-pass.
8917         * ch-tree.h (print_lang_decl, print_lang_type): Correct
8918           the prototypes.
8919           (chill_finish_module_code): Add module name parameter.
8920         * ch-typeck.c: Fix comments, add whitespace.
8921
8922 Fri Aug  6 12:17:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8923
8924         * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8925         way I allocated the shadow_list on an obstack was too fragile,
8926         so just use xmalloc/free instead.
8927
8928 Fri Aug  6 08:31:49 1993  Bill Cox  (bill@rtl.cygnus.com)
8929
8930         * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8931           TYPE_MAX_VALUE for vanilla integer type.  Only need
8932           to satisfy TREE_TYPE for integer range type.
8933
8934 Fri Aug  6 00:53:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8935
8936         * ch-lang.c (build_chill_range_type):  Split up into two new
8937         functions (make_chill_range_type, layout_chill_range_type);
8938         only former part is done in pass 1.
8939         * ch-lang.c (build_chill_array_type):  Split up in the same
8940         way (yielding make_chill_array_type, layout_chill_array_type).
8941         * ch-satisfy.c (satisfy):  Handle array and range types.
8942         * ch-tree.h (TYPE_RANGE_PARENT):  Removed.  Not used.
8943         * ch-parse.y (mode2):  Handle optional rangesize.
8944
8945 Thu Aug  5 15:13:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8946
8947         * ch-grant.c (print_an_int):  Re-enable (but don't search for SYN).
8948         * ch-grant.c (raw_decode_mode):  Support printing
8949         of an IDENTIFIER_NODE (unresolved type name).
8950         * ch-grant.c (decode_constant):  Support printing of an unresolved
8951         IDENTIFIER_NODE, as well as some kinds of binary operations.
8952         * ch-grant.c (grant_one_decl):  Don't call globalize_decl.
8953
8954         * ch-grant.c (decode_decl):  Add support for ALIAS_DECLs
8955         (from SEIZEs and GRANTs).
8956         * ch-grant.c:  Remove support for multiple grantfiles.
8957         * ch-grant.c, ch-parse.y:  Removed grant_count, for now at least.
8958         * ch-lex.h (in_seizefile):  Moved to ch-tree.h.
8959         * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c:  Removed.
8960         * ch-tree.h (CH_DECL_GRANTED): Added.
8961         * ch-actions.c (build_chill_exception_decl):  Use
8962         IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8963         * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8964         Change to accept list of remember_decls and granted_decls.
8965
8966 Thu Aug  5 11:58:21 1993  Stan Shebs  (shebs@rtl.cygnus.com)
8967
8968         * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8969
8970 Thu Aug  5 10:03:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8971
8972         * ch-decl.c (init_decl_processing): Only build types
8973           in pass 2, since dbxout machinery is only ready for
8974           output then.
8975         * ch-grant.c (chill_finish_module_code): Do most of the
8976           work in pass 2.
8977
8978 Thu Aug  5 06:54:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8979
8980         * ch-parse.y (receivecaseaction): Pass label-group
8981           numbers around.
8982         * ch-tasking.c (build_chill_receive_case_start):
8983           Generate unique labels for each case, pass back
8984           the label-group's number.
8985           (build_chill_receive_case_end): Accept label-group
8986           number from parser, use it to build labels
8987         * ch-tree.h: Change prototypes.
8988
8989 Wed Aug  4 13:21:13 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8990
8991         * ch-decl.c (decl_temp1):  Call finish_decl().
8992
8993         * ch-grant.c (chill_start_module_code):  Don't call
8994         push_c_function_context - not needed since we're not nested.
8995         * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8996         with nested=0, not 1 (twice).
8997         * ch-grant.c (chill_finish_module_code): Clear function_generated.
8998
8999 Tue Aug  3 20:06:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9000
9001         * ch-decl.c (push_chill_extern_function):  Set TREE_PUBLIC.
9002
9003 Tue Aug  3 19:08:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9004
9005         * ch-actions.c (build_chill_function_call): Handle parameter
9006           attributes better - LOC still not handled.
9007         * ch-tree.def: Amplify comment.
9008
9009 Tue Aug  3 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9010
9011         * ch-lex.l (handle_use_seizefile_directive):  Update
9012         next_file_to_seize correctly.
9013         * ch-actions.c (build_chill_abs):  Create an ABS_EXPR, not an rts_call.
9014
9015 Tue Aug  3 14:03:50 1993  Bill Cox  (bill@rtl.cygnus.com)
9016
9017         First Aid, not real long-term fixes...
9018         * ch-decl.c (pop_module, lookup_name_for_seizing): Check
9019           current_module pointer for NULL before using it.
9020           (init_decl_processing): Set up wchar_type_node before using it.
9021         * ch-grant.c (chill_finish_module_code): Don't build
9022           initializer_type or initializer_decl until pass 2.
9023         * ch-lex.l: Readability - single statement per line.
9024         * ch-tasking.c (make_process_struct): Hide get_parm_info
9025           call inside #ifdef for now.
9026
9027 Tue Aug  3 09:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9028
9029         * ch-decl.c (pushdecllist): Add forward decl.
9030         * ch-parse.y (handler): Add rules which allo
9031           empty onalternativelist.
9032         * ch-tasking.c (get_tasking_code_name): Add
9033           cast of alloca() result.
9034
9035 Tue Aug  3 00:11:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9036
9037         * ch-lex.l (handle_use_seizefile_directive):  Make files_to_seize
9038         a queue.  Check for duplicate use_seizefile-s immediately.
9039         * ch-lex.l (yywrap):  Use this more portable mechanism,
9040         rather than the flex-specific <<EOF>>.  Also, clear saw_eof.
9041         * ch-lex.l:  Don't call push_module/pop_module automatically.
9042         * ch-decl.c (push_chill_extern_function:  Modify for 2-pass.
9043
9044 Mon Aug  2 14:24:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9045
9046         * ch-parse.y:  Rename actionstatement -> nonempty_actionstatement.
9047         New actionstatement is now nonempty_actionstatement | SC.  Use
9048         where appropriate.  This is closer to Blue Book terminology.
9049
9050         * ch-tree.def (ALIAS_DECL):  New tree type.
9051         * ch-decl.c:  Merged all the code we need (I hope) from c-decl.c,
9052         which is no longer used for cc1chill.
9053         * c-decl.c:  Remove all Chill-related code.
9054         * Makefile.in (CHILL_OBJS):  Don't use c-decl.o.
9055         * ch-decl.c:  No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
9056         Introduce a 'nesting_level' level concept instead.
9057         * ch-decl.c:  Merged push_scope into pushlevel; pop_scope into
9058         poplevel;  struct scope and struct binding_level.
9059         * ch-decl.c:  Other major name lookup algorithm changes.
9060         * ch-tree.h (struct lang_identifier): Remove granted_value field.
9061         * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro):  Removed.
9062         * ch-tree.h (DECL_NESTING_LEVEL):  New macro.
9063         * ch-satisfy.c (satisfy, satisfy_decl):  New 'lookup_only' arg.
9064         * ch-tree.h (struct module):  New fields nesting_level, granted_decls.
9065         * ch-grant.c (seize_implied_names, do_seize, chill_seize):  Move ...
9066         * ch-decl.c: ... here.
9067         * ch-grant.c (start_chill_function2):  Remove.
9068         * ch-grant.c (chill_start_module_code):  Now called in both passes.
9069         * ch-actions.c (lang_init):  Code moved to ...
9070         * ch-decl.c (init_decl_processing): ... here.
9071         * ch-actions.c (chill_expand_result, chill_expand_return):
9072         Handle being called during pass 1.
9073         * ch-lex.l (name_type_signal):  Don't try lookup_name during pass 1.
9074         * ch-parse.y (PUSH_ACTION, push_action):  Is now invoked during
9075         both passes, for the sake of chill_start_module_code.  Change all
9076         actions rules to invoke PUSH_ACTION unconconditionally.
9077         * ch-parse.y, ch-decl.c (push_module):  Module label is now optional.
9078
9079 Mon Aug  2 15:02:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9080
9081         * expr.c (store_constructor): Convert library function
9082           parameters to proper integer precision before calling
9083           emit_library_call.
9084
9085 Mon Aug  2 08:46:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9086
9087         * ch-grant.c (seize_implied_names): Check POWERSET's
9088           base type for names to seize.
9089
9090 Fri Jul 30 19:59:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9091
9092         * ch-tree.h: Delete unused definition of JOINER
9093           macro.  Expand comment about INSTANCE_TYPE.
9094
9095 Thu Jul 29 14:57:11 1993  Bill Cox  (bill@rtl.cygnus.com)
9096
9097         * ch-convert.c (unreferenced_type_of): New function.
9098           (convert): Call new function.
9099
9100 Thu Jul 29 07:34:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9101
9102         * ch-lex.l: Allow C-style comments before the module
9103           header.  Use #undef to assure that strchr isn't a
9104           macro (portability), and remove the extra paren-
9105           theses in its extern name.
9106           (check_newline): Call getlc less often, so that user
9107           labels aren't lowercased before their time. Add BEGIN
9108           INITIAL before starting pass 2, so the header is
9109           correctly ignored.
9110
9111 Wed Jul 28 14:23:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9112
9113         * ch-grant.c (chill_start_module_code): Cast alloca()
9114           return value.
9115
9116 Wed Jul 28 12:39:51 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9117
9118         * ch-grant.c: remove extra parens around extern function
9119         declarations (they confuse the DECstation compiler)
9120
9121 Wed Jul 28 12:28:56 1993  Bill Cox  (bill@rtl.cygnus.com)
9122
9123         * Makefile.in: Stop deleting flex's #line lines.
9124
9125 Wed Jul 28 07:05:25 1993  Bill Cox  (bill@cygnus.com)
9126
9127         Adjust after FSF merge:
9128         * calls.c (expand_call): Add comment.
9129         * ch-expr.c: Add newline.
9130         * expmed.c (store_split_bit_field): Add comment.
9131
9132 Tue Jul 27 17:32:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9133
9134         * ch-actions.c (build_chill_binary_op): Set code0 and
9135           code1 only in pass 2.
9136           (get_result_tmp_name): Cast alloca return for portability.
9137         * ch-decl.c (pop_module): Test current_module ptr before
9138           using it.
9139         * ch-lex.l: Set lineno and input_filename for pass 2
9140           error messages.
9141
9142 Tue Jul 27 15:14:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9143
9144         * ch-lex.l: Fix the syntax error at line 329.  Will I
9145           *ever* quit fixing these in the ch-lex.c file?  Stay tuned..
9146
9147 Tue Jul 27 15:01:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9148
9149         * ch-lex.l: Pervasive rewrite for queueing seize files,
9150           then parsing them at the end of pass 1.  Still some
9151           problems.
9152
9153 Tue Jul 27 07:40:39 1993  Bill Cox  (bill@rtl.cygnus.com)
9154
9155         * chill.in: Check for .i suffices only, and use -xchill
9156           to bracket the argument.
9157
9158 Thu Jul 22 19:17:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9159
9160         * c-decl.c (print_lang_identifier): Oops.  Syntax error.
9161
9162 Thu Jul 22 18:56:16 1993  Bill Cox  (bill@rtl.cygnus.com)
9163
9164         * c-decl.c (pushdecllist): Standardize loop for readability.
9165         * ch-decl.c (decl_temp): Call pushdecllist to store decl
9166           into hash table, move after current_scope declaration.
9167           (decl_temp1): Move also.
9168         * ch-lex.l (getlc): New function.  Force char to lower case.
9169           (check_newline): Call it, so comparisons work on uppercase
9170           keywords.
9171
9172 Wed Jul 21 22:17:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9173
9174         * ch-decl.c (do_decls): Add saving of decl tree
9175           address into ID node in pass 2,  reindent.
9176         * ch-grant.c (start_chill_function2): New function.
9177           (chill_start_module_code,  chill_finish_module_code): Call it.
9178         * ch-loop.c (build_temporary_variable, begin_for_range):
9179           Replace start_decl, finish_decl pairs with decl_temp1 calls.
9180         * ch-parse.y (parnamelist): Eliminate warning by eliminating
9181           the %type for now.
9182         * ch-actions.c, ch-tasking.c: Replace do_decls calls with
9183           decl_temp1 calls.
9184         * ch-tree.h: New prototypes.
9185         * stmt.c (stamp_nesting_label): Check parameters for NULL.
9186         * toplev.c (lang_options): Add '-L' option.
9187
9188 Wed Jul 21 21:06:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9189
9190         Portability fixes.
9191         * ch-decl.c (save_decl): Make definition match forward declaration.
9192         * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
9193           in the macro - Sun's compiler throws warnings.  Thanks, Brendan.
9194         * ch-satisfy.c (satisfy): Add forward declaration.
9195           (SATISFY): Add outer parens for greater safety.
9196
9197 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9198
9199         * c-decl.c (pushdecllist): New function.  Add a list of decls
9200         to the current scope, checking for duplicates.
9201         * c-decl.c (start_function):  Remove some Chill junk.
9202         (This function should no longer be used for Chill.)
9203         * ch-lex.l (ch_lex_init):  New function, to re-init for 2nd pass.
9204         * ch-lex.l (<<EOF>>):  Cleanup, and re-start for 2nd pass.
9205         * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG):  New flags.
9206         * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
9207         Implement.  Add comments.
9208         * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
9209         Better Blue Book type checking.
9210         * ch-actions.c (finish_chill_binary_op): Handle folding
9211         and other stuff that couldn't be done in pass 1.
9212         * ch-actions.c (build_chill_binary_op):  Bail out early if pass 1.
9213         Use new CH_ROOT_MODE macro to handle integer promotions etc.
9214         * ch-except.c (push_handler):  Bail out if pass 1.
9215         * ch-tasking.c (make_process_struct):  Defer making this work.
9216         * ch-parse.y (assignaction):  Simplify, and move some code ...
9217         * ch-expr.c (chill_expand_assignment): ... here.
9218         * ch-typeck.c (chill_root_mode, chill_resulting_mode,
9219         chill_compatible_classes):  New functions, implementing the
9220         correspondingly named Blue Book concepts.
9221         * ch-parse.y generally:  Lots of little tweaks to support
9222         2-pass compilation.
9223         * ch-parse.y (push_module, pop_module):  Moved to ...
9224         * ch-decl.c (push_module, pop_module):  ... here.
9225         * ch-parse.y (push_action):  New function.
9226         * ch-parse.y (pdef):  Move complicated action to ...
9227         * ch-parse.y (end_function):  ... new function here.
9228         * ch-parse.y (procedure):  Major re-write.
9229         * ch-parse.y (paramname, paramnamelist):  New, to avoid conflict (?).
9230         * ch-decl.c (do_decls, push_syndecls, push_modedef,
9231         start_chill_function, finish_chill_function):  Do different things
9232         on each pass.  Hence, can use code in c-decl.c to lesser extent.
9233         * ch-decl.c (build_chill_function_type):  First arg is now
9234         just the return type, rather than a singleton list.
9235         * ch-decl.c (massage_param_node):  Remove not needed (we
9236         now encode parameter attributes directly in the TREE_PURPOSE).
9237         * ch-decl.c (chill_munge_params):  New function, called by parser.
9238         * ch-decl.c (push_parms):  Removed function.
9239         * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
9240         New functions, to coordinate decls between passes.
9241
9242 Wed Jul 21 14:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9243
9244         * ch-actions.c (lang_decode_option): Add option -Lpath
9245           to specify seize file path.
9246           (ch_singleton_set): Readability formatting.
9247           Add comment, move functions to easier found places.
9248         * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
9249           (register_seize_path): Use memcpy so pathlen has an effect.
9250         * gcc.c (default_compilers): Add -L option to chill
9251           compiler SPECs.
9252
9253 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9254
9255         * ch-satisfy:  New file.  Used for name lookup.
9256         * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
9257
9258 Wed Jul 21 12:16:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9259
9260         * toplev.c (main): Delete -L option handling - breaks
9261           non-chill compilers.
9262
9263 Wed Jul 21 09:29:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9264
9265         * ch-grant.c: #undef strchr and strrchr names in extern
9266           declarations, to prevent RS6000 compiler from reporting
9267           their misuse as macros.
9268         * ch-lex.l (setup_seizefile_read): Refer to list of  paths
9269           for seizefiles specified by -L options on command line.
9270           (register_seize_path): Add a new path to the seize file list.
9271         * toplev.c (strip_off_ending): Recognize chill suffix.
9272           (main): Recognize -L option, specifying a seize file path.
9273
9274 Tue Jul 20 12:41:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9275
9276         * ch-lex.l (convert_float): Make it really portable,
9277           using the appropriate macros.
9278
9279 Tue Jul 20 11:26:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9280
9281         * ch-lex.l (convert_float): More casts for vxworks
9282           portability.
9283
9284 Tue Jul 20 11:01:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9285
9286         * ch-lex.l (convert_float): Give variable `d' correct
9287           type so build_real call is correct.  Should remove
9288           vxworks portability problem.
9289           (convert_float): Re-indent to standards.
9290
9291 Mon Jul 19 17:32:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9292
9293         * ch-actions.c (build_char_array_expr): Add field decls to
9294           constructor.  Now, it generates the library call.
9295         * ch-expr.c (chill_expand_array_assignment): Make sure that all
9296           error messages say 'mode' not 'type'.
9297
9298 Mon Jul 19 14:44:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9299
9300         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
9301           ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
9302           Make sure that all error messages say 'mode' not 'type'.
9303         * ch-decl.c (push_modedef): Add novelty computation,
9304           storage in each newmode.
9305         * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
9306           Reformat slightly for readability.  Fix comments.
9307         * ch-tree.h: Delete print_lang_type prototype.
9308
9309 Mon Jul 19 06:43:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9310
9311         * ch-actions.c (chill_expand_return): Disable
9312           error message which requires 2-pass analysis, for
9313           now.
9314         * ch-convert.c (convert): Build length-only constructor
9315           for empty string (PR 2930).
9316
9317 Fri Jul 16 16:08:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9318
9319         * ch-expr.c (chill_expand_array_assignment): Check
9320           non-varying string assignments for conformance to
9321           the "string assignment condition" (PR 2920).
9322
9323 Thu Jul 15 13:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9324
9325         * ch-actions.c (build_chill_array_expr): Check parameters.
9326           Call convert to build unitary array from scalar if
9327           needed.  Rewrite CONCAT_EXPR handling.
9328         * ch-convert.c (build_array_type_for_scalar): New functions.
9329           (convert): Call new function, to convert scalar to unitary
9330           array.  Only call chill_expand_tuple if expression hass
9331           NULL_TREE type.
9332         * ch-expr.c (chill_expand_expr): Allow a larger static
9333           varying array to be assigned to a smaller, with a runtime
9334           test (to be provided).
9335         * ch-parse.y (locdec): Comment out bogus error msg.
9336           (elementlist): Replace several lines with chainon call.
9337         * ch-tree.h (SCALAR_P): New macro.  New prototype for
9338           build_array_type_for_scalar.
9339         * ch-typeck.c (build_chill_cast): Re-indent.
9340           (chill_expand_tuple): Comment out strange addition of
9341           varying string's length to front of constructor list.
9342
9343 Thu Jul 15 05:58:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9344
9345         * ch-except.c (start_handler_array): Use unique identifier for
9346           exception array, so we can have > 1 array per reach
9347           (PR 2931).  The change was originally entered June 23, and
9348           subsequently lost.
9349
9350 Mon Jul 12 16:07:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9351
9352         Get executable test cases running again...
9353         * c-typeck.c (build_function_call): Bypass default
9354           parameter promotions, format param syntax check for
9355           CHILL; they've already been converted in
9356           build_chill_function_call.
9357         * ch-actions.c (chill_expand-return): Correct tests
9358           for function which returns no value.
9359         * ch-convert.c (base_type_size_in_bytes): Check for
9360           NULL type parameter, just return.
9361           (convert): Allow conversion of CHAR to varying array
9362           of CHAR.
9363           Change error msg to "conversion" from "assignment".
9364           Remove default from case, which short-circuited before
9365           REFERENCE_TYPEs got converted.  Deleted second copy
9366           of REFERENCE_TYPE code.
9367         * ch-lang.c (build_chill_range_type): Simply exit if
9368           NULL input parameter.
9369         * ch-loop.c: Fix comment.
9370
9371 Sun Jul 11 11:27:08 1993  Bill Cox  (bill@cygnus.com)
9372
9373         * ch-actions.c (chill_expand_result, chill_expand_return):
9374           Move here from ch-typeck.c.  Add a temporary to remember the
9375           result value in.  Change return handler to fetch that
9376           temporary value, if there is one.
9377         * ch-parse.y (pdef): Call chill_expand_return to fetch
9378           the temp's value.
9379         * ch-tree.h, ch-typeck.c: Move return, result functions to
9380           ch-actions.c.  And their prototypes.
9381
9382 Fri Jul  9 15:47:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9383
9384         * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
9385           ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
9386           ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
9387           ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
9388
9389 Fri Jul  9 09:41:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9390
9391         * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
9392           (print_integer): Delete old non-working INSTANCE code.
9393         * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
9394         * ch-parse.y (rccase_label): Move all actions inside if.
9395           Use BUFFERNAME to recognize receice case buffer clause,
9396           eliminate one shift-reduce conflict.
9397         * ch-tasking.c (build_buffer_descriptor): Check for
9398           CH_DECL_BUFFER flag, remove unused code.
9399
9400 Thu Jul  8 11:17:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9401
9402         Declaring and sending buffers..  first draft
9403         * ch-actions.c (lang_init): Define the send_buffer runtime
9404           function.
9405         * ch-decl.c (do_decls): Standardize loop, so stepping
9406           isn't hidden.
9407         * ch-lex.l: Clean up prototypes for readability.
9408         * ch-parse.y (sendaction): Add send buffer action.
9409           (locdec): Add rule for buffer declaration.
9410         * ch-tasking.c (generate_tasking_code): standardize indentation.
9411           (make_signal_struct): Readability changes.
9412           (build_chill_send_buffer, build_buffer_decl,
9413            build_buffer_descriptor): New functions.
9414         * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
9415           buffer's maximum queue length in buffer decl.
9416           (CH_DECL_BUFFER): Add flag in decl.  Clean up for
9417           readability.  Add prototypes.
9418         * ch-typeck.c (build_chill_cast): Call convert rather
9419           than storing directly into TREE_TYPE field.
9420
9421 Tue Jul  6 12:34:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9422
9423         * ch-actions.c (lang_init): Set warn_switch so case labels
9424           get checked.  Move build_chill_case_expr to ch-expr.c.
9425         * ch-expr.c (chill_expand_case_expr): Enable checking
9426           of expression case labels.
9427         * ch-grant.c: Move a comment.
9428
9429 Mon Jul  5 10:02:27 1993  Wilfried Moser  (fs_moser at rcsw1j)
9430
9431         * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
9432         * ch-except.c (initialize_exceptions): Change the layout of the
9433           structure __ch_handler. The entry __jbuf is moved to the end
9434           of the structure and its size was changed to _JBLEN+10.
9435         * ch-decl.c (push_chill_extern_process): Add processing of
9436           processes with no arguments.
9437         * ch-grant.c (decode_decl, do_seize): Add processing of
9438           processes with no arguments.
9439         * ch-tasking.c (build_process_header, build_chill_start_process):
9440           Add processing of processes with no arguments.
9441           (make_process_struct): Add processing of IN attribute for
9442           process arguments.
9443           (tasking_setup): Add NUL-character to name of a tasking
9444           element. The name must be NUL terminated.
9445           (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
9446           to 0 with a warning if -Wall specified on command-line.
9447
9448 Fri Jul  2 16:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9449
9450         * ch-parse.y: Change 'empty' comments to new non-terminal
9451           so that exyacc doesn't discard them.
9452         * ch-lang.c (build_chill_range_type): New error messages.
9453
9454 Fri Jul  2 12:43:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9455
9456         * ch-parse.y (action): Catch and report actions which
9457           shouldn't have exception clauses, but do.  Unfortunately,
9458           catching more than one of these per compilation will
9459           have to await the general addition of syntax error
9460           recovery to the parser.
9461
9462 Fri Jul  2 10:45:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9463
9464         * ch-parse.y (locdec): Issue error for initialization
9465           of bitstring with tuple, not for powerset init with
9466           tuple.
9467
9468 Thu Jul  1 15:29:26 1993  Bill Cox  (bill@rtl.cygnus.com)
9469
9470         * ch-lang.c (build_chill_array_type): Check for indices
9471           that didn't fold into constants, issue error (PR 2924b).
9472         * ch-parse.y: Add novelty counter, alphabeticalize.
9473         * ch-tree.h: Define CH_NOVELTY for novelty checks later.
9474
9475 Thu Jul  1 14:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9476
9477         For Wilfried Moser.
9478         * chill.in: Add -ansi switch at compiler call to avoid
9479           translation of i.e. sun to 1 by cpp.
9480
9481 Wed Jun 30 22:21:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9482
9483         * ch-grant.c (raw_decode_mode): Add code for
9484           integer and enumeral ranges.  Standardize indentation.
9485
9486 Wed Jun 30 14:02:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9487
9488         * ch-grant.c (print_an_int): New function to print a
9489           decimal integer string or the CONST_DECL (SYN) which
9490           best matches it.
9491           (print_integer): Call the above function.  Replace
9492           calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
9493           comparisons, as suggested by Jim Wilson.
9494           (decode_decl): Set current_grant_modename sooner,
9495           be sure to clear it when done.
9496
9497 Wed Jun 30 10:10:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9498
9499         * ch-actions.c (build_max_min): Change interface to accept
9500           just a max/min flag.  Get min/max values from an
9501           enumeral constructor.
9502           (build_chill_max, build_chill_min): Change calls to
9503           build_max_min.
9504         * ch-lang.c (deep_const_expr): Check for NULL_TREE
9505           arguments, don't seg fault.
9506
9507 Wed Jun 30 09:20:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9508
9509         * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
9510           to switch cases, preventing abort.
9511
9512 Tue Jun 29 19:04:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9513
9514         * ch-expr.c: Update comment.
9515         * ch-parse.y (range_or_mode): New non-terminal used in
9516           lexpr to implement mode as case label.
9517
9518 Tue Jun 29 13:13:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9519
9520         * ch-actions.c (build_chill_case_expr): Pass in the
9521           optional ELSE clause, error for multiple case-selector
9522           expressions, error for missing ELSE clause.
9523         * ch-expr.c (chill_expand_assignment): Error if multiple
9524           location assignment and locations not novelty
9525           equivalent.
9526         * ch-parse.y (caseaction): Add range_list_clause non-
9527           terminal, sorry message for it.
9528           (assignaction): error if operator used on multiple
9529           assignment.
9530           (case_expr): Pass optional ELSE tree to
9531           build_chill_case_expr for checking.
9532         * ch-tree.h (build_chill_case_expr): Change proto.
9533
9534 Fri Jun 25 17:22:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9535
9536         * ch-actions.c (chill_comptypes, build_chill_binary_op):
9537           Allow PROC mode variables.
9538         * ch-convert.c (convert): Turn a NULL literal into a zero
9539           valued pointer-to-function, given such a type.  Also
9540           build the ADDR_EXPR of a function variable.
9541         * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9542           (print_enumeral, print_integer, print_struct) Moved these
9543           large functions out of the switch in raw_decode_mode for
9544           readability, and to encourage future code-sharing.
9545           (print_proc_tail, print_proc_exceptions): Moved these out
9546           of decode_decl, to share them.  They're used also to
9547           output PROC modes.
9548         * ch-parse.y (mode2): Enable PROC modes.
9549           (procmode): Represent PROC mode as a ptr-to-function type.
9550           (call): Recognize ptr-to-function as indirect call.
9551           Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9552
9553 Thu Jun 24 15:59:20 1993  Bill Cox  (bill@rtl.cygnus.com)
9554
9555         * ch-grant.c: (raw_decode_mode): Add support for unnamed
9556           and user-numbered enumeration members.
9557
9558 Thu Jun 24 13:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9559
9560         * ch-actions.c (build_chill_array_expr, build_chill_length):
9561           Explicitly convert a varying array's length field to an
9562           integer_type_node, now that it's only a chill_integer_
9563           type_node.
9564         * ch-expr.c (chill_expand_expr,
9565                      expand_assignment_to_varying_array,
9566                      chill_expand_array_assignment,
9567                      expand_varying_length_assignment): Explicitly
9568           convert a varying array's length field to an integer_type_node,
9569           now that it's only a chill_integer_type_node.
9570         * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9571           to handle varying array location iterations.
9572         * ch-parse.y (mode2): Count number of named SET members,
9573           as opposed to '*' members.  Issue error if there were none.
9574           (setelement): Count named set members.  Generate a unique
9575           identifier for the '*' element.
9576         * ch-typeck.c (validate_varying_array_ref):  Explicitly
9577           convert a varying array's length field to an integer_type_node,
9578           now that it's only a chill_integer_type_node.
9579
9580 Wed Jun 23 19:18:28 1993  Bill Cox  (bill@rtl.cygnus.com)
9581
9582         * ch-lang.c (finish_chill_enum): Change test for too-
9583           large enumerations.
9584         * ch-parse.y (setelement, optsetvalue): Allow numbered,
9585           unnamed set elements.
9586
9587 Wed Jun 23 16:25:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9588
9589         * c-typeck.c (process_init_constructor): Suppress
9590           errors about un-initialized array elements if the
9591           array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9592         * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9593           enumerations *can* be only a byte in size.
9594           (adjust_parm_or_field): Convert untyped parameter before
9595           looking at its type to process it.
9596         * ch-convert.c (convert): Generate [ -1, -1 ] value for
9597           an INSTANCE type.
9598         * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9599           type, so that output_constant doesn't seg fault.
9600         * ch-except.c (start_handler_array): Use unique identifier for
9601           exception array, so we can have > 1 array per reach.
9602         * ch-lang.c (finish_chill_enum): Error if number of
9603           enumeration values exceeds 256.
9604         * ch-parse.y (check_end_label): Error, not warning if start
9605           and end labels don't match.
9606           (assignaction): Convert RHS.  Allows untyped tuples to be
9607           passed to stabilize_reference.
9608           (exceptlist, onexceptprefix): Error if non-unique exception
9609           name is coded.
9610         * ch-tree.c: Added form feeds, comment reformatted.
9611         * ch-typeck.c (chill_expand_tuple): Compare tree value to
9612           NULL_TREE, not zero.  Add a constructor element for a
9613           VARYING array's length to the constructor list.
9614           (build_varying_struct): Mark the type as VARYING for
9615           process_init_constructor.
9616         * toplev.c (lang_options): Add '-lang-chill' and
9617           '-fchill-grant-only' options to table.
9618
9619 Tue Jun 22 13:13:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9620
9621         * ch-actions.c (build_chill_function_call): Add check
9622           to prevent calling a PROCESS like a PROCEDURE.
9623         * ch-parse.y (rcalternative): Add check for an
9624           receive case alternative after a RECEIVE CASE
9625           statement.
9626         * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9627         * ch-lang.c (lang_finish): Remove resetting errorcount
9628           and sorrycount for granting.
9629
9630 Mon Jun 21 17:56:48 1993  Bill Cox  (bill@rtl.cygnus.com)
9631
9632         Receiving signals works.
9633         * ch-actions.c (lang_init): Add else_clause flag to
9634           __wait_signal parameter list.
9635         * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9636         * ch-parse.y (SIGNALNAME): New token.  Delete
9637           empty_untyped_exprlist token, no longer used.  Add
9638           name_or_signal non-terminal.  Standardize a few NULL
9639           tests.  Add real RECEIVE CASE semantics.  Add checks that
9640           SIGNALS, BUFFERs are only declared at global scope.
9641           (call): Add signal declarations with/without data fields.
9642         * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9643           build_chill_receive_case_start, build_chill_receive_case_end,
9644           build_chill_receive_case_label): New functions.
9645           Replace build (CONSTRUCTOR, ... calls with build_nt
9646           (CONSTRUCTOR, calls.
9647         * ch-tree.h: New prototypes.
9648
9649 Thu Jun 17 18:36:38 1993  Bill Cox  (bill@rtl.cygnus.com)
9650
9651         SIGNAL declaration compilation, seizing & granting,
9652           SENDing also.
9653         * ch-actions.c (lang_init): Move instance_type_node
9654           build to ch-tasking.c.  Call build_tasking_message_type.
9655           Build a type for send_signal.  Put builtin_function
9656           calls into alpha order.
9657           (adjust_proc_param): Rename to adjust_parm_or_field,
9658           add is_signal flag, so signal fields can use it.  Rename
9659           calls to it, add flag to calls.
9660         * ch-decl.c (push_chill_extern_signal): Add function.
9661         * ch-grant.c (decode_decl): Correct signal decl output.
9662           (do_seize): Correct check for process seizure.  Add
9663           code for seized signal decl.
9664         * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9665         * ch-loop.c (get_unique_identifier): Standardize loop
9666           temporary's name to assure that it's not granted.
9667         * ch-parse.y (SIG_NAME): Delete unused token.
9668           (spec_declist): Delete silly printf.
9669           (quasi_signaldef): Add non-terminal.
9670           (sendaction, optsendwith, optsendto, optpriority):
9671           Implement actual working semantics.
9672           (call, empty_untyped_exprlist): Allow empty signal
9673           fields between parens.
9674         * ch-tasking.c: Rename adjust_proc_param calls, add
9675           is_signal flag to calls.  Make instance_type_node a
9676           type, not a TYPE_DECL, change references.  Fix all
9677           CONSTRUCTOR builds.  Add make_signal_struct function.
9678           Move build_instance_type here from lang_init.
9679           (build_tasking_message-type, build_signal_descriptor,
9680           build_chill_send_signal): New functions.
9681         * ch-tree.h: Add, update protos.
9682         * ch-typeck.c (build_chill_cast): Check for NULL expression
9683           type as well as error_mark.
9684
9685 Thu Jun 17 12:28:03 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9686
9687         * Makefile.in (STAGESTUFF): Add chill to list.
9688
9689 Wed Jun 16 07:12:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9690
9691         * Makefile.in: Complete the renaming of ch-process.c
9692           to ch-tasking.c.
9693         * ch-decl.c (push_chill_extern_function): Drop is_process
9694           parameter, and marking process decl trees.
9695           (push_chill_extern_process): New function for
9696           SEIZEd processes.  Lotsa form feeds added for print
9697           readability.
9698         * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9699           (do_seize): New parameter seize_all.  Handle sseizing
9700           processes.
9701           (chill_seize): Pass seize_all parameter.
9702           (chill_grant): Check for __tmp_ prefix, to disable
9703           *either* seizing or granting.
9704         * ch-parse.y (quasi_pdef): Delete is_process parameter for
9705           push_chill_extern_functon, call push_chill_extern_process
9706           for processes.
9707           (specialinit): Comment these rules as needed only until
9708           2-pass compiler is operational.
9709           (extprocedure): Delete is_process parameter.
9710           (simpledec): Delete `sorry' about SIGNAL decls.
9711           (optsigdest): Correct check for process name.
9712         * ch-tasking.c (build_signal_decl): Finish coding.
9713         * ch-tree.h: Add macro to save a SIGNAL's destination
9714           process name in an id node.  Add/change prototype.
9715
9716 Mon Jun 14 18:17:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9717
9718         * ch-actions.c (lang_init): Build instance_type_node.
9719           Change `this' to a runtime function call.
9720         * ch-grant.c (do_seize): Generate tasking-code
9721           variable for seized process.
9722         * ch-lex.l (equal_number): Also accept synonym
9723           name for numeric value.
9724         * ch-parse.y (primval): Add process-related
9725           function calls.
9726           (signaldef, etc.): Rough draft of SIGNAL definition
9727           processing.
9728           (stopaction): Call runtime function.
9729           (pdef): Pop symbol level if ending a process
9730           and there were parameters.
9731           (primval): Call `whoami' runtime function for THIS.
9732         * ch-tasking.c (build_process_header): Be sure
9733           to define the tasking enum, if it hasn't already
9734           been done.  Only call shadow_record_fields if there
9735           are parameters.
9736           (build_tasking_enum): Only call start_enum *after*
9737           checking the already_built flag.
9738           (build_copy_number, get_tasking_code,
9739           build_gen_code, build_gen_inst, build_get_ptype,
9740           build_proc_type): New functions for process-related
9741           builtins.
9742           (build_signal_decl): New function for SIGNAL
9743           declaration - rough draft.
9744         * ch-tree.def (INSTANCE_TYPE): new tree code.
9745         * ch-tree.h: New prototypes.  Defines for instance
9746           type field access.
9747
9748 Sat Jun 12 21:15:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9749
9750         Get start-process action working:
9751         * ch-actions.c (adjust_proc_param): new function,
9752           extracted from build_chill_function_call and called
9753           from there.
9754         * ch-tree.h, ch-grant.c (do_seize): Add process_type
9755           parameter to add_taskstuff_to_list call, prototype.
9756         * ch-parse.y (start_parlist): New non-terminal for
9757           START action.
9758           (startaction): Reference start_parlist, check for
9759           integer-valued process copy-number.
9760           (optstartset): Check instance parameter - must be
9761           an INSTANCE_TYPE location.
9762         * ch-tasking.c (generate_tasking_code_variable): New
9763           function, extracted from tasking_setup and called
9764           from there.  Also called from build_process_header.
9765           (build_process_header): Add process_type parameter
9766           to add_taskstuff_to_list call.  Remove incrementing
9767           of process_type (moved into generate_tasking_code
9768           _variable).
9769           (build_chill_start_process): Complete rewrite.
9770           (add_tasking_stuff_to_list): Add stuffnumber parameter
9771           putit on the list.
9772
9773 Sat Jun 12 06:08:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9774
9775         Getting processes compiled, initialized and granted:
9776         * .cvsignore: Add chill file.
9777         * c-decl.c (shadow_record_fields): Allow PARM_DECL
9778           as well as VAR_DECL.
9779         * ch-actions.c (lang_init): Move build of
9780           initializer_type into ch-tasking.c.  Change
9781           definition of THIS to function call.
9782         * ch-decl.c (massage_param_node): Add comments.
9783           (start_chill_function): Set nested flag in
9784           start_function call based upon current_function_decl,
9785           not as constant zero.
9786         * ch-grant.c (decode_decl): lotsa code by Wilfried to
9787           GRANT process decls.
9788           (finish_chill_module): Completely rewrote interface
9789           to runtime.
9790         * ch-lex.l (THIS): Just return the token code.
9791         * ch-parse: Add THIS token.
9792           (processpar, processparlist): New rules, to collect
9793           process parameters.
9794           (pdef): Add code to pop the process' WITH scope.
9795           (procedure): Set process WITH scope flag to zero.
9796           (process): Move most code into build_process_header.
9797           (primval): Output function call for THIS.
9798         * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9799           make_process_struct, build_process_header): New code
9800           to handle process translation and interface to runtime.
9801         * ch-tree.h: New prototypes.
9802
9803 Thu Jun 10 13:32:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9804
9805         * Makefile.in: Change ch-process.c to ch-tasking.c.
9806           A delayed part of the last change..
9807
9808 Thu Jun 10 11:14:59 1993  Bill Cox  (bill@rtl.cygnus.com)
9809
9810         * .cvsignore: Add 'chill' file.
9811         * ch-actions.c (lang_init): Add new runtime function
9812           __register_process.
9813         * ch-decl.c (push_chill_extern_function): Add is_process
9814           input flag, use it.
9815         * ch-grant.c (decode_decl): Recognize a process for
9816           granting.
9817           (do_seize): Put seized processes onto the tasking_list.
9818           (chill_finish_module_code): Declare init_list entry,
9819           link it onto the init_list.  Call tasking_setup and
9820           tasking_registry.
9821         * ch-lex.l: Make tasking-related variables global,
9822           delete their initialized flags.
9823         * ch-parse.y: Add is_process flag to push_chill_extern_function
9824           calls.  Put processes onto the tasking_list.
9825         * ch-process.c: Renamed to ch-tasking.c.
9826         * ch-tasking.h: New file.
9827         * ch-tree.h: New, adjusted prototypes.
9828
9829 Wed Jun  9 10:59:27 1993  Wilfried Moser  (moser@deneb.cygnus.com)
9830
9831         * chill: This file is replaced by chill.in and will be
9832           generated during 'make' and 'make install'. This script
9833           now finds the correct chillrt0.o and libchill.a during
9834           linking.
9835         * chill.in: New file that replaced chill.
9836         * Makefile.in: Add rules to make chill out of chill.in.
9837
9838 Wed Jun  9 09:03:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9839
9840         * .cvsignore: Add gfloat.h and xlimits.h.
9841         * ch-actions.c (lang_init): Create new type for module-
9842           level initializer list entry.
9843         * ch-grant.c (chill_start_module_code): Rename actual
9844           module-level code to just the modulename, which is
9845           *not* public.
9846           (chill_finish_module_code): Allocate space for initializer
9847           list entry, build real initializer function, which puts
9848           the list entry on the runtime list.  Name the init function
9849           as the module's constructor function.
9850         * ch-tree.h (build_init_struct): Add prototype.
9851         * ch-typeck.c (build_init_struct): Add function, called
9852           from lang_init.
9853         Note: these changes require a new devo/chillrt/chillrt0.c.
9854
9855 Thu Jun  3 17:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9856
9857         * c-decl.c: Fix comment.
9858         * ch-actions.c, ch-grant.c: Standardize front end:
9859           #define first, etc.  Add comments.
9860           (lang_init): Delete unused flag, code for inapplicable
9861           gen-decls option.  (lang_decode_option): Delete
9862           gen-decls option, add grant-only option, flag.
9863         * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9864           ch-typeck.c: Add form feed after front end.
9865         * ch-expr.c: Standardize testing for error_mark node.
9866         * ch-lang.c: Remove unused deep_fold function.
9867
9868 Fri May 21 11:04:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9869
9870         * c-typeck.c (build_binary_op, build_unary_op):
9871           Recognize BOOLEAN_TYPE.
9872         * ch-actions.c (build_chill_unary_op): Remove
9873           some crufty work-arounds.
9874
9875 Thu May 20 19:03:48 1993  Per Bothner  (bothner@deneb.cygnus.com)
9876
9877         * ch-grant.c (decode_constant):  If the granted value is a
9878         cast, make sure to emit an appropriate expression conversion.
9879
9880 Thu May 20 16:35:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9881
9882         * ch-lang.c (build_chill_range_type): Initialize the
9883           precision variable.  Double-negative ranges work now.
9884
9885 Thu May 20 11:24:42 1993  Bill Cox  (bill@rtl.cygnus.com)
9886
9887         * ch-actions.c (build_unary_op): Compound a wretched
9888           hack which hides a BOOLEAN_TYPE from the underlying
9889           C code.
9890
9891 Wed May 19 16:45:54 1993  Bill Cox  (bill@rtl.cygnus.com)
9892
9893         * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9894           from chill_comptypes. (build_chill_unary_op): Give
9895           better name to unsigned flag.
9896         * ch-expr.c (chill_expand_assignment): Correct calling
9897           sequence for setpowersetbits runtime routine.
9898         * ch-grant.c (raw_decode_mode): Give better name to
9899           unsigned flag.  (decode_constant): Check for null
9900           'val' ptr, avoid seg fault.
9901         * ch-lex.l (convert_number):  Give better name to
9902           unsigned flag. (convert_bitstring): Move increment
9903           of bl counter to emphasize that it increments once
9904           per loop.
9905         * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9906         * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9907           constructor if given a singleton set constructor.
9908
9909 Thu May 13 17:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9910
9911         * c-decl.c (pushdecl): Complete May 9 change.
9912         * ch-actions.c (build_chill_unary_op): Set the
9913           TREE_UNSIGNED flag FALSE for raw_decode_mode.
9914         * ch-grant.c (grant_array_type): Correct the May 12
9915           check for circularity.
9916           (raw_decode_mode): Use TREE_UNSIGNED flag to
9917           control range's printing.
9918           (chill_grant): Remove useless, bogus code.
9919         * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9920           flag TRUE for raw_decode_mode.
9921
9922 Wed May 12 18:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9923
9924         * ch-decl.c (push_syndecls, push_modedef): Comment
9925           reminders to check for circular definitions.  Later!
9926         * ch-grant.c (grant_array_type, decode_decl): Prevent
9927           circular definitions in the use of the array's
9928           type name.
9929
9930 Wed May 12 16:06:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9931
9932         * ch-grant.c (grant_array_type): If array_type has
9933           a name, just use it.
9934         * ch-lang.c (build_chill_range_type): Don't force
9935           unsigned ranges on output.
9936         * expr.c (store_constructor): Preclude seg fault.
9937
9938 Wed May 12 07:49:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9939
9940         * ch-actions.c (fold_set_*): Correct tests for
9941           range set-constructor list entries.
9942           (lang_init): Define setpowersetbits function.
9943         * expr.c (store_constructor): Handle non-constant
9944           set constructors.
9945
9946 Tue May 11 18:25:40 1993  Per Bothner  (bothner@cygnus.com)
9947
9948         * ch-lang.c (build_chill_range_type):  If the parent type
9949         is unknown, and the endpoints of the range are integer
9950         constants, use the smallest suitable integer type.
9951         * ch-lang.c (build_chill_range_type):  Remove kludge
9952         for dealing with char ranges.
9953
9954 Tue May 11 15:24:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9955
9956         * ch-actions.c (build_chill_repetition_op): Build a
9957           range-type set constructor if there's only one value
9958           in the repeated constructor.
9959           (fold_set_*): Abort if range value seen, for now.
9960         * expr.c (store_constructor): Handle range-type by
9961           storing bytes rather than bits as much as possible.
9962
9963 Mon May 10 18:45:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9964
9965         * ch-actions.c (invalid{left right}_operand): Add
9966           handlers for REPLICATE_EXPR.
9967           (build_chill_repetition_op): Build constructor list
9968           for repetition of bitstring.
9969         * ch-parse.y (call): Recognize more trees as arrays,
9970           to avoid error msg.
9971           (operand5): Add count, string temporaries, use them.
9972
9973 Mon May 10 16:49:08 1993  Per Bothner  (bothner@cygnus.com)
9974
9975         * ch-grant.c (seize_implied_names):  Fix code that assumed
9976         a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9977         * ch-grant.c (generate_set, grant_parent_of_enum,
9978         grant_parent_enum): Removed unused functions.
9979         * ch-grant.c (raw_decode_mode):  Remove commented-out code.
9980
9981 Mon May 10 10:54:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9982
9983         * ch-grant.c (do_seize, seize_implied_types): Move
9984           result and parameter processing to proper place.
9985           (chill_seize): Mark unseized identifier with
9986           error_mark_node, to avoid excessive errors.
9987         * ch-parse.y (call): Check for ERROR_MARK before
9988           reporting an error.
9989
9990 Sun May  9 17:21:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9991
9992         * c-decl.c (pushdecl): If a strongly-visible name is
9993           seen, in conflict with a weakly-visible name, take
9994           the strongly-visible one and don't complain.
9995         * ch-actions.c (chill_comptypes): Allow chain of ref-
9996           erence types > 1 in length.
9997         * ch-grant.c: Turn disguised for-loops into actual
9998           ones, so continue works.  Delete redundant code in
9999           seize_implied_names.  Reindent.
10000         * expmed.c (store_split_bit_field): Disable abort for
10001           CHILL.
10002
10003 Sun May  9 17:11:33 1993  Per Bothner  (bothner@cygnus.com)
10004
10005         * ch-convert.c (convert):  Move handling of SET_TYPE until
10006         after we've handled de-referencing and such like.
10007         * ch-grant.c (grant_array_type):  Simplify; remove (now-)
10008         bogus call to generate_set.
10009         * ch-grant.c (get_type):  Remove obsolete stuff.
10010
10011 Fri May  7 10:30:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10012
10013         * ch-actions.c (lang_init): Add definition of psslice
10014           runtime routine. (build_chill_binary_op_1,
10015           build_chill_binary_op): Have result type of
10016           TRUTH_ANDIF_EXPR be boolean, not integer.  Some
10017           reindenting.
10018         * ch-convert.c (convert): Use consistent notation
10019           for expression.
10020         * ch-parse.y: Add front-end pass count. (locdec):
10021           Add syntax for other BASED declaration.
10022         * ch-tree.c: Fix comment.
10023         * ch-typeck.c (build_chill_slice): Implement a runtime
10024           call for bitstring slices. (build_chill_cast):
10025           Add code for BITS_BIG_ENDIAN bit loop.
10026           (chill_expand_tuple): Don't pass ref type to
10027           digest_init, only underlying type.
10028
10029 Thu May  6 12:52:14 1993  Per Bothner  (bothner@cygnus.com)
10030
10031         * ch-typeck.c (build_chill_cast):  type_for_size takes
10032         a size in bits, not bytes.
10033
10034 Wed May  5 19:02:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10035
10036         * ch-actions.c: Break out separate routines for set
10037           folding, handle ranges in set_fold_eq and set_fold_ne.
10038           Fix folding as req'd by TTC test.
10039         * ch-grant.c (raw_decode_more): Check for content match
10040           to decide output mode, not pointer identity.
10041         * ch-typeck.c: Add cross-reference comment.
10042         * varasm.c (emit_set_data): Clarify parameter name.
10043           Handle INTEGER_CST as set constructor.
10044           (output_constant): Handle CONSTRUCTOR node for sets.
10045           Apparently forgot to actually 'checkin' this one last
10046           time.
10047
10048 Wed May  5 12:23:58 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
10049
10050         * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
10051
10052 Tue May  4 15:47:44 1993  Bill Cox  (bill@rtl.cygnus.com)
10053
10054         * ch-actions.c (fold_set_expr): new function to fold
10055           set expressions.  Calls inserted into
10056           build_chill_binary_op and build_chill_unary_op.
10057           (build_chill_repetition_op): New function, called
10058           from build_chill_function_call.
10059         * ch-expr.c (chill_expand_assignment): Call
10060           build_chill_repetition_op.
10061         * ch-grant.c (decode_constant): Comment out deep_fold
10062           call.  The earlier fold_set_expr calls should make
10063           this one unnecessary.  Prevent seg fault when name
10064           of structure field is NULL.  Standardize for loop.
10065         * ch-parse.y: Fix comments.
10066           (operand5): build a REPLICATE_EXPR.  Don't call
10067           build_repetition_op until we have a type.
10068         * ch-tree.def (REPLICATE_EXPR): Define tree-code.
10069         * ch-tree.h (build_chill_repetiton_op): Fix proto.
10070         * ch-typeck.c (chill_expand_result): Call
10071           build_chill_repetition_op if needed.
10072         * varasm.c (emit_set_data): Clarify parameter name.
10073           Handle INTEGER_CST as set constructor.
10074           (output_constant): Handle CONSTRUCTOR node for sets.
10075
10076 Mon May  3 13:06:47 1993  Per Bothner  (bothner@cygnus.com)
10077
10078         * ch-typeck.c (build_chill_cast):  Allow more liberality to
10079         casting:  Any discrete type to any non-discrete type that is the
10080         same size as some other discrete type (and vice versa).
10081         * stor-layout.c (layout_type, case SET_TYPE):  If the number
10082         of bits will fit in a char or short, only use that many bits.
10083
10084 Mon May  3 08:22:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10085
10086         * ch-grant.c (decode_constant): Revert interpretation
10087           of SET_TYPE as integer.
10088
10089 Mon May  3 07:55:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10090
10091         * chparse.y (casealternative): Allow empty action list.
10092
10093 Sat May  1 15:07:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10094
10095         * expr.c (expand_expr): Add parameter to __inpowerset
10096           runtime call, to match new runtime.
10097
10098 Sat May  1 14:55:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10099
10100         * ch-actions.c: Cleanup from -Wall.  Reindent.
10101           Redefine __inpowerset to take a 'minval' parameter
10102           that matches the new runtime.  Added comments.
10103         * ch-expr.c (chill_handle_case_label): Handle
10104           NULL or ERROR trees.
10105         * ch-grant.c (get_type): Survive bogus type params,
10106           return empty string.
10107         * ch-tree.c (build_powerset_type): Diagnose powerset
10108           of non-discrete type.
10109         * ch-typeck.c (discrete_type_p): Reindent.
10110
10111 Fri Apr 30 16:08:54 1993  Bill Cox  (bill@rtl.cygnus.com)
10112
10113         * ch-grant.c (decode_constant): Interpret SET_TYPE
10114           with integer value, so we output the same stuff as
10115           the user gave us.
10116         * ch-parse.y: Fix indentation.
10117
10118 Fri Apr 30 09:34:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10119
10120         * ch-actions.c (chill_comptypes): Simplify, correct
10121           integer subrange analysis.
10122         * ch-grant.c (seize_implied_names): Add handling for
10123           PROCESS_DECL, PROCESS_TYPE.
10124           (do_seize): Call seize_implied_names for process,
10125           procedure parameters and return value.
10126         * ch-lang.c (finish_chill_enum): Canonicalize enum
10127           types.
10128         * ch-tree.def (PROCESS_TYPE): Add.
10129         * ch-typeck.c (valid_array_index): Call chill_comptypes
10130           rather than broken macro CH_COMPATIBLE.  The logic
10131           in chill_comptypes will get moved to the macro later.
10132
10133 Thu Apr 29 13:07:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10134
10135         * ch-actions.c (build_chill_lower, build_chill_upper):
10136           Handle enumeration types.
10137           (build_chill_binary_op): Call chill_comptypes
10138           to error check IN arguments.  Change error
10139           messages to say 'mode' rather than 'type'.  Cast
10140           tree codes when build is called.
10141         * ch-expr.c (chill_expand_array_assignment): Call
10142           chill_comptypes to validate assignment args.
10143         * ch-lex.l: Add newline for readability.
10144
10145 Wed Apr 28 15:22:18 1993  Bill Cox  (bill@rtl.cygnus.com)
10146
10147         * Makefile.in (ch-hash.h): Add rule to build this
10148           from chill.gperf.  Not yet used.
10149         * ch-actions.c (build_chill_binary_op): Allow enum
10150           subranges on RHS of IN operator.
10151         * ch-grant.c (decode_constant): Recognize
10152           error_mark_node as empty powerset initializer,
10153           re-indent a bit.
10154         * ch-lang.c (deep_fold): Return error_mark_node for
10155           NULL input pointer or incoming error_mark_node.
10156         * ch-lex.l: Ignore PACK and UNPACK keywords. Return
10157           POS, ROW, and STEP as user-defined names.
10158           (name_or_type): New function for above.
10159         * ch-parse.y: Move token defs for following, comment
10160           them separately: NOPACK, PACK, POS, ROW, STEP
10161         * varasm.c (output_constant): Check for VAR_DECLs in
10162           records & unions, like arrays.  Don't abort.
10163
10164 Tue Apr 27 17:42:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10165
10166         * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
10167           rewrite for generality.
10168         * ch-decl.c (grok_chill_variantdefs): Use chill
10169           comptypes, so that subrange compatibility is ok.
10170           (start_chill_function): Use lookup_name(), not
10171           IDENTIFIER_GLOBAL_VALUE, for full generality.
10172         * ch-expr.c (chill_expand_assignment): Need to
10173           handle non-NOP modify codes here, since C code
10174           in build_modify_expr won't understand powersets,
10175           etc.
10176
10177 Tue Apr 27 09:05:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10178
10179         * ch-actions.c (build_max_min): Assign the set's
10180           base type to the function's return type.
10181           (build_chill_function_call): Before complaining
10182           about parameter mismatches, convert certain actual
10183           parameters.
10184         * ch-expr.c (chill_expand_assignment): Before
10185           complaining about LHS/RHS mismatches, convert
10186           certain RHS expressions.
10187         * ch-grant.c (decode_constant): Deep-fold incoming
10188           expression, so we can output it.
10189         * ch-lang.c (deep_const_expr): New function, called
10190           from const_expr, actually traverses the tree
10191           looking at its leaves for 'const'ness.
10192           (deep_fold): New function to fold already-built
10193           trees.
10194         * ch-parse.y (case_expr): Add whitespace.
10195         * ch-tree.h: Add prototype for deep_fold.
10196
10197 Tue Apr 27 07:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10198
10199         * ch-actions.c (chill_comptypes): Allow enumeration
10200           subranges as compatible with the parent enum.
10201           (build_chill_function_call): Before checking type
10202           compatibility, use convert on typeless expressions,
10203           like constructors.
10204         * ch-expr.c (chill_expand_assignment): Before
10205           checking type compatibility, use convert on
10206           typeless expressions, like constructors.
10207         * ch-lex.l: Add comment.
10208
10209 Thu Apr 22 17:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10210
10211         * .cvsignore: Add genopinit, insn-opinit.c
10212         * c-common.c (binary_op_error): Prevent seg fault on
10213           unknown node code.
10214         * ch-typeck.c (build_chill_array_ref): Remove old
10215           lower-bound-of-array-index-nonzero code.
10216         * expr.c (expand-expr, get_inner_reference): Remove
10217           old lower-bound-of-array-index-nonzero code.
10218
10219 Thu Apr 22 16:01:09 1993  Bill Cox  (bill@rtl.cygnus.com)
10220
10221         * c-decl.c (shadow_record_fields): Add pushlevel for
10222           each PROCESS parameter, too.
10223         * ch-process.c (make_process_struct): First working
10224           version.
10225         * ch-tree.def: Add PROCESS_DECL definition.
10226         * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
10227           for make_process_struct.
10228         * expr.c (expand_expr): Add references to
10229           PROCESS_DECL.  Add #include of ch-tree.h.
10230         * tree.c (decl_function_context): Add check for a
10231           PROCESS_DECL, and #include for ch-tree.h.
10232
10233 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10234
10235         * expr.c (expand_expr): Add missing prototypes, and
10236           parameters to expand_expr call.
10237
10238 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10239
10240         * c-decl.c (shadow_record_fields): Add ability to
10241           handle pointers to records/unions.  For PROCESS
10242           compilation.
10243
10244 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10245
10246         * ch-expr.c (chill_expand_expr): Add missing
10247           parameters to expand_expr calls.  Some trivial
10248           reformatting for readability.
10249
10250 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10251
10252         * ch-lex.l: Make send_*_prio externally visible,
10253           default them to zero, eliminate the init flags.
10254           Same for process_type.
10255
10256 Sat Apr 17 10:59:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10257
10258         * ch-actions.c (build_chill_binary_op): Build a
10259           BIT_FIELD_REF tree for IN_EXPR operations.
10260         * ch-typeck.c (build_chill_array_ref): Build a
10261           BIT_FIELD_REF tree for access to packed array of
10262           bits.
10263
10264 Fri Apr 16 12:33:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10265
10266         * ch-parse.y (EXIT action): Improve error checking,
10267           messages.
10268         * ch-typeck.c (chill_expand_tuple): Remove code to
10269           pack sets (moved to varasm.c long ago).
10270         * varasm.c (unpack_set_constructor): Rename size to
10271           bit_size, since 'size' always means bytes.
10272           (pack_set_constructor): Rename size to wd_size,
10273           since 'size' always means bytes.
10274           (output_constant): Set size to zero, so that extra
10275           bytes of padding aren't output after set constants.
10276
10277 Fri Apr 16 11:57:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10278
10279         * .cvsignore: Add .gdbinit.
10280         * ch-decl.c (start_chill_bindings): Add function name
10281           to binding contour's exit_label for EXIT stmt.
10282         * ch-parse.y (EXIT action): Call lookup_name to avoid
10283           inserting label for function name.  Also check
10284           IDENTIFIER_LABEL_VALUE for label's decl.
10285           (caseaction, beginendblock, ifaction): Call
10286           stamp_nesting_label to put action's label into
10287           contour for EXIT to find.
10288
10289 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10290
10291         * expr.c (expand_expr): Unify, clean up handling of
10292           IN_EXPR, and handling of bit-string element ref.
10293           Now, all goes through IN_EXPR handler.
10294         * stmt.c (stamp_nesting_label, expand_exit_labelled):
10295           New functions, which allow either label or
10296           function decls.
10297
10298 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10299
10300         * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
10301           ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
10302           ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
10303           ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
10304         * ch-actions.c (build_chill_binary_op): Move runtime function call
10305           to expr.c.  Just build a tree here.  Clean up error checking.
10306         * ch-convert.c (convert): Simply store a type into an expression if
10307           TREE_TYPE (expr) == NULL.  Prevent error if an enum is to be
10308           converted to a set of such enums.
10309         * ch-loop.c (init_loop_counter): Restore error msg for undeclared
10310           variable if no local scope is to be created for the loop.
10311         * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
10312           remove redundant code which wasn't ever called.
10313
10314 Wed Apr 14 07:54:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10315
10316         * .cvsignore (y.tab.c) : Add to list.
10317         * ch-convert.c (convert): Check pointers better - avoid NULL reference.
10318           Remove redundant check for ERROR_MARK - already checked earlier.
10319         * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
10320           error_mark_node.
10321
10322 Tue Apr 13 16:00:37 1993  Per Bothner  (bothner@cygnus.com)
10323
10324         * c-decl.c (start_function):  If there is a previous
10325         function declaration of the same name, steal its RTL.
10326         This is a kludge needed for forward declarations of
10327         nested functions.
10328         * ch-decl.c (push_chill_extern_function), ch-tree.h:  New
10329         function, for external and seized function declarations.
10330         Make sure to use permanent obstack.
10331         * ch-parse.y (quasi_pdef, extprocedure):  Use new function.
10332
10333         * ch-grant.c (chill_finish_module_code):  Since module
10334         function is no longer visible,, can't get it using
10335         lookup_name().  Use current_function_decl instead.
10336
10337         * ch-decl.c (build_chill_function_type):  Add void_type_node
10338         to end of parameter types list.
10339
10340         * ch-grant.c (chill_start_module_code):  Make sure module
10341         function isn't visible (and hence isn't granted).
10342
10343 Tue Apr 13 15:48:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10344
10345         * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
10346           current contour for DO FOR EVER loops.
10347
10348 Tue Apr 13 14:37:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10349
10350         * ch-parse.y (actionstatement): Add error rule.  Delete
10351           POP_UNUSED_ON_CONTEXT.  Add comments about label name usage.
10352           (nohandleraction): Better error check in EXIT processing.
10353           (optexprlist): Comment out make_function_rtl call.
10354           (seizestatement): Change error to warning.
10355
10356 Tue Apr 13 08:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10357
10358         * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
10359           call.
10360         * ch-loop.c (begin_chill_loop): Take loop label as parameter.  Stamp
10361           its name into the current contour's exit_label, for EXIT to use.
10362         * ch-parse.y: (actionlabel): Save label tree in global variable.
10363           (actionstatement): Clear label to NULL when action is finished.
10364           (handlerstatement, nohandlerstatement): Split actions into
10365           categories which do/don't permit exception handlers.
10366           (exitaction): Move code into nohandleraction, make it work.
10367           (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
10368         * ch-tree.h: Add parameter  to begin_chill_tree prototype.
10369         * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
10370           Note: This implementation of EXIT only exits from loops, not yet
10371                 from other bracketted statements.
10372
10373 Mon Apr 12 13:41:55 1993  Per Bothner  (bothner@rtl.cygnus.com)
10374
10375         * ch-grant.c (chill_grant):  Remove obsolete code.
10376
10377         * ch-decl.c (push_synmode, push_newmode):  Merged to yield ...
10378         * ch-decl.c (push_modedef):  ... w/ slightly different interface.
10379         * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
10380         (modedefinition):  Use new push_modedef function.
10381         * ch-parse.y (modedefinition):  Don't depend on inherited
10382         attributes (- implemented incorrectly!): Use a global variable
10383         parsing_newmode to distinguish synmode and newmode.
10384
10385 Mon Apr 12 08:10:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10386
10387         * ch-loop.c: Diffuse cleanup after big functional changes.
10388         * ch-parse.y: Eliminate temporary variables, now unnecessary.  Use
10389           parse-time stack instead.
10390         * ch-tree.h: Change build_chill_iterator prototype.
10391
10392 Sun Apr 11 15:50:33 1993  Bill Cox  (bill@rtl.cygnus.com)
10393
10394         * ch-convert.c (convert): Replace an ERROR_MARK type - from a
10395           untyped_expr with the given type.  Move chill_expand_case_expr
10396           call inside chill_expand_expr.
10397         * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
10398           chill_handle_case_label, chill_expand_case_expr):  Move to ch-expr.c
10399           from ch-typeck.c.
10400         * ch-loop.c: Major reorganization to support multiple iterators in
10401           DO FOR loop, very little new code, just a re-org.
10402         * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
10403
10404 Sat Apr 10 14:40:12 1993  Bill Cox  (bill@rtl.cygnus.com)
10405
10406         * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
10407         * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
10408           member.
10409         * ch-lex.l (equal_number): Add function to look in the input for '='
10410           followed by a decimal literal.  Call it from directive scanning.
10411           (start state 'ccitt'): Deleted, unused.  Moved unused, but reserved,
10412           tokens to NORMAL state.
10413           (compiler_directive): Replaced by equal_number.  Now the only
10414           recursive call to yylex happens in check_newline at the beginning
10415           of a compilation.
10416
10417 Sat Apr 10 09:55:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10418
10419         * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
10420         * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
10421           'reserve' them.
10422         * ch-parse.y (case_expr): Move code into ch-actions.c.  There will
10423           need to be much more written.
10424         * ch-tree.def (VARY_ARRAY_REF): Add comment.
10425         * ch-tree.h (build_chill_case_expr): Add prototype.
10426         * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
10427           type to the expr.  Check for CASE_EXPR, call expand_case_expr.
10428
10429 Sat Apr 10 01:10:51 1993  Per Bothner  (bothner@rtl.cygnus.com)
10430
10431         * ch-parse,y (in_pseudo_module): New variable.  Try if we're
10432         in a seizefile, but not in a module nested in the seizefile.
10433         Use for backwards compatibility with old grantfiles.
10434         * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
10435         If in_pseudo_module, grant new declaration.
10436         * ch-decl.c (pushd_newmode):  If there is a granted previous
10437         incomplete type, fix it up.
10438         * ch-grant.c (seize_implied_names):  Do remaining types.
10439         Guard against recursion.
10440         * ch-tree.h (IDENTIFIER_ENUM_VALUE):  Removed, not used.
10441         * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
10442         (finish_chill_enum):  Enum constants are marked with
10443         CH_DECL_ENUM so they don't get written to the grantfile.
10444         * ch-tree.h (IDENTIFIER_GRANTED_VALUE):  Allow fast seizing.
10445         * ch-lex.l:  Re-write to use start states, to avoid calling
10446         yylex() recursively.
10447         * ch-lex.l (compiler_directive);  This is now obsolste. FIXME.
10448         * ch-lex.l:  Call push_module and pop_module when reading a
10449         seizefile.  This creates a pseudo-module.
10450         * ch-parse.y:  Clean up handling of empty declarations and
10451         action statements; semicolons are now optional a number of
10452         places.
10453         * ch-parse.y:  Remove some bogus tests for "statement
10454         out of sequence" (they're both legal and work).
10455         * varasm.c (mak_function_rtl):  Remove  kludge that may
10456         not be necessary (and loses anyway).
10457
10458 Fri Apr  9 09:37:38 1993  Bill Cox  (bill@rtl.cygnus.com)
10459
10460         * ch-expr.c (chill_expand_array_assignment): Remove false error about
10461           arrays that are too small.
10462         * ch-parse.y (callaction): Don't pass an error_mark_node to
10463           c_expand_expr_stmt.
10464
10465 Fri Apr  9 00:26:54 1993  Per Bothner  (bothner@rtl.cygnus.com)
10466
10467         * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
10468         New macros.
10469         * ch-actions.c (build_chill_function_call):  Use latter.
10470         * ch-typeck.c (chill_similar):  Fix typo.
10471         * ch-grant.c (raw_decode_mode):  Handle ENCAPSULATED_ARRAY_P
10472         parameter types.
10473         * ch-grant.c (seize_implied_names):  Handle ranges of enums.
10474         * ch-grant.c (do_seize):  Set DECL_SOURCE_FILE and _LINE of
10475         seized declaration to be the point of the seize itself.
10476         * ch-grant.c (chill_grant), ch-tree.h:  Add a parameter
10477         which is the list (in order) of decls in the module.
10478         Don't reverse the getdecls() list; that is handled by caller.
10479         * ch-grant.c (chill_grant):  Test that a declaration is
10480         visible before writing it.
10481         * ch-parse.y (push_module):  Make sure to hide declarations
10482         from surrounding module.
10483         * ch-parse.y (pop_module):  Restore those declarations.
10484         * ch-parse.y (pop_module): This function is now responsible
10485         for writing out for calling chill_grant() to the grant file.
10486         * ch-actions.c (lang_finish):  Remove calls to chill_grant().
10487
10488 Thu Apr  8 16:56:52 1993  Bill Cox  (bill@rtl.cygnus.com)
10489
10490         * ch-actions.c (build_char_array_expr): Add handling of varying
10491           arrays in relational expressions.
10492         * ch-decl.c: Add prototype for lookup_name_current_level.
10493         * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
10494           so its length is used as the temp's size.
10495           (chill_expand_array_assignment): Correct for varying := varying
10496           assignment, clean up.
10497         * ch-typeck.c: Add prototype for require_complete_type.
10498
10499 Wed Apr  7 16:41:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10500
10501         * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
10502           diffuse changes to fix location loops.
10503         * ch-parse.y (location): Remove ref through NULL ptr.
10504
10505 Wed Apr  7 13:42:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
10506
10507         * ch-decl.c (massage_param_node):  New function.
10508         It handles the LOC/IN/OUT/INOUT parameter distinction,
10509         as well as calling build_chill_array_parm_type if needed.
10510         * ch-tree.h (massage_param_node):  New prototype.
10511         * ch-decl.c (push_parms):  Use new massage_param_node().
10512         * ch-parse.y (pmodearg):  Use new massage_param_node().
10513         * ch-parse.y (formpar):  Don't call build_chill_array_parm_type;
10514         now handled by massage_param_node.
10515         * ch-typeck.c (my_build_array_ref):  Handle non-zero array
10516         lower bounds.
10517         * ch-actions.c (build_chill_function_call):  If the formal
10518         parameter is a pseudo record wrapped around an array, make
10519         sure we wrap the actual parameter in a record CONSTRUCTOR.
10520         * ch-typeck.c (build_chill_array_parm_type):  Make sure
10521         the pseudo struct type is allocated on the permanent_obstack.
10522         * ch-parse.y (location):  Remove thinko.
10523         * ch-actions.c (chill_comptypes):  Comment out test for
10524         NEWMODEness - it gets broken by the forward declaration hacks.
10525
10526 Tue Apr  6 18:05:40 1993  Bill Cox  (bill@rtl.cygnus.com)
10527
10528         * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10529         * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10530         * ch-parse.y (location): Do build_component_ref for an array wrapped
10531           in a structure.
10532         * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10533         * ch-typeck.c (build_chill_array_parm_type): Add function, move
10534           build_varying_struct here from ch-actions.c.
10535
10536 Mon Apr  5 19:56:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10537
10538         * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
10539           rather than in-line code - tests LOW and HIGH values.
10540         * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10541         * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10542           isn't zero.
10543
10544 Mon Apr  5 15:45:10 1993  Bill Cox  (bill@rtl.cygnus.com)
10545
10546         * ch-typeck.c (my_build_array_ref): Add some more code from
10547           build_array_ref.  Change checks, error messages to mention
10548           'discrete types'.  I.E. types which don't kiss and tell..
10549
10550 Sat Apr  3 09:27:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10551
10552         * ch-except.c, ch-expr.c: Turn externs into prototypes.
10553         * ch-grant.c (chill_grant): Remove orphan #else.
10554         * ch-tree.h: Add prototype for build_chill_bin_type.
10555         * ch-typeck.c: Turn externs into prototypes, delete code which
10556           was commented out in chill_expand_return; it will never be used.
10557
10558 Fri Apr  2 21:55:14 1993  Per Bothner  (bothner@rtl.cygnus.com)
10559
10560         Major re-write of New module/seize/grant stuff.
10561         Now, a grantfile is a spec module and contains all the
10562         top-level declarations of the granting module, not just
10563         those that are granted.  It also contains explicit grant
10564         statements naming those declared names that are granted.
10565         It also has seize statements and use_seize_file directives
10566         to correctly handle transitive dependencies.
10567
10568         * ch-parse.y:  Change to allow multiple modules per source file.
10569         Allow spec modules (including quasi definitions) as well as
10570         regular modules.
10571         Allow spec modules inside normal modules;  these behave as if
10572         they were outermost.  This violates the Blue Book, but is
10573         needed by the new grantfile mechanism.  (A grant file is a
10574         spec module that gets included by the use_seize_file directive.)
10575         * ch-parse.y (struct module *current_module, push_module,
10576         pop_module):  Support module nesting (for spec modules only).
10577
10578         * ch-tree.h (struct module): New.
10579         * ch-grant.c (granted_decls):  New list of declarations
10580         that have been granted into the outermode pseudo-module.
10581         * ch-grant.c (decode_mode):  If the decl has a name,
10582         always write the name, not just if the decl has already
10583         been written.  Since we write out all decls, we can assume
10584         it will be written later, and depend on the forward
10585         declaration kludges to catch it.
10586         * ch-grant.c (decode_decl):  Don't write out _EXTERN.
10587         Instead write out standard (Blue Book) quasi-definitions.
10588         * ch-grant.c (push_granted):  New function.
10589         * ch-grant.c (seize_implied_names):  New function.  Re-write
10590         how set element names are seized when a set type is seized.
10591         * ch-grant.c (chill_seize):  Work by seraching the
10592         granted_decls list and copying the declaration.
10593         * ch-grant.c (chill_grant):  Write all declarations
10594         declared in this module.  Write GRANT statements for
10595         those granted.   seize statements for decls seized from
10596         other modules.  Write extra syntax to make a complete
10597         spec module.
10598         * ch-grant.c (grant_use_seizefile):  Copy use_seize_file
10599         directives into grant file.
10600         * ch-lex.l (setup_seizefile_read):  Call grant_use_seizefile.
10601
10602         * ch-lex.l (struct input_state, current_input_state,
10603         push_input_file, pop_input_file):  New (type, variable,
10604         function*2).  Used to save and  restore state on an input file.
10605         * ch-lex.l:  Clean up to handle nested input seizefiles
10606         (needed by new grant/seize mechanism.
10607         * ch-lex.l (skip_to_end_of_directive):  New function.
10608         * ch-lex.l (compiler_directive: USE_SEIZE_FILE):  Make sure
10609         we skip to the end of the directive *before* we switch
10610         input files.
10611         * ch-lex.l (setup_seizefile_read):  Prevent reading the
10612         same seizefile twice (otherwise likely with new grant/seize).
10613         * ch-lex.l:  Recognize SPEC.  Misc cleanups.
10614
10615         * ch-parse.y:  Fixed foreward references of types.
10616         Removed the unknown_type_node crock.
10617         * ch-decl.c:  Remove all uses of unknown_type_node.
10618         Check for TYPE_SIZE zero instead.
10619         * ch-decl.c (fixup_unknown_type):  Make sure new mode
10620         gets copied into old mode.  Merge their variant chains.
10621         * c-decl.c (lookup_name_current_level):  Make non-static.
10622         * ch-decl.c (lookup_name_current_level):  No longer needed.
10623
10624         * ch-parse.y (call):  Allow an implicitly defined function
10625         name following the CALL keyword.
10626         * ch-tree.h (struct lang_identifier): Add implicit_decl,
10627         and make sure order of fields matches c-tree.h.
10628
10629         * ch-actions.c (lang_init, build_allocate_memory_call,
10630         build_allocate_globals_memory_call):  Fix names (add initial '_')
10631         and prototypes of _allocate_[global_]memory (2nd param is ref).
10632         Use build_chill_function_call, not build_function_call,
10633         so the reference parameter gets handled.
10634         * ch-actions.c. (lang_init):  Make sure boolean_{true,false}_node
10635         have boolean_type_node as their types.
10636         * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10637         work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10638
10639         * ch-except.c:  Make sure an end_label is generated,
10640         and jump to it if there is no exception.
10641
10642         * ch-convert.c (convert_to_reference):  Strip off NOP_EXPR casts.
10643         * expr.c (expand_expr):  Handle NOP_EXPR as Chill-style casts.
10644         (Need cleaning up and FSF installation!)
10645         * ch-parse.y:  If taking the address of a cast, move the
10646         ADDR_EXPR inside the NOP_EXPR.
10647
10648         * ch-typeck.c (my_build_array_ref):  Simplified, more suitable
10649         versions of build_array_ref from c-decl.c.  (E.g. don't barf
10650         if index type is char or bool.)
10651         * ch-typeck.c (build_chill_array_ref):  Use my_build_array-ref.
10652
10653         * ch-typech.c (build_chill_bin_type):  New function.
10654         Support BIN(N) range type specification.
10655         * ch-parse.y (mode2), ch-lex.l:  Recognize BIN(N).
10656
10657         * ch-tree.h (CH_SIMILAR):  Redefine in terms of chill_similar.
10658         * ch-typeck.c (chill_similar):  New function.  Recognize that
10659         that range types are similar to their parent types.
10660
10661         * ch-tree.h:  Declare flag_local_loop_counter.
10662         * ch-loop.c:  Whether the loop variable is local to the loop
10663         in now controlled by flag_local_loop_counter, instead of
10664         #ifdef'd on CREATE_SCOPE.
10665         * ch-actions.c (lang_decode_option):  Recognize flags
10666         "-f[no-]local-loop-counter".
10667         * toplev.c (lang_options):  Add Chill flags -f[no-]local-loop-counter.
10668
10669         * varasm.c (make_function_rtl):  Due to problems with forward
10670         references, don't rename nested functions in Chill.  (Kudge!)
10671
10672 Sun Mar 28 10:12:45 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
10673
10674         * ch-lex.l (push_back, readstring): Fix prototypes.
10675
10676 Fri Mar 26 18:32:15 1993  Bill Cox  (bill@rtl.cygnus.com)
10677
10678         * ch-parse.y: Put %type directives back into alpha order.
10679           (variant_alternative): Simplify error_mark test.
10680           (variantfields, varianthack): Add error_mark checks.
10681
10682 Fri Mar 26 13:36:23 1993  Bill Cox  (bill@rtl.cygnus.com)
10683
10684         * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10685         * ch-parse.y (get_type_of): Add function to deal with possible fwd
10686           declared type name.  Call it from lotsa places.  Add lotsa checks
10687           for error_mark_node.  Standardize indentations.
10688
10689 Thu Mar 25 15:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
10690
10691         * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10692           for array assignments.
10693         * ch-parse.y (action): Add recognition for allocate_memory and
10694           allocate_global_memory system calls.
10695           (mode2): Remove ill-conceived error check that broke REFs to
10696           as-yet-undeclared types.  Check for IDENTIFIER_NODE, lookup its
10697           DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10698           (variantfields, varianthack): Clean up.
10699           (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10700           there, pass TREE_TYPE of decl to grok_fixedfields.
10701           (labellist): Explicitly assign error_mark_node to signal error.
10702         * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10703           rather than seg faulting.
10704
10705 Thu Mar 25 10:35:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10706
10707         * ch-actions.c (lang_init): build_function_type for allocate_memory
10708           and allocate_global_memory runtime routines.  Move discrete_type_p
10709           into ch-typeck.c.
10710         * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10711           in build_chill_cast.
10712
10713 Wed Mar 24 16:25:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
10714
10715         * ch-grant.c:  Don't grant previously seized names.
10716
10717 Tue Mar 23 15:25:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10718
10719         * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10720         * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10721           avoid abort.
10722
10723 Tue Mar 23 09:03:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10724
10725         * ch-actions.c (build_char_array_expr): Just build a type for the
10726           result of a CONCAT_EXPR, and pass the tree back.
10727           chill_expand_array_assignment can do a better job of
10728           code-generation.
10729         * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10730           code.
10731
10732 Mon Mar 22 12:42:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
10733
10734         * ch-except.c (start_handler_array):  Make sure the handler
10735         array and its type get on the permanent obstack.
10736         * ch-grant.c (write_grant_file):  Don't write the _INIT=name
10737         specifier:  It isn't needed, and loses (because of funny
10738         characters in the chill_initializer_name).
10739         * ch-decl.c (push_synmode):  Set TYPE_NAME(mode) = syndecl.
10740         * ch-lang.c (finish_chill_enum):  Don't allocate a dummy
10741         TYPE_DECL for the enum.  I don't think it is needed (?),
10742         and removing it is needed for the change above.
10743
10744         * ch-grant.c (grant_array_type, decode_mode):  Remove unused
10745         'decl' parameter.
10746         * ch-grant.ch (raw_decode_mode):  New function, based on old
10747         decode_mode.
10748         * ch-grant.c (decode_mode);  This is now just a wrapper around
10749         raw-decode_mode - but does not call raw_decode_mode if the
10750         type is named and has already been emitted.
10751
10752 Fri Mar 19 11:55:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10753
10754         * ch-actions.c: Add prototypes, remove unused variables.  Attempt to
10755           continue generating grant file in presence of error (Wilfried's
10756           patch to lang_finish).
10757         * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10758           after each statement.  Move convert call into
10759           chill_expand_assignment from ch-parse.y.
10760         * ch-grant.c: Generally re-order, clean up.  Include Per's decode_mode
10761           simplification.  Include commented-out hack in decode_mode to return
10762           type's name if type SEIZEd or already GRANTed in this file.
10763         * ch-lex.l: Add prototypes.
10764         * ch-parse.y (assignaction): Move convert call into
10765           chill_expand_assignment.
10766
10767 Thu Mar 18 16:04:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10768
10769         * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10770           comparison.
10771         * ch-decl.c: Add prototypes, correct error message spelling, remove
10772           unused variables.
10773         * ch-lang.c (build_chill_range_type): Add error message.  Add prototypes.
10774           Correct comment spelling.
10775         * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10776           assignment in conditional.
10777         * ch-loop.c: Add prototypes, remove unused variable.
10778         * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10779           parameter is seen, don't count it in structured_variable_list.  Pre-
10780           vents seg fault when only WITH operand is invalid.
10781         * ch-parse.y (label_spec): Correct assignment within IF expression which
10782           was intended to be equality test.  Remove unused variables.
10783         * ch-tree.h: Add prototype.  Remove unused EXCP_CODE enumeration, and
10784           prototyping editorial comments.
10785         * ch-typeck.c: Disable generation of code to validate array index for
10786           now.  Should be done as a call-back from more generic array_ref code.
10787           Clean up parameter checking.  Remove unused variables.
10788
10789 Fri Mar 12 11:57:32 1993  Bill Cox  (bill@rtl.cygnus.com)
10790
10791         * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10792         * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10793           build_char_array_expr.
10794         * ch-convert.c (convert): protect against seg fault, if type == NULL.
10795         * ch-expr.c (chill_expand_expr): Add FIXME comment.
10796
10797 Fri Mar 12 11:04:02 1993  Bill Cox  (bill@rtl.cygnus.com)
10798
10799         * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10800           Thanks very much to dje!
10801
10802 Thu Mar 11 21:06:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10803
10804         * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10805           Move CONCAT_EXPR handling from binary_op to array_expr.  Add
10806           handling for relationals between varying arrays to array_expr.
10807
10808 Thu Mar 11 19:20:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10809
10810         * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10811           *BIT* length of powersets and arrays of BOOLs.
10812           (invalid_left_operand, invalid_right_operand): Disallow relationals
10813           with arrays of BOOL as operands.
10814         * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10815           comparing pointers.
10816         * ch-decl.c (push_newmode): Re-indent.
10817         * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10818           and arrays of BOOLs.
10819         * ch-lang.c (build_chill_array_type): Add parameter error checking.
10820
10821 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10822
10823         * expr.c (store_constructor): Handle set construction.
10824         * varasm.c (output_constant): Prevent seg fault - terminate case
10825           alternative with a 'break'.
10826
10827 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10828
10829         * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10830         * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10831         * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10832
10833 Mon Mar  8 13:16:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10834
10835         * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10836           be folded.
10837
10838 Mon Mar  8 10:13:57 1993  Bill Cox  (bill@rtl.cygnus.com)
10839
10840         * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10841           Correct some non-standard indentations.
10842
10843 Fri Mar  5 14:58:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10844
10845         * ch-actions.c: Fix up comment.
10846
10847 Thu Mar  4 18:05:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10848
10849         * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10850           negating the result of calling __eqpowerset.  New function
10851           discrete_type_p().
10852         * ch-grant.c (get_tag_value): Don't seg fault referring to an
10853           anonymous enumeration's name.
10854         * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10855         * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10856         * ch-parse.y (label_spec): redefine variant structure label_spec
10857           to agree with the Z.200 spec.
10858                      (locdec): Error if set/bitstring initialized with a tuple.
10859                      (case_label, arrayindex): Use new discrete_type_p
10860                      function.
10861         * ch-process.c: Fix typo.
10862
10863 Wed Mar  3 14:30:53 1993  Per Bothner  (bothner@rtl.cygnus.com)
10864
10865         * ch-lang.c, ch-tree.h: Rename build_range_type to
10866         build_chill_range_type.  Call new build_range_type() in tree.c.
10867         * ch-parse.y:  Call build_chill_range_type as approriate.
10868         * ch-typeck.c (build_chill_cast);  Clean up.
10869
10870 Wed Mar  3 09:36:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10871
10872         * ch-parse.y: Define CONTINUE_EVENT token.
10873         * ch-parse.y (mode2): Give error message for SYN modea = modeb
10874           where modeb is undefined.
10875
10876 Tue Mar  2 20:16:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10877
10878         * ch-actions.c: Add builtin function descriptions for memset and
10879           bitsetpowerset.  Allow build_chill_num expression to exceed 16 bits,
10880           but not 32.
10881         * ch-tree.h: Correct chill_handle_case_default prototype.
10882         * ch-actions.h, ch-lex.h: Add prototypes.
10883         * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10884
10885 Thu Feb 25 17:35:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10886
10887         * c-decl.c (init_decl_processing): Disable creation of C-specific
10888           builtin functions.  They pollute the CHILL name space.
10889         * stor-layout.c (variable_size): Allow variable-size objects at file
10890           scope, for CHILL.
10891
10892 Fri Feb 26 07:14:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10893
10894         * c-decl.c (finsh_decl): Don't output non-constant storage size
10895           error for CHILL
10896         * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10897           call in build_chill_cause_exception.
10898         * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10899         * ch-loop.c (build_temporary_variable): New function
10900         * ch-process.c: Call build_temporary_variable, spell start_process
10901           correctly.
10902         * ch-tree.h: Extern for build_temporary_variable
10903
10904 Thu Feb 25 12:09:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10905
10906         * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10907           builtins - they pollute the CHILL name space.
10908         * ch-typeck.c (valid_array_index): Correct upper-bound check.
10909         * expr.c (expand_expr): Use actual library name for __inpowerset
10910           builtin.
10911         * stor-layout.c (variable_size): Disable complaint about variable-
10912           size type or decl at file scope.  Perhaps later this s.b. a warning.
10913         * varasm.c (emit_set_data): Add function.
10914           (output_constant): Call new emit_set_data function for VAR_DECLs,
10915           in addition to CONSTRUCTORs.
10916
10917 Thu Feb 25 11:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
10918
10919         * ch-actions.c: Change all builtin functions names to their
10920           actual library names.  Change references to boolean_type_node
10921           to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10922           convention.
10923           build_set_expr: Remove length parameter, call powersetlen() instead.
10924             remove handling of CHAR arrays - they're handled in build_char_array_expr.
10925             Call __eqpowerset to test for equality - we can't use a byte-length -
10926             need bitcount instead.
10927           build_chill_compound_expr, internal_build_compound_expr: Copy from C
10928             version that does stuff we don't want.
10929           build_binary_op: Check for in_size_in_bytes return < 0, indicating
10930             size is changeable at run time.  Build two memcpy calls to implement
10931             string concatenation.
10932           powersetlen: Add function.
10933           build_chill_card: Call powersetlen.
10934           build_chill_max_min:  Common code for powerset max/min.
10935           build_chill_length: Move VARYING array handling before regular char
10936             array handling.
10937         * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10938           the VARYING status of the target to do this correctly.  Use powersetlen
10939           for the powerset operations, not a byte length.
10940         * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10941           for each CHILL loop, as Z.200 requires.  Add powerset and error flags
10942           to loop structure.  Evaluate user's powerset expression into a temp,
10943           scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10944           for powerset loop.  Only do loop-end assignments if NOT a powerset
10945           loop, which has much less overhead now.
10946         * ch-tree.h: Add prototype for powersetlen.
10947
10948 Fri Feb 19 08:40:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10949
10950         * ch-lex.l (convert_number): Evaluate number and pass it as
10951           HOST_WIDE_INT.
10952
10953 Fri Feb 19 08:56:44 1993  Michael Tiemann  (fs_tie at rcsw18)
10954
10955         * ch-typeck.c (build_chill_array_ref): Handle newmodes
10956         correctly.
10957
10958         * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10959         we are going to return 0.
10960
10961         * ch-convert.c (convert_to_reference): Don't use
10962         TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10963         (which must match the type of the expr).
10964
10965         * ch-grant.c (chill_seize): Don't let a type be copied just
10966         because we are seizing it.
10967
10968         * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10969         TYPE_MAX_VALUE to integer type.
10970
10971         * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10972         tree type of the bounds.
10973         (build_loop_top): type of GE_EXPR and LE_EXPR is
10974         boolean_type_node, not lp->iter_type.
10975         (for_location): Ditto.
10976
10977         * ch-action.c (build_chill_lower,build_chill_upper): Handle
10978         ENUMERAL_TYPE.  Also, handle different kinds of arguments more
10979         cleanly.
10980
10981         * ch-parse.y (iteration): Convert start_exp and end_exp to
10982         match the type of modename.
10983
10984         * ch-grant.c (chill_seize_aggr): Search also through anonymous
10985         types.
10986
10987         * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10988         already been seized, and if so, do nothing.
10989
10990         * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10991         comes out error_mark_node, set ERRONEOUS.
10992
10993         * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10994         don't use it.
10995
10996         * ch-action.c (chill_comptypes): Test for structural
10997         equivalence of enums.
10998
10999         * ch-typeck.c (build_chill_array_ref): Convert INDEX to
11000         TYPE_MIN_VALUE of DOMAIN if the types are compatible.
11001
11002         * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
11003         ARRAY_TYPE, seize the domain type if its a set.
11004
11005 Thu Feb 18 20:02:15 1993  Per Bothner  (bothner@rtl.cygnus.com)
11006
11007         * c-typeck.c (process_init_constructor):  Emit error if some
11008         array elements are not initialized.
11009         * c-typeck.c (process_init_constructor):  Call digest_init()
11010         recursively to expand default_value.
11011         * ch-expr.c (chill_expand_array_assignment):  Simplify, and
11012         handle the case that the lhs has dynamic size (e.g. a slice).
11013         * ch-parse.y (elementlist):  Handle the case that tupleelement
11014         generates more than one TREE_LIST node.
11015
11016 Thu Feb 18 12:40:56 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
11017
11018         * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
11019         * c-typeck.c (lookup_field): add function, calls.
11020         * ch-actions.c (build_chill_binary_op): figure return_type differently.
11021         * ch-convert.c (convert_to_reference): return error_mark_node,
11022           STRIP_NOPS.  (convert): Braces for readability.
11023         * ch-decl.c (build_chill_function_type): accept typespec as parm.
11024           Handle exceptions.
11025           (grok_chill_variantdefs): call comptypes, not chill_comptypes.
11026         * ch-expr.c (chill_expand_assignment): handle references.
11027         * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
11028         * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
11029           call convert.  Generally handle reference types.
11030
11031
11032 Thu Feb 18 09:30:11 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
11033
11034         * ch-actions.c (chill_comptypes): Figure out which newmode or
11035           synmode decls look most canonical.
11036         * ch-convert.c (convert): handle location conversions of records,
11037           unions and arrays.
11038         * ch-decl.c (fixup_unknown_type): changes for variant records
11039         * ch-parse.y (tupleelement): avoid confusing digest_init.
11040         * ch-typeck.c (build_chill_array_ref): give element ref the
11041           type of the ELEMENT, not the array (Bill Cox).
11042
11043 Wed Feb 17 11:52:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11044
11045         * ch-parse.y: change push_newmode and push_synmode interfaces.
11046         * ch-actions.c (build_chill_binary_op): convert operands.
11047
11048 Wed Feb 17 10:54:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11049
11050         * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
11051           handle reference types.
11052         * ch-decl.c (push_newmode, push_synmode): rewritten
11053         * ch-process.c (make_process_struct): new push_newmode interface.
11054         * ch-typeck.c (build_chill_cast): change interface, error checks.
11055
11056 Wed Feb 17 09:50:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11057
11058         * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
11059           code.
11060         * ch-typeck.c (valid_array_index): new function.
11061
11062 Tue Feb 16 22:36:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11063
11064         * ch-convert.c (convert):  Slightly more correct conversion
11065         for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
11066         * ch-expr.c (chill_expand_array_assignment):  Invoke
11067         __builtin_memcpy using build_function_call, not directly at
11068         the rtx level (which doesn't work).
11069         * ch-typeck.c (build_chill_slice):  First attempt at slices.
11070         * ch-tree.h,  ch-typeck.c (build_chill_slice_with_range,
11071         build_chill_slice_with_length):  New functions.
11072         * ch-parse.y:  Use new slice-building functions.
11073         * expr.c (get_inner_reference):  Subtract low bound of
11074         array when doing an ARRAY_REF.
11075
11076 Tue Feb 16 14:17:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11077
11078         * ch-actions.c (build_chill_function_call): better comments.
11079         * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
11080         * ch-parse.y: indentation cleanup
11081
11082 Tue Feb 16 12:03:53 1993  Michael Tiemann  (tiemann@cygnus.com)
11083
11084         * ch-decl.c (grok_chill_variantdefs): Really implement variant
11085         records for CHILL.
11086         * ch-grant.c (get_tag_value): New function.
11087         * ch-grant.c (decode_mode): Grant variant records.
11088
11089         * ch-grant.c (chill_seize): If we seize a set, seize the set
11090         values.
11091
11092         * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
11093         constructs.
11094
11095         * ch-parse.y (EMPTY): New pseudo-token to disambiguate
11096         variant_alternatives.
11097         (current_fieldlist): New variable to help processing tag
11098         declarations in variant records.
11099         (fields): Renamed from structdef.
11100         (field): Renamed from fields.
11101         (varianthack): New non-terminal to handle parsing ambiguity
11102         for variant records.
11103         (optlabellist): Changed to preserve CONST_DECLs when they are
11104         parsed.
11105
11106         * ch-tree.h (TYPE_TAGFIELD): New macro.
11107         (TYPE_TAG_VALUES): Ditto.
11108
11109 Mon Feb 15 00:49:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11110
11111         * ch-grant.c (decode_mode):  Fix output for powerset modes.
11112         * ch-grant.c (decode_constant):  Support grant output of
11113         powerset literals.
11114         * ch-actions.c (build_chill_binary_op):  IN_EXPR fix.
11115         * expr.c (expand_expr):  Add Chill-specific kludge for
11116         BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
11117         * ch-expr.c (chill_expand_assignment):  Remove no-longer-needed
11118         special-case support for a BIT_FIELD_REF in right-hand-side.
11119         * ch-lang.c (finish_chill_enum):  Patch up enum elements to
11120         have the correct type (instead of integers, as in C).
11121
11122         * ch-lex.l, ch-parse.y:  Add disgusting hack (involving
11123         context-dependent look-ahead) so we can parse exception
11124         handlers correctly.
11125         * c-typeck.c (digest_init):  Set output type for SET_TYPEs.
11126         * varasm.c (unpack_set_constructor):  Add support for
11127         (power-)set ranges (i.e. low_element:high_element).
11128
11129 Sun Feb 14 13:37:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11130
11131         * ch-inout.c: delete unused #include
11132         * ch-typeck.c (build_chill_slice): turn abort call into error msg.
11133
11134 Sat Feb 13 13:13:31 1993  Bill Cox  (bill@rtl.cygnus.com)
11135
11136         * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
11137
11138 Sat Feb 13 12:17:41 1993  Bill Cox  (bill@rtl.cygnus.com)
11139
11140         * Makefile.in: add lots of header files to the CHILL dependencies
11141
11142 Fri Feb 12 15:48:27 1993  Per Bothner  (bothner@rtl.cygnus.com)
11143
11144         * ch-actions.c (build_chill_function_call):  Don't return
11145         error_mark_node on empty parameter-list.
11146
11147 Fri Feb 12 12:54:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11148
11149         * ch-actions.c (build_chill_function_call): fix start_decl parms.
11150         * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
11151
11152 Fri Feb 12 10:32:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11153
11154         * ch-actions.c (build_chill_function_call): create temps, do
11155           assignments to handle INOUT and OUT parameters.
11156         * ch-decl.c (build_chill_function_type): better parameter name.
11157         * ch-parse.y (action): keep rules in alpha order.
11158           (pmodearg): turn INOUT, OUT parameter types into reference types.
11159         * ch-typeck.c (build_tree_slice): indentation change.
11160
11161 Thu Feb 11 23:16:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11162
11163         * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
11164         take a list of elements which are in the set.  This corresponds
11165         better to the tuple input form in Chill (and Pascal).
11166         * varasm.c (unpack_set_constructor, pack_set_constructor):
11167         New functions, to expand SET_TYPE CONSTRUCTORs.
11168         * varasm.c (output_constructor):  Use pack_set_constructor
11169         to assemble a SET_TYPE constant from a CONSTRUCTOR.
11170
11171         * ch-grant.c (decode_constant):  Better grant for strings,
11172         enumeral, and bitstring constants.
11173         * ch-grant.c:  Fixes in seize to avoid duplicates, and emit
11174         things in the correct order.
11175         * c-typeck.c (chill_initializer_constant_valid_p):  Kludge
11176         needed to export a static function.
11177         * ch-typeck.c (convert):  Avoid needlessly (and lossingly) calling
11178         chill_expand_tuple to convert fix string to varying.
11179         * ch-actions.c (build_chill_binary_op):  Promote short
11180         integer operands if needed (otherwise emit routines barf).
11181         * ch-tree.h (SET_WORD_SIZE):  New macro.
11182         * ch-parse.y:  Fix syntax for RECEIVE CASE.
11183         * ch-parse.y (location):  If IDENTIFIER is a CONST_DECL
11184         return its value instead.
11185
11186 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11187
11188         * ch-actions.c (build_chill_max, build_chill_min): clean up
11189         * ch-typeck.c (chill_expand_tuple): correct set initialization from
11190           an enumeration tuple.  Add sort_constructor function.
11191
11192 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11193
11194         * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
11195           BOOLEAN_TYPE w/out an abort.
11196
11197 Wed Feb 10 14:59:53 1993  Bill Cox  (bill@rtl.cygnus.com)
11198
11199         * ch-actions.c: change most integer_type_node references to
11200           chill_integer_type_node.  Rewrite _max and _min routines,
11201           redefine the signatures for those runtime routines.  Move
11202           empty-set check into runtime.
11203         * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
11204           most integer_type_node references to chill_integer_type_node.
11205
11206 Tue Feb  9 16:00:05 1993  Per Bothner  (bothner@rtl.cygnus.com)
11207
11208         * ch-except.c:  New file.  Stuff for exception handling.
11209         * ch-parse.y:  Add working exception handling support.
11210         * ch-lex.l, ch-parse.y:  Prefer standard type terminology
11211         (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
11212         * ch-grant.c:  Fix various problems related to granting
11213         types such as bitsets.
11214         * ch-tree.c (build_bitstring_type):  Set TYPE_MIN_VALUE
11215         to distinguish bitstrings from powersets (in the same way
11216         we distinguish char strings from char arrays).
11217         * ch-tree.h:  New macro CH_BOOL_TYPE_P.
11218         * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
11219         Undo kludge where integer_type_node was hardwired to 16 bits.
11220         Make integer_type_node etc have the same size as in cc1.
11221         New types chill_integer_type_node and chill_unsigned_type_node
11222         that correspond to the Chill source types INT and UINT.
11223         For now, these match the C 'short' types, but that should
11224         become a configuration option later,
11225
11226 Tue Feb  9 11:41:25 1993  Bill Cox  (bill@rtl.cygnus.com)
11227
11228         * ch-actions.c (build_chill_unary_op): allow NOT of a set.
11229
11230 Tue Feb  9 08:27:18 1993  Bill Cox  (bill@rtl.cygnus.com)
11231
11232         * ch-actions.c (build_chill_function_call): add test for
11233           too many/few actual parameters (and avoid seg fault).
11234         * ch-decl.c (do_decls): code cleanup for readability.
11235         * ch-loop.c (begin_chill_loop, end_chill_loop): remove
11236           emit_nop() calls - they now (since exceptions) cause seg faults.
11237           Make derogation on poor CHILL compiler non-specific.
11238         * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
11239         * ch-tree.h: remove prototypes added to c-tree.h.
11240         * ch-typeck.c (build_chill_array_ref): correct getting domain
11241           subtree for a PARM_DECL.  Subscripting a SET_TYPE is turned into
11242           an IN_EXPR.
11243
11244 Sun Feb  7 18:20:49 1993  Bill Cox  (bill@rtl.cygnus.com)
11245
11246         * ch-tree.def: add a new tree type - just for varying array
11247           references.  We were using ARRAY_REF, but the underlying C
11248           code also generates that one.
11249         * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
11250
11251 Sun Feb  7 17:33:17 1993  Bill Cox  (bill@rtl.cygnus.com)
11252
11253         * ch-convert.c: test given type against type of expr before
11254           calling chill_expand_tuple.  We were getting lots of spurious
11255           calls...
11256
11257 Fri Feb  5 15:24:01 1993  Per Bothner  (bothner@rtl.cygnus.com)
11258
11259         * cccp.c:  Merge in various Chill-specific changes.
11260         * gcc.c (default_compilers array):  Pass -lang-chill
11261         to cpp, not -lang-ch.
11262
11263 Fri Jan 29 17:18:22 1993  Per Bothner  (bothner@rtl.cygnus.com)
11264
11265         * Makefile.in (install-libchill, install-librmt):  Removed.
11266         * ch-actions.c (build_chill_exception_decl):  Change decl
11267         to initialized char array, rather than uninitialized common.
11268         (Simplifies extracting string name of exception.)
11269         * ch-actions.c:  Adjust interface to cause_exception accordingly.
11270         * ch-typeck.c (build_chill_array_ref):  Cause rangefail if
11271         index > limit, not >= limit.
11272
11273         * ch-actions.c (build_chill_function_call):  Rename misleading
11274         formal parameter.
11275         * ch-decl.c (do_decls):  Allow (again) general initializer exprs.
11276         * ch-parse.y (call):  Test for function call needs to test for
11277         FUNCTION_TYPE, not FUNCTION_DECL.
11278         nreverse arg list to build_chill_array_ref.
11279         * ch-typeck.c (build_chill_array_ref):  Do recursive call at end
11280         and only if multiple indexes.
11281         * ch-typeck.c:  Cleanups.
11282
11283 Fri Jan 29 11:05:58 1993  Bill Cox  (bill@rtl.cygnus.com)
11284
11285         * ch-decl.c (do_decls): handle set initializations better, more to do.
11286         * ch-loop.c (begin_for_range): correct interface to expand_start_cond
11287           and build_binary_op.
11288         * ch-tree.h: lots more prototypes
11289         * ch-typeck.c (build_array_from_set): added function.
11290         * ch-typeck.c (chill_expand_tuple): handle set initializations better.
11291
11292 Thu Jan 28 17:41:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
11293
11294         * ch-grant.c (set_default_grant_file):  Change default.
11295         Normally, grant file should end up in cwd.
11296         * ch-lang.c (build_chill_struct_type):  Call pushtag,
11297         for the sake of debugging.
11298         * ch-lex.l:  Improve comment parsing.
11299         * ch-lex.l (readstring):  Some improvements.
11300         Initial support for control sequences in string literals.a
11301
11302 Thu Jan 28 16:16:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11303
11304         * ch-convert.c (convert): correct fixed->varying conversion.
11305         * ch-parse.y (mode2): delete unesthetic newline.
11306
11307 Thu Jan 28 10:32:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11308
11309         * ch-actions.c: delete maybe_array_ref()
11310         * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
11311           calling convert().
11312         * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
11313           supervision actions & builtins
11314         * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
11315           smaller actions directly (maybe_array_ref() used to call them).
11316         * ch-tree.h: add build_chill_function_call, build_chill_slice
11317         * ch-typeck.c: add build_chill_slice()
11318
11319 Thu Jan 28 08:44:28 1993  Bill Cox  (bill@rtl.cygnus.com)
11320
11321         * ch-tree.h: bring up to date with ch-actions.c changes.
11322
11323 Wed Jan 27 23:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11324
11325         * ch-expr.c (chill_expand_assignment): handle an RHS varying array
11326           reference.
11327
11328 Wed Jan 27 22:28:36 1993  Per Bothner  (bothner@rtl.cygnus.com)
11329
11330         * ch-grant.c (decode_constant):  Add REAL_TYPE support.
11331         * ch-actions.c (build_chill_exception_decl):  New function.
11332         * ch-actions (build_chill_cause_exception, cond_exceptions):
11333         Convert to take a (char*) parameter (the exception name).
11334         * ch-actions.c, ch-expr.c, ch-typeck.c:  Convert calls to
11335         cond_exception.
11336         * ch-parse.y (check_end_label):  New function, to check if
11337         and end label matches start label.
11338         * ch-parse.y:  Fix syntax to properly recognize and
11339         test optional end labels (using check_end_label).
11340         * ch-decl.c (finish_chill_function):  Simplify, since
11341         we assume check_end_label has already been called.
11342         * ch-parse.y:  Put in infrastructure for exception handling.
11343
11344 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11345
11346         * ch-actions.c: delete convert_chill_parameter, replace call with
11347           call to convert().
11348         * ch-convert.c (convert): combine chill_give_type_to_expr in here.
11349         * ch-decl.c: call convert rather than chill_give_type_to_expr.
11350         * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
11351         * ch-expr.c (chill_expand_assignment): just call convert.
11352         * ch-loop.c (end_chill_loop): expand the end of the loop for a
11353           do while.
11354         * ch-parse.y: call convert rather than chill_give_type_to_expr.
11355         * ch-process.c: checkpoint.
11356         * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
11357
11358 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11359
11360         * ch-grant.c (grant_array_type): new function to allow handling of
11361           VARYING array types.
11362
11363 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11364
11365         * ch-typeck.c (chill_give_type_to_expr): fix typo.  Reorder to
11366           avoid checking types on CONSTRUCTORs.  Correct typo.
11367         * ch-expr.c (expand_assignment_to_varying_array): use proper
11368           expansion function expand_expr_stmt.
11369         * ch-expr.c (expand_chill_assignment): only convert VARYING
11370           array refs or RHS.
11371
11372 Wed Jan 27 15:32:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11373
11374         * ch-actions.c (build_chill_length, build_chill_lower,
11375                         build_chill_upper): accept parameters, too.
11376         * ch-expr.c (chill_expand_assignment):  decipher ARRAY_REF on RHS.
11377         * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
11378           assign proper type to ARRAY_REF expression.
11379
11380 Wed Jan 27 09:51:46 1993  Bill Cox  (bill@rtl.cygnus.com)
11381
11382         * ch-actions.c (build_chill_binary_op): delete unused variable,
11383           get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
11384         * ch-actions.c (build_chill_repetition_op): handle differently-built
11385           declaration trees.
11386         * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
11387         * ch-typeck.c (chill_give_type_to_expr): give type to constructor
11388
11389 Tue Jan 26 11:32:38 1993  Bill Cox  (bill@rtl.cygnus.com)
11390
11391         * ch-parse.y (ifaction): re-add lost call to expand_end_code().
11392         * ch-parse.y (siezelist, grantlist): use 'name' rather than
11393           'checked_name'.  It makes no sense to check sieze/grant names
11394           for WITH expansion.
11395         * ch-expr.c (chill_expand_expr): delete unnecessary (and
11396           seg-fault-causing) code.
11397         * ch-expr.c (chill_expand_assignment): make test for varying array
11398           on the LHS more specific.
11399         * ch-actions.c (invalid_left_operand, invalid_right_operand): error
11400           for use of MOD, REM operators.
11401         * ch-actions.c (build_chill_repetition_op): error for bit-field
11402           initializers (which will get handled in the lexer).
11403
11404 Mon Jan 25 17:26:47 1993  Bill Cox  (bill@rtl.cygnus.com)
11405
11406         * ch-typeck.c (build_chill_array_ref),
11407         * ch-expr.c (chill_expand_expr, chill_expand_assignment):
11408           translate varying array ref into ARRAY_REF, defer processing
11409           until chill_expand_expr.  Update array's length field in
11410           new function expand_assignment_to_varying_array.
11411
11412 Mon Jan 25 14:57:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11413
11414         * ch-parse.y (mode2): eliminate old method to mark varying arrays.
11415         * ch-expr.c (expand_varying_length_assignment): repair scaling of
11416           RHS expression.
11417
11418 Mon Jan 25 11:44:21 1993  Per Bothner  (bothner@cygnus.com)
11419
11420         * ch-parse.y:  Allow character and bitstring literals
11421         in string repetition operator.
11422
11423 Sat Jan 23 14:18:11 1993  Per Bothner  (bothner@cygnus.com)
11424
11425         * ch-parse.y (primval):  Re-recognize '(' expr ')'.
11426         * ch-parse.y (name):  Remove call to check_identifier -
11427         this is not appropriate in certain contexts.
11428         * ch-parse.y (checked_name):  Same as <name>, but *with* the
11429         call to check_identifier.  Use where appropriate.
11430         * ch-parse.y (operand5):  Only allow string repetition of
11431         string literals, because otherwise you get a conflict.
11432
11433 Thu Jan 21 16:32:39 1993  Bill Cox  (bill@rtl.cygnus.com)
11434
11435         * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
11436           continue start_process development.
11437
11438 Thu Jan 21 13:51:06 1993  Bill Cox  (bill@rtl.cygnus.com)
11439
11440         * ch-decl.c (do_decl): fix handling of multi-char initializer.
11441
11442 Thu Jan 21 13:14:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11443
11444         * .cvsignore: add CHILL files to be ignored
11445
11446 Thu Jan 21 07:38:57 1993  Bill Cox  (bill@cygnus.com)
11447
11448         * ch-parse.y: rough draft of start_process handling.
11449
11450 Wed Jan 20 17:11:05 1993  Bill Cox  (bill@rtl.cygnus.com)
11451
11452         * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
11453
11454 Wed Jan 20 16:48:13 1993  Bill Cox  (bill@rtl.cygnus.com)
11455
11456         * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
11457           create new modules for I/O and process-related stuff.
11458         * ch-actions.c: move routines to new modules.
11459           call xmalloc, not malloc.
11460         * ch-lang.c (build_chill_struct_type): add parameter checking.
11461         * ch-lex.l (init_lex): remove redundant cast.
11462
11463 Tue Jan 19 16:33:56 1993  Bill Cox  (bill@rtl.cygnus.com)
11464
11465         * ch-parse.y (operand5): delete unnecessary argument to
11466           build_chill_unary_op.  Add rule for string repetition.
11467         * ch-parse.y (primval): delete string repetition attempt.
11468         * ch-parse.y (start_process): rough draft of action.
11469         * ch-actions.c (build_repetition_op): add it
11470         * ch-actions.c (build_chill_binary_op): handle constant arguments
11471           of CONCAT_EXPR, combine into a single string if possible.
11472         * ch-actions.c (invalid_left_operand, invalid_right_operand):
11473           allow single character arguments to CONCAT_EXPR.
11474         * ch-tree.h: add prototype for build_repetition_op
11475
11476 Tue Jan 19 15:03:29 1993  Fred Fish  (fnf@cygnus.com)
11477
11478         * dwarfout.c (output_type):  Add hack that matches the one in the
11479         chill front end to distinquish between true string types and
11480         arrays of char, since it uses ARRAY_TYPE for both, rather than
11481         trying to use the existing support for STRING_TYPE.
11482
11483 Tue Jan 19 13:54:27 1993  Bill Cox  (bill@rtl.cygnus.com)
11484
11485         * ch-tree.h: added prototypes for all non-static CHILL functions.
11486         * ch-actions.c (lang_init): declare builtin type for start_process
11487         * ch-actions.c (build_chill_binary_op): combine string literals when
11488           concatenated.
11489         * ch-actions.c (formpars2struct): added for later start_process
11490           implementation.
11491         * ch-actions.h: remove un-needed function declarations.
11492         * ch-decl.c: extern cleanup.
11493         * ch-expr.c (chill_expand_array_assignment): add missing first
11494           parameter to cond_exception call.
11495         * ch-lex.l: make build_chill_string non-static.
11496
11497 Mon Jan 18 19:15:08 1993  Bill Cox  (bill@rtl.cygnus.com)
11498
11499         * ch-decl.c (do_decls): get varying array length initialized.
11500
11501 Mon Jan 18 09:51:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11502
11503         * ch-expr.c (chill_expand_array_assignment): fix the copy length
11504         in the memcpy call (it was just 4 bytes always).   Simplify some
11505         code, also.
11506
11507 Mon Jan 18 08:24:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11508
11509         * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
11510
11511 Mon Jan 18 08:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
11512
11513         * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
11514         CHARS synonymous with CHAR, in the lexer.  Delete unnecessary
11515         'bools' non-terminal.
11516         * ch-parse.y (assignaction): add lhs version of length() function
11517         * ch-actions.c: add builtin_concat function, lots of support for
11518         CONCAT_EXPR.
11519         * ch-actions.c, ch-tree.h: make a function out of former
11520         macro CH_VARYING_TYPE_P
11521         * ch-expr.c: add expand_varying_length_assignment ().
11522         * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11523         * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11524         rather than build_rts_call, to eliminate a recursion problem.
11525         * ch-lang.c: eliminate 'sorry' about varying arrays.
11526         * ch-typeck.c (validate_varying_array_ref): re-enable constant
11527         index validation.
11528
11529 Sun Jan 17 18:20:04 1993  Per Bothner  (bothner@cygnus.com)
11530
11531         * ch-grant.c, ch-lex.l:  Major simplification of how
11532         seizes are done and how seizefiles are read.
11533         * ch-actions.h:  Remove declaration of check_seize().
11534         * ch-decl.c (do_decls):  Handle READONLY types.
11535         * ch-parse.y (mode2):  Allow REF to be followed by any mode.
11536         * ch-parse.y (mode2):  Allow literal expressions in string length.
11537         * ch-parse.y (tupleelement):  Allow elemenst to be untyped_expr.
11538         * ch-parse.y (seizestatement, etc):  Call chill_seize each
11539         time something is seized, rather than building a list first.
11540
11541 Sat Jan 16 12:24:44 1993  Bill Cox  (bill@rtl.cygnus.com)
11542
11543         * chill.gperf, ch-hash.h: add Wilfried's tokens
11544         * ch-lex.l: fold in Wilfried's changes.  Some tokens
11545         weren't getting recognized, and INSTANCE wasn't correctly
11546         reported to ch-parse.y as a PREDEF_MODEDCL.
11547
11548 Thu Jan 14 15:02:39 1993  Per Bothner  (bothner@cygnus.com)
11549
11550         * ch-tree.h (CH_CHARS_TYPE_P):  New macro.  Add comment
11551         explaining difference between char strings and char arrays.
11552         * ch-tree.h (CH_STRING_TYPE_P):  Add FIXME re bitstrings.
11553         * ch-tree.c (build_string_type):  Add comment.
11554
11555 Wed Jan 13 15:19:15 1993  Per Bothner  (bothner@cygnus.com)
11556
11557         * calls.c, expr.c, function.c, stmt.c, varasm.c:  Set
11558         MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11559         * expmed.c (store_bit_field, extract_field_field):  Undo
11560         yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11561
11562         * ch-decl.c (do_decls):  Put back support for initializing.
11563         (Was accidentally removed in Jan 8 change.)
11564
11565 Wed Jan 13 14:13:11 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
11566
11567         * ch-lex.l (convert_bitstring): Correct typo in cast.
11568
11569 Tue Jan 12 20:29:08 1993  Per Bothner  (bothner@cygnus.com)
11570
11571         * ch-lex.l (convert_bitstring):  Change to pack bits
11572         within words, not bytes, and to use machine bit-order
11573         (not always little-endian).
11574         * ch-parse.y:  Allow BOOLS(n) as well as BITS(n).
11575         Use build_bitstring_type, not build_string_type.
11576         * expmed.c (store_bit_field, extract_field_field):  Remove
11577         "sanity test" that prevents use with SET_TYPE.
11578         * tree.c (build_bitstring_type, build_powerset_type,
11579         build_string_type):  Move (so far) Chill-specific functions to ...
11580         * ch-tree.c:  ... new file.
11581         * ch-tree.c (build_powerset_type, build_bitstring_type):  Re-write.
11582         * ch-typeck.c (build_chill_array_ref):  Handle bit strings better.
11583         * ch-typeck.c (chill_expand_tuple):  Kludge to handle SET_TYPE.
11584         * Makefile.in (CHILL_OBJS):  Add ch-tree.o.
11585         * ch-decl.c (do_decls):  Call expand_decl.
11586         * stor-layout.c (layout_type):  Handle SET_TYPE.
11587         * expr.c (expand_expr):  Add FIXMEs about IN_EXPR.
11588         * ch-actions.c (lang_init):  Add type and decl for new
11589         function __builtin_setbitinstring.
11590         * ch-expr.c (chill_expand_assignmment):  Special-case handling
11591         for BIT_FIELD_REF with non-constant bit position (which is
11592         not yet handled by expand_expr).
11593         * ch-convert.c (convert):  Handle SET_TYPE.
11594
11595 Tue Jan 12 12:49:13 1993  Fred Fish  (fnf@cygnus.com)
11596
11597         * chill:  If -B arg is given, use to find gcc.
11598
11599 Fri Jan  8 20:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11600
11601         * ch-decl.c: revert to avoid seg fault
11602
11603 Fri Jan  8 14:20:42 1993  Bill Cox  (bill@rtl.cygnus.com)
11604
11605         * ch-decl.c: fix storage into correct offset in varying array.
11606         * ch-actions.c: define sizetype for everyone, use it to build
11607         varying structure.
11608         * ch-parse.y: tiny cleanup.
11609
11610 Wed Jan  6 13:25:33 1993  Bill Cox  (bill@cygnus.com)
11611
11612         * modules: use gdb rather than naked-gdb, to get opcodes
11613         in chill definition.
11614
11615 Wed Jan  6 09:48:35 1993  Bill Cox  (bill@cygnus.com)
11616
11617         * ch-typeck.c: add code to handle references to elements of VARYING
11618         arrays.  Simplify chill_give_type_to_expr.  Add rough draft of run-
11619         time index checking for VARYING arrays (under #if 0).
11620         * ch-actions.c: new function cond_type_range_exception & calls.
11621         New function cond_range_exception, for more general range-checking.
11622         New function build_varying_struct, to do just that.  Use the macros
11623         for the special varying field names.
11624         * ch-tree.h: define macros for varying field names.
11625         * ch-expr.c: use macros for varying struct names.  Simplify
11626         chill_expand_array_assignment.
11627         * ch-parse.y: assure that build_varying_struct is called everywhere
11628         that it applies.  Add a line-number note before the body of a DO
11629         loop.
11630         * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11631
11632 Tue Jan  5 17:26:14 1993  Bill Cox  (bill@cygnus.com)
11633
11634         * c-decl.c: correct order of declaration of start_decl params,
11635         for readability.
11636
11637 Tue Jan  5 15:59:36 1993  Per Bothner  (bothner@cygnus.com)
11638
11639         * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11640         Move shared code into ...
11641         * ch-decl.c (start_chill_function): ... here.
11642         * ch-decl.c (start_chill_function):  Add missing call to
11643         expand_start_bindings.
11644         * ch-decl.c (finish_chill_function): Add missing call to
11645         expand_end_bindings.
11646
11647 Tue Jan  5 01:00:47 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
11648
11649         * Makefile.in: took out the rest of the runtime support
11650
11651 Mon Jan  4 18:02:06 1993  Bill Cox  (bill@cygnus.com)
11652
11653         * ch-expr.c: make chill_expand_array_assignment not static.
11654
11655 Mon Jan  4 17:57:48 1993  Per Bothner  (bothner@cygnus.com)
11656
11657         * ch-grant.c, ch-parse.y:  Remove all code for explicitly
11658         calling initializer functions.  This is not needed, since we
11659         use the same mechanism used for C++ static constructors.
11660         * ch-grant.c (chill_start_module_code):  Make sure the
11661         init_name starts with the magic string also used for C++
11662         initializers.  Also, don't embed the file name in the name,
11663         just use the module name.
11664         * ch-grant.c (chill_finish_module_code):  Now that the
11665         initializer name follows the standard 'collect' convention,
11666         don't need to call assembler_constructor_alias, but can
11667         use the standard assemble_constructor instead.
11668         * varasm.c (assemble_constructor_alias):  Remove no-longer-
11669         needed function.
11670         * ch-parse.y:  Move code that is common to the beginning of
11671         all functions to a new macro INIT_ACTION.
11672         Make sure INIT_ACTION is also done for callaction, fixing a bug.
11673         * ch-parse.y (INIT_ACTION):  Do chill_start_module_code()
11674         before emit_line_note(), not after.
11675
11676 Mon Jan  4 11:43:12 1993  Bill Cox  (bill@cygnus.com)
11677
11678         * ch-parse.y: restore requirement for :upper-bound in array decl.
11679         * ch-actions.c: enhance upper, lower, length functions for VARYING.
11680
11681 Mon Jan  4 09:28:44 1993  Bill Cox  (bill@cygnus.com)
11682
11683         * ch-actions.c: fix NOT of boolean expr.
11684
11685 Mon Jan  4 08:42:57 1993  Bill Cox  (bill@cygnus.com)
11686
11687         * ch-actions.c: provide range-checking function
11688         * ch-lex.l: better compiler-directive error messages,
11689         allow underscores in exponents
11690         * ch-loop.c: prevent passing NULL ptr to printf
11691
11692 Sun Jan  3 11:57:13 1993  Bill Cox  (bill@cygnus.com)
11693
11694         * ch-typeck.c: correct & enable array index range-checking
11695
11696 Sun Jan  3 11:36:39 1993  Bill Cox  (bill@cygnus.com)
11697
11698         * ch-parse.y: define IGNORED_DIRECTIVE
11699         * ch-typeck.c: subtract array's lower domain value, even if
11700         index expression is constant.
11701
11702 Sat Jan  2 23:05:14 1993  Fred Fish  (fnf@cygnus.com)
11703
11704         * ch-lex.l (convert_float):  Fix misspelling in error message.
11705
11706 Sat Jan  2 16:02:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
11707
11708         * Makefile.in:  Took out chill-runtime support.
11709         Chill run times are now in ../chillrt, not ./chillrt.p
11710
11711 Sat Jan  2 15:04:13 1993  Bill Cox  (bill@cygnus.com)
11712
11713         * ch-hash.h, chill.gperf: cleanup.  fewer keywords seen by ch-parse.y.
11714
11715 Sat Jan  2 13:27:49 1993  Per Bothner  (bothner@rtl.cygnus.com)
11716
11717         * ch-lex.l (check_newline):  Use the orginal versions (derived
11718         from the C code, not the simplified, special-case version).
11719         Also, fix that version of check_newline to not call yylex()
11720         recursively.
11721         * ch-lex.l (yy_input):  Call check_newline to handle
11722         newlines and check for # directives.
11723         * ch-lex.l (syntax):  Don't recognize #-directives; these
11724         are now handled by check_newline.
11725         * ch-actions.c (lang_init):  Call the modified version of
11726         check_newline().  Do this at the *after* we've initialized
11727         standard types, so this can be done while lineno is still 0.
11728
11729 Sat Jan  2 10:57:20 1993  Bill Cox  (bill@cygnus.com)
11730
11731         * ch-hash.h, chill.gperf: add remaining reserved words.
11732
11733 Sat Jan  2 09:59:55 1993  Bill Cox  (bill@cygnus.com)
11734
11735         * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11736         names for exceptions
11737
11738 Fri Jan  1 12:30:31 1993  Fred Fish  (fnf@cygnus.com)
11739
11740         * ch-tree.h (JOINER):  Define joiner character the same way
11741         C++ defines it.
11742         * ch-grant.c (chill_start_module_code):  Use JOINER character
11743         to implement name mangling for the initializer function name.
11744         Algorithm is designed to be simple, distinct from C++ mangled
11745         symbols, and easy to convert to demangled form.
11746
11747 Thu Dec 31 10:30:51 1992  Bill Cox  (bill@rtl.cygnus.com)
11748
11749         * ch-expr.c: make array assignments work with indirect refs.
11750         * ch-actions.c: prepare for array parameter handling.
11751         * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11752
11753 Thu Dec 31 15:29:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
11754
11755         * ch-lex.l (yy_input):  Re-write to return more than one
11756         character at a time (execpt when reading seize-files).
11757         Don't increment lineno until we start reading the next line.
11758         This fixes some off-by-one errors in lineno.
11759
11760 Wed Dec 30 16:15:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
11761
11762         * ch-convert.c:  Assume use of new common.c.
11763         * ch-convert.c (convert_to_reference, convert_from_reference):
11764         New routines, to handle loc-identity declared variables and
11765         LOC parameters (both of which are implemented as references).
11766         * ch-lang.c (convert_to_boolean, convert_to_char):  Move to
11767         ch-convert.c, where they would seem to belong.
11768         * ch-convert.c (convert):  New function, since we no longer
11769         link in c-convert.c.
11770         * ch-expr.c (chill_expand_assignment):  Handle by calling
11771         convert() instead of chill_comptypes().
11772         Also handle the LHS being a reference.
11773         * ch-parse.y:  Add a procedure call as an action.
11774         * ch-parse.y (locdec, optlocinit):  Move handling of
11775         loc-identity declarations from optlocinit to locdec
11776         - and add working semantics for it.
11777         * ch-parse.y (seizestatement, visibilty_stmt):  Simplify.
11778         * ch-parse.y (grantstatement etc):  Don't bother making list.
11779         * ch-lex.l:  #include <sys/types.h> before <sys/stat.h>.
11780
11781 Wed Dec 30 16:06:55 1992  Bill Cox  (bill@rtl.cygnus.com)
11782
11783         * ch-parse.y, ch-expr.c: add support for declaring & assigning
11784         VARYING arrays.
11785         * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11786
11787 Tue Dec 29 15:28:48 1992  Bill Cox  (bill@cygnus.com)
11788
11789         * ch-actions.c: implement expressions of arrays of char,
11790         ( concatenation, relationals ), correct type of code parameters
11791         * ch-expr.c: correct type of code parameters
11792
11793 Tue Dec 29 11:16:19 1992  Bill Cox  (bill@cygnus.com)
11794
11795         * ch-decl.c: cleanup.
11796         * ch-parse.y: put emit_line_note() calls in lotsa places,
11797         per Fred's request; be sure that statements get counted also.
11798         * ch-lex.l: standardize function headers.
11799
11800 Tue Dec 29 10:41:56 1992  Fred Fish  (fnf@cygnus.com)
11801
11802         * ch-decl.c (start_chill_function):  Always return 1, rather
11803         than a random value.
11804         * ch-lex.l (check_newline):  Add a version for chill that
11805         just snarfs the right value for main_input_filename out of
11806         the first line of the input file, without disturbing the
11807         lexer state or requiring it's assistance.
11808         * ch-actions.c (lang_init):  Call check_newline, like the
11809         other language frontends, to get main_input_filename set
11810         from first line of input file.
11811
11812 Mon Dec 28 18:49:01 1992  Bill Cox  (bill@cygnus.com)
11813
11814         * ch-parse.y: clean up conflicts.  The remaining one is
11815         harmless.
11816
11817 Mon Dec 28 17:28:40 1992  Bill Cox  (bill@cygnus.com)
11818
11819         * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11820         clean up some parser conflicts.
11821
11822 Mon Dec 28 15:00:20 1992  Bill Cox  (bill@cygnus.com)
11823
11824         * ch-parse.y, ch-lex.l:  add keywords and parsing for most of
11825         CHILL I/O
11826
11827 Sat Dec 26 20:48:23 1992  Fred Fish  (fnf@cygnus.com)
11828
11829         * chillrt/chillrt0.c:  Oops, SVR4 doesn't need leading '_'
11830         on build_exceptions.
11831
11832 Sat Dec 26 11:00:36 1992  Fred Fish  (fnf@cygnus.com)
11833
11834         * ch-grant.c (chill_finish_module_code):  Call
11835         assemble_constructor_alias rather than assemble_constructor.
11836         * varasm.c (assemble_constructor_alias):  New function,
11837         like assemble_constructor, but also handles the case where
11838         ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11839         being used.  Emits a symbol table alias name with the correct
11840         prefix for collect to find and add to the __CTOR_LIST__.
11841         * chillrt/chillrt0.c:  Build on previous hack that gets
11842         _build_exceptions into the __CTOR_LIST__, to make it work
11843         for both the non GNU-ld case and for the SVR4 case.
11844
11845 Tue Dec 22 18:24:55 1992  Bill Cox  (bill@cygnus.com)
11846
11847         * ch-loop.c: clean up location enumeration - one more
11848         pass to do.
11849
11850 Tue Dec 22 16:31:48 1992  Bill Cox  (bill@cygnus.com)
11851
11852         * ch-loop.c: Working version of location enumeration loop
11853
11854 Tue Dec 22 14:42:14 1992  Bill Cox  (bill@cygnus.com)
11855
11856         * ch-lex.l: readability cleanup
11857
11858 Mon Dec 21 14:58:39 1992  Bill Cox  (bill@cygnus.com)
11859
11860         * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11861         ch-loop.c: rough draft of location enumeration
11862         ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11863         ch-actions.c: finish making pred() and succ() work.
11864
11865 Mon Dec 21 10:04:35 1992  Bill Cox  (bill@cygnus.com)
11866
11867         * ch-actions.c: allow pred(char) and succ(char).
11868
11869 Sun Dec 20 16:04:28 1992  Bill Cox  (bill@cygnus.com)
11870
11871         * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11872         c-expr.c: make DO WITH work.
11873
11874 Sun Dec 20 12:22:53 1992  Bill Cox  (bill@cygnus.com)
11875
11876         * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11877         now work
11878
11879 Sat Dec 19 14:20:23 1992  Per Bothner  (bothner@cygnus.com)
11880
11881         * c-typeck.c (process_init_constructor):  Add warning if
11882         there is a duplicate default initializer element.
11883         * ch-typeck.c (chill_give_type_to_expr):  New function,
11884         to handle coercion of an expression to context-given type,
11885         Takes care of untyped tuples, and case expressions.
11886         * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11887         chill_expand_result), ch-parse.y <assignaction>:
11888         Use chill_give_type_to_expr().
11889         * ch-typeck.c (chill_handle_case_label):  New parameter list,
11890         to handle the (new) conventions for <case_label>, including
11891         default elements and ranges.
11892         * ch-parse.y <expanded_case_label>, ch-typeck.c
11893         (expand_case_expr):  Use new version of chill_handle_case_label.
11894         * ch-decl.c (push_syndecls):  Change parameters:  Instead of
11895         TREE_LIST representing a compete <synonym definition statement>,
11896         just pass the parts of a single <synonym definition> as 3
11897         different parameters.  Also, use chill_give_type_to_expr(),
11898         to handle untyped tuples in the RHS.
11899         * ch-parse.y <syndeclist, syndef>:  Don't bother trying to construct
11900         a tree - just call push_syndecls() on each <synonum_definition>
11901         as we see it.
11902         * ch-parse.y (exprlist_get_single):  Remove; no longer needed.
11903         * ch-parse.y:  Handle <tuple> without mode name diferently from
11904         <tuple> with mode name.  The latter is a <primval> that can be
11905         in most contexts, but if the <mode name> is missing, the <tuple>
11906         is only allowed in certain contexts.  Use the new non-terminal
11907         <untyped_expr> to indicate those contexts where untyped tuples
11908         (and case expressions) are valid because the expression gets a
11909         type from its context (such as the RHS of an assignment).
11910         Use chill_give_type_to_expr in those contexts.
11911
11912 Sat Dec 19 14:01:26 1992  Bill Cox  (bill@cygnus.com)
11913
11914         * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11915
11916 Sat Dec 19 10:16:20 1992  Bill Cox  (bill@cygnus.com)
11917
11918         * ch-parse.y: clean up warning messages from byacc.  bison
11919         still complains thrice.
11920
11921 Fri Dec 18 12:33:29 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11922
11923         * ch-actions.c (maybe_chill_comptypes): Delete unused
11924         function.
11925         (chill_comptypes): Add new parameter ERRSTR.  All callers
11926         changed.
11927         (build_chill_binary_op): Fix indentation to match GNU coding
11928         style.
11929
11930 Fri Dec 18 08:18:13 1992  Bill Cox  (bill@rtl.cygnus.com)
11931
11932         * ch-parse.y, ch-expr.c, ch-actions.c, expr.c:  major
11933         cleanup of expression and assignment handling.
11934
11935 Thu Dec 17 10:16:32 1992  Bill Cox  (bill@cygnus.com)
11936
11937         * ch-parse.y: standardize indentation after c-parse.y
11938
11939 Wed Dec 16 15:22:12 1992  Per Bothner  (bothner@cygnus.com)
11940
11941         * c-typeck.c (process_init_constructor):  Add support for
11942         a default initializer element.
11943         * ch-parse.y: Implement default elements for tuples
11944         (as in '(else):' and '(*):' ).
11945
11946         * ch-parse.y:  Previous change to dis-ambiguate case-labels
11947         seems to have allowed getting rid of all of the expr_or_list hair.
11948         * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11949         initialization of multiple variables by a tuple" - the
11950         idea is bogus.
11951
11952 Wed Dec 16 11:17:53 1992  Bill Cox  (bill@cygnus.com)
11953
11954         * ch-parse.y: complete re-write of DO statement handling.
11955         now operational, except WITH is stubbed out.  Improved
11956         syntax error message.
11957         * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11958         * ch-expr.c: fixes to IN_EXPR handling.
11959
11960 Tue Dec 15 17:15:13 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
11961
11962         * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11963         * ch-lex.c: Likewise.
11964
11965         * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11966         by flex to avoid compiler error.
11967
11968 Tue Dec 15 08:41:08 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11969
11970         * ch-decl.c (do_decls): Handle initialization of multiple
11971         variables by a tuple.
11972
11973         * ch-decl.c (do_decls,start_chill_function): Make DECL public
11974         if we're doing a GRANT ALL at top level.
11975
11976         * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11977         range expression.
11978
11979         * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11980         BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11981
11982 Mon Dec 14 14:58:32 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11983
11984         * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11985         (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11986
11987 Mon Dec 14 13:36:44 1992  Bill Cox  (bill@cygnus.com)
11988
11989         * expr.c: install and test newer Pascal IN_EXPR code,
11990         but don't activate it - it's very verbose.
11991
11992 Mon Dec 14 00:22:49 1992  Fred Fish  (fnf@cygnus.com)
11993
11994         * Makefile.in (LANGUAGES):  Add chill.
11995         * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11996         New macros for chill native and cross installation names.
11997         * Makefile.in (COMPILERS):  Add cc1chill.
11998         * Makefile.in (CHILL_OBJS):  New macro, chill objects.
11999         * Makefile.in (CHILL_TREE_H):  New macro, chill headers.
12000         * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
12001         sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
12002         install-librmt):  New targets.
12003         * Makefile.in (install-native):  Add install-libchill,
12004         install-librmt.
12005
12006 Sun Dec 13 15:21:06 1992  Bill Cox  (bill@cygnus.com)
12007
12008         * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
12009
12010 Sun Dec 13 14:07:32 1992  Bill Cox  (bill@cygnus.com)
12011
12012         * ch-actions.c: fix unary operations, modulus ops,
12013         (discovered after extending regression tests).
12014
12015 Sun Dec 13 12:16:32 1992  Bill Cox  (bill@cygnus.com)
12016
12017         * resync with Michael and Wilfried
12018
12019 Sun Dec 13 09:11:25 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12020
12021         * ch-parse.y (output_constant): Fixed some whitespace
12022         problems.
12023         * ch-tree.h: Add declarations for new chill functions that
12024         have been implemented but not (yet) declared.
12025
12026 Sat Dec 12 00:17:23 1992  Per Bothner  (bothner@cygnus.com)
12027
12028         * c-typeck.c (process_init_constructor):  Warn about duplicate
12029         labels for labelled initializer elements.
12030         * ch-lex.l (various operator tokens, such as "+"):  Don't
12031         set yylval.code to a TREE_CODE; this is better done in parser.
12032         * ch-parse.y:  Some work with case labels and tuples.
12033         Get literal range as tuple (and case) labels working.
12034         Fix some problems introduced by recent grammar overhaul.
12035
12036 Fri Dec 11 13:28:48 1992  Bill Cox  (bill@cygnus.com)
12037
12038         * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
12039         got long, real expressions working.  We can also call a func-
12040         tion and use its return value.
12041
12042 Thu Dec 10 14:45:17 1992  Per Bothner  (bothner@cygnus.com)
12043
12044         * ch-parse.y:  Major change to remove or at least identify
12045         parser ambiguities.  One result:  We now allow actions that
12046         start with '(', as required by teh Blue Book.  This does break
12047         some things; look for FIXME for things that need work.
12048         * ch-typeck.c (chill_expand_case_expr):  We need an extra
12049         level of looping to (in the future) support <case label
12050         specification>s with more than one <case label list>.
12051
12052 Thu Dec 10 09:21:41 1992  Bill Cox  (bill@cygnus.com)
12053
12054         * ch-actions.c, ch-expr.c: Implement string assignments
12055         and relationals.
12056
12057 Thu Dec 10 07:17:35 1992  Bill Cox  (bill@cygnus.com)
12058
12059         * ch-decl.c, ch-typeck.c: rest of previous commit.
12060
12061 Wed Dec  9 18:26:29 1992  Bill Cox  (bill@cygnus.com)
12062
12063         * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
12064         regression test and fix bit arrays and set ops.
12065
12066 Mon Dec  7 14:57:46 1992  Bill Cox  (bill@cygnus.com)
12067
12068         * ch-actions.c: implement crude relationals between
12069         non-exotic operands, such as integers.
12070
12071 Mon Dec  7 10:42:35 1992  Bill Cox  (bill@cygnus.com)
12072
12073         * ch-actions.c: implement relational, logic operations
12074         on arrays of BOOLs.
12075
12076 Mon Dec  7 08:55:20 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12077
12078         * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
12079         indicate we are done with initialization.
12080
12081         * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
12082         `grant all'.
12083         (start_chill_function): Ditto.
12084
12085         * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
12086         (compiler_directive): Don't confuse compiler directives with
12087         equality comparison operators.
12088
12089         * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
12090
12091 Sun Dec  6 13:12:32 1992  Bill Cox  (bill@cygnus.com)
12092
12093         * ch-actions.c: repair set inequality code.
12094
12095 Sun Dec  6 11:15:59 1992  Bill Cox  (bill@cygnus.com)
12096
12097         * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
12098         relational expressions, including (<, <=, =, /=, >, >=, IN).
12099
12100 Fri Dec  4 13:54:58 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
12101
12102         * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
12103         Pascal-required ones, since C++ no longer needs them.  When
12104         Chill's public, a comment can be added to the effect that
12105         SET_LE_EXPR is also used by Chill.
12106
12107 Fri Dec  4 12:05:01 1992  Bill Cox  (bill@cygnus.com)
12108
12109         * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
12110
12111 Fri Dec  4 10:23:10 1992  Bill Cox  (bill@cygnus.com)
12112         * Get *.def and *.c in sync.
12113
12114 Fri Dec  4 06:48:41 1992  Fred Fish  (fnf@cygnus.com)
12115
12116         * ch-actions.c (lang_init):  Change types "long" and
12117         "ulong" from 16 bits to 32.
12118         * dwarfout.c (fundamental_type_code):  Use FT_signed_char
12119         for type "byte" and FT_unsigned_char for type "ubyte".
12120
12121 Thu Dec  3 15:13:24 1992  Bill Cox  (bill@cygnus.com)
12122         * ch-actions.c, ch-tree.def, ch-parse.y:  preparation
12123         for powerset expressions.
12124
12125 Tue Dec  2 17:02:30 1992  Bill Cox  (bill@cygnus.com)
12126         * ch-actions.c: sketch code for exceptions generated
12127         by builtin routines.
12128
12129 Tue Dec  2 12:49:50 1992  Bill Cox  (bill@cygnus.com)
12130         * ch-actions.c, ch-parse.y: add support for lower()
12131         upper() builtin functions.
12132
12133 Wed Dec  2 12:03:30 1992  Fred Fish  (fnf@cygnus.com)
12134
12135         * Makefile.in (chillrt0.o, install-chillrt0):  Remove.
12136         * chill (library):  Remove chillrt0.o.
12137         * chillrt/Makefile:  Remove maintenance of chillrt0.o as a
12138         separate file.  Now gets put in libchill.a.
12139
12140 Tue Dec  2 10:100:20 1992  Bill Cox  (bill@cygnus.com)
12141
12142         * ch-parse.y, ch-actions.c: add support for num()
12143         builtin function.
12144
12145 Wed Dec  2 09:52:06 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12146
12147         * ch-decl.c (fixup_unknown_type): New function.
12148         (push_newmode,push_synmode): Call `fixup_unknown_type' when we
12149         see a declaration that uses `unknown_type_node'.  FIXME.
12150
12151         * ch-grant.c (decode_constant): New function.
12152         (decode_decl): Call `decode_constant' for CONST_DECLs.
12153
12154         * ch-lex.l (char action): Use ridpointers instead of
12155         lookup_name to get "char"'s declaration.
12156
12157         * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
12158         when we need to build a TYPE_DECL.
12159
12160 Tue Dec  2 09:44:05 1992  Bill Cox  (bill@cygnus.com)
12161
12162         * ch-typeck.c: clean up a gcc warning with a forward
12163         declaration of build_string_type.
12164
12165 Tue Dec  1 16:51:05 1992  Bill Cox  (bill@cygnus.com)
12166
12167         * ch-actions.c: completely remove those builtin calls
12168         that are duplicated in c-decl.c
12169
12170 Tue Dec  1 16:38:51 1992  Fred Fish  (fnf@cygnus.com)
12171
12172         * ch-actions.c (lang_init):  Ifdef out initializations for
12173         __builtin_abs and __builtin_fabs, since they are duplicates of
12174         initializations in c-decl.c, and trigger spurious warnings.
12175
12176 Tue Dec  1 16:35:18 1992  Bill Cox  (bill@cygnus.com)
12177
12178         * ch-parse.y: make size() work with a typename argument.
12179
12180 Tue Dec  1 16:15:56 1992  Bill Cox  (bill@cygnus.com)
12181
12182         * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
12183         functions min, max, card.
12184
12185 Tue Dec  1 12:35:56 1992  Bill Cox  (bill@cygnus.com)
12186
12187         * ch-lex.l: fix char-type
12188
12189 Tue Dec  1 11:10:56 1992  Bill Cox  (bill@cygnus.com)
12190
12191         * ch-parse.y, ch-actions: added parsing and processing
12192         for upper, lower, and length built-ins.
12193
12194 Tue Dec  1 09:40:49 1992  Fred Fish  (fnf@cygnus.com)
12195
12196         * dwarf.h (LANG_CHILL):  Add as GNU extension.
12197         * dwarfout.c (output_compile_unit_die):  Test language_string and
12198         set LANG_CHILL if appropriate.
12199         * ch-parse.y (language_string):  New for chill.
12200         * chillrt:  Renamed directory chill to chillrt.
12201         * chill:  Renamed chillsh to chill.
12202         * Makefile.in:  Adjust for renamings.
12203         * chillrt/Makefile:  Adjust for directory renaming.
12204
12205 Mon Nov 30 17:35:33 1992  Fred Fish  (fnf@cygnus.com)
12206
12207         * chillsh:  New script frontend (ala g++), installed as "chill".
12208         Can't be called "chill.sh" because make tries to cat it into the
12209         "chill" directory.  Can't be called just "chill" cause that's
12210         already there as a directory.
12211         * Makefile.in:  Add rules to install chillsh as "chill".
12212         * chill/libchill.c:  Temporarily ifdef out stuff that wants
12213         to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
12214         which itself causes linkage to fail.
12215
12216 Mon Nov 30 16:28:19 1992  Bill Cox  (bill@cygnus.com)
12217
12218         * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
12219         conversion routines.
12220         * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
12221         Added production for SIZE(expr).
12222         * ch-actions.c: Add semantic routine chill_sizeof ().
12223
12224 Mon Nov 30 16:20:40 1992  Per Bothner  (bothner@cygnus.com)
12225
12226         * ch-lex.l, ch-parse.y:  Translate token PFEIL into English ARROW.
12227         * ch-parse.y (op6):  Remove handling of string repetition operator,
12228         until we can figure out a way to parse it correctly.
12229         * ch-parse.y (optmodename):  New non-terminal.
12230         * ch-parse.y (tuple):  Merge the two variants using optmodename.
12231         * ch-parse.y (location):  Add semantic actions for
12232         dereferencing operator ->.
12233
12234 Mon Nov 30 08:01:29 1992  Bill Cox  (bill@cygnus.com)
12235
12236         * ch-actions.c: removed compile warning, better code for abs.
12237
12238         * ch-parse.y: add productions for builtin functions succ, pred,
12239         abs, and size.  Add %tokens also.  Sort %tokens alphabetically.
12240
12241         * ch-lex.l: add parsing for builtin function names, such as abs,
12242         pred, succ, etc.  Put flex -a option into Makefile.in, so we can
12243         clean up the lexer soon.
12244
12245 Tue Nov 24 14:18:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
12246
12247         * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
12248         New functions, for code common to CASE actions and expressions.
12249         * chill.y:  Replace some code by calls to chill_handle_case_label
12250         and chill_handle_case_default.
12251         * ch-typeck.c (chill_expand_case_expr):  Add semantics.
12252
12253         * tree.c:  Change doing_chill_thang from extern to common.
12254
12255 Mon Nov 23 18:34:22 1992  Per Bothner  (bothner@rtl.cygnus.com)
12256
12257         * ch-tree.def:  New CASE_EXPR type, for case expressions.
12258         * ch-expr.c (chill_expand_expr):  Hook for CASE_EXPR.
12259         * ch-typeck.c (chill_expand_case_expr):  New function.
12260         Placeholder to implement case expressions.
12261         * ch-typeck.c (chill_expand_result, chill_expand_return):
12262         Handle mode-unspecified tuples and case expressions in
12263         the context of RETURN and RESULT actions.
12264         * chill.y (assignaction):  Handle case expressions in the
12265         context of the RHS of an assignment action.
12266         * chill.y (caseaction): Remove spurious duplicate OF in grammar.
12267         * chill.y:  Handle labeled structure tuples.
12268         * chill.y:  New rules to parse CASE expressions.
12269         * tree.c (build_function_types):  Allow Chill functions
12270         to return arrays and functions.
12271
12272 Wed Nov 18 13:50:28 1992  Per Bothner  (bothner@rtl.cygnus.com)
12273
12274         * ch-typeck.c (chill_expand_tuple):  New function. Expand a
12275         tuple (constructor) given an expected (context) type.
12276         * chill.y:  Implement 'LHS := TUPLE' using expand_chill_tuple,
12277         using the mode of the LHS and the expected type of the TUPLE.
12278         * chill.y:  Implement initialization.
12279         * chill.y:  Fix some syntax bugs (forbidlist must be surrounded
12280         by parentheses), and remove or note ambiguities.
12281         * chill.y:  Started converting layout style to be like c-parse.in.
12282         * chill.y:  Implement IF expressions.
12283         * chill.y:  Added syntax rules for tuples.  Labelled and unlabelled
12284         array tuples should now work (in some contexts).
12285         * ch-actions.c:  Initialize doing_chill_thang to 1.
12286         * ch-decl.c (do_decls):  Set DECL_INITIAL if there is an
12287         initializer, to make pushdecl and finish_decl work.
12288         * c-decl.c (convert_for_assignment):  If Chill, don't convert
12289         function and arrays into pointers.  (Maybe functions should
12290         still be converted?)
12291         * c-typeck.c (grokdeclarator):  Allow functions in Chill
12292         to return arrays and functions.
12293
12294 Mon Nov 16 15:40:47 1992  Per Bothner  (bothner@rtl.cygnus.com)
12295
12296         * chill.y (exprlist_get_single):  New function, used when
12297         parsing tuples.
12298         * chill.y:  Re-did parsing of tuples to remove ambiguities.
12299         This was a bitch.
12300
12301 Tue Nov 10 16:30:55 1992  Per Bothner  (bothner@rtl.cygnus.com)
12302
12303         * ch-typeck.c (chill_expand_result);  Set TREE_SIDE_EFEFCTS
12304         flags on assignment to result.
12305         * ch-typeck.c (build_chill_array_ref):  Subtract lower
12306         bound of domain if non-zero.  Preliminary hook for range checking.
12307         * ch-tree.h, chill.l:  Combine variables range_check and
12308         range_check_disabled into global variable range_checking.
12309         * ch-tree.h:  Better definitions of CH_CLASS_IS_VALUE
12310         CH_CLASS_IS_DERIVED.