OSDN Git Service

4f39a2028e010511fbaf934790cf5bb008202a15
[pf3gnuchains/gcc-fork.git] / gcc / ch / ChangeLog
1 2001-10-31  Joseph S. Myers  <jsm28@cam.ac.uk>
2
3         * ChangeLog, actions.c, ch-tree.def, decl.c, except.c, inout.c,
4         tasking.c, typeck.c: Fix spelling errors.
5
6 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
7
8         * convert.c, inout.c, loop.c, nloop.c, tasking.c, timing.c,
9         typeck.c: Use /* */ for all commentary, not #if 0 ... #endif.
10         Change the nested comments this creates to // notation.
11         Un-double apostrophes.
12
13 Sat Sep 22 09:15:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14
15         * Make-lang.in (cc1chill): Add attribs.o.
16
17 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18
19         * tree.c (TYPE_HASH): Moved to ../tree.h.
20
21 2001-08-11  Zack Weinberg  <zackw@panix.com>
22
23         * lex.c: Don't include setjmp.h.
24
25 2001-08-09  Richard Henderson  <rth@redhat.com>
26
27         * grant.c (chill_finish_compile): Use target hooks instead of
28         assemble_constructor.
29
30 2001-08-06  Richard Henderson  <rth@redhat.com>
31
32         * grant.c (chill_finish_compile): Pass a symbol_ref and priority
33         to assemble_constructor.
34
35 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
36
37         * Makefile.in (lex.o): No dependence on dwarfout.h.
38         * lex.c: Don't include dwarfout.h.
39
40 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
41
42         * ch-tree.h: Remove prototype for combine_parm_decls, unused
43         function.
44
45 2001-06-28  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
46
47         * lang.c: #include diagnostic.h
48         (chill_print_error_function): Add a dummy `diagnostic_context *'.
49         * Makefile.in (lang.o): Depend on diagnostic.h
50
51 2001-06-10  Gabriel Dos Reis  <gdr@codesourcery.com>
52
53         * decl.c: #include diagnostic.h
54         * actions.c: #include diagnostic.h
55         * Makefile.in (actions.o): Depend on diagnostic.h
56         (decl.o): Depend on diagnostic.h
57
58 2001-06-02  Joseph S. Myers  <jsm28@cam.ac.uk>
59
60         * chill.texi: Move contents to just after title page.
61
62 2001-05-23  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
63
64         * Make-lang.in (dvi): Use ch/chill.dvi not chill.dvi.
65         (ch/chill.dvi): Use TEXI2DVI instead of custom tex calls.  Create
66         the dvi file in the ch directory.
67
68 2001-05-26  Zack Weinberg  <zackw@stanford.edu>
69
70         * configure: Remove obsolete file.
71
72 2001-05-25  Sam TH  <sam@uchicago.edu>
73
74         * ch-tree.h tasking.h: Fix header include guards.
75
76 2001-05-20  Joseph S. Myers  <jsm28@cam.ac.uk>
77
78         * Make-lang.in (chill.dvi): Remove bogus dependencies.  Don't cd
79         to ch; include both $(srcdir)/ch and $(srcdir) in TEXINPUTS.
80         Don't move chill.dvi after creating it.  Fixes PR other/567 and
81         PR other/1018.
82
83 Fri Feb 23 15:28:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
84
85         * decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
86
87 2001-02-15  Jim Meyering  <meyering@lucent.com>
88
89         * Make-lang.in (CHILL.install-common): Depend on `installdirs'.
90         (CHILL.install-info): Likewise.
91
92 Sun Feb  4 15:52:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
93
94         * convert.c (convert): Call abort instead of fatal.
95         * except.c (pop_handler, chill_check_no_handlers): Likewise.
96         * expr.c (chill_expand_expr): Likewise.
97         * parse.c (peek_token_, pushback_token, require): Likewise.
98         * grant.c (write_grant_file): Call fatal_io_error instead of
99         pfatal_with_name.
100         * lex.c (init_parse, same_file, yywrap): Likewise.
101         * lang.c (GNU_xref_begin, GNU_xref_end): Deleted.
102         * lex.c (convert_bitstring): Delete check for alloca failure.
103
104 2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
105
106         * ch-tree.h (integer_minus_one_node): Moved to top level gcc
107         directory.
108
109         * decl.c (integer_minus_one_node): Likewise.
110         (init_decl_processing): Don't set integer_minus_one_node.
111
112 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
113
114         * Makefile.in: Remove all dependencies on defaults.h.
115         * decl.c: Don't include defaults.h.
116         * timing.c: Likewise.
117
118 2000-12-08  Joseph S. Myers  <jsm28@cam.ac.uk>
119
120         * Make-lang.in (CHILL.info): Depend on info files in source
121         directory.
122         (ch/chill.info): Build info files in source directory.
123         (CHILL.install-info): Install info files from source directory.
124
125 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
126
127         * lex.c: Don't bother checking whether ISUPPER(c) before
128         calling TOLOWER(c).  Don't bother checking whether isascii(c)
129         before testing ISSPACE(c); ISSPACE(c) includes '\n'.
130
131 2000-12-06  Rodney Brown  <RodneyBrown@mynd.com>
132
133         * actions.h: Standarize copyright statement.
134         * except.c inout.c lang.c lex.c lex.h loop.c nloop.c: Likewise.
135         * parse.c tasking.c tasking.h timing.c xtypeck.c: Likewise.
136
137 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
138
139         * actions.c (check_missing_cases), typeck.c (build_chill_slice,
140         build_chill_cast): Use memset () instead of bzero ().
141
142 2000-11-05  Joseph S. Myers  <jsm28@cam.ac.uk>
143
144         * Make-lang.in (CHILL.distdir): Remove.
145
146 2000-11-02  Geoffrey Keating  <geoffk@cygnus.com>
147
148         * Make-lang.in: Remove 'CYGNUS LOCAL' markers.
149         * Makefile.in: Likewise.
150         * configure: Likewise.
151
152 2000-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
153
154         * Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for
155         updated gperf.
156
157 2000-10-05  Richard Henderson  <rth@cygnus.com>
158
159         * decl.c (finish_chill_function): Don't init can_reach_end.
160
161 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
162
163         * decl.c, timing.c: Include defaults.h if not already included.
164         Don't define the *_TYPE_SIZE macros.
165         * Makefile.in: Update dependencies.
166
167 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
168
169         * inout.c (add_enum_to_list): Use DECL_NAME directly, don't get
170         its IDENTIFIER_POINTER and immediately call get_identifier on it.
171         * lex.c (yywrap): Constify a char *.
172
173 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
174
175         * Make-lang.in (cc1chill): Don't depend on c-iterate.o.
176
177 2000-08-21  Nix  <nix@esperi.demon.co.uk>
178
179         * lang-specs.h: Do not process -o or run the assembler if
180         -fsyntax-only.
181
182 2000-08-07  Kazu Hirata  <kazu@hxi.com>
183
184         * decl.c: Fix a comment typo.
185
186 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
187
188         * Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
189         * Makefile.in (cc1chill): Link with $(BACKEND).  Define BACKEND,
190         eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
191
192 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
193
194         * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
195
196 Mon Jul 31 07:58:31 2000  Casper Dik <Casper.Dik@holland.sun.com>
197
198         * Makefile.in: Remove naked "^L".
199
200 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
201
202         * lang-specs.h: Use the new named specs.  Remove unnecessary braces.
203
204 2000-06-13  Jakub Jelinek  <jakub@redhat.com>
205
206         * decl.c (init_decl_processing): Set TYPE_USER_ALIGN.
207         (layout_enum): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
208         * typeck.c (layout_chill_range_type): Set TYPE_USER_ALIGN.
209         (apply_chill_field_layout): Set DECL_USER_ALIGN.
210         (layout_chill_struct_type): Set TYPE_USER_ALIGN.
211
212 Tue Jun 13 15:30:46 2000  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
213
214         * Make-lang.in (CHILL.install-common): Use $(INSTALL_SCRIPT), not
215         $(INSTALL_PROGRAM) for chill.install.
216
217 2000-06-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
218
219         * Makefile.in (EXPR_H): New dependency variable.
220         (actions.o, expr.o): Use EXPR_H.
221         (lang.o): Depend on RTL_H and EXPR_H.
222
223         * lang.c: Include rtl.h and expr.h.
224         (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.
225
226 2000-06-04  Philipp Thomas  <pthomas@suse.de>
227
228         * Makefile.in(INTLLIBS): New macro.
229         (LIBS): Add INTLLIBS.
230         (DEPLIBS): Likewise.
231         * config-lang(outputs): Specify ch/Makefile.
232
233 Sat Jun  3 15:31:07 2000  Jeffrey A Law  (law@cygnus.com)
234
235         * chill.texi (INFO-DIR-ENTRY): Fix chill entry.
236
237 2000-06-02  Richard Henderson  <rth@cygnus.com>
238
239         * lang.c (lang_get_alias_set): New.
240
241 Sat May 27 11:24:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
242
243         * lang.c (deep_const_expr): Use first_rtl_op.
244         * satisfy.c (satisfy): Use TREE_CODE_LENGTH.
245
246 2000-05-18  Chris Demetriou  <cgd@netbsd.org>
247
248         * Makefile.in (hash.h): Delete a redundant use of gawk and sed.
249
250 Wed May 17 17:27:44 2000  Andrew Cagney  <cagney@b1.cygnus.com>
251
252         * decl.c (c_decode_option): Update -Wall unused flags by
253         calling set_Wunused.
254         (poplevel): Replace warn_unused with warn_unused_label.
255
256 2000-05-09  Zack Weinberg  <zack@wolery.cumb.org>
257
258         * ch-tree.h: Update prototypes.  Remove prototypes for
259         functions declared elsewhere.
260         * decl.c (define_label): Constify filename parameter.
261         * grant.c (globalize_decl, set_default_grant_file): Constify
262         local char * variables.  Don't declare
263         first_global_object_name or asm_out_file.
264         * lang.c (chill_real_input_filename): Constify.
265         * lex.c (init_parse): Constify parameter and return value.
266         * parse.c: Don't declare input_filename.
267         (ch_expand_asm_operands): Constify filename parameter.
268         (parse_multi_dimension_case_action): Constify local char *.
269         * satisfy.c (safe_satisfy_decl): Constify local char *.
270
271 2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
272
273         * ch-tree.h (init_function_start): Constify.
274
275 2000-04-18  Zack Weinberg  <zack@wolery.cumb.org>
276
277         * ch/lex.c: Remove references to cccp.c.
278
279 2000-04-03  Zack Weinberg  <zack@wolery.cumb.org>
280
281         * lang-specs.h: Pass -fno-show-column to the preprocessor.
282
283 Thu Mar 30 06:32:51 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
284
285         * expr.c (chill_expand_expr): Pass bit alignment to emit_block_move.
286
287 Sat Mar 25 09:12:10 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
288
289         * actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT.
290         * typeck.c (expand_constant_to_buffer): Use int_byte_position.
291         (extract_constant_from_buffer): Likewise.
292
293 Fri Mar 17 08:09:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
294
295         * typeck.c (min_precision): New function.
296         (build_chill_slice): Use host_integerp and tree_low_cst.
297         (expand_constant_to_buffer): Likewise and also int_bit_position.
298         LO is unsigned HOST_WIDE_INT
299         (build_chill_array_ref_1): Make `i' be HOST_WIDE_INT; use tree_low_cst.
300         (extract_constant_from_buffer): Sizes are now HOST_WIDE_INT.
301         Use host_integerp and tree_low_cst.
302         (build_chill_bin_type): Use host_integerp and tree_low_cst.
303         (layout_chill_range_type): Use tree_int_cst_sgn, compare_tree_int,
304         tree_low_cst, and min_precision.
305         (apply_chill_array_layout): Cleanups for types of variables
306         and use tree_int_cst_sgn, compare_tree_int, and tree_low_cst.
307         (apply_chill_field_layout): Likewise.
308
309 2000-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
310
311         * grant.c (globalize_decl): Constify a char*.
312
313 Mon Mar  6 17:52:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
314
315         * actions.c (chill_convert_for_assignment): INDEX is unsigned
316         HOST_WIDE_INT.
317         * ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH since unsigned.
318         * except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
319         Use compare_tree_int.
320         (expand_goto_except_cleanup): Likewise.
321
322 2000-03-01  Martin von Loewis  <loewis@informatik.hu-berlin.de>
323
324         * decl.c (current_function_decl): Move to toplev.c.
325
326 Mon Feb 28 08:12:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
327
328         * ch-tree.h (DECL_ACTION_NESTING_LEVEL): Use new tree union name.
329         * decl.c (finish_struct): Don't clear DECL_FIELD_SIZE.
330         * typeck.c (make_chill_struct_type): Likewise.
331         (apply_decl_field_layout): General cleanup.
332         Set DECL_SIZE instead of DECL_FIELD_SIZE.
333
334 Sun Feb 27 16:40:33 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
335
336         * actions.c (chill_convert_for_assignment): Don't use size_binop
337         for things that aren't sizes.
338         (expand_varying_length_assignment): Likewise.
339         * convert.c (digest_array_tuple, convert): Likewise.
340         * typeck.c (build_chill_slice, smash_dummy_type): Likewise.
341         (build_chill_slice_with_range): Likewise.
342         (build_chill_slice_with_length): Likewise.
343         (build_array_from_set): Adjust types for size_binop.
344         * expr.c (build_concat_expr, build_chill_repetition_op): Likewise.
345         (build_chill_sizeof): Use TYPE_SIZE_UNIT.
346         * tree.c (build_string_type): Pass proper type to size_binop.
347
348 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
349
350         * decl.c (layout_enum): Set DECL_SIZE_UNIT.
351         * satisfy.c (safe_satisfy_decl): Likewise.
352
353 2000-02-15  Jonathan Larmour  <jlarmour@redhat.co.uk>
354
355         * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
356
357 2000-02-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
358
359         * grant.c: Don't declare `version_string'.
360
361 2000-02-11  Nathan Sidwell  <nathan@acm.org>
362
363         * decl.c (init_decl_processing): Remove duplicate decl of
364         set_alignment.
365
366 2000-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
367
368         * expr.c (compare_records): Delete maximum_field_alignment declaration.
369         * inout.c (inout_init): Likewise.
370         (build_chill_gettextaccess): Likewise.
371         (build_enum_tables): Likewise.
372         * lang.c: Likewise.
373         * satisfy.c (satisfy): Likewise.
374         * tasking.c (build_tasking_struct): Likewise.
375         (build_tasking_message_type): Likewise.
376         * typeck.c (build_init_struct): Likewise.
377
378         * except.c (emit_setup_handler): Make save_maximum_field_alignment
379         unsigned int to match maximum_field_alignment.
380         * inout.c (inout_init): Likewise.
381         (build_chill_gettextaccess): Likewise.
382         (build_enum_tables): Likewise.
383         * tasking.c (build_tasking_struct): Likewise.
384         (build_tasking_message_type): Likewise.
385         * typeck.c (build_init_struct): Likewise.
386
387 2000-02-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
388
389         * except.c (maximum_field_alignment): Remove duplicate declaration.
390
391 2000-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
392
393         * All files: PROTO -> PARAMS.
394
395 2000-01-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
396
397         * lex.c: Include tm_p.h.
398
399 2000-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
400
401         * actions.c (update_else_range_for_int_const): Initialize
402         variables `lowval' and `highval'.
403         (update_else_range_for_range): Likewise for `low_range_val' and
404         `high_range_val'.
405
406 1999-12-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
407
408         * typeck.c (apply_chill_array_layout, apply_chill_field_layout):
409         Avoid the use of ANSI string concatenation.
410
411         * expr.c (chill_expand_case_expr): Likewise.
412
413 1999-11-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
414
415         * expr.c (build_chill_function_call): Don't call a variadic
416         function with a non-literal format string.
417
418         * grant.c (write_spec_module): Likewise.
419
420         * parse.c (require, expect): Likewise.
421
422         * tasking.c (get_struct_type_name, get_struct_debug_type_name,
423         get_tasking_code_name, get_struct_variable_name,
424         get_process_wrapper_name, build_start_process): Likewise.
425
426         * typeck.c (valid_array_index_p): Likewise.
427
428 Sun Oct 31 22:33:33 1999  Jeffrey A Law  (law@cygnus.com)
429
430         * Makefile.in (convert.o, typeck.o): Depend on output.h
431         * convert.c: Include output.h.
432         * typeck.c: Include output.h.
433         (initializer_constant_valid_p): Delete fucntion.
434         * ch-tree.h (initializer_constant_valid_p): Delete prototype.
435
436 1999-10-26  Mark Mitchell  <mark@codesourcery.com>
437
438         * ch-tree.h (remember_end_note): Remove prototype.
439         * decl.c (poplevel): Don't call remember_end_note.
440
441 Fri Sep 24 10:48:10 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
442
443         * ch-tree.h (builtin_function): Don't declare.
444         * decl.c (builtin_function): New arg CLASS.  Arg FUNCTION_CODE now of
445         type int.  All callers changed.
446         Set the builtin's DECL_BUILT_IN_CLASS.
447
448 1999-09-20  Nick Clifton  <nickc@cygnus.com>
449
450         * lang.c (lang_decode_option): Extend comment.
451
452 1999-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
453
454         * lex.c (maybe_downcase, getlc, handle_generic_pragma,
455         check_newline): Use uppercase ctype macro from system.h.
456
457 1999-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
458
459         * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
460
461 Fri Sep 10 10:32:32 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
462
463         * ch-tree.h: Delete declarations for all tree nodes now moved to
464         global_trees.
465         * expr.c: Likewise.
466         * typeck.c: Likewise.
467         * decl.c: Delete their definitions.
468         (init_decl_processing): Call build_common_tree_nodes and
469         build_common_tree_nodes_2 instead of building their nodes here.
470         Use set_sizetype instead of assigning sizetype.
471
472 1999-09-08  Bruce Korb  autogen@linuxbox.com
473
474         * Makefile.in: Give the gperf user a hint about why "gperf -F" fails.
475
476 Tue Sep  7 15:59:56 1999  Dave Brolley  <brolley@cygnus.com>
477
478         * parse.h: Undefine DELAY if it's defined.
479         (PACK,NOPACK,POS): Remove erroneous comments regarding these tokens.
480         Also, move them to their proper place alphabetically.
481
482 1999-09-04  Mark Mitchell  <mark@codesourcery.com>
483
484         * Make-lang.in (cc1chill): Depend on ggc-callbacks.o.
485         * Makefile.in (CHILL_OBJS): Add ggc-callbacks.o.
486
487 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
488
489         * parse.c (language_string): Constify.
490
491 1999-08-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
492
493         * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
494         Remove hacks for stuff which now comes from libiberty.
495
496 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
497
498         * lang.c (chill_print_error_function): Constify a char*.
499
500 1999-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
501
502         * Makefile.in (ch-version.c): Constify a char*.
503
504         * actions.c (id_cmp, warn_unhandled, adjust_return_value,
505         update_else_range_for_int_const, update_else_range_for_range,
506         update_else_range_for_range_expr, update_else_range_for_type,
507         compute_else_range, check_case_value,
508         chill_handle_case_label_range,
509         chill_handle_multi_case_label_range,
510         chill_handle_multi_case_else_label, chill_handle_multi_case_label,
511         chill_handle_multi_case_label_list print_missing_cases): Add
512         static prototypes.
513         (build_exception_variant): Cast the function argument of qsort.
514         (build_rts_call, warn_unhandled, chill_convert_for_assignment,
515         adjust_return_value, chill_expand_result,
516         build_multi_case_selector_expression, print_missing_cases):
517         Constify a char*.
518         (print_missing_cases): Introduce an intermediary non-const ptr.
519         Add brackets and indent.
520
521         * ch-tree.h (maybe_building_objc_message_expr,
522         maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
523         (push_handler, pop_handler): Add prototypes.
524         (builtin_function, valid_array_index_p,
525         build_chill_exception_decl, build_rts_call,
526         chill_convert_for_assignment, display_int_cst,
527         build_chill_addr_expr, check_have_mode, get_identifier3,
528         build_chill_string, register_seize_path, get_unique_identifier,
529         add_taskstuff_to_list, gnuchill_version): Constify a char*.
530         (finish_chill_function): Add void prototype argument.
531
532         * convert.c (convert_to_reference, convert_to_boolean,
533         convert_to_char, base_type_size_in_bytes, remove_tree_element,
534         check_ps_range, digest_powerset_tuple, digest_structure_tuple,
535         digest_array_tuple, convert1): Add static prototypes.
536         (base_type_size_in_bytes): Hide unused function.
537         (display_int_cst, digest_array_tuple): Constify a char*.
538
539         * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
540         proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
541         build_implied_names, bind_sub_modules, layout_array_type,
542         do_based_decl, handle_one_level, label_value_cmp,
543         find_implied_types): Add static prototypes.
544         (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
545         Constify a char*.
546         (layout_chill_variants): Cast the function argument of qsort.
547         (start_chill_function, fix_identifier, init_decl_processing):
548         Constify a char*.
549         (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
550         Use xcalloc instead of xmalloc/bzero.
551         (builtin_function, build_chill_exception_decl,
552         finish_outer_function): Constify a char*.
553
554         * except.c (start_handler_array, finish_handler_array): Add static
555         prototypes.
556
557         * expr.c (chill_expand_expr, chill_expand_case_expr,
558         check_arglist_length, internal_build_compound_expr,
559         is_really_instance, invalid_operand, invalid_right_operand,
560         build_chill_abstime, build_allocate_memory_call,
561         build_allocate_global_memory_call, build_return_memory,
562         build_chill_duration, build_chill_floatcall,
563         build_allocate_getstack, build_chill_allocate,
564         build_chill_getstack, build_chill_terminate, build_chill_inttime,
565         build_chill_lower_or_upper, build_max_min,
566         build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
567         build_compare_set_expr, scalar_to_string, build_concat_expr,
568         build_compare_string_expr, compare_records, string_char_rep,
569         build_boring_bitstring): Add static prototypes.
570         (check_have_mode, chill_expand_expr, build_chill_floatcall,
571         build_allocate_getstack, build_max_min, build_chill_function_call,
572         expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
573         string_char_rep): Constify a char*.
574
575         * gperf (hash, in_word_set): Add prototypes.
576
577         * grant.c (newstring, strfree, append, prepend,
578         grant_use_seizefile, decode_layout, grant_array_type,
579         grant_array_type_selective, get_tag_value,
580         get_tag_value_selective, print_enumeral, print_enumeral_selective,
581         print_integer_type, find_enum_parent, print_integer_selective,
582         print_struct, print_struct_selective, print_proc_exceptions,
583         print_proc_tail, print_proc_tail_selective, find_in_decls,
584         in_ridpointers, grant_seized_identifier, globalize_decl,
585         grant_one_decl_selective, compare_memory_file, search_in_list,
586         really_grant_this): Add static prototypes.
587         (newstring, append, prepend, grant_use_seizefile,
588         print_integer_type, decode_constant, grant_one_decl_selective,
589         header_template): Constify a char *.
590
591         * inout.c (add_enum_to_list, build_chill_io_list_type,
592         build_io_types, declare_predefined_file, build_access_part,
593         textlocation_mode, check_assoc, assoc_call, check_transfer,
594         connect_process_optionals, connect_text, connect_access,
595         check_access, check_text, get_final_type_and_range,
596         process_io_list, check_format_string, get_max_size,
597         check_exprlist): Add static prototypes.
598         (declare_predefined_file, check_assoc, assoc_call, check_transfer,
599         check_access, check_text, process_io_list): Constify a char*.
600
601         * lang.c (deep_const_expr, chill_print_error_function): Add static
602         prototypes.
603
604         * lex.c (close_input_file, maybe_number, string_or_char): Constify
605         a char*.
606         (ch_lex_init, skip_directive, same_file, getlc, yywrap,
607         yy_refill): Add static prototypes.
608         (build_chill_string, same_file, register_seize_path): Constify a
609         char*.
610
611         * lex.h (finish_chill_seizes): Remove unused prototypes.
612
613         * loop.c (build_temporary_variable, maybe_make_for_temp,
614         get_unique_identifier): Constify a char*.
615
616         * parse.c (ch_parse_init, check_end_label, end_function,
617         build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
618         forward_token_, require, check_token, expect, define__PROCNAME__):
619         Add static prototypes.
620         (build_prefix_clause, expect): Constify a char*.
621         (parse_expression, parse_primval, parse_untyped_expr,
622         parse_opt_untyped_expr, parse_opt_actions): Add void prototype
623         argument.
624         (parse_opt_name_string, parse_simple_name_string,
625         parse_name_string, parse_defining_occurrence, parse_name,
626         parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
627         parse_spec_module, parse_semi_colon,
628         parse_defining_occurrence_list, parse_mode_definition,
629         parse_mode_definition_statement, parse_synonym_definition,
630         parse_synonym_definition_statement, parse_on_exception_list,
631         parse_on_alternatives, parse_loc_declaration,
632         parse_declaration_statement, parse_optforbid, parse_postfix,
633         parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
634         parse_grant_statement, parse_seize_statement,
635         parse_param_name_list, parse_param_attr, parse_formpar,
636         parse_formparlist, parse_opt_result_spec, parse_opt_except,
637         parse_opt_recursive, parse_procedureattr, parse_proc_body,
638         parse_procedure_definition, parse_processpar,
639         parse_processparlist, parse_process_definition,
640         parse_signal_definition, parse_signal_definition_statement,
641         parse_then_clause, parse_opt_else_clause, parse_expr_list,
642         parse_range_list_clause, pushback_paren_expr, parse_case_label,
643         parse_case_label_list, parse_case_label_specification,
644         parse_single_dimension_case_action,
645         parse_multi_dimension_case_action, parse_case_action,
646         parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
647         parse_asm_action, parse_begin_end_block, parse_if_action,
648         parse_iteration, parse_delay_case_event_list,
649         parse_delay_case_action, parse_do_action, parse_receive_spec,
650         parse_receive_case_action, parse_send_action, parse_start_action,
651         parse_call, parse_tuple_fieldname_list, parse_tuple_element,
652         parse_opt_element_list, parse_tuple, parse_operand6,
653         parse_operand5, parse_operand4, parse_operand3, parse_operand2,
654         parse_operand1, parse_operand0, parse_case_expression,
655         parse_then_alternative, parse_else_alternative,
656         parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
657         parse_step, parse_opt_layout, parse_field_name_list,
658         parse_fixed_field, parse_variant_field_list,
659         parse_variant_alternative, parse_field, parse_structure_mode,
660         parse_opt_queue_size, parse_procedure_mode, parse_program,
661         parse_pass_1_2): Add static prototypes.
662         (parse_process_definition): Remove extra argument in function call.
663         (parse_range_list_clause): Likewise.
664
665         * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
666         satisfy_list, satisfy_list_values): Add static prototype.
667         (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
668
669         * tasking.c (make_process_struct): Remove unused prototype.
670         (validate_process_parameters, get_struct_variable_name,
671         decl_tasking_code_variable, get_struct_debug_type_name,
672         get_process_wrapper_name, build_tasking_enum,
673         build_tasking_message_type, build_receive_signal_case_label,
674         build_receive_buffer_case_label, build_receive_buffer_case_end,
675         build_receive_signal_case_end): Add static prototypes.
676         (struct_name, struct_debug_name, data_name, wrapper_name,
677         get_struct_type_name, get_struct_debug_type_name,
678         get_tasking_code_name, get_struct_variable_name,
679         get_process_wrapper_name): Constify a char*.
680         (validate_process_parameters, get_struct_variable_name,
681         decl_tasking_code_variable): Hide unused functions.
682         (build_start_process, add_taskstuff_to_list, build_queue_length):
683         Constify a char*.
684
685         * tree.c (make_powerset_type): Add static prototype.
686         (get_identifier3, build_alias_decl, decl_check_rename): Constify a
687         char*.
688
689         * typeck.c (extract_constant_from_buffer,
690         expand_constant_to_buffer, build_empty_string,
691         make_chill_pointer_type, make_chill_range_type,
692         apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
693         apply_chill_field_layout): Add static prototype.
694         (valid_array_index_p, extract_constant_from_buffer,
695         chill_expand_tuple): Constify a char*.
696         (layout_chill_struct_type): Cast the function argument of qsort.
697
698 1999-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
699
700         * actions.c (lang_identify): Constify a char*.
701
702         * lang.c (chill_print_error_function): Likewise.
703         (lang_init): Remove redundant prototype for `print_error_function'.
704
705 1999-07-25  Richard Henderson  <rth@cygnus.com>
706
707         * decl.c (va_list_type_node): New.
708
709 1999-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
710
711         * Make-lang.in (CHILL.stage1): Depend on stage1-start.
712         (CHILL.stage2): Likewise for stage2-start.
713         (CHILL.stage3): Likewise for stage3-start.
714         (CHILL.stage4): Likewise for stage4-start.
715
716 Tue May 18 00:21:34 1999  Zack Weinberg  <zack@rabi.phys.columbia.edu>
717
718         * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
719         was not given.
720
721 1999-05-10 18:21 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
722
723         * lang-specs.h: Pass -$ to the preprocessor.
724
725 Tue May  4 14:52:53 1999  Dave Brolley  <brolley@cygnus.com>
726
727         * actions.c (chill_expand_assignment): Use powersetlen to calculate the
728         length of an array of packed bits.
729
730 Tue Apr 20 23:37:01 1999   Nathan Sidwell  <nathan@acm.org>
731
732         * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
733         order.
734
735 Wed Apr 14 21:07:30 1999  Mumit Khan  <khan@xraylith.wisc.edu>
736
737         * config-lang.in (compilers): Add exeext.
738         (stagestuff): Likewise.
739
740 Fri Apr  2 15:49:44 1999  Jeffrey A Law  (law@cygnus.com)
741
742         * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
743
744 Wed Mar 31 10:44:47 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
745
746         * Makefile.in (hash.h): Generate using gperf language 'C', not
747         'KR-C', so gperf uses the `const' keyword on strings.
748
749         * gperf (resword): Const-ify a char*.
750
751 Sun Mar 28 00:30:36 1999  Jeffrey A Law  (law@cygnus.com)
752
753         * Make-lang.in (CHILL.dvi): New target.
754         (CHILL.mostlyclean): Remove remnants of old runtime library structure.
755
756 1999-02-20  Craig Burley  <craig@jcb-sc.com>
757
758         * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
759         target instead of the chill.texi file.
760         (ch/chill.info): New target, depends on the chill.texi source file.
761         Its command writes ch/chill.info instead of chill.info.
762         (CHILL.install-info): Install from ch/chill.info instead of
763         chill.info.
764         If any ch/chill.info* files exist, delete *all* chill.info* files
765         in $infodir first, not just the ones corresponding to the
766         files to be installed (just in case the docs get smaller).
767
768 Sun Jan 31 20:34:29 1999  Zack Weinberg  <zack@rabi.columbia.edu>
769
770         * decl2.c: Don't define flag_no_ident here.  Don't process
771         -f(no-)ident here.
772         * ch-tree.h: Don't declare flag_no_ident here.
773         * lang-specs.h: Map -Qn to -fno-ident.
774
775 Tue Jan 19 23:24:36 1999  Jeffrey A Law  (law@cygnus.com)
776
777         * Makefile.in (typeck.o): Depend on insn-codes.h.
778         * actions.c (chill_handle_multi_case_label): Initialize "expr".
779         * decl.c (poplevel): Initialize "block_previously_created".
780         * expr.c (chill_expand_expr): Initialize "size0" and "size1".
781         (fold_set_expr): Initialize "buffer1".
782         * inout.c (process_io_list): Initialize "to_assign".
783         (check_exprlist): Initialize "result".
784         * parse.c (expand_expr): Declare.
785         (parse_multi_dimension_case_action): Initialize "end_case_label".
786         * tasking.c (build_start_process): Initialize "struct_type_node".
787         * typeck.c (apply_chill_field_layout): Initialize "word".
788         (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
789         signed/unsigned comparison warning.
790
791 Mon Jan 18 11:55:06 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
792
793         * ch-tree.h: Remove conflicting prototypes for pedwarn,
794         warning_with_decl, and make_dcl_rtl.
795
796 Sun Jan 17 21:53:23 1999  Jeffrey A Law  (law@cygnus.com)
797
798         * Makefile.in: Do not put ^Ls at the start of a line.
799
800 Wed Jan  6 02:53:38 1999  Jeffrey A Law  (law@cygnus.com)
801
802         * Makefile.in: Add some missing $(exeext).  Remove some obsolete
803         runtime stuff.
804         * Make-lang.in: Similarly.
805
806 Tue Nov 24 09:57:34 1998  Jeffrey A Law  (law@cygnus.com)
807
808         * Makefile.in (lex.c): Do not depend on hash.h.
809         (lex.o): Depend on hash.h.
810
811 Mon Oct 19 12:13:47 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
812
813         * Makefile.in (lex.o): Depend on dwarfout.h.
814
815         * lang-specs.h: Add missing braces in initializer.
816
817         * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
818
819 Thu Oct 15 09:25:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
820
821         * expr.c (build_chill_card): Use &&, not &, when comparing truth
822         values.
823
824         * parse.c (parse_spec_module): Remove unused variable
825         `module_name', but preserve function call from initialization.
826         (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
827
828         * inout.c (init_text_location): Remove unused variable `textlength'.
829
830 Wed Oct 14 22:19:48 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
831
832         * typeck.c (build_chill_cast): Fix typo in assignment statement.
833
834         * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
835         when printing a `tree'.
836
837 Fri Oct  9 13:01:23 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
838
839         * ch-tree.h (build_delay_case_end): Remove unused parameter.
840         (build_receive_case_end): Likewise.
841         (check_queue_size): Likewise.
842
843         * parse.c: Callers changed.
844
845         * satisfy.c: Likewise.
846
847         * tasking.c (build_receive_buffer_case_end): Remove unused
848         parameter `label_cnt'.
849         (build_receive_signal_case_end): Likewise.
850         (build_receive_case_end): Likewise.
851         (build_delay_case_end): Likewise.
852         (check_queue_size): Likewise for parameter `type'.
853         All callers changed.
854
855 Thu Oct  8 05:57:41 1998  Jeffrey A Law  (law@cygnus.com)
856
857         * typeck (type_for_mode): Only return TItype nodes when
858         HOST_BITS_PER_WIDE_INT is >= 64 bits.
859         (type_for_size): Similarly.
860         * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
861         when HOST_BITS_PER_WIDE_INT is >= 64 bits.
862         (init_decl_processing): Only create TItype nodes when
863         HOST_BITS_PER_WIDE_INT is >= 64 bits.
864
865 Wed Oct  7 12:19:21 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
866
867         * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
868         (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
869
870 Thu Oct  1 10:43:45 1998  Nick Clifton  <nickc@cygnus.com>
871
872         * lex.c: Replace occurrences of HANDLE_SYSV_PRAGMA with
873         HANDLE_GENERIC_PRAGMAS.
874         (handle_generic_pragma): New function: Parse generic pragmas.
875
876 Wed Sep 30 20:22:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
877
878         * parse.c (emit_label): Fix return-type of prototype.
879
880 Wed Sep 30 19:41:36 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
881
882         * actions.c (chill_handle_multi_case_label): Always return a value
883         in function returning non-void.
884
885         * except.c: Include OS headers before any local ones.
886
887         * typeck.c (layout_chill_range_type): Change type of variable
888         `negprecision' to int.
889         (apply_chill_array_layout): Initialize variables `stepsize' and
890         `start_bit'.
891         (layout_chill_struct_type): Change type of variable `min_align' to
892         unsigned int.
893         (smash_dummy_type): Change name of variable `main' to `main_tree'.
894
895 Wed Sep 30 19:24:41 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
896
897         * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
898         ensure enough bits for calculation.
899
900         * ch-tree.h (check_text_length): Remove unused parameter.
901
902         * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
903         function sprintf into the appropriate type for printing.
904
905         * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
906         format specifier.
907         (print_mode): Likewise.
908         (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
909
910         * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
911         the format specifier.
912
913         * inout.c (check_text_length): Remove unused parameter `type'.
914         (build_chill_associate): Initialize variables `arg1', `arg2',
915         `arg3', `arg4' and `arg5'.
916         (build_chill_modify): Likewise.
917         (scanformcont): Change type of variable `curr' to `unsigned char'.
918
919         * lex.c (maybe_downcase): Cast the argument of `tolower' to
920         `unsigned char'.
921
922         * satisfy.c (satisfy): Remove unused parameter in call to
923         `check_text_length'.
924
925         * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
926         as a `long' in call to function `error'.
927         (decl_tasking_code_variable): Likewise.
928
929 Wed Sep 30 19:03:02 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
930
931         * grant.c (decode_decl_selective): Cast switch's enum argument to
932         an int.
933         (really_grant_this): Add default case in switch.
934
935         * typeck.c (chill_resulting_class): Add default cases in switch.
936         Also add `break' statements after each case.
937
938 Tue Sep 29 21:37:33 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
939
940         * ch-tree.h (build_compare_expr): Change first argument's type
941         from `enum chill_tree_code' to `enum tree_code'.
942         (build_compare_discrete_expr): Likewise.
943
944         * expr.c (build_compare_set_expr): Likewise.
945         (build_compare_string_expr): Likewise.
946         (build_compare_expr): Likewise.
947         (build_compare_discrete_expr): Likewise.  Also add default case in
948         switch statement.
949         (compare_int_csts): Add default case in switch statement.
950
951 Sun Sep 20 11:02:55 1998  Robert Lipe  <robertl@dgii.com>
952
953         * except.c: Include system.h.
954
955         * Makefile.in (except.o): Depend on system.h.
956
957 Sun Sep 20 09:25:13 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
958
959         * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
960         lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
961         typeck.o): Depend on system.h and toplev.h.
962         (except.o): Depend on toplev.h.
963         (grant.o): Depend on system.h, toplev.h and output.h.
964
965         * actions.c: Include system.h and toplev.h.  Remove redundant
966         prototypes.
967         (build_cause_exception): Add default case in switch.
968         (update_else_range_for_range): Add parentheses around && within ||.
969         (chill_handle_multi_case_label_list): Remove unused variable
970         `selector_value'.
971         (print_missing_cases): Reconcile format specifiers vs arguments in
972         calls to sprintf.
973
974         * ch-tree.h: Don't include stdio.h.  Wrap prototypes using FILE*
975         with macro BUFSIZ.  Add missing prototypes.
976
977         * convert.c: Include system.h and toplev.h.  Remove redundant
978         prototypes.
979         (convert): Remove unused variable `errstr'.
980
981         * decl.c: Include system.h and toplev.h.  Remove redundant
982         prototypes.
983         (builtin_scope): Add missing initializers.
984         (clear_scope): Likewise.
985         (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
986         (copy_lang_decl): Likewise for parameter `node'.
987         (c_decode_option): Likewise for parameter `argc'.
988         (push_extern_function): Likewise for parameter `granting'.
989         (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
990         (pushdecl): Remove unused variable `t'.
991         (lookup_name_current_level): Make static and hide.
992         (lookup_name_for_seizing): Make static.
993         (finish_decl): Remove unused variable `type'.
994         (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
995         (complete_array_type): Mark parameters `type', `initial_value' and
996         `do_default' with ATTRIBUTE_UNUSED.
997         (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
998         (start_enum): Likewise.
999         (shadow_record_fields): Remove unused variables `type' and `parent'.
1000
1001         * except.c: Include toplev.h.  Remove redundant prototypes.
1002
1003         * expr.c: Include system.h and toplev.h.  Don't define NULL.
1004         Remove redundant prototypes.
1005         (internal_build_compound_expr): Mark parameter `first_p' with
1006         ATTRIBUTE_UNUSED.
1007         (build_allocate_getstack): Remove unused variable `init'.
1008         (build_chill_pred_or_succ): Likewise for variable `limit'.
1009         (varying_to_slice): Likewise for variable `doamin' [sic].
1010         (finish_chill_binary_op): Likewise for variables `code0' and
1011         `code1'.  Remove unused label `finish'.  Add explicit braces to
1012         avoid ambiguous `else'.
1013         (build_chill_addr_expr): Remove extra parameter in call to `error'.
1014         (build_chill_unary_op): Remove unused variables `class' and `type0'.
1015         (powersetlen): Remove unused variables `domain' and `temp'.
1016
1017         * grant.c: Include system.h, toplev.h and output.h.  Don't handle
1018         strchr/strrchr.  Remove redundant prototypes.
1019         (decode_constant_selective): Remove unused variables `op' and `wrk'.
1020         (push_granted): Mark parameters `name' and `decl' with
1021         ATTRIBUTE_UNUSED.
1022
1023         * inout.c: Include system.h and toplev.h.  Remove redundant
1024         prototypes.
1025         (textlocation_mode): Use &&, not &, when comparing two truth
1026         values.
1027         (scanformcont): Remove unused label `do_the_action'.
1028
1029         * lang.c: Include system.h and toplev.h.  Remove redundant
1030         prototypes.
1031         (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
1032         (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
1033         (lang_print_xnode): Likewise for parameters `file', `node' and
1034         `indent'.
1035         (lang_decode_option): Explicitly declare `explicit_ignore_case'.
1036         (incomplete_type_error): Mark parameters `value' and `type' with
1037         ATTRIBUTE_UNUSED.
1038
1039         * lex.c: Include system.h and toplev.h.  Remove redundant
1040         prototypes.  Don't handle strchr/strrchr.  Use CAPITALIZED
1041         versions of ctype macros from system.h.  Cast ctype arguments to
1042         unsigned char when necessary.
1043         (last_token, RETURN_TOKEN): Hide definition.
1044         (push_back): Remove unused function.
1045         (readstring): Change variable `i' to unsigned.
1046         (yywrap): Remove unused variable `node'.
1047
1048         * loop.c: Include system.h and toplev.h.  Remove redundant
1049         prototypes.
1050         (chill_unsigned_type): Hide prototype and definition.
1051         (begin_loop_scope): Remove unused variable `firstp'.
1052         (nonvalue_begin_loop_scope): Likewise.
1053
1054         * parse.c: Include system.h and toplev.h.  Remove redundant
1055         prototypes.
1056         (quasi_signal): Hide.
1057         (PEEK_TOKEN): Change return type to `enum terminal'.
1058         (parse_mode_definition_statement): Remove unused variable `names'.
1059         (parse_formpar): Remove unused parameter `in_spec_module'.  All
1060         callers changed.
1061         (parse_formparlist): Likewise.
1062         (parse_processpar): Remove unused variable `parms'.
1063         (parse_definition): Add explicit braces to avoid ambiguous `else'.
1064         (parse_multi_dimension_case_action): Initialize variable
1065         `begin_test_label'.  Remove unused variable `new_test'.
1066         (parse_case_action): Remove unused variable `caseaction_flag'.
1067         (parse_asm_clobbers): Remove unused variable `expr'.
1068         (parse_delay_case_action): Initialize variable `label_cnt'.
1069         (parse_action): Make function static.
1070         (parse_tuple_element): Remove unused variable `list'.
1071         (parse_primval): Add default case in switch.
1072         (parse_variant_alternative): Remove unused variables `x' and
1073         `variant_fields'.
1074
1075         * satisfy.c: Include system.h and toplev.h.  Remove redundant
1076         prototypes.
1077
1078         * tasking.c Include system.h and toplev.h.  Remove redundant
1079         prototypes.
1080         (data_name): Hide.
1081         (get_struct_variable_name): Likewise.
1082         (validate_process_parameters): Mark parameter `parms' with
1083         ATTRIBUTE_UNUSED.
1084         (build_start_process): Initialize variable `tuple'.
1085         (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
1086
1087         * timing.c: Include system.h and toplev.h.
1088         (build_after_timeout_start): Remove unused variable `goto_where'.
1089
1090         * tree.c: Include system.h and toplev.h.  Remove redundant
1091         prototypes.
1092
1093         * typeck.c: Include system.h and toplev.h.  Remove redundant
1094         prototypes.
1095         (extract_constant_from_buffer): Make function static.  Add
1096         explicit braces to avoid ambiguous `else'.
1097         (expand_constant_to_buffer): Likewise.
1098         (build_chill_slice): remove unused variable `is_static'.
1099         (chill_compatible): Add explicit braces to avoid ambiguous `else'.
1100         (apply_chill_array_layout): Remove unused variable `offset'.
1101         (smash_dummy_type): Remove unused variable `save_lang_specific'.
1102         (initializer_constant_valid_p): Add default case in switch.
1103
1104 Mon Sep 14 16:46:36 1998  Dave Brolley  <brolley@cygnus.com>
1105
1106         * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
1107         domain type of the array.
1108
1109         * expr.c (build_chill_function_call): Remove redundant call to
1110         chill_convert_to_assignment
1111
1112 Thu Sep 10 17:52:36 1998  Dave Brolley  <brolley@cygnus.com>
1113
1114         * actions.c (chill_convert_for_assignment): Make a copy of the result
1115         node before modifying it.
1116
1117 Sat Sep  5 16:55:37 1998  John Carr  <jfc@mit.edu>
1118
1119         * Make-lang.in: Comment ^L characters.  Sun make doesn't like them.
1120
1121 Sat Sep  5 23:49:50 1998  Jeffrey A Law  (law@cygnus.com)
1122
1123         * Makefile.in (INCLUDES): Update after recent reorganization at the
1124         toplevel gcc directory.
1125
1126 Sat Sep  5 22:25:51 1998  Richard Henderson  <rth@cygnus.com>
1127
1128         * Makefile.in: Update dependencies for top-level gcc files that moved.
1129
1130 Sat Sep  5 02:21:08 1998  Jeffrey A Law  (law@cygnus.com)
1131
1132         * Makefile.in: Tweak to avoid building runtime.  It's built
1133         elsewhere now.
1134
1135 Thu Sep  3 15:32:03 1998  Dave Brolley  <brolley@cygnus.com>
1136
1137         * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
1138
1139 Wed Sep 02 09:25:29 1998  Nick Clifton  <nickc@cygnus.com>
1140
1141         * lex.c (check_newline):  Change how HANDLE_PRAGMA is called.
1142         Generate warning messages if unknown pragmas are encountered.
1143         (pragma_getc): New function: retrieves characters from the
1144         input stream.  Defined when HANDLE_PRAGMA is defined.
1145         (pragma_ungetc): New function: replaces characters back into the
1146         input stream.  Defined when HANDLE_PRAGMA is defined.
1147
1148 Mon Aug 31 15:35:16 1998  Dave Brolley  <brolley@cygnus.com>
1149
1150         * decl.c (layout_chill_variants): Calculate nlables properly.
1151
1152 Mon Jul 27 17:21:01 1998  Dave Brolley  <brolley@cygnus.com>
1153
1154         * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
1155         element type.
1156
1157 Mon Jul 13 14:20:12 1998  Nick Clifton  <nickc@cygnus.com>
1158
1159         * lang-options.h: Format changed to match changes in gcc/toplev.c
1160         to implement a --help option.
1161
1162 Wed Jul  8 02:58:35 1998  Jeffrey A Law  (law@cygnus.com)
1163
1164         * lang.c (lang_init_options): New function.
1165
1166 Wed Jun 10 12:08:09 1998  Dave Brolley  <brolley@cygnus.com>
1167
1168         * lang-options.h: Remove -I.
1169         * ch-tree.h (c_decode_option): New argc/argv interface.
1170         * decl.c (c_decode_option): New argc/argv interface.
1171         * lang.c (lang_decode_option):  New argc/argv interface.
1172
1173 Wed May 27 10:33:41 1998  Dave Brolley  <brolley@cygnus.com>
1174
1175         * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
1176         chill_handle_multi_case_label_range were reversed.
1177
1178         * Make-lang.in (chill): Use the correct gcc in the driver script.
1179
1180 Thu May 21 14:40:44 1998  Dave Brolley  <brolley@cygnus.com>
1181
1182         * convert.c (digest_array_tuple): Move conversion to
1183         chill_convert_for_assignment.
1184
1185         * actions.c (chill_convert_for_assignment): Allow conversion of array
1186         constructor to bitstring constructor for assignment to array of packed bits.
1187
1188 Thu May 14 13:57:51 1998  Dave Brolley  <brolley@cygnus.com>
1189
1190         * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
1191
1192 Wed May 13 14:07:51 1998  Dave Brolley  <brolley@cygnus.com>
1193
1194         * typeck.c (build_chill_slice): Adjust slice index to account for the
1195         lower bound of the array.
1196
1197         * actions.c (chill_expand_assignment): Convert function arguments to the
1198         correct types.
1199         (chill_expand_assignment): Ditto.
1200
1201 Mon May 11 16:20:57 1998  Dave Brolley  <brolley@cygnus.com>
1202
1203         * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
1204         of the array_type to the slice_type.
1205         (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
1206         of bits.
1207
1208         * loop.c (build_loop_iterator): Disallow location enumeration for
1209         bit-packed arrays.
1210
1211         * convert.c (digest_array_tuple): Allow conversion of an array tuple
1212         to a bitstring for assignment to a packed array of bits.
1213
1214 Mon May  4 16:28:58 1998  Dave Brolley  <brolley@cygnus.com>
1215
1216         * ch-tree.def (PACKED_ARRAY_REF): New tree code.
1217         * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
1218         (chill_location): Handle PACKED_ARRAY_REF.
1219         (apply_chill_array_layout): Allow PACK for arrays of single bits.
1220         * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
1221         (invalid_operand): Check PACKED_ARRAY_REF operands.
1222         * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
1223
1224 Thu Apr 23 15:33:20 1998  Dave Brolley  <brolley@cygnus.com>
1225
1226         * typeck.c (apply_chill_field_layout): Only integral fields can be packed
1227         to the bit level.
1228
1229 Tue Apr 21 14:30:10 1998  Jeffrey A Law  (law@cygnus.com)
1230
1231         * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
1232         (init_decl_processing): Handle TI types.
1233         * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
1234         (type_for_size): Handle TI types.
1235         (type_for_mode): Handle TI types.
1236
1237 Mon Apr 20 13:12:26 1998  Dave Brolley  <brolley@cygnus.com>
1238
1239         * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
1240         int.
1241
1242         * actions.c (chill_convert_for_assignment): Check that the rhs is not
1243         a type declaration.
1244
1245 Tue Apr 14 13:17:44 1998  Dave Brolley  <brolley@cygnus.com>
1246
1247         * lex.c (init_parse): Now returns char* containing the filename.
1248
1249         * typeck.c (get_type_precision): Declare.
1250         (apply_chill_field_layout): Use the minimum number of bits necessary to
1251         represent discrete types as the natural length of the field.
1252
1253 Thu Apr  9 12:46:55 1998  Dave Brolley  <brolley@cygnus.com>
1254
1255         * lex.c (finput): Move definition here from toplev.c
1256         (init_parse): New function replaces init_lex.
1257         (init_parse): Add code to open source file.
1258         (finish_parse): New function.
1259         (close_input_file): File was being closed more than once.
1260
1261         * lang.c (finput): Declare.
1262         * ch-tree.h (init_lex): Remove.
1263
1264
1265 Wed Apr  8 14:47:33 1998  Dave Brolley  <brolley@cygnus.com>
1266
1267         * actions.c (compute_else_range): Fix loop index error.
1268         (chill_handle_multi_case_label_range): Move error checking to
1269         chill_handle_multi_case_label.
1270         (chill_handle_multi_case_else_label): Convert ELSE range values to
1271         the type of the corrersponding CASE selector.
1272
1273 Wed Apr  8 13:02:50 1998  Jeffrey A Law  (law@cygnus.com)
1274
1275         * actions.c (sizetype_tab): Do not declare.
1276         * lang.c (lang_print_xnode): New function.
1277
1278 Mon Mar 23 14:43:06 1998  Dave Brolley  <brolley@cygnus.com>
1279
1280         * grant.c (decode_layout): New function.
1281         (grant_array_type): Call decode_layout to export layout information to
1282         the grant file.
1283         (decode_decl): Ditto
1284
1285 Fri Mar 20 16:06:41 1998  Dave Brolley  <brolley@cygnus.com>
1286
1287         * parse.c (parse_tuple_element): Call had arguments in wrong order.
1288
1289 Thu Mar 19 13:42:33 1998  Dave Brolley  <brolley@cygnus.com>
1290
1291         * typeck.c (apply_chill_array_layout): Use
1292         TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
1293         the word size.
1294
1295 Wed Mar 18 16:25:48 1998  Dave Brolley  <brolley@cygnus.com>
1296
1297         * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
1298         fields.
1299
1300         * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
1301         proper places.
1302
1303 Tue Mar 17 14:16:08 1998  Dave Brolley  <brolley@cygnus.com>
1304
1305         * parse.c (gen_label_rtx): Declare before use.
1306         (emit_jump): Declare before use.
1307         (emit_label): Declare before use.
1308         (parse_case_label_list): Pass in CASE selector so we can mark it as having
1309         an (ELSE) label if necessary.
1310         (parse_case_label_specification): Pass in the CASE selector list so that
1311         the CASE selectors can be passed to parse_case_label_list.
1312         (parse_multi_dimension_case_action): Modify to generate branching code in
1313         one pass.
1314         (parse_case_expression): Compute (ELSE) range before generating CASE expression.
1315         (parse_variant_alternative): Remove error for (ELSE) specified.
1316
1317         * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
1318
1319         * decl.c (layout_chill_variants): Add code to check compatibility of ranges
1320         and discrete mode names.
1321
1322         * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
1323
1324         * actions.h (build_multi_case_selector_expression): Make it extern.
1325         (chill_handle_multi_dimension_case_label): Remove.
1326         (compute_else_ranges): New function.
1327
1328         * actions.c (update_else_range_for_int_const): New function.
1329         (update_else_range_for_range): New function.
1330         (update_else_range_for_range_expr): New function.
1331         (update_else_range_for_type): New function.
1332         (compute_else_range): New function.
1333         (compute_else_ranges): New function.
1334         (chill_handle_multi_case_else_label): New function
1335         (chill_handle_multi_case_label_range): Don't generate tests for conditions
1336         which are always true or false.
1337         (chill_handle_multi_case_label): Ditto.
1338         (chill_handle_multi_case_label): Implement (ELSE) label support.
1339         (chill_handle_multi_case_label): First argument is now the selector tree not
1340         its VALUE.
1341         (chill_handle_multi_dimension_case_label): Removed.
1342         (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
1343         reversed on entry, so reverse it here.
1344
1345 Tue Mar 10 15:02:26 1998  Dave Brolley  <brolley@cygnus.com>
1346
1347         * actions.c (chill_handle_multi_case_label_range): Add more error checking.
1348         (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
1349         (chill_handle_multi_case_label): Improve Error handling.
1350
1351 Mon Mar  9 12:39:00 1998  Dave Brolley  <brolley@cygnus.com>
1352
1353         * actions.c (chill_handle_multi_case_label_range): Added.
1354         (chill_handle_multi_case_label): Add support for discrete ranges and
1355         discrete modes.
1356
1357         * typeck.c (apply_chill_array_layout): Added more error checking.
1358         (apply_chill_field_layout): Added more error checking.
1359
1360 Wed Mar  4 16:08:26 1998  Dave Brolley  <brolley@cygnus.com>
1361
1362         * convert.c (convert): Call build_simple_array_type with new argument.
1363
1364         * ch-tree.h(build_simple_array_type): Add argument for array layout.
1365
1366         * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
1367         (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
1368         (apply_chill_array_layout): New function to implement array layout.
1369         (layout_chill_array_type): Call apply_chill_array_layout and reset
1370         TYPE_ATTRIBUTES to NULL_TREE.
1371         (build_chill_array_type): Extend to handle one array layout per index mode.
1372         (smash_dummy_type): Call build_simple_array_type with new argument.
1373
1374         * satisfy.c (satisfy): Call SATISFY on array layout tree.
1375
1376 Wed Feb 25 14:36:41 1998  Dave Brolley  <brolley@cygnus.com>
1377
1378         * typeck.c (next_struct_offset): Added.
1379         (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
1380         or POS layout to a structure field.
1381         (layout_chill_struct_type): Add call to apply_chill_field_layout.
1382
1383         * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
1384         in the field layout tree.
1385
1386         * parse.c (pack_warn_printed): Remove.
1387         (nopack_warn_printed): Remove.
1388         (step_warn_printed): Remove.
1389         (pos_warn_printed): Remove.
1390         (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
1391
1392         * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
1393         field declarations.
1394
1395 Thu Feb 19 17:33:06 1998  Dave Brolley  <brolley@cygnus.com>
1396
1397         * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
1398         (parse_opt_mode): Removed incorrect comment about association of array
1399         layouts with nested array elements.
1400         (parse_opt_mode): Allow for one layout per index mode specified.
1401
1402 Wed Feb 18 23:48:57 1998  Richard Henderson  <rth@cygnus.com>
1403
1404         * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependency.
1405
1406 Wed Feb 18 17:35:05 1998  Dave Brolley  <brolley@cygnus.com>
1407
1408         * parse.c (parse_field): Get rid of warning for multiple case selectors.
1409
1410         * decl.c (layout_chill_variants): Fix loop indexing error.
1411
1412 Mon Feb 16 15:54:47 1998  Dave Brolley  <brolley@cygnus.com>
1413
1414         * parse.c (parse_case_expression): Remove code which checked for
1415         unimplemented (ELSE) label.
1416         (parse_case_expression): Add code to handle multi dimensional case
1417         expression.
1418
1419         * expr.c (check_case_selector_list): Fixed to return a list of the
1420         selectors which were checked.
1421         (chill_expand_case_expr): Remove "sorry" message for multi dimension
1422         case.
1423         (chill_expand_case_expr): Reverse order of case alternatives.
1424         (chill_expand_case_expr): Add "error" message for multiple case
1425         selectors.
1426
1427         * actions.h (build_chill_multi_dimension_case_expr): Added.
1428
1429         * actions.c (build_multi_case_selector_expression): Renamed from
1430         build_multi_case_expression.
1431         (chill_handle_multi_dimension_case_label): Call above function by its
1432         new name.
1433         (build_chill_case_expr): Don't reverse the list elements here. It may
1434         not be necessary.
1435         (build_chill_multi_dimension_case_expr): New function implements multi
1436         dimensional case expression.
1437
1438 Thu Feb 12 15:44:50 1998  Dave Brolley  <brolley@cygnus.com>
1439
1440         * parse.c (parse_case_action): Implement multi-dimension CASE action.
1441         (parse_multi_dimension_case_action): Added.
1442         (parse_single_dimension_case_action): Added based on code moved from
1443         parse_case_action.
1444
1445         * expr.c (check_case_selector_list): Added.
1446
1447         * ch-tree.h (check_case_selector_list): Added.
1448
1449         * actions.h (chill_handle_single_dimension_case_label): Added.
1450         (chill_handle_multi_dimension_case_label): Added.
1451
1452         * actions.c (chill_handle_single_dimension_case_label): Added.
1453         (chill_handle_multi_case_label): Added.
1454         (chill_handle_multi_case_label_list): Added.
1455         (build_multi_case_expression): Added.
1456         (chill_handle_multi_dimension_case_label): Added
1457
1458 Fri Feb  6 16:43:41 1998  Dave Brolley  <brolley@cygnus.com>
1459
1460         * actions.c (sizetype_tab): Fix declaration to match gcc changes.
1461
1462 Thu Feb  5 14:03:00 1998  Dave Brolley  <brolley@cygnus.com>
1463
1464         * decl.c (chill_tree_code_type):  Change this to be an array of char like
1465         the tree_code_type in the rest of gcc.
1466
1467         * ch-tree.def (chill_tree_code_type): See decl.c.
1468
1469 Thu Jan 29 15:34:18 1998  Dave Brolley  <brolley@cygnus.com>
1470
1471         * tasking.c (error_with_decl): Correct prototype.
1472         (build_gen_ptype): Reverse arguments.
1473
1474         * lang.c (chill_real_input_filename): Add definition.
1475         (chill_print_error_function): Correct second argument.
1476         (lang_init): Set chill_real_input_filename.
1477
1478         * expr.c (NULL): Protect definition with #ifndef.
1479
1480         * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
1481         (init_decl_processing): Change last argument to 'sizeof(char)'.
1482
1483
1484 Tue Nov 25 10:44:19 1997  Nick Clifton  <nickc@cygnus.com>
1485
1486         * Make-lang.in (mostlyclean): Use && to separate commands, so that
1487         if the directory change fails, the rule will not loop.
1488
1489 Mon Mar  3 12:08:19 1997  Fred Fish  <fnf@cygnus.com>
1490
1491         * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1492         spaces and use single tab character on some lines.
1493         (cc1chill): Ditto.
1494
1495 Tue Nov 26 05:12:40 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1496
1497         * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1498         that the buffer location gets evaluated only once, in
1499         build_receive_buffer_case_end.
1500
1501         * typeck.c (build_chill_bin_type): Rework.
1502         (layout_chill_range_type): Process BIN mode.
1503         (build_chill_array_type): Remove checking of layout. This is done
1504         at the parse.
1505
1506         * parse.c (parse_on_exception_list): Don't allow ON name:.
1507         (parse_opt_layout): Parse POS and STEP and return a tree instead
1508         of int.
1509
1510         * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1511
1512         * grant.c (print_integer_type): Take care of BIN.
1513
1514         * expr.c (build_chill_descr): Make descr static if requested
1515         location is static.
1516         (build_chill_length): Process text mode name and text location as
1517         described in Z.200/1992.
1518         (build_compare_expr): Don't allow < <= > >= for composite modes.
1519
1520         * decl.c (grok_chill_fixedfields): Remove checking of
1521         layout. This is done at the parser.
1522
1523         * convert.c (digest_structure_tuple): Take care of wrong (probably
1524         array) tuple. Printing error may cause sigsegv.
1525
1526         * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1527         build_chill_array_type (layout is passed now as a tree instead of
1528         int).
1529
1530 Fri Nov 15 15:17:44 1996  Per Bothner  <bothner@deneb.cygnus.com>
1531
1532         * convert.c (display_int_cst):  Check that val is INTEGER_CST.
1533         (digest_array_tuple):  Some extra error checks (i.e. that indexes
1534         are constant).  If dynamic mode, result is not constant.
1535
1536 Mon Oct 28 12:48:06 1996  Jeffrey A Law  (law@cygnus.com)
1537
1538         * typeck.c (signed_or_unsigned_type): If the given type already
1539         as the correct signedness, then just return it.
1540
1541         * typeck.c ({un,}signed_type): If can't do anything, call
1542         signed_or_unsigned_type.
1543
1544 Fri Sep  6 02:50:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1545
1546         * typeck.c (build_chill_cast): In case of rangecheck, take care of
1547         constant expression (when defining a SYN).
1548
1549 Thu Sep  5 04:30:32 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1550
1551         * parse.c (define__PROCNAME__): New function to define a SYNONYM
1552         __PROCNAME__ (__procname__) which is a character string containing
1553         the name of the current procedure. This is quit the same as
1554         __FUNCTION__ in C.
1555         (parse_proc_body): Add call to define__PROCNAME__.
1556
1557         * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1558         modes on one side and procedures on the other side..
1559
1560 Wed Jul 24 01:13:51 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1561
1562         * typeck.c: Replace all local variables and arguments named `index'
1563         with `idx', `index' gets replaced by `strchr' which makes debugging
1564         somehow difficult.
1565         (valid_array_index_p): New argument to indicate that we are processing
1566         LENGTH (varying string) on the lefthand side of an assignment. The
1567         index check is different in this case.
1568         (build_chill_cast): In case of expression conversion do an OVERFLOW
1569         check with the limits of the target mode.
1570
1571         * ch-tree.h: New prototype for valid_array_index_p.
1572
1573         * actions.c (expand_varying_length_assignment): Add new argument to
1574         call to valid_array_index_p to indicate we are processing
1575         LENGTH on the lefthand side of an assignment.
1576
1577         * loop.c: Rename loop_stack to loopstack to avoid clashes with
1578         global variable ../stmt.c:loop_stack.
1579
1580 Tue Jun 18 23:04:06 1996  Per Bothner  <bothner@deneb.cygnus.com>
1581
1582         * expr.c (resolve_component_ref):  Set TREE_SIDE_EFFECTS properly.
1583
1584 Mon Jun 10 15:01:51 1996  Per Bothner  <bothner@deneb.cygnus.com>
1585
1586         * typeck.c (build_chill_reference_type):  Copy novelty for reference.
1587         * satisfy.c (satisfy):  If REFERENCE_TYPE, copy novelty.
1588
1589 Thu May 30 04:55:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1590
1591         * typeck.c (valid_array_index_p): For varying character strings
1592         we must check if the index is less then the actual length instead
1593         of less equal.
1594
1595 Wed May 15 06:07:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1596
1597         * ch-tree.h: Add prototype for test_range.
1598
1599         * inout.c (process_io_list): Fix duplicate function call if
1600         writetext argument is a function returning a varying string.
1601
1602 Tue May 14 21:08:47 1996  Per Bothner  <bothner@deneb.cygnus.com>
1603
1604         Re-do string comparisons.  Old way could re-use temporary
1605         (SAVE_EXPR created for an argumnet is variable) prematurely.
1606         * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR):  New codes.
1607         * decl.c (init_decl_processing):  Remove __eqstring, __gestring,
1608         __gtstring, __lestring, __ltstring, __nestring declarations.
1609         * expr.c (build_char_array_expr):  Rename to build_compare_string_expr.
1610         Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1611         (chill_expand_expr):    Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1612         (build_compare_expr):  Use new build_char_array_expr name.
1613
1614 Mon Apr  8 14:08:30 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1615
1616         Cleanup of April 5 fix:
1617         * actions.c (test_range):  New function.
1618         (check_range):  Simplify to use test_range.
1619         * convert.c (digest_powerset_tuple):  Move error message from here ...
1620         (check_ps_range):  ... to here.  Also, simplify to use test_range.
1621
1622 Fri Apr  5 03:41:05 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1623
1624         * convert.c (check_ps_range): New function to perform range check
1625         of powerset tuple elements. This is quite the same as check_range,
1626         however, the actions on rangefail are different.
1627         (digest_powerset_tuple): Call check_ps_range.
1628
1629         * loop.c (build_loop_iterator): Chaeck if location enumeration
1630         is requested for BOOLS(n) and print an error message.
1631
1632 Wed Mar  6 17:46:48 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1633
1634         * parse.c (parse_primval):  Emit error if !ignore (before: pass==2).
1635
1636         Implement parameterised array and string modes (using LANG_TYPE).
1637         * parse.c (parse_opt_mode):  Handle parameterized arrays and strings.
1638         * grant.c (decode_mode):  Support extended use of LANG_TYPE.
1639         * satisfy.c (cycle_error_print):  Ignore non-decls in chain.
1640         (safe_satisfy_decl):  No error if non-decl (pointer type) in cycle.
1641         (satisfy):  Return immediately if laid out non-pointer type.
1642         (satisfy case LANG_TYPE):  Handle paramertised mode.
1643         (satisfy case POINTER_TYPE/REFERENCE_TYPE):  Push type on chain;
1644         return immediately if already in chain.
1645         * typeck.c (smash_dummy_type):  Handle parameterized modes and CHAR(N).
1646         Change return type (can now return error_mark_node).
1647         (build_readonly_type):  Return return value from smash_dummy_type.
1648         * ch-tree.h:  Change smash_dummy_type return type.
1649
1650 Tue Mar  5 22:31:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1651
1652         * typeck.c (build_chill_slice):  Re-do index_type calculation.
1653         * typeck.c (layout_chill_range_type):  Use compare_int_csts rather
1654         than tree_int_cst_lt to avoid signed/unsigned problems.
1655
1656         * typeck.c (copy_novelty):  Use copy_node rather than build_type_node.
1657         * typeck.c (smash_dummy_type):  Use copy_novelty for NEWMODE of range.
1658
1659         * decl.c (init_decl_processing): More portable sizetype initialization.
1660
1661         * tree.c (build_string_type):  Generalize to also create bitstrings.
1662         Return error_mark_node if an argument is an ERROR_MARK.
1663         (build_bitstring_type):  Simplify - just call build_string_type.
1664
1665 Tue Mar  5 03:48:32 1996  Wilfried Moser  <moser@blues.cygnus.com>
1666
1667         * actions.c (warn_unhandled): Add missing assignment.
1668
1669         * loop.c (build_loop_iterator): In case of IN, check if
1670         expression has a mode, otherwise make an error.
1671
1672 Mon Mar  4 23:12:03 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1673
1674         *  convert.c (digest_powerset_tuple):  Check tuple elements
1675         for compatibility;  if compatible, call convert.
1676
1677 Thu Feb 29 23:39:54 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1678
1679         Simplify NOVELTY representation.
1680         * ch-tree.h (CH_NOVELTY):  Re-implement as plain TYPE_CONTEXT.
1681         (CH_NOVELTY_FLAG):  Removed.  (Just use CH_NOVELTY.)
1682         * decl.c (push_modedef):  Make copy even for SYNMODE.
1683         but not for internal typedefs (indicated by make_newmode==-1).
1684         * tasking.c:  Call push_modedef with make_newmode==-1.
1685         * typeck.c (chill_novelty):  Remove.
1686         (smash_dummy_type):  Removed unused event/buffer stuff.  Update.
1687         * grant.c (decode_decl), inout.c (build_io_types),
1688         expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1689         tasking.c (build_instance_type):  Simplify using new CH_NOVELTY.
1690
1691         Solidify READ mode handling.
1692         * decl.c (do_decl, push_syndecl, start_chill_function):
1693         Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1694         * typeck.c (build_chill_slice):  Set TREE_READONLY appropriately.
1695         (build_chill_array_ref_1, build_chill_bitref):  Likewise.
1696         (build_chill_cast):  Set TREE_READONLY depending on result type (only).
1697         * convert (convert_from_reference, convert):  Likewise.
1698         * expr.c (resolve_component_ref):  Set TREE_READONLY appropriately.
1699         (build_chill_function_call):  Error if OUT/INOUT arg is TREE_READONLY.
1700         * actions.c (chill_expand_assignment):  Also error if TREE_READONLY.
1701         Use convert_from_reference.
1702
1703 Thu Feb 29 11:14:09 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1704
1705         * parse.c (parse_do_action):  DO WITH expressions are evaluated in
1706         outer scope.  Also call save_if_needed.
1707         * decl.c (shadow_record_fields);  Fix and simplify.
1708
1709 Tue Feb 27 22:19:40 1996  Per Bothner  <bothner@cygnus.com>
1710
1711         * convert.c (display_int_cst):  Gereralize to wider range of ints.
1712
1713 Thu Feb 22 06:12:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1714
1715         * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1716
1717         * decl.c (do_decl): In case of chill_varying_type_p, check if
1718         type of fixed part is error mark and do nothing in this case.
1719
1720         * lex.c (convert_bitstring): Don't complain when length of
1721         bitstring is 0 (BOOLS(0) is a valid mode).
1722
1723         * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1724         (domain) is error mark.
1725
1726         * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1727         error_mark_node, just return.
1728
1729 Tue Feb 20 00:01:10 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1730
1731         * parse.c (parse_variant_alternative): When checking for ELSE take
1732         care of tagless variants.
1733
1734 Mon Feb 19 05:54:45 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1735
1736         * parse.c (parse_case_action): Check if ELSE was specified
1737         in a case label list (this is only valid for array tuples).
1738         (parse_case_expression): Deto.
1739         (parse_variant_alternative): Deto.
1740
1741 Tue Feb 13 17:08:16 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1742
1743         * typeck.c (chill_location):  Cleanup.  Neither SLICE_EXPR nor
1744         BIT_FIELD_REF are referable, even if their base strings are.
1745
1746 Fri Feb  9 02:25:33 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1747
1748         * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1749         checking the expression.
1750
1751         * convert.c (convert): Set TREE_CONSTANT when taking the
1752         address of a function.
1753
1754         * decl.c (start_chill_function): Check if the mode is really
1755         a mode to avoid subsequent segfaults.
1756
1757         * typeck.c (string_assignment_condition): Add checking of
1758         bitstring length.
1759
1760 Thu Feb  8 01:37:59 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1761
1762         * actions.c (build_cause_exception): Print warning of unhandled
1763         exception only once for each exception.
1764
1765 Mon Feb  5 22:17:13 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1766
1767         * tree.c (discrete_count), ch-tree.h:  New function.
1768         * expr.c (build_concate_expr, build_chill_repetition_op,
1769         chill_expand_expr):  Use discrete_count;  make sure arguments
1770         to size_binop are sizetype.
1771         (powersetlen):  Trvialize using discrete_count.
1772
1773         * inout.c (process_io_list):  Use new assign_temp function.
1774         * inout.c (build_enum_tables):  Avoid taking address of array_ref,
1775         which sometimes gets optimized to a constant.
1776
1777         * expr.c (finish_chill_unary_op):  Call convert_to_class on argument.
1778         Remove some obsolete TREE_UNSIGNED stuff.
1779         * lex.c (convert_integer):  Removed more TREE_UNSIGNED stuff.
1780
1781 Thu Feb  1 15:11:20 1996  Doug Evans  <dje@charmed.cygnus.com>
1782
1783         * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1784
1785 Wed Jan 31 17:13:25 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1786
1787         * decl.c (char_array_type_node, wchar_array_type_node):  Removed.
1788         (init_decl_processing):  Remove array_domain_type;  don't set
1789         char_array_type_node or wchar_array_type_node.
1790         * decl.c (init_decl_processing):  Use fixup_unsigned_type to
1791         simplify code to create boolean_type_node and char_type_node.
1792
1793 Mon Jan 29 14:20:10 1996  Doug Evans  <dje@charmed.cygnus.com>
1794
1795         * lex.c (check_newline): Pass character after `#pragma' to
1796         HANDLE_PRAGMA.  Don't call get_directive_line if at end of line.
1797
1798 Fri Jan 26 05:56:27 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1799
1800         * expr.c (build_chill_function_call): Add check and error for
1801         actual argument is a TYPE_DECL.
1802
1803         * parse.c (parse_set_mode): Print a warning if the set mode contains
1804         numbered and unnumbered set elements.
1805
1806 Wed Jan 24 05:10:08 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1807
1808         * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1809
1810         * decl.c (layout_enum): Add check for negative values if
1811         enum is numbered and duplicate values in an enum.
1812
1813 Mon Jan 15 06:21:52 1996  Wilfried Moser  <moser@rtl.cygnus.com>
1814
1815         * actions.c (chill_expand_assignment): Add check for lefthand side
1816         of an assignment is a location.
1817
1818         * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1819         not "concat_expr".
1820
1821         * expr.c (is_really_instance): New function to check if a datum
1822         is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1823         for this case.
1824         (build_chill_component_ref): call is_really_instance.
1825
1826 Wed Jan 10 13:47:14 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1827
1828         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  Removed;  now in ../tree.h.
1829
1830 Mon Jan  8 15:29:20 1996  Per Bothner  <bothner@kalessin.cygnus.com>
1831
1832         * expr.c (build_char_array_expr):  Add save_if_needed's if varying.
1833         Also, remove unused len0 and len1.
1834
1835 Mon Dec 11 17:36:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1836
1837         * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1838         build_chill_getassociation, build_chill_getusage,
1839         build_chill_gettextrecord,  build_chill_gettextaccess:  Simplify
1840         - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1841
1842         * parse.c (parse_action):  Minor simplification.
1843
1844 Thu Dec  7 00:02:47 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1845
1846         * parse.c (parse_action): In case of CALL, do a check if there
1847         is really a function call.
1848
1849 Tue Dec  5 05:06:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1850
1851         * convert.c (display_int_cst): Fix printing of control sequence.
1852
1853 Thu Nov 30 21:07:57 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1854
1855         * grant.c (decode_constant, decode_constant_selective):  Make work
1856         for REAL_IS_NOT_DOUBLE case.
1857
1858         * decl.c (CHILL_INT_IS_SHORT):  New macro.
1859         (init_decl_processing):  Use CHILL_INT_IS_SHORT.
1860         Change name of integer_type_node from _cint to long.
1861
1862 Mon Nov 27 17:07:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
1863
1864         * loop.c (top_loop_end_check):  Check while condition *after*
1865         getting next powerset element.
1866
1867 Mon Nov 27 05:29:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1868
1869         * parse.c (parse_receive_case_action): Fix typo in error message.
1870
1871         * convert.c (display_int_cst): Format characters like strings in
1872         grant.c(decode_constant).
1873
1874         * grant.c: Remove the old forbid stuff.
1875
1876         * lex.c (readstring): Fix reading of '^^'.
1877
1878         * parse.c (parse_procedure_mode): nreverse param_types.
1879
1880 Thu Nov 23 05:39:57 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1881
1882         * actions.c (chill_expand_assignment): Check for assigning to
1883         location with non-value mode.
1884
1885         * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1886         Add new and change some prototypes.
1887
1888         * decl.c (init_nonvalue_struct): New function to generate
1889         initialisation code for non-value structs.
1890         (init_nonvalue_array): New function to generate initialisation
1891         code for non-value array's.
1892         (do_decl): Call one of the above mentioned functions in case
1893         we have a mode with the non-value property.
1894         (start_chill_function): Print error message if a non-value mode
1895         gets returned without LOC and check for arguments of non-value
1896         modes only gets passed by LOC.
1897
1898         * grant.c (print_proc_tail): Fix for procedure returning LOC.
1899
1900         * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1901         association_type_node.
1902         (invalidate_access_recordmode): New function to set the
1903         record mode of an ACCESS to error_mark_node in case of
1904         record mode has the non-value property.
1905         (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1906         (build_access_mode, build_chill_gettextaccess): Deto.
1907         (check_exprlist): Correct processing of repetition factor.
1908
1909         * lex.c (readstring): Correct processing of control
1910         sequences of the form '^([H | D | O | B]'xx)'.
1911
1912         * loop.c: Cleanup iterator handling (done by Per).
1913         (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1914         functions for starting and ending a loop scope in case
1915         of initialising an array with non-value property.
1916
1917         * parse.c (check_end_label): Remove '\n' from error message.
1918         (parse_loc_declaration): Print error in case of loc-identity
1919         declaration without initialisation or with keyword INIT.
1920         (parse_do_action): Clean up iterator handling (done by Per).
1921
1922         * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1923         message in case of TYPE_DECL is a signal and the mode has the
1924         non-value property.
1925         (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1926         the array type if the array element mode has the non-value
1927         property.
1928         (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1929         type if one of the fields have the non-value property. If the
1930         record is a buffer mode and the element mode of the buffer has
1931         the non-value-p., invalidate it (see
1932         tasking.c (invalidate_buffer_element_mode). Same for access modes.
1933
1934         * tasking.c (build_signal_descriptor): If the signal type have
1935         the non-value property, do nothing.
1936         (build_receive_signal_case_label): Don't do an assignment if the
1937         signal type have the non-value property.
1938         (build_receive_buffer_case_label): Add check for buffer element
1939         mode is ERROR_MARK.
1940         (expand_send_buffer): Deto.
1941         (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1942         (invalidate_buffer_element_mode): New function to set type of
1943         buffer element mode to error_mark_node.
1944         (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1945
1946 Wed Nov 15 13:26:20 1995  Jeffrey A Law  (law@cygnus.com)
1947
1948         * inout.c (intsize_of_charsexpr): Move declaration to top
1949         of file to avoid error from solaris2.5 cc.
1950
1951 Thu Nov  9 02:50:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1952
1953         * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1954         mode, temporarily reset maximum_field_alignment to 0 before
1955         layouting it to be compatible with the runtime library.
1956
1957         * inout.c (build_chill_gettextaccess): Deto.
1958
1959 Mon Nov  6 04:12:06 1995  Wilfried Moser  <moser@rtl.cygnus.com>
1960
1961         * decl.c (do_decl): If type is READonly, add check if an
1962         ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1963         and print an error if this is true. Variables of this modes
1964         may not be declared READonly.
1965         Add check for mode is one of the above and an init value was
1966         given. This is also not allowed.
1967         Add initialisation of variables of the above modes during
1968         runtime. This influence the mechanism for detecting to
1969         build a constructor.
1970         (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1971         BUFFER, and EVENT mode must not be READonly.
1972         (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1973         TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1974         (declare_predefined_file): Move to inout.c.
1975         (init_decl_processing): Add definitions for new built-in's.
1976         (finish_outer_function): Build a constructor only if
1977         build_constructor is set.
1978
1979         * except.c: On Linux native, setjmp is __setjmp.
1980
1981         * expr.c (build_chill_component_ref): New function. It gets called
1982         from parse.c instead of build_component_ref. Functions checks if the
1983         user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
1984         EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
1985         (build_chill_floatcall): New function to resolve CHILL's floating
1986         point builtin calls (SIN, COS, TAN, etc.).
1987         (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
1988         build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
1989         GETSTACK, and TERMINATE built-in's.
1990         (build_generalized_call): Process new built-in's.
1991
1992         * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
1993         (decode_mode_selective): deto.
1994
1995         * inout.c: Completely rewritten for implementing Chapter 7 of
1996         Z.200 (input and output).
1997
1998         * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
1999         parsing numbers.
2000
2001         * lex.h (enum rid): Add RID_ASSOCIATION.
2002
2003         * parse.c: New flag build_constructor to indicate if a constructor
2004         should be generated at the end of compilation or not. See
2005         decl.c(do_decl).
2006         (parse_begin_end_block): Don't emit a line note.
2007         (parse_primval): Call build_chill_component_ref instead of
2008         build_component_ref.
2009         (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
2010         modes, USAGE modes, WHERE modes.
2011
2012         * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
2013         ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
2014         (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
2015
2016         * typeck.c (extract_constant_from_buffer): Fix thinko in case
2017         of ! BYTES_BIG_ENDIAN.
2018         (build_chill_cast): Implement representation conversion between
2019         INT's and REAL's.
2020         (chill_similar): Add check of ACCESSes.
2021         (layout_chill_range_type): Check for real ranges and print
2022         sorry message.
2023
2024         * Make-lang.in: Change compiler version.
2025         chill also depends on Makefile.
2026
2027         * chill.in: Process command line option -Xlinker like -Tdata.
2028
2029         * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
2030         CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
2031         Add some prototypes.
2032         (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
2033         BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
2034         Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
2035
2036         * gperf, hash.h: Remove definition of WHERE.
2037
2038 Thu Oct  5 06:22:19 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2039
2040         * grant.c (decode_constant_selective): Add some newlines
2041         to generated SPEC MODULE.
2042
2043 Wed Oct  4 18:16:44 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2044
2045         * decl.c (pop_chill_function_context):  Remove some bogosity.
2046
2047 Wed Oct  4 05:14:00 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2048
2049         * grant.c (print_integer_selective): In case of a RANGE of
2050         a SET mode, try to find and grant the parent mode.
2051         (grant_seized_identifier): Don't write it out, if the identifier
2052         doesn't have a seize file (it may come from a SPEC MODULE
2053         defined in the compilation unit).
2054
2055 Fri Sep 22 14:04:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2056
2057         * actions.c (check_non_null):  Wrap expr in SAVE_EXPR if needed.
2058
2059 Wed Sep 20 13:51:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2060
2061         * expr.c (force_addr_of):  Optimize an INDIRECT_REF using
2062         convert_to_pointer rather than convert (which in case of
2063         a REFERENCE_TYPE would losingly call convert_from_reference).
2064
2065 Wed Sep 20 04:03:58 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2066
2067         * inout.c (build_chill_writetext): In case of character string:
2068         Add processing of a concatenation including varying character
2069         strings.
2070         (intsize_of_charsexpr, get_max_size): New functions to determine
2071         the maximum size of varying character strings.
2072
2073         * grant.c (decode_constant, decode_constant_selective): Add
2074         processing of COMPONENT_REF.
2075
2076         * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
2077         for SYNONYM's with STRUCT mode.
2078
2079 Mon Sep 18 17:25:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2080
2081         * expr.c (force_addr_of):  Optimize of value is INDIRECT_REF.
2082         * typeck.c (build_chill_slice):  Call mark_addressable.
2083
2084 Mon Sep 18 14:38:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2085
2086         * expr.c (chill_expand_expr):  Make a copy before calling __psslice
2087         if the array is neither referable nor BLKmode.
2088         (build_set_expr):  Renamed to ...
2089         (build_compare_set_expr):  Allow one opperand to be boolean.
2090         (build_compare_expr):  Check both operands for SET_EXPR,
2091         before checking for discrete types (for -fold-strings).
2092
2093 Fri Sep 15 11:35:43 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2094
2095         * satisfy.c (safe_satisfy_decl):  For a CONST_DECL, set TREE_TYPE
2096         to error_mark_node or error.
2097
2098 Fri Sep 15 00:26:02 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2099
2100         * grant.c (decode_constant_selective): Add processing of
2101         TREE_OPERAND (val, 0).
2102
2103 Wed Sep 13 14:24:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2104
2105         * ch-tree.h (CH_IS_INSTANCE_MODE):  Redefine to use CH_SIMILAR.
2106         * convert.c (convert):  Use CH_IS_INSTANCE_MODE.
2107         * inout.c (build_chill_writetext):  Likewise.
2108         * tasking.c (build_receive_case_start, build_delay_case_start):  Ditto.
2109         * parse.c (parse_start_action):  Remove redundant tests.
2110         * tasking.c (build_start_process):  Also test that optset is instance.
2111         (build_copy_number, build_proc_type, expand_send_signal):  Use
2112         CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
2113         * actions.c, convert.c (instance_type_node):  Remove redundant
2114         extern declaration.
2115
2116 Wed Sep 13 14:19:37 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2117
2118         * regression.awk2:  Use \ line-continuation-markers
2119         to remove gratuitous gawk dependency.
2120
2121 Mon Sep 11 17:26:53 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2122
2123         * typeck.c (build_chill_modify_expr):  Use force_addr_of.
2124         (mark_addressable):  Handle INDIRECT_REF of ADDR_EXPR.
2125
2126         * typeck.c (check_case_value), ch-tree.h:  Moved to ...
2127         * actions.c (check_case_value):  ... here.  Also check for
2128         compatibility with selector (which is passed as extra argument).
2129         (chill_handle_case_label_range):  Take selector argument,
2130         and use it to call check_case_value.
2131         (chill_handle_case_label):  Take extra selector argument.
2132         * ch-tree.h (chill_handle_case_labe):  Add prototype.
2133         * except.c expr.c, parse.c:  Remove chill_handle_case_label prototypes.
2134         * actions.c, except.c, expr.c, parse.c: Pass extra selector
2135         argument to function calls as needed.
2136
2137 Mon Aug 28 02:47:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2138
2139         * grant.c (decode_constant_selective): Fix a bug in writing items
2140         to grant file.
2141
2142 Thu Aug 24 04:52:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2143
2144         * parse.c (parse_case_expression): Print warning only in
2145         pass 1.
2146
2147         * actions.c (print_missing_cases): Correct printing of
2148         character ranges.
2149
2150 Wed Aug 23 15:26:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2151
2152         * parse.c (parse_case_label_list):  Take extra parameter to
2153         indicate if we're parsing a tuple or a case-label-spec.
2154         If former, don't allow '(' EXPR ')' ',' but backup instead.
2155         (parse_case_label_specification, parse_tuple_element):
2156         Pass appropriate new argument to parse_case_label_list.
2157
2158 Wed Aug 23 06:08:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2159
2160         * inout.c (build_chill_readtext): Add processing of BOOL's and
2161         CHARS(n).
2162
2163         * grant.c (decode_constant): Process nonprintable characters
2164         in a STRING_CST.
2165
2166 Fri Aug 11 15:26:13 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2167
2168         * except.c (initialize_exceptions):  Name setjmp "setjmp" and not
2169         "__builtin_setjmp" (which is not recognized by expand_call).
2170
2171 Wed Aug  9 23:35:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2172
2173         * loop.c (end_loop_scope):  Need to call kept_level_p,
2174         in argument to poplevel.
2175
2176 Wed Aug  9 05:48:30 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2177
2178         * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
2179         file might be empty). Install chill.install instead.
2180
2181 Tue Aug  8 21:46:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2182
2183         * loop.c (end_loop_scope):  Do poplevel *after* expand_end_bindings.
2184
2185 Tue Aug  8 00:51:09 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2186
2187         * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
2188         of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
2189
2190         * decl.c (start_chill_function): Likewise ...
2191
2192 Mon Aug  7 18:35:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2193
2194         * tasking.c (build_process_wrapper):  Also set DECL_ASSEMBLER_NAME
2195         of PARM_DECL, since otherwise dbxout_symbol_name may barf.
2196
2197 Mon Jul 31 14:32:33 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2198
2199         * loop.c:  Re-written implementation of powerset iteration.
2200         (declare_temps):  iter_var is now integer index into bitstring,
2201         and powerset_temp just uses save_expr (normally needs no temp).
2202         (top_loop_end_check):  Pass index to start searching (from iter_var)
2203         to library function, instead of dependning on latter to clear old bits.
2204         (increment_temps):  UNless DOWN, increment iter_var.
2205         * decl.c (init_decl_processing):  Declare new types for
2206         __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
2207
2208 Mon Jul 31 12:47:28 1995  Per Bothner  <bothner@cygnus.com>
2209
2210         * convert.c (digest_array_tuple):  Set TREE_STATIC if possible.
2211
2212 Fri Jul 28 05:11:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2213
2214         * lex.c (readstring): Process integer literals starting with
2215         H', D', or B' within a control sequence.
2216
2217 Thu Jul 27 23:08:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2218
2219         * parse.c (parse_do_action):  Don't call push_action, but defer
2220         push_handler until begin_loop_scope.
2221         Call parse_opt_handler here, to move handler scope inside loop block.
2222         (parse_action):  After do_action, nothing to do now.
2223         * loop.c (begin_loop_scope):  Also call push_handler here.
2224         (declare_temps):  Copy derived flag to user_var.
2225         (declare_temps):  For POWERSET, always copy to temporary (even if
2226         constant), since the runtime clears bits from it.
2227
2228         * expr.c (build_chill_sizeof):  Use convert_to_class.
2229         * satisfy.c (safe_satisfy_decl):  Cleanup handling of CONST_DECL -
2230         set proper value of CH_DECL_FLAG on both the decl and its value.
2231
2232         * convert.c (digest_array_tuple); Slightly better errors.
2233
2234 Wed Jul 26 22:13:39 1995  Per Bothner  <bothner@cygnus.com>
2235
2236         * expr.c (expand_packed_set):  Also allocate the CONSTRUCTOR itself.
2237         (fold_set_expr):  Simplify accordingly.
2238         (build_concat_expr):  Constant fold bitstring CONCAT_EXPRs.
2239
2240 Thu Jul 13 12:21:22 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2241
2242         * typeck.c (build_chill_slice):  Use build1 instead of build.
2243         * typeck.c (xtract_constant_from_buffer):  Pass correct precision
2244         to lshift_double.
2245
2246         * typeck.c (expand_constant_to_buffer):  Handle RANGE_EXPR index.
2247         * convert.c (digest_array_tuple):  Generate RANGE_EXPR as index
2248         for tuples with ranges.
2249
2250 Thu Jun 29 23:41:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2251
2252         * typeck.c (build_chill_slice):  Re-implement to use casts
2253         instead of build_chill_array_ref_1 (which doesn't always work).
2254         * convert.c (convert):  Remove old bugs code.
2255
2256 Tue Jun 27 05:00:04 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2257
2258         * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
2259         expression so that a possible handler at the if action will
2260         be found.
2261         (parse_proc_body): New argument to indicate if the function
2262         raises exceptions or not. In case the function will raise
2263         exception: start a handler, parse the function and generate
2264         code for reraising the exceptions (call chill_reraise_exceptions).
2265
2266         * except.c (chill_reraise_exceptions): New function to generate
2267         code for reraising exceptions are specified at the function
2268         definition.
2269
2270         * ch-tree.h: Add prototype for chill_reraise_exceptions.
2271
2272         * decl.c (build_chill_function_type): When the function (type)
2273         raise an exception, generate two new arguments (additional to the
2274         formal parameters), the filename and linenumber of the caller.
2275         (start_chill_function): likewise...
2276
2277         * expr.c (build_chill_function_call): If the called function raises
2278         exceptions, give current filename and linnumber as aditional
2279         arguments.
2280
2281         * actions.c (build_cause_exception): Handle case when function
2282         propagates the exception.
2283
2284         * grant.c (print_proc_tail, print_proc_tail_selective): If the
2285         function(type) raises exceptions, don't process the last to
2286         parmeters of the formal argument list, they are compiler
2287         generated.
2288
2289         * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
2290         the exception lists are equal.
2291
2292 Thu Jun 22 19:27:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2293
2294         * loop.c (flag_local_loop_counter):  Change default to 1.
2295         (end_loop_scope):  Set 'keep' parameter in poplevel call.
2296         (declare)_temps):  Don't set IDENTIFIER_LOCAL_VALUE, since that
2297         is handled (correctly!) by pushdecl.
2298         (begin_loop_scope):  Call pushlevel here,
2299         * parse.c (parse_do_action):  Move pushlevel so only called for WITH.
2300         * decl.c (struct scope):  Remove n_incomplete field and its uses.
2301         (pushdecl):  Re-write to use proclaim_decl.  Remove old C-isms.
2302         (init_decl_processing):  Re-name integer_type_node as "_cint" to
2303         remove complaint from pushdecl about chill_integer_type_node as "int".
2304
2305 Tue Jun 20 18:15:58 1995  Doug Evans  <dje@canuck.cygnus.com>
2306
2307         * Make-lang.in (chill-runtime): Restore patch to disable building of
2308         runtime libraries for cross compilers.  This patch should remain
2309         until a build of a freshly checked out devo "just works".
2310
2311 Mon Jun 19 06:01:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2312
2313         * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
2314
2315         * decl.c (init_decl_processing): Remove builtin function
2316         __cause_exception. New builtin functions __cause_ex1 and
2317         __unhandled_ex.
2318
2319         * except.c (is_handled): Return 0 when no handler found,
2320         1, if the handler is in local scope and 2, if function
2321         may propagate the exception.
2322
2323         * actions.c (build_cause_exception): New argument to
2324         indicate if a warning should be printed when
2325         causing an unhandled exception. Call is_handled here.
2326
2327         * ch-tree.h: Change prototype for build_cause_exception.
2328         New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
2329         identifier already has been written to grant file.
2330
2331         * grant.c (write_spec_module): If not GRANT ALL specified,
2332         write only this identifiers to grant file which are
2333         necessary to form a prober grant file. This will shorten
2334         grant files and speed up compilation.
2335         (decode_constant_selective, decode_mode_selective,
2336         get_type_selective, decode_decl_selective,
2337         grant_array_type_selective, get_tag_value_selective,
2338         print_enumeral_selective, print_integer_selective,
2339         print_struct_selective, print_proc_tail_selective,
2340         grant_one_decl_selective): New functions.
2341
2342         * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
2343         directives to grant file.
2344
2345         * parse.c (parse_on_exception_list): Fis constructing of
2346         exceptions list.
2347
2348 Wed Jun 14 15:21:54 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2349
2350         * typeck.c (valid_array_index_p):  Check for syntax error, where
2351         index is a mode, rather than a value.
2352
2353         * expr.c (build_chill_binary_op_1):  Remove unused function.
2354
2355 Sat Jun 10 11:36:52 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2356
2357         * except.c (is_handled):  New function.
2358         Various fixes here and there to make it work.
2359
2360         * parse.c (parse_param_name_list):  Set DECL_ASSEMBLER_NAME.
2361         (Otherwise dbxout may crash.)
2362
2363         * satisfy.c (satisfy case FUNCTION_TYPE):  Check for non-type result.
2364         * decl.c (start_chill_function):  If result type was error_mark,
2365         kludge type chill_os result_decl to avoid extra errors.
2366         * actions.c (chill_expand_result, chill_expand_return):  If type of
2367         chill_result_decl is error_mark, do nothing.
2368
2369         * typeck.c (chill_similar): Fix thinko in recent change.
2370
2371         * config-lang.in (diff_exclude):  Remove ch/lex.c - now it's a
2372         true source file, and is never longer generated with [f]lex.
2373
2374         * regression.sh:  Pass -s to make clean (to make it silent).
2375         Explicitly call gawk, instead of depending of '#!' to work.
2376         Add --objdir flags.  Never send mail to bill.
2377
2378 Thu Jun  8 15:08:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2379
2380         * typeck.c (chill_similar):  Add extra parameter.  Use to to prevent
2381         infinite recursion.
2382         (chill_equivalent, chill_l_equivalent):  Also add new parameter.
2383         * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT):  Modify to match.
2384
2385 Tue Jun  6 17:14:49 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2386
2387         * loop.c (declare_temps):  If -flocal-loop-counter, make sure to
2388         pushdecl the new variable (created with decl_temp1).
2389         And fix the type of the local variable for powerset iteration.
2390
2391 Tue Jun  6 15:07:19 1995  Per Bothner  <bothner@cygnus.com>
2392
2393         * typeck.c (mark_addressable):  Handle ADDR_EXPR inside
2394         NOP_EXPR inside INDIRECT_EXPR.  For TRUTH_ANDIF_EXPR,
2395         TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
2396         (which is used for range-checks and suchlike).
2397
2398 Thu Jun  1 02:45:54 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2399
2400         * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
2401         GE_EXPR (don't do invert_truthvalue, just switch operands).
2402
2403 Wed May 31 14:00:38 1995  Doug Evans  <dje@canuck.cygnus.com>
2404
2405         * lang-options.h: New file.
2406         * lang-specs.h: New file.
2407
2408 Wed May 24 01:45:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2409
2410         * actions.c (assign_stack_temp):  Remove unneeded declaration.
2411
2412 Tue May 23 00:17:38 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2413
2414         * parse.c (parse_on_exception_list):  Return list of exception
2415         names in pass 1, not in pass 2.  (Return non-NULL dummy if pass 2.)
2416         (parse_on_alternatives):  Call chill_handle_on_labels even if ignoring.
2417         (parse_opt_handler):  Likewise for chill_start_default_handler.
2418         * except.c (push_handler):  Clear on_alt_list only if pass 1.
2419         (chill_handle_on_labels):  Build on_alt_list in pass 1,
2420         retrieve it in pass 2.
2421
2422         Fix so that decl_temp1 does not expand_decl_init, which calls
2423         free_temp_slots, which loses in the middle on an expression.
2424         * decl.c (finish_decl):  Don't call expand_decl_init.
2425         (do-decl):  Do initialization assignment even if stack variable.
2426         * parse.c (parse_loc_declaration):  Call free_temp_slots.
2427
2428         * decl.c (finish_decl), ch-tree.h:  Remove last two always-NULL
2429         parameters.  Cleanup never-used code.
2430         * decl.c, except.c:  Update calls to finish_decl.
2431
2432         * decl.c (case_else_node):  Define new variable.
2433         (init_decl_processing):  Initialize it.
2434         (make_chill_variants): If variant label is case_else_node (i.e. it
2435         is (ELSE):), treat that as an ELSE variant.
2436         * ch-tree.h (case_else_node):  Declare case_else_node.
2437         * parse.c (parse_case_label):  Use case_else_node.
2438
2439 Mon May 22 10:18:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2440
2441         * grant.c (print_proc_tail):  Also call print_proc_exceptions.
2442         (decode_decl):  Don't explicitly call print_proc_exceptions for
2443         FUNCTION_DECL.
2444         (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
2445
2446         * actions.c (chill_convert_for_assignment):  Use save_if_needed,
2447         instead of save_expr, in case value is a reference.
2448
2449         * typeck.c (build_chill_slice):  Fix old thinko (missing call to
2450         build_pointer_type).
2451
2452         * actions.c (size_int):  Remove unused and conflicting prototype.
2453
2454 Wed May 17 16:23:20 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2455
2456         * actions.c (chill_convert_for_assignment):  Call save_expr if
2457         range_checking (twice).
2458
2459 Tue May 16 11:33:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2460
2461         * typeck.c (layout_chill_range_type):  Re-organize error checking.
2462         Add extra parameter to indicate if non-constant bounds are allowed.
2463         If bounds are bad, set them to the min_value of the parent.
2464         * ch-tree.h (layout_chill_range_type):  Update declaration.
2465         * satisfy.c (satisfy):    Update call of layout_chill_range_type.
2466         * typeck.c (build_chill_range_type):  Likewise.
2467         * tree.c (build_string_type):  Likewise.
2468
2469 Tue May 16 00:37:51 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2470
2471         * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
2472
2473 Mon May 15 12:54:32 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2474
2475         * satisfy.c (satisfy):  Supress error message for REF <error_mark>.
2476         * decl.c (push_modedef):  Check for TREE_CODE != ERROR_MARK, instead
2477         of against error_mark_node.  (smash_dummy_type can copy error marks.)
2478         (finish_decl):  Simplify C-derived check for incomplete type,
2479         and suppress if it is an ERROR_MARK.
2480         Don't call rest_of_decl_compilation if type is an ERROR_MARK.
2481
2482 Sun May 14 22:52:40 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2483
2484         * convert.c (convert):  Handle array types with different modes.
2485
2486 Thu May 11 15:52:12 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2487
2488         * loop.c (build_loop_iterator):  Handle the case of a non-local
2489         loop counter having reference type.
2490
2491 Thu May 11 07:04:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2492
2493         * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2494         build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2495         to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2496
2497 Mon May  8 15:27:16 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2498
2499         * expr.c (build_chill_card):  Do constant folding, if possible.
2500         (build_max_min):  Do constant folding for MIN/MAX of powersets.
2501
2502 Mon May  8 06:57:21 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2503
2504         * expr.c (build_chill_sizeof): Add corect processing of a
2505         SIGNAL definition without data.
2506
2507 Sat May  6 16:27:10 1995  Doug Evans  <dje@canuck.cygnus.com>
2508
2509         * Make-lang.in (maintainer-clean): Renamed from realclean.
2510
2511 Tue May  2 06:16:23 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2512
2513         * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2514         otherwise "handler stack" will get out of sync.
2515
2516 Mon Apr 24 09:51:07 1995  Per Bothner  <bothner@rtl.cygnus.com>
2517
2518         Fixes to support module-level non-static temporary variables.
2519         * parse.c (parse_loc_declaration):  If all_static_flag and not
2520         resursive, tell do_decls to make new decl static.
2521         * decl.c (do_decl):  Don't use maybe_static function to force static.
2522         (do_decl):  Don't let initialization count as "using" the variable.
2523         (maybe_static):  Removed.
2524         (finish_decl):  Call expand_decl and expand_decl_init if needed
2525         (as it will be for non-static temporaries).
2526
2527 Fri Apr 21 21:02:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2528
2529         * convert.c, expr,c typeck.c (expand_decl):  Remove usused declaration.
2530
2531 Fri Apr 21 02:27:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2532
2533         * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2534         LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2535         GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2536
2537 Thu Apr 20 15:29:05 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2538
2539         * parse.c (yytext, finput):  Remove unused declarations.
2540
2541         * parse.c (proc_action_level):  New variable.
2542         (parse_proc_body):  New function.  Common code from
2543         parse_procedure_definition and parse_process_definition moved here.
2544         Save, set, and restore proc_action_level from action_nesting_level.
2545         (parse_action case RETURN):  Pass proc_action_level to
2546         expand_goto_except_cleanup.
2547
2548 Thu Apr 20 06:02:20 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2549
2550         * grant.c (really_grant_this): Add processing of LABEL_DECL's
2551         (don't grant them).
2552
2553 Tue Apr 18 18:16:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2554
2555         * lex.c ( convert_bitstring):  Use BYTES_BIG_ENDIAN rather
2556         than BITS_BIG_ENDIAN to layout bits within bitstring.
2557         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2558         Likewise.
2559
2560 Sun Apr 16 19:55:51 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2561
2562         * decl.c (finish_chill_function):  If currently global_function_decl,
2563         don't set outer_function to global_function_decl.
2564
2565 Wed Apr 12 22:45:06 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2566
2567         * decl.c (start_chill_function):  Normal functions are nested.
2568         (finish_chill_function):  No longer takes a 'nested' parameter.
2569         Normal functions are nested.
2570         Never call permanent_allocation, since it does little good (all normal
2571         functions are nested), and trashes some things we need.
2572         (finish_outer_function):  Update call to finish_chill_function.
2573         * grant.c (chill_finish_compile):  Likewise.
2574         * tasking.c (build_process_wrapper):  Likewise.
2575         * parse.c (end_function):  Likewise.
2576         * ch-tree.h (finish_chill_function):  Update declaration.
2577
2578         * parse.c (parse_asm_clobbers):  Re-enable.
2579         (expand_asm_operands):  function.
2580         (parse_asm_action):  Re-enable.  Don't do anything in pass 1.
2581
2582         * typeck.c (build_chill_slice):  Do constant folding.
2583         Also, work around problem where expand_expr constant folds ARRAY_REF.
2584         (sort_constructor):  Remove unused function.
2585
2586         * expr.c (chill_expand_expr case CONCAT_EXPR):  Make sure we
2587         emit_block_move if needed with correct size.
2588
2589         * inout.c (build_chill_io_list_type):  Simplify.
2590
2591         * lex.c (check_newline):  Uncomment some dwarf stuff,
2592         which needs get_directive_line, which we no longer have.
2593
2594 Wed Apr  5 16:05:15 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2595
2596         * Makefile.in (C_OBJS, xcc1chill):  Removed.  We no longer
2597         link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2598
2599         * expr.c (build_chill_component_ref):  Renamed to build_component_ref.
2600         (chill_truthvalue_conversion):  Renamed to truthvalue_conversion.
2601         * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2602         typeck.c:  Update accordingly.
2603         * typeck.c (valid_array_index_p):  We only need to save_expr (index)
2604         if we're range-checking.
2605         * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2606         mark_addressable, initializer_constant_valid_p, check_case_value,
2607         type_for_size, type_for_mode):  New functions, copied from
2608         ../c-common.c and ../c-typeck.c.
2609
2610         * lang.c (incomplete_type_error):  New.  (Was in c-common.o.)
2611         * decl.c (constant_expression_warning):  New.  (Was in c-common.o.)
2612
2613         * lang.c (string_index_type_dummy):  Remove definition from here.
2614         * tree.c (string_index_type_dummy):  Define here instead.
2615         * lang.c (lang_init):  Move init of string_index_type_dummy
2616         (which is too late) from here ...
2617         * decl.c (init_decl_processing): ... to here.
2618
2619         * decl.c (signed_boolean_type_node):  New variable.
2620         (init_decl_processing):  Initialize it.
2621
2622         * parse.c:  Comment out ASM action support, for now.
2623
2624         * loop.c (maybe_skip_loop):  Make return void, not int.
2625         Use build_compare_discrete_expr.
2626         (increment_temps):  Use chill_expand_assignment.
2627
2628 Thu Mar 30 23:28:28 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2629
2630         * decl.c (do_decl):  If default-initializing variable-length
2631         string to "" (or []), make it lifetime_bound.
2632
2633 Thu Mar 30 02:51:59 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2634
2635         * parse.h, hash.h, gperf: New compiler directives
2636         EMPTY_ON and EMPTY_OFF.
2637
2638         * lex.c: New variables empty_checking and runtime_checking_flag.
2639         (ch_lex_init): Initialize empty_checking and range_checking
2640         when switching from pass 1 to 2.
2641         (read_directive): Add processing of EMPTY_OFF/ON.
2642
2643         * expr.c (build_chill_indirect_ref): New argument do_empty_check
2644         to indicate if null pointer checking should be done or not.
2645         It's not always necessary to do a null pointer check.
2646
2647         * decl.c (lookup_name): Add argument to call to
2648         build_chill_indirect_ref.
2649         (shadow_record_fields): ...
2650         * parse.c (parse_primval): ...
2651         * tasking.c (build_process_wrapper): ...
2652         (build_receive_buffer_case_label): ...
2653
2654         * ch-tree.h: Change prototype of build_chill_indirect_ref.
2655         Add declaration of runtime_checking_flag and empty_checking.
2656
2657         * actions.c (check_non_null): Do null pointer checking only
2658         when enabled (empty_checking != 0).
2659
2660 Wed Mar 29 15:18:23 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2661
2662         * actions.c (chill_expand_assignment):  Add 'else' so we don't do
2663         regular assignment in addition to spacial assignment (e.g. for slices).
2664
2665         * ch-tree.h (convert_to_discrete):  Add declaration.
2666         * typeck.c (convert_to_discrete):  New function.
2667         (valid_array_index_p):  Use convert_to_discrete.  Also simplify.
2668         (build_chill_slice):  Say sorry if variable-length bitstring.
2669         (build_chill_slice_with_length):  Re-do bounds check.
2670         * expr.c (check_case_selector):  Re-write to use convert_to_discrete.
2671         (build_chill_num, build_chill_pred_or_succ):  Use convert_to_discrete.
2672
2673         * decl.c (do_decl):  Don't do redundant chill_convert_for_assignment.
2674
2675 Wed Mar 29 00:00:29 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2676
2677         * expr.c (build_chill_num): need_unsigned have to be set for
2678         characyer strings of length 1 too. Happens when compiling
2679         with -fold-strings and do NUM(a(i)).
2680
2681         * parse.c (parse_loc_declaration): Print error message only
2682         in pass 1.
2683         (parse_mode): Likewise ...
2684
2685         * tasking.c (build_tasking_message_type): Temporarily reset
2686         maximum_field_alignment to get proper aligned temp. variables
2687         gets passed to runtime system.
2688
2689 Tue Mar 28 00:08:06 1995  Per Bothner  <bothner@cygnus.com>
2690
2691         * typeck.c (my_build_array-ref):  Merged into build_chill_array_ref_1.
2692         But don't convert index to integer_type_node.  And we don't need to
2693         check the we're given an array.
2694         * typeck.c (valid_array_index_p):  If flag_old_strings, convert
2695         chars(1) to char and bools(1) to bool before index checking.
2696
2697 Sun Mar 26 22:42:39 1995  Per Bothner  <bothner@cygnus.com>
2698
2699         * ch-tree.h (struct module):  Added next module field.
2700         * decl.c (first_mdoule, next_module):  New global variables.
2701         (switch_to_pass_2):  Re-initialize next_module.
2702         (push_module):  In pass 2, reuse the same module objects from pass 1.
2703
2704         * decl.c (declare_predefined_file):  Set DECL_IN_SYSTEM_HEADER.
2705
2706         * typeck.c (valid_array_index_p):  Do range check on original index,
2707         before we convert to domain type.
2708
2709 Fri Mar 24 11:43:39 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2710
2711         * parse.c (parse_fixed_field):  New function.
2712         (parse_variant_field_list):  New function replaces parse_simple_fields.
2713         (parse_variant_alternative, parse_field):  Update to use new functions.
2714         (parse_field):  Error message if neither CASE nor NAME.
2715
2716         * actions.c (check_non_null):  New function - checks for NULL pointers.
2717         * ch-tree.h (check_non_null):  New declaration.
2718         * tasking.c (expand_send_signal):  Call check_non_null.
2719         * expr.c (build_chill_indirect_ref, build_chill_function_call):  Same.
2720         * lex.h (enum rid):  Add RID_EMPTY.
2721         * lex.c (init_lex):  Initialize ridpointers[RID_EMPTY].
2722
2723         * lex.c (read_directive):  Remove 2 calls of to_global_binding_level
2724
2725 Wed Mar 22 16:36:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2726
2727         * tasking.c (tasking_list):  Change to chain of TREE_VEcs, rather than
2728         chain of (nested) TREE_LIST nodes.
2729         (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2730         TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE):  New macros.
2731         (tasking_setup, tasking_registry, add_taskstuff_to_list):  Use them.
2732
2733         * ch-tree.h (C_TYPE_FIELDS_READONLY):  Rename to TYPE_FIELDS_READONLY.
2734         (TYPE_READONLY_PROPERTY):  New macro, to match Z.200 concept.
2735         * typeck.c (build_chill_modify_expr):  Don't check for read-only-ness,
2736         since it is redundant for chill_expand_assignment and breaks
2737         reach-bound initialization in do_decl.
2738         (my_build_array_ref):  Simplify by using TYPE_READONLY_PROPERTY.
2739         (layout_chill_array_type):  Set TYPE_FIELDS_READONLY if appropriate.
2740         * actions.c (chill_expand_assignment):  Check TYPE_READONLY_PROPERTY
2741         instead of TREE_READONLY of the target's type.
2742         * expr.c (build_chill_function_call):  Likewise.
2743         * inout.c (build_chill_readtext):  Likewise.
2744         * decl.c (do_decl):  Likewise, to check if init is required.
2745
2746         * typeck.c (build_chill_bitref):  Removed unused RANGE_EXPR hack.
2747
2748 Wed Mar 22 07:52:52 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2749
2750         * tasking.c (build_start_process): Get a unique identifier for
2751         the start arguments.
2752
2753 Tue Mar 21 07:36:40 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2754
2755         * expr.c (fold_set_expr): At label build_result: Add setting unused
2756         bits to 0. This is the same as the runtime library does.
2757
2758         * parse.c (expect): Function returns now int, 0, if the expected
2759         token was not got, 1 when it was found.
2760         (parse_synonym_definition): In case of syntax error (missing =),
2761         set expr to NULL_TREE and mode to error_mark to avoid subsequent
2762         segfaults.
2763
2764         * chill.texi: Add chapter about differences to Z.200/1988.
2765
2766 Mon Mar 20 18:01:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2767
2768         * lang.c (chill_print_error_function):  New function, to report
2769         module name if not inside a function.
2770         (lang_init):  Set print_error_function to chill_print_error_function.
2771
2772         * tasking.c (max_queue_size, buffer_element_mode):  Cleanup
2773         to remove unreachable code.
2774
2775         * grant.c (chill_finish_compile):  Avoid doing a lookup_name
2776         to find init function (which got broken by recent nesting re-org).
2777
2778         * decl.c (poplevel):  Push and pop function context around
2779         call to output_inline_function (as done for C and C++).
2780
2781 Thu Mar 16 17:56:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2782
2783         * parse.c (parse_pass_1_2):  If unknown top-level token, skip pass 2.
2784
2785 Wed Mar  8 13:54:33 1995  Doug Evans  <dje@canuck.cygnus.com>
2786
2787         * Make-lang.in (chill-runtime): Temporarily disable building of
2788         runtime libraries for cross compilers.
2789
2790 Mon Mar  6 23:36:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2791
2792         * parse.c, decl.c:  Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2793
2794         * configure:  Merge in tolerance for new flags (e.g. --x-libraries).
2795
2796 Sat Mar  4 15:47:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2797
2798         * expr.c (build_chill_arrow_expr):  Error if pass == 1.
2799
2800 Thu Mar  2 19:28:07 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2801
2802         * decl.c (do_decl):  Setting seen_action must be done in pass 1.
2803         (save_decl):  Don't set DECL_CONTEXT to global_function_decl.
2804         (start_chill_function):  Simplify due to above change.
2805
2806         * parse.c (parse_case_label):  Hack to distinguish (ELSE) from (*).
2807         * grant.c (decode_constant):  Emit ELSE in case label.
2808
2809         * parse.c (serious_errors):  New global variable.
2810         * parse.c (to_global_binding_level):  Set serious_errors.
2811         (parse_pass_1_2):  Exit after pass 1 if serious_errors > 0.
2812         * lex.c (readstring):  Recover from unterminstaed control sequence.
2813
2814 Tue Feb 28 17:08:08 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2815
2816         Re-write of module-level actions.  No longer generate a module
2817         function for module-level actions.  Instead, put them inside
2818         a new global dummy function.  Nest everything logically inside it.
2819
2820         * lex.h, grant.c (chill_module_name):  Removed declaration.
2821         * grant.c (write_spec_module):  Instead use current_module->name.
2822         * grant.c (chill_start_module_code, chill_finish_module_code):
2823         Removed.
2824         * grant.c (chill_finish_compile):  Make rtl for global function.
2825
2826         * actions,c (push_action):  Don't call chill_start_module_code.
2827         * expr.c (build_chill_function_call, build_generalized_call):
2828         Likewise.
2829         * parse.c (INIT_ACTION):  Likewise.
2830
2831         * parse.c (seen_action):  New variable.
2832         * parse.c (end_function):  Always call pop_chill_function_context.
2833         (parse_procedure_definition):  Always call push_chill_function_context.
2834         (parse_modulion):  Parse optional handler.
2835         (parse_modulion, parse_spec_module):  Do find_granted_decls.
2836         (parse_action):  Set seen_action if global and a real action.
2837         ([arse_program):  Call start_outer_function and finish_outer_function.
2838
2839         * ch-tree.h:  Appropriate updates.
2840
2841         * tasking.c (generate_tasking_code_variable):  Make it lifetime-bound.
2842         (build_process_header):  Always push_chill_function_context;
2843         we are now always nested.
2844         (build_process_wrapper):  Always pop_chill_function_context.
2845
2846         * tasking.c (build_start_process):  Only expand_start_bindings and
2847         expand_end_bindings if pass 2.
2848
2849         * decl.c (global_function_decl):  New variable.
2850         (do_decl):  Implement reach-bound initialization of static variables.
2851         (start_chill_function):  Set DECL_CONTEXT to NULL if
2852         it would be global_function_decl (so as to not confuse gcc backend).
2853         (start_chill_function, finish_chill_function):  If compiling
2854         global_function_decl in pass 2 and !seen_action, suppress it.
2855         (set_module_name):  New function.
2856         (global_bindings_p):  Re-defined to check against global_function_decl.
2857         (start_outer_function, finish_outer_function):  New functions.
2858
2859 Tue Feb 28 16:00:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2860
2861         * typeck.c (build_chill_modify_expr):  Inline logic from
2862         chill_expand_array_assignment,
2863         * actions.c (chill_expand_array_assignment):  Removed.
2864         (chill_expand_assignment):  Remove call to removed function.
2865
2866         * lex.c (reinit_parse_for_function):  Removed empty unused function.
2867         * decl.c (start_chill_function):  Don't call removed function.
2868
2869 Tue Feb 28 00:29:51 1995  Per Bothner  <bothner@cygnus.com>
2870
2871         * configure:  Merge in code for calculating host, build, and
2872         target and canon_{host,build,target} from ../configure.
2873         Fix calculation of mainsrcdir.  Host canon_* variables
2874         to merge in build-make (as in ../configure).
2875
2876 Sun Feb 26 18:59:02 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2877
2878         * typeck.c (expand_constant_to_buffer):  Use new function
2879         get_set_constructor_bytes.
2880
2881 Tue Feb 21 01:41:56 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2882
2883         * inout.c (build_chill_writetext): Add processing of
2884         conditional expressions in argument list.
2885
2886         * parse.c (parse_opt_name_string): Print error message only
2887         in pass 1.
2888
2889         * chill.texi: Add chapter about compiler directives.
2890
2891 Tue Feb 14 16:45:19 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2892
2893         * decl.c (start_chill_function):  Set FUNCTION_NEEDS_STATIC_CHAIN
2894         unless nested.
2895
2896         * decl.c (decl_temp1):  Make lifetime_bound iff static.
2897
2898 Fri Feb  3 04:30:28 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2899
2900         * grant.c (really_grant_this, search_in_list): New static
2901         functions to determine if a decl should be written to
2902         grant file.
2903         (write_spec_module): Add call to really_grant_this.
2904
2905 Fri Jan 27 00:06:12 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2906
2907         * actions.c (check_expression): Apply Per's patch.
2908         (chill_expand_result): New argument to indicate if we come
2909         from a RETURN or RESULT action. Change various error messages.
2910
2911         * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2912         New argument for chill_expand_result.
2913
2914         * chill.in: In case of -fgrant-only, clear library, libpath and
2915         startfile to avoid warnings from gcc.
2916
2917         * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2918
2919         * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2920
2921         * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2922         and subsequent SEIZEs to grant file, if the seize file is
2923         used restricted.
2924
2925         * lex.c (read_directive): Process new compiler directive
2926         USE_SEIZE_FILE_RESTRICTED.
2927         (handle_use_seizefile_directive): Same as above.
2928         (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2929         if this seize file is used restricted.
2930
2931         * parse.c (parse_action, case RETURN): Change RETURN expr action
2932         to RESULT expr; RETURN. This enables range checking and
2933         exception delivery in case of rangefail.
2934
2935 Tue Jan 17 07:38:27 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2936
2937         * decl.c (init_decl_processing): Add definition of
2938         library function __inbitstring (see expr.c).
2939
2940         * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2941         __inpowerset fir POWERSET's and function __inbitstring for
2942         BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2943         in case of BITSTRING's we have to do one.
2944         (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2945         statement with no effect).
2946
2947 Fri Jan 13 13:35:30 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2948
2949         * actions.c (check_expression):  Simplify result.
2950
2951         * ch-tree.h (SET_CH_NOVELTY_NONNIL):  New macro.
2952         * expr.c, timing.c, typeck.c:  Use SET_CH_NOVELTY_NONNIL.
2953
2954         * typeck.c (valid_array_index_p), ch-tree.h:  Change interface
2955         to return modified index expression.  Call error if out-of-range.
2956         * actions.c, typeck.c:  Modify
2957         for new valid_array_index_p interface.
2958
2959         * actions.c (build_chill_slice):  Copy novelty of index type.
2960
2961 Fri Jan 13 13:04:41 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2962
2963         * convert.c (digest_array_tuple):  Allow mode name in array
2964         tuple label.  Print error message instead of aborting.
2965
2966         * parse.c (parse_body):  Error message only if pass 1.
2967
2968         * decl.c (check_identifier), ch-tree.h:  Remove.  Unused.
2969
2970 Wed Jan 11 14:03:47 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2971
2972         * parse.c (parse_modulion):  Undo yesterday's change (to allow
2973         an ON-handler to follow) until we re-implement module.
2974
2975 Tue Jan 10 17:23:55 1995  Per Bothner  <bothner@kalessin.cygnus.com>
2976
2977         * loop.c (declare_temps):  Remove bogus prohibition against
2978         iterating over BOOL arrays.
2979
2980         * parse.c (parse_semi_colon):  Make it a pedwarn (instead of an
2981         error) if a semi-colon is missing before an END.
2982         (parse_action):  Likewise.
2983         * parse.c (parse_modulion):  Allow an ON-handler to follow.
2984
2985         * parse.c (parse_set_mode):  Use parse_expression to get
2986         values for number set elements.
2987
2988         * expr.c (build_compare_expr):  Make sure result has
2989         CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
2990         (finish_chill_binary_op):  Likewise for IN_EXPR.
2991
2992 Tue Jan 10 04:46:42 1995  Wilfried Moser  <moser@rtl.cygnus.com>
2993
2994         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
2995         checking the argument.
2996         (chill_expand_assignment): Take care of a newmoded dst_offset
2997         when calling __pscpy and a newmoded from_pos when calling
2998         __setpowersetbits.
2999
3000         * expr.c (chill_expand_expr): When calling __psslice take care
3001         of a newmoded min_value.
3002
3003         * parse.c (parse_name_string): Print error message only in
3004         pass 1.
3005
3006 Tue Jan  3 19:56:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3007
3008         * typeck.c (build_chill_array_ref_1):  Use varying_to_slice
3009         instead of building a VRAY_ARRAY_REF node.
3010         * ch-tree.def (VARY_ARRAY_REF):  Removed.
3011         * actions.c (chill_expand_assignment):  Will never call
3012         expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
3013         (expand_assignment_to_varying_array):  Removed.
3014         * convert.c (convert):  Remove unneeded VARY_ARRAY_REF support.
3015         * expr.c (chill_expand_expr):  Likewise.
3016
3017 Tue Jan  3 19:50:18 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3018
3019         * parse.c (parse_iteration):  Set step_value to NULL if missing.
3020         * loop.c (ITER_TYPE):  Remove DO_RANGE.
3021         (build_loop_iterator):  Implement old DO_RANGE in terms of DO_STEP.
3022         (begin_loop_scope):  Don't return on error.
3023         (build_loop_iterator):   Calculate loop variable type using
3024         resulting classes (as in Z200), rather than precision.
3025
3026         * loop.c (initialzie_iter_var, bottom_loop_end_check):  For DO_STEP,
3027         make iter_var one less to avoid overflow.
3028         * loop.c (build_loop_iterator):  If !flag_local_loop_counter,
3029         declare a new variable if needed, as allowed by Z200 (1984).
3030
3031         * ch-tree.h (ch_class):  Add typedef.
3032
3033         * typeck.c (chill_resulting_class):  New function.
3034         (chill_root_resulting_class):  Remove.
3035         * ch-tree.h (CH_RESULTING_CLASS):  New macro.
3036         (CH_ROOT_RESULTING_CLASS):  Re-implement using CH_RESULTING_CLASS.
3037
3038 Tue Jan  3 19:36:27 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3039
3040         * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
3041         Change interface to take IDENTIFIER tree node, rather char char*.
3042         (check_expression): Change (simplify) callers appropriately.
3043         * parse.c (parse_action), typeck.c (valid_array_index_p):  Likewise.
3044         * lex.h (enum rid):  Add RID_ASSERTFAIL.
3045         * lex.c (init_lex):  Enter RID_ASSERTFAIL.
3046         * parse.c (parse_action case ASSERT):  Fix thinko TRUTH_ANDIF_EXPR
3047         to TRUTH_ORIF_EXPR.  Use RID_ASSERTFAIL.
3048
3049         * typeck.c (discrete_type_p):  Re-implement using INTEGRAL_TYPE_P.
3050
3051 Tue Jan  3 19:20:35 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3052
3053         Move checking for modeless tuples in invalid contexts from parser
3054         to semantic function check_have_mode (for better error recovery):
3055         * expr.c (check_have_mode), ch-tree.h:  New function.
3056         * satisfy.c (safe_satisfy_decl):  Use check_have_mode.
3057         * expr.c (build_compare_expr, finish_chill_binary_op,
3058         finish_chill_unary_op):  Likewise.
3059         * parse.c (parse_primval):  Don't complain about mode-less tuple here.
3060
3061 Tue Jan  3 17:36:48 1995  Per Bothner  <bothner@kalessin.cygnus.com>
3062
3063         * expr.c (varying_to_slice):  Support varying arrays whose
3064         lower bound is non-zero.
3065
3066         * parse.c (parse_body):  Allow (with warning) definition to
3067         follow action.
3068
3069         * expr.c (check_case_selector), ch-tree.h:  New function.
3070         (chill_expand_case_expr):  Use it.
3071         * parse.c (parse_case_action):  Likewise.
3072
3073 Fri Dec 23 00:47:54 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3074
3075         * actions.c (chill_expand_return): Change error message.
3076
3077         * ch-tree.h: Change prototypes of do_decl and do_decls.
3078
3079         * convert.c (convert): Add missing initialisation of
3080         variable orig_e_constant.
3081
3082         * decl.c: Change all calls to do_decl.
3083         (maybe_static): New function to process the ALL_STATIC_ON/OFF
3084         compiler directives.
3085         (do_decls): New argument.
3086         (do_decl): New argument and process reachbound and lifetime
3087         bound initialisation.
3088
3089         * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
3090         ALL_STATIC_OFF.
3091
3092         * grant.c: Change all calls to do_decl.
3093
3094         * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
3095         directive.
3096
3097         * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
3098         do_decls.
3099
3100         * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
3101
3102         * tasking.c: Change all calls to do_decl.
3103
3104 Mon Dec 19 23:13:58 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3105
3106         * parse.c (parse_procedure_definition): Save chill_at_module_level
3107         flag, set ot to 0 and restore it at the end of function.
3108         A sequence BEGIN x: PROC () RETURN; END x; END; at module level
3109         have produced an error.
3110
3111         * expr.c (build_chill_repetition_op): Fix typo in error message.
3112
3113 Tue Dec 13 12:26:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3114
3115         * actions.c (expand_assignment_to_varying_array):  Fix thinko:
3116         build_chill_array_ref -> build_chill_array_ref_1.
3117
3118 Sun Dec 11 23:04:27 1994  Per Bothner  <bothner@rtl.cygnus.com>
3119
3120         * actions.c (chill_expand_assignment):  Simplify the lhs if it is
3121         a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
3122
3123 Thu Dec  8 13:45:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3124
3125         * loop.c, ch-tree.h (build_loop_iterator):  Fix to return void.
3126         If start_exp is ERROR_MARK, return.
3127         * expr.c (build_generalized_call):  More robust on syntax errors.
3128
3129 Tue Dec  6 02:33:23 1994  Wilfried Moser  <moser@rtl.cygnus.com>
3130
3131         * inout.c (build_chill_readtext): In case of reading a SET mode
3132         pass ignore_case flag to runtime library.
3133
3134 Tue Nov 29 14:41:38 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3135
3136         * parse.c (parse_receive_case_action):  Print error only if pass==1.
3137         * decl.c (push_scope_decls):  Use error_with_file_and_line
3138         to get correct line number of SEIZE.
3139
3140 Mon Nov 28 16:59:18 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3141
3142         * expr.c (resolve_component_ref):  Call fold on result.
3143
3144         * expr.c (resolve_component_ref):  Use check_expression.
3145         * actions.c (chill_convert_for_assignment):  Likewise.
3146         * actions.c (cond_exception), ch-tree.h:  Removed.
3147         * actions.c (check_expression):  First part of COMPOUND_EXPR
3148         should be boolean_type_node;  void_type_node loses in SAVE_EXPRs.
3149
3150         * actions.c (chill_convert_for_assignment):
3151         Check string_assignment_condition for varying strings too.
3152
3153         * typeck.c (build_chill_cast):  If the types have different sizes,
3154         don't allow nondiscrete->discrete conversion, and only allow
3155         discrete->nondiscrete if input expression is constant.
3156
3157         * typeck.c (chill_similar):  Don't use losing array_type_nelts.
3158
3159         * ch-tree.h (ELSE_VARIANT_NAME):  New.
3160         * convert.c, decl.c, grant.c:  Use ELSE_VARIANT_NAME.
3161         * decl.c (handle_one_level):  Recurse on ELSE_VARIANT_NAME too.
3162
3163         Reduce dependencies on ../c-typeck.c:
3164         * expr.c:  Fix c_expand_start_case -> expand_start_case.
3165         Fix c_expand_expr_stmt -> expand_expr_stmt.
3166         (build_chill_indirect_ref):  Call convert instead of build_c_cast.
3167         * loop.c (bottom_loop_end_check):  Don't use build_modify_statement.
3168         * expr.c, except.c, typeck.c:  Don't call default_conversion.
3169         * typeck.c (string_assignment_condition):  Fix build_component_ref ->
3170         build_chill_component_ref.
3171         * decl.c:  Fix build_indirect_ref -> build_chill_indirect_ref (twice).
3172         * decl.c:  Don't set unused constructor_no_implicit (from c-typeck.c).
3173         * decl.c:  Don't call declare_function_name.
3174
3175         * parse.c: Don't always keep a valid token in terminal_buffer[0].
3176         The extra look-ahead may have made the parser faster, but caused
3177         some problems synchronizing with the lexer.  Specifically:
3178         (PEEK_TOKEN):  Now calls an optimized variant of peek_token_(0).
3179         (next_token_):  Don't call peek_token_.  Renamed to forward_token_.
3180         (NEXT_TOKEN):  Renamed to FORWARD_TOKEN.
3181         (parse_program):  Don't call yylex yet.
3182
3183         * parse.c (parse_action):  Re-do case ASSERT.
3184         Fix c_expand_expr_stmt -> expand_expr_stmt.
3185
3186         * lex.l:  Re-written to not use [f]lex, and renamed to ...
3187         * lex.c:  ... new lexer.
3188         * Makefile.in, Make-lang.in:  Remove [f]lex crud.
3189
3190         * lex.h (enum rid), lex.c (init_lex):  Added RID_ELSE.
3191
3192 Tue Nov 22 15:19:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3193
3194         * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
3195
3196 Fri Nov 18 14:27:32 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3197
3198         * parse.c (parse_structure_node):  Simpler, and more robust.
3199
3200 Wed Nov 16 14:40:52 1994  Ian Lance Taylor  (ian@cygnus.com)
3201
3202         * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
3203         not at compile time.
3204         * typeck.c (expand_constant_to_buffer): Likewise.
3205         extract_constant_from_buffer): Likewise.
3206
3207 Tue Nov 15 14:41:53 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3208
3209         * convert.c (convert):  Call build_chill_range_type rather than
3210         build_index_2_type (which has obstack and canonicalization problems).
3211         * expr.c (build_chill_pred_or_succ):  Convert expr to root class
3212         before arithmetic.
3213         * loop.c (declare_temps):  If location iterated over is not
3214         a location, make a temporary variable for it.
3215
3216 Mon Nov 14 16:33:47 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3217
3218         * typeck.c, ch-tree.h (chill_equivalent):  Change to return
3219         a tree (a Boolean expression).  Also, add some missing tests.
3220         * ch-tree.h (CH_EQUIVALENT):  Modify accordingly.
3221
3222         * expr.c (chill_expand_expr case CONCAT_EXPR):  When the 2nd operand
3223         is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
3224         Also, replace MEM (which is not a mode) by Pmode.
3225
3226         * ch-tree.h, typeck.c (chill_comptypes):  Removed.
3227         * convert.c (convert):  Remove calls to chill_comptypes.
3228
3229 Fri Nov 11 13:06:29 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3230
3231         * grant.c (write_grant_file): Call pfatal_with_name instead
3232         of abort when something goes wrong when opening or writing
3233         the grant file.
3234         unlink grant file if something goes wrong during writing
3235         (i.e. device full).
3236
3237         * Make-lang.in (CHILL_SRCS): Add timing.c
3238
3239         * ch-tree.h: Add prototype for chill_tasking_type_node.
3240         * lex.l (equal_number): Use chill_tasking_type_node instead of
3241         integer_type_node for converting the result.
3242         Print error messages in pass 2, in pass 1 no error will be
3243         detected.
3244         * tasking.c: New variable chill_tasking_type_node for all
3245         generated tasking related variables.
3246         Use chill_tasking_type_node instead of chill_unsigned_type_node.
3247
3248         * expr.c (chill_expand_expr): Apply Per's change.
3249
3250         * expr.c (build_chill_sizeof): In case of error just
3251         return error_makr_node.
3252         Set CH_DERIVED_FLAG at the result.
3253
3254         * timing.c (build_after_timeout_start): Clear the the timeout
3255         level to know if we are in the action part of AFTER statement
3256         or in the TIMEOUT part.
3257
3258         * typeck.c (build_chill_slice_with_length): Convert the class
3259         of the result to class of first value in expression.
3260
3261         * inout.c (build_chill_writetext, build_chill_readtext): Use stack
3262         temporary variables for the iolist so that they can get reused in
3263         subsequent calls. Emit code immediately instead of building a
3264         compound expr.
3265
3266 Fri Nov  4 12:00:54 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3267
3268         * expr.c (build_chill_function_call):  Don't set TREE_TYPE
3269         of assignment to void_type_node - it confuses save_expr.
3270         * decl.c (init_decl_processing):  Removed unused code.
3271         * parse.c:  Changes to avoid warnings.
3272
3273         * grant.c (chill_finish_module_code):  Minor simplification.
3274         * lex.l (readstring):  Set *len to 1 on error.
3275
3276 Thu Nov  3 01:05:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3277
3278         * grant.c (decode_decl): Add granting of BASED declarations.
3279
3280 Wed Nov  2 12:14:31 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3281
3282         * expr.c (build_chill_lower_or_upper):  Take more care to
3283         ensure result has the right class.
3284         (build_chill_pred_or_succ):  Be more careful to get the right
3285         resulting class, and check bounds using *root* mode.
3286
3287         * typeck.c (build_chill_slice_with_range):  Check that array
3288         really is an array or string.
3289         (build_chill_slice_with_length):  Likewise.
3290
3291         * typeck.c (extract_constant_from_buffer):  Fix calculation of
3292         SET_TYPE size.  (Cannot depend on 1-byte TYPE_PRECISION field.)
3293
3294 Wed Nov  2 05:33:03 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3295
3296         * Make-lang.in: Change version of compiler.
3297
3298         * ch-tree.h: Add new prototypes.
3299
3300         * decl.c (init_decl_processing): Remove timing related
3301         initialisations. Add call to timing_init.
3302
3303         * parse.c (parse_action): Process AFTER action.
3304
3305         * tasking.c (build_receive_case_start,
3306         build_receive_signal_case_label, build_receive_buffer_case_label,
3307         build_delay_case_start, build_delay_action, expand_send_buffer):
3308         Add processing of timesupervision.
3309         (tasking_init): Change definitions of runtime   functions.
3310
3311         * timing.c (timing_init): New function for initialisation of
3312         timing related stuff.
3313         (build_cycle_start, build_cycle_end): Changed due to
3314         implementation of timesupervision.
3315         (build_after_start, build_after_timeout_start, build_after_end):
3316         Implement the AFTER action.
3317         (build_timeout_preface, build_timesupervised_call): New functions
3318         to handle timesupervision in case of blocking system calls (i.e.
3319         SEND buffer action, RECEIVE CASE action etc.).
3320
3321 Thu Oct 27 12:50:24 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3322
3323         * expr.c (build_chill_repetition_op):  Fix repeating all-zero
3324         bitstring with orig_len!=1.  Also, call build_boring_bitstring
3325         if original string was all ones, using one range.  Also:
3326         Cannot use one-bit TYPE_PRECISION to get bitstring length.
3327
3328 Tue Oct 25 14:11:07 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3329
3330         * convert.c (convert):  When converting BOOL constant to
3331         bit-string, bit_one_node and bit_zero_node were switched.
3332         * actions.c (chill_expand_assignment):  Use force_addr_of,
3333         not build_chill_addr_expr - latter yields bogus error.
3334
3335 Fri Oct 21 14:26:52 1994  Per Bothner  <bothner@kalessin.cygnus.com>
3336
3337         * expr.c (build_chill_indirect_ref):  Check for POINTER_TYPE (only)
3338         after converting from REFERENCE_TYPE.
3339         * expr.c (build_compare_expr):  Convert to common mode *after*
3340         we've checked compatibility.
3341
3342 Fri Oct 21 02:29:15 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3343
3344         * lex.l (check_newline): Use getc instead of getlc to read
3345         the filename in a # line name directive to avoid possibly
3346         downcaseing of a filename.
3347
3348 Thu Oct 20 05:37:17 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3349
3350         * expr.c (build_chill_indirect_ref): Add check for really
3351         dereferencing a pointer.
3352
3353         * convert.c (convert): Take care of TREE_CONSTANT of a
3354         SYNONYM having mode ARRAY () VARYING something.
3355
3356 Mon Oct 17 02:30:38 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3357
3358         * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
3359         boolean_true_node and boolean_false_node. TRUE and FALSE have
3360         the BOOL derived class.
3361
3362         * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
3363         of NUM. NUM delivers the INT derived class.
3364
3365         * grant.c (write_spec_module): Add writing of
3366           <> USE_SEIZE_FILE "x.grt" <>
3367           SEIZE ALL;
3368         to generated grant file.
3369
3370 Thu Oct 13 14:45:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3371
3372         * convert.c (convert_from_reference):  Make non-static.
3373         * ch-tree.h (convert_from_reference):  Add prototype.
3374         * parse.c (parse_name):  If the decl is a REFERENCE_TYPE, just
3375         call convert_from_reference - and not a full-scale convert.
3376
3377         * convert.c (convert):  Only call digest_array_tuple if ARRAY_TYPE.
3378         * typeck.c (chill_expand_tuple):  Print error if type is
3379         neither array, struct, or powerset.
3380
3381         * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
3382         UNDEFINED_EXPR):  Call preserve_temp_slots for temp targets.
3383         If target is not MEM, make temp (even if not REG) to simplify
3384         - and don't copy original target to temp target first.  (Not needed.)
3385
3386         * lang.c (maybe_objc_comptypes):  Just return -1.
3387
3388 Wed Oct 12 12:24:20 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3389
3390         * tasking.c (tasking_setup):  Fix breakage from previous check-in.
3391
3392 Tue Oct 11 16:00:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3393
3394         * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
3395         timing.c, typeck.c:  Change build1 (ADDR_EXPR, ptr_type_node, XX)
3396         to force_addr_of (XX).  Add call to mark_addressable where needed
3397         for other calls to build 1 (ADDR_EXPR, TYPE, XX).
3398
3399 Thu Oct  6 06:36:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3400
3401         * inout.c (build_chill_writetext): Remove processing
3402         of POWERSET's.
3403
3404 Tue Oct  4 14:08:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3405
3406         * convert.c (convert):  If flag_old_strings, support converting
3407         CHARS(1) and BOOLS(1) to INT.
3408
3409 Fri Sep 30 01:44:51 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3410
3411         * inout.c (build_chill_readtext): Add check for item is
3412         referable and not READonly. Add processing of BITSTRINGs.
3413
3414 Mon Sep 26 16:19:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3415
3416         * expr.c (build_chill_descr):  Add missing call to mark_addressable.
3417         * loop.c (toop_loop_end_check):  Replace build1 (ADDR_EXPR ...)
3418         with call to force_addr_of (which calls mark_addressable).
3419         * expr.c (build_chill_descr, build_chill_inttime):  Likewise.
3420         * inout.c (build_chill_writetext):  Likewise.
3421
3422 Mon Sep 26 05:19:21 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3423
3424         * grant.c (print_struct): Move printing of VARYING from
3425         here ...
3426         * grant.c (grant_array_type): ... to here.
3427
3428 Mon Sep 26 00:09:08 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3429
3430         * ch-tree.h (force_addr_of):  New prototype.
3431         * expr.c (force_addr_of):  Call mark_addressable.  Make non-static.
3432         * inout.c (build_chill_writetext):  Use force_addr_of.
3433
3434 Sun Sep 25 23:41:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3435
3436         * except.c (push_handler), actions.h:  Removed unused parameter.
3437         * actions.c (push_action):  Remove unused paramater.
3438         * parse.c, actions.c:  Remove no-longer-used parameter to
3439         calls to push_handler and push_action.
3440
3441         * decl.c (push_extern_process):  Only build types in pass 1.
3442         * tasking.c (build_process_header):  Only build types in pass 1.
3443         * tasking.c (build_start_process):  Do pushdecl/popdecl etc
3444         even after an error (to maintain consistency between passes).
3445
3446         * convert.c (convert_to_boolean):  Allow any integral input type.
3447
3448 Sat Sep 24 22:47:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3449
3450         * typeck.c (extract_constant_from_buffer):  Add (somewhat kludgey)
3451         support for UNION_TYPE.  (Patch from Wilfried.)
3452         Also, reverse RECORD_TYPE constructor list.
3453
3454 Fri Sep 23 19:06:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3455
3456         * expr.c (build_concat_expr):  Fix calculation of result_size.
3457
3458 Wed Sep 21 00:54:21 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3459
3460         Give up on trying to use the cleanup mechanism in stmt.c to
3461         make sure the exception handler get unlinked on goto/exit/return.
3462         Instead, do it ourselves.  (Much simpler.)
3463         * except.c, ch-tree.h (action_nesting_level):  New global.
3464         * ch-tree.h (DECL_ACTION_NESTING_LEVEL):  New macro.
3465         * decl.c (define_label):  Set DECL_ACTION_NESTING_LEVEL.
3466         * except.c (expand_goto_except_cleanup):  New function.
3467         (cleanup_chain):  New variable.
3468         (push_handler, pop_handler):  Adjust action_nesting_level.
3469         (emit_setup_handler):  Push cleanup.
3470         (chill_finish_on):  Pop cleanup.
3471         * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
3472         Call expand_goto_except_cleanup.
3473         * parse.c (parse_action):  Before RETURN, call
3474         expand_goto_except_cleanup.
3475
3476 Mon Sep 19 00:59:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3477
3478         * lex.l (equal_number):  Make sure converted synonym
3479         is on permanent obstack.
3480         * typeck.c (extract_constant_from_buffer):  Fix INTEGER_TYPE
3481         loop to traverse in big-endian order.
3482
3483 Sat Sep 17 20:48:37 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3484
3485         * typeck.c (build_chill_cast):  Call mark_addressable.
3486         * expr.c (build_chill_function_call):  Call mark_addressable.
3487
3488 Thu Sep 15 23:47:01 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3489
3490         * typeck.c (expand_constant_to_buffer):  Fix an endian-ness
3491         problem for INTEGER_CST.
3492         (extract_constant_from_buffer):  Likewise.
3493
3494 Thu Sep 15 22:59:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3495
3496         * decl.c (pushlevel):  Do different things depending on
3497         actual parameter.
3498         * decl.c, parse.c, tasking.c:  Change argument to to pushlevel to 1.
3499         * actions.c (push_action):  Take new parameter.
3500         * except.c (push_handler):  Likewise.
3501         * parse.c:  Change calls to push_action and push_handler.
3502         * loop.c (begin_loop_scope):  Always call expand_start_bindings.
3503         * loop.c (end_loop_scope):  Always call expand_end_bindings.
3504         * except.c (emit_setup_handler):  Add a cleanup to
3505         unlink from exception stack if we return/exit/goto from here.
3506         * loop.c (begin_loop_scope):  Move pushlevel from here ...
3507         * parse.c (parse_do_action): ... to here.
3508
3509         Clean up do-decl interface (for decl_temp1).
3510         * parse.c (parse_loc_declaration):  If global_bindings_p (),
3511         treat as static.
3512         * decl.c (do_decl):  Don't test global_bindings_p ().
3513
3514         * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3515         Not used.  Removed.
3516         (struct scope::keep, scope::keep_if_subblocks):  Likewise.
3517         (keep_next_level):  Likewise.
3518         (kept_level_p, pushlevel, poplevel):  Simplify.
3519
3520         * decl.c (init_decl_processing):  Don't call init_iterators.
3521         * Makefile.in (C_OBJS):  Don't get ../c-iterator.o - not needed.
3522
3523 Thu Sep 15 05:54:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3524
3525         * lex.l (readstring): Add processing of control sequence
3526         in character string literals. The granting mechanism writes
3527         this to grant files.
3528
3529 Tue Sep 13 06:19:42 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3530
3531         * expr.c (compare_records): In case of -fpack do always
3532         a memcmp instead of comparing each field of the
3533         structure. If the structure is a variant structure,
3534         issue a warning.
3535
3536 Mon Sep 12 13:15:09 1994  Per Bothner  (bothner@cygnus.com)
3537
3538         * grant.c (write_spec_module):  Add cast, to avoid PCC warning.
3539         * grant.c (header_template):  Don't use ANSI-specific string
3540         literal concatenation.
3541
3542 Fri Sep  9 01:53:30 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3543
3544         * tasking.c (get_process_wrapper_name): New function.
3545         (add_taskstuff_to_list): Add a new argument, which is
3546         the entrypoint of a process.
3547         (build_process_header): Change PROCESS arguments to be
3548         like arguments of a function. There will be a wrapper
3549         which is the real entry point for a PROCESS. This wrapper
3550         is automatically build after a PROCESS definition and gets
3551         as argument a pointer to a structure looking like the
3552         arguments of the PROCESS. This wrapper will call the
3553         PROCESS (see build_process_wrapper).
3554         (build_process_wrapper): New function (see above).
3555         (build_start_process): Change processing of arguments.
3556         (tasking_setup): Add processing of a different entry point
3557         in case of PROCESSes.
3558
3559         * parse.c (parse_process_definition): Add call to
3560         build_process_wrapper.
3561         * parse.c (end_function): Remove the poplevel() call.
3562         build_process_header no longer makes the corresponding
3563         pushlevel().
3564
3565         * grant.c (print_proc_tail): Remove special processing
3566         of PROCESSes, they look now like normal functions.
3567
3568         * decl.c (init_decl_processing): Add declaration of memcmp
3569         function.
3570
3571         * ch-tree.h: Add new prototype for build_process_wrapper,
3572         change prototypes for add_taskstuff_to_list and
3573         build_process_header.
3574
3575         * grant.c (write_spec_module): Write GNUCHILL and gcc
3576         version into grant file.
3577
3578         * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
3579         GNUCHILL_VERSION to ch/Makefile.
3580         * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3581
3582         * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3583         will get generated every time a new Makefile will get
3584         generated.
3585         * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3586         Make-lang.in.
3587
3588         * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3589         to the compiler to avoid generation of an object file.
3590
3591 Thu Sep  8 12:07:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3592
3593         * convert.c (display_int_cst), ch-tree.h:  New function.
3594         * convert.c (digest_array_tuple):  Use digest_int_cst to
3595         provide better error messages.  Return error_mark_node on error.
3596         * grant.c (decode_const):  Simplify by using digest_int_cst.
3597         * grant.c (format_character, find_assoc):  Removed.
3598
3599         * decl.c (do_decl):  Add missing TREE_CHAIN.
3600
3601         * decl.c (finish_incomplete_decl):  Removed.
3602         (init_decl_processing):  Don't set incomplete_decl_finalize_hook.
3603         (finish_decl):  Remove old C-specific code to deduce size of
3604         array from initialization.
3605         (complete_array_type):  Just make it abort.
3606
3607         * except.c (finish_handler_array):  Avoid calling C-specific kludge
3608         complete_array_type.
3609
3610         * convert.c (digest_constructor):  Rename, and re-write to:
3611         (digest_array_tuple, convert):  No longer use the code in
3612         ../c-typeck.c;  use a Chill-only implementation (sigh).
3613
3614         * typeck.c (chill_expand_tuple):  Remove unneeded call to
3615         complete_array_type.
3616
3617         * expr.c (fold_set_expr), grant.c (decode_constant),
3618         typeck.c (expand_constant_to_buffer):  Update name of called
3619         function unpack_set_constructor to get_set_constructor_bits.
3620         * expr.c (powersetlen ):  Remove redundant call to convert.
3621
3622         * ch-tree.h (unpack_set_constructor):  Removed obsolete declaration.
3623
3624         * inout.c (build_chill_writetext):  Handle 64-bit integer literals
3625         by trying to convert them to a smaller type.
3626
3627         * lex.l (convert_number):  Always use long long type (possibly
3628         unsigned) to avoid problems with constant folding truncation.
3629
3630 Mon Sep  5 08:08:22 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3631
3632         * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3633         Add new prototype (see tasking.c).
3634
3635         * expr.c (build_generalized_call): Add processing of
3636         BUILT_IN_QUEUE_LENGTH.
3637
3638         * tasking.c (build_queue_length): New function.
3639
3640         * tasking.c (tasking_init): Add new external function definition.
3641
3642 Thu Sep  1 15:38:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3643
3644         * lex.l (default_lex):  New function.  Progress towards
3645         getting rid of [f]lex.
3646
3647         * lex.l (convert_number):  Use mul_double and add_double.
3648         Set result type to a reasonable type in which the literal
3649         will fit.  Give error message if literal is too big.
3650
3651         * lex.l (equal_number):  Switch (temporarily) to permanent obstack.
3652
3653         * typeck.c (build_chill_slice_with_range):  Check for empty
3654         slice *after* we have checked for upper/lower limit in range.
3655
3656         * grant.c (decode_mode):  Remove unused code.  (BOOL and
3657         CHAR ranges are represented as INTEGER_TYPEs.)
3658
3659         * tasking.c (build_process_header):  Add missing call to
3660         expand_start_bindings.
3661         * parse.c (end_function):  Add missing expand_end_bindings.
3662
3663 Wed Aug 31 17:25:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3664
3665         * decl.c (init_decl_processing):  Set set_alignment.
3666
3667 Tue Aug 30 16:40:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3668
3669         * actions.c (print_missing_cases, check_missing_cases,
3670         BITARRAY_TEST, BITARRAY_SET):  New functions and macros,
3671         to check for completeness of case actions and expressions.
3672         * decl.c (c_decode_option, init_decl_processing):
3673         Don't set warn_switch.
3674         * expr.c (chill_expand_case_expr):  Call check_missing_cases
3675         instead of check_for_full_enumeration_handling.
3676         * parse.c (parse_case_actions):  Call check_missing_cases.
3677
3678         * expr.c (build_chill_binary_op):  Remove some dead code.
3679         * expr.c (chill_truthvalue_conversion):  Call build_chill_binary_op
3680         instead of build_binary_op.
3681         * ch-tree.h (binary_op_error, build_binary_op):  Unused.  Removed.
3682
3683         * parse.c (end_function):  Use kept_level_p in parameter to
3684         poplevel.  This reverts a June 13 change.
3685
3686 Fri Aug 26 11:50:19 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3687
3688         * configure: Ignore --without, as ../configure does.
3689
3690 Wed Aug 24 01:17:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3691
3692         * lex.l: Change rule for decimal numbers to allow identifiers
3693         to start with an underscore (_).
3694
3695 Fri Aug 19 16:38:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3696
3697         * tasking.c (build_receive_signal_case_label):  Remove backwards
3698         chill_convert_for_assignment (which converted whatever garbage
3699         was in the *target* to the type of the signal argument!).
3700
3701 Fri Aug 19 07:10:43 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3702
3703         * inout.c (build_chill_io_list_type, build_enum_tables),
3704         tasking.c (build_tasking_struct): Temporarily reset
3705         maximum_field_alignment to 0, so that the compiler-built
3706         data structures needed by the RTS can be independent of -fpack.
3707
3708 Thu Aug 18 13:39:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3709
3710         * typeck.c (build_init_struct):  Temporarily reset
3711         maximum_field_alignment to 0, so that the compiler-built
3712         data structures needed by the RTS can be independent of -fpack.
3713
3714 Wed Aug 17 23:48:33 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3715
3716         * parse.c (parse_primval, expect, parse_on_exception_list):
3717         Print error message only in pass 2.
3718
3719 Wed Aug 17 13:47:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3720
3721         * decl.c (switch_to_pass_2):  Revert June 13 change,
3722         (Don't exit after pass 1 if an error was found.)
3723
3724         * ch-tree.def (SLICE_EXPR):  New tree-code.
3725         * typeck.c (build_chill_slice):  For building a slice of a
3726         bit-string, just generate a SLICE_EXPR.
3727         * decl.c (init_decl_processing):  Declare __pscpy.
3728         * actions.c (chill_expand_assignment):  Handle a SLICE_EXPR
3729         on the LHS of assignment, by calling __pscpy.
3730         * expr.c (chill_expand_expr):  Handle SLICE_EXPR (as a RHS
3731         value) by using __psslice to copy slice to a temp.
3732
3733 Wed Aug 17 05:52:44 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3734
3735         * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3736         * expr.c (build_chill_length): Enable LENGTH built-in to process
3737         Buffers and Events too (Z.200/1992).
3738         * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3739         a linux system the previous version was not able to run.
3740         * tasking.c: Correct processing of infinite buffer- and event-length
3741         to avoid RANGEFAIL warning.
3742
3743 Thu Aug 11 11:46:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3744
3745         * parse.c (parse_if_expression_body):  Don't call the C-specific
3746         build_conditional_expr.  Just do build_nt (COND_EXPR, ...).
3747         * convert.c (convert):  Convert a COND_EXPR by converting
3748         each branch.
3749
3750         * convert.c (convert):  Don't call convert before
3751         convert_to_reference.  It's apt to do weird and unneedful things.
3752         * convert.c (convert):  If the expression is varying, just call
3753         varying_to_slice, which simplifies quite a bit.
3754
3755         * ch-tree.h (varying_to_slice):  Add prototype.
3756         * typeck.c (varying_to_slice):  Remove prototype.
3757
3758         * satisfy.c (satisfy):  Move case PAREN_EXPR from type 'e'
3759         to type '1'.
3760
3761         * except.c (emit_setup_handler):  Temporarily reset the
3762         maximum_field_alignment to zero so the compiler's exception
3763         data structures can be compatible with the run-time system,
3764         even when we're compiling with -fpack.
3765
3766         * expr.c (compare_records):  Call saved_if_needed on operands.
3767
3768         * expr.c (build_set_expr case NE_EXPR):  Don't use __nepowerset
3769         which has been reimplemented to just call __eqpowerset and
3770         invert the result.  Inline this new implementation by
3771         handling as EQ_EXPR, and inverting the result.
3772         * decl.c (init_decl_processing):  Don't define unused __eqpowerset.
3773
3774         * typeck.c (valid_array_index_p):  The TRUTH_ANDIF_EXPR has
3775         type boolean_type_node, not void_type_node.  (Fixing this
3776         avoids a crash in the back-end.)
3777
3778         * grant.c (decode_constant):  In a CALL_EXPR, if the argument
3779         list is not a TREE_LIST (as in string repetiation), don't
3780         emit parentheses.
3781
3782 Wed Aug 10 13:13:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3783
3784         * decl.c (proclaim_decl):  Use CH_DECL_ENUM to check that a
3785         CONST_DECL is from a SET definition.  (This is safer than
3786         checking that the type is ENUMERAL_TYPE, because synonym
3787         definitions may have a NULL TREE_TYPE.)
3788         Also, if we have duplicate enums whose types are identical,
3789         this is an error.
3790         * decl.c (proclaim_decl, pushdecllist, push_scope_decls):  Add
3791         an extra 'quiet' parameter, which is true if we're called from
3792         bind_sub_modules.  (In that case an error message about duplicated
3793         decls would be repeated later, so suppress it.)
3794
3795         * parse.c (stmt_count):  Removed, not used.
3796         (INIT_ACTION):  Call emit_line_note only if !ignoring.
3797         (parse_begin_end_block):  Do INIT_ACTION even if ignoring.
3798
3799 Fri Aug  5 12:39:11 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3800
3801         * parse.c (parse_untyped_expr):  Add missing semi-colon.
3802
3803 Thu Aug  4 17:40:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3804
3805         * parse.c (parse_untyped_expr):  Fix various problem for the
3806         case that we see a '(':  Add missing 'case' keyword.
3807         Only recurse if '(' is followed by 'if', 'case' or '[',
3808         and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3809
3810         * parse.c (parse_send_action):  Remove extra nreverse.
3811
3812 Thu Jul 28 04:00:11 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3813
3814         * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3815         Add new checks.
3816
3817 Tue Jul 26 22:48:15 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
3818
3819         * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3820         Added a missing call to `require' as well.
3821
3822 Tue Jul 19 10:30:12 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
3823
3824         * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3825         the extern declaration in the flex skeleton.
3826
3827 Mon Jul 18 23:06:04 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3828
3829         * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3830         Check the type of the instance expr using CH_COMPATIBLE,
3831         and not just == instance_type_node.  (This allows
3832         the expression to have mode READ INSTANCE).
3833         * tasking.c (build_instance_type):  Give instance_type_node
3834         a non-null novelty (i.e. different from a struct).
3835         * tasking.c (build_receive_case_start, build_delay_case_start):
3836         Check that for a location using CH_LOCATION_P.
3837
3838 Mon Jul 18 13:22:23 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
3839
3840         * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3841         to modify a tree code.
3842
3843 Mon Jul 18 11:24:57 1994  Bill Cox  (bill@rtl.cygnus.com)
3844
3845         * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3846           comparison.
3847
3848 Mon Jul 18 05:40:15 1994  Doug Evans  (dje@canuck.cygnus.com)
3849
3850         * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3851
3852 Thu Jul 14 18:37:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3853
3854         * parse.c (parse_send_action):  Do tree_cons *before* checking
3855         for end of loop.
3856
3857 Mon Jul 11 15:33:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3858
3859         * convert.c (digest_structure_tuple):  Don't use convert to
3860         coerce initial value,  use chill_convert_for_assignment instead.
3861         (Thus we also get range_checking.)
3862
3863         * expr.c (build_chill_card):  Use force_addr_of instead of
3864         build_chill_addr_expr.
3865
3866         * loop.c (build_temporary_variable):  Stylistic tweak.
3867         * loop.c (maybe_make_for_temp):  Initialize temp using
3868         explicitly, not using assignment.  Avoids a problem if
3869         the expression is read-only.
3870         * typeck.c (smash_dummy_type):  Always used the saved TYPE_NAME
3871         and CH_NOVELTY_FLAG.
3872
3873 Wed Jul  6 20:12:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3874
3875         * expr.c, ch-tree.h (finish_chill_unary_op):  New function,
3876         based on code ripped out of build_chill_unary_op.
3877         (build_chill_unary_op):  Call finish_chill_unary_op unless pass==1.
3878         * satisfy.c (satisfy):   Call finish_chill_unary_op when needed.
3879
3880 Mon Jun 27 11:29:18 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3881
3882         * tree.c (save_if_needed), ch-tree.h:  New function.
3883         * typeck.c (build_chill_slice_with_range,
3884         build_chill_slice_with_length):  Call save_if_neeed on array arg.
3885         * expr.c (varying_to_slice):  Re-write to use save_if_needed.
3886
3887         * typeck.c (extract_constant_from_buffer):  Handle BOOLEAN_TYPE.
3888
3889 Mon Jun 27 01:11:10 1994  Wilfried Moser  (moser@rtl.cygnus.com)
3890
3891         * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3892         that it is always the same, regardless if compiled with -fpack
3893         or not.
3894
3895 Tue Jun 14 16:44:14 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3896
3897         * lex.l (yywrap):  Kludge to work around mis-synchronization
3898         between lexer (which read ahead) and parser:  Don't emit
3899         (left-over) uze_seizefile directives at the end of file.
3900
3901         * typeck.c (build_chill_array_ref):  Allow the derived
3902         array indexing syntax for arrays of bit strings.
3903         Add a comment explaining why.
3904
3905         * typeck.c, ch-tree.h (string_assignment_condition):  Change
3906         the interface.  Return a boolean expression (which can be
3907         used in a conditional at run-time);  never expand anything.
3908
3909         * actions.c (chill_convert_for_assignment):  Check
3910         string_assignment_condition here, rather than in callers.
3911         * actions.c (chill_expand_assignment):  Don't need to check
3912         string_assignment_condition here.
3913         * expr.c (build_chill_function_call):  Likewise.
3914         * satisfy.c (safe_satisfy_decl):  Update accordingly.
3915         * decl.c (do_decl):  Simplify testing and conversion by
3916         deferring everything to chill_convert_for_assignment.
3917
3918         * parse.c:  Combine the two variables 'ignore_exprs' and
3919         'ignore_actions' into one variable called 'ignoring'.
3920         * ch-tree.h:  Add 'extern int ignoring'.
3921         * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3922         Rename ignore_actions and ignore_exprs to ignoring.
3923         Remove unneeded extern declarations.
3924         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3925         build_chill_arrow_expr, build_generalized_call, build_delay_action,
3926         build_buffer_type, build_event_type):  I changed my mind.  It is
3927         cleaner to check for 'ignoring' in the parser, rather than here.
3928         * parse.c (parse_action, parse_primval, parse_opt_mode):
3929         Therefore we must check for ignoring here.
3930         * parse.c (parse_loc_declaration):  Set ignoring in pass 2
3931         when parsing the mode.
3932
3933         * tasking.c (generate_tasking_code_variable):  Do arithmetic
3934         on signal_code etc using unsigned rather than signed shorts.
3935
3936         * grant.c (static char* current_grant_modename):  Removed.
3937         * grant.c (decode_decl case CONST_DECL):  Remove error message.
3938
3939         * Make-lang.in (CHILL_SRCS):  Add $(srcdir)/ch/parse.c.
3940         * Makefile.in:  Fix dependencies for parse.o.
3941         Remove some duplicate dependencies for $(TREE_H).
3942
3943 Mon Jun 13 14:25:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
3944
3945         * typeck.c (build_chill_cast):  Allow a value cast between
3946         non-discrete object of the same size, but with a pedwarn.
3947         * typeck.c (bit_string_assignment_condition,
3948         char_string_assignment_condition):  Merge near-duplicate functions
3949         and place the code in string_assignment_condition.
3950
3951         * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3952         Removed.  Not used.
3953         * decl.c (start_chill_function, finish_chill_function):  Make
3954         parameter level have same nesting level as body, as required by Z200.
3955         * decl.c (switch_to_pass_2):  Always exit if an error has been found.
3956         * decl.c (pop_module):  Copy DECL_SEIZEFILE to a new ALIAS_DECL
3957         generated from GRANT ALL.
3958         * decl.c (lookup_name_for_seizing):  Don't seize from
3959         the nesting level of builtins (predefined objects).
3960         * decl.c (lookup_name_for_seizing):  Make more robust on error.
3961
3962         * decl.c (start_chill_function):  MAKE DECL_NAME (chill_result_decl)
3963         be 'RESULT' (or 'result').  This makes it more accessible from gdb.
3964         Also, use do_decl to declare it, so that debugging symbols are
3965         generated.  And, re-arrange so that actions that need to
3966         be done both passes (such as push_levels) use the same code.
3967
3968         * parse.c (get_type_of):  If ignore_exprs, don't lookup name.
3969         * parse.c (end_function):  Fix poplevel params.
3970         * parse.c (expect):  Don't read forwards on an error.
3971         * parse.c (parse_field):  Don't define two tag_list locals!
3972         * parse.c (parse_pass_1_2):  Better error message.
3973
3974         * parse.c (parse_mode, parse_opt_mode):  Have parse_mode call
3975         parse_opt_mode, rather than vice versa.  If parse_opt_mode
3976         returns NULL_EXPR, then parse_mode gives an error.
3977         Change parse_opt_mode (and any functions it calls) to only
3978         return NULL_TREE if there is no mode (even on ignore_exprs).
3979         (parse_set_mode, parse_structure_mode, parse_procedure_mode):
3980         Never return NULL_EXPR.
3981         * tasking.c (build_buffer_type, build_event_type):  Return
3982         void_type_node instead of NULL_EXPR if ignore_exprs is true.
3983
3984         * parse.c (parse_synonym_definition):  Call parse_untyped_expr
3985         only if we have a mode.
3986         * parse.c (parse_send_action):  Parse list of untyped_expr's,
3987         rather than a list of (typed) expressions.
3988         * parse.c (parse_primval):  Emit error if '[' seen without
3989         preceding mode name.  (If this is to be allowed, call
3990         parse_untyped_expr instead.)
3991
3992         * parse.c (parse_array_index):  Renamed to ...
3993         (parse_index_mode):  ... to match Z200 terminology.
3994         Re-write to resolve some of the nastier ambiguities,
3995         and allow things like ' CHAR(10) : CHAR(20) '.
3996
3997         * parse.c (parse_tuple_element):  Change interface to return
3998         reversed list, so don't call nreverse.
3999         * parse.c (parse_tuple):  No longer nreverse element list here.
4000         * parse.c (parse_opt_element_list):  Do nreverse here instead.
4001         * parse.c (parse_case_label_list):  Call nreverse at end.
4002
4003 Fri Jun 10 15:36:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4004
4005         * typeck.c (chill_similar):  Remove bogus "else".
4006
4007 Wed Jun  8 00:01:40 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4008
4009         * ch-tree.h (TYPE_ARRAY_MAX_SIZE):  New macro (and comment)
4010         to make it clearer that we are using TYPE_MAX_VALUE in a special way.
4011         * typeck.c (build_chill_slice):  Use TYPE_ARRAY_MAX_SIZE.
4012         * expr.c (chill_expand_expr case CONCAT_EXPR):  Likewise.
4013         * convert.c (convert):  When converting a fixed string/array
4014         to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
4015         of (the type of) the padding.
4016         * convert.c (convert): If the concatenation is non-constant, use
4017         the low-level 'build' to set the type of the result (which is usually
4018         a fixed-size array) rather than depend on build_chill_binary_op
4019         to figure it out (it's unable to simplify the size to a constant).
4020
4021 Mon Jun  6 18:16:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4022
4023         * lang.c (lang_decode_option):  Let -fspecial_UC imply
4024         -fno-ignore-case without requiring it explicitly.
4025         * lang.c (lang_decode_option):  Support (experimentally)
4026         the -fpack and -fno-pack flags.
4027
4028 Thu Jun  2 20:49:51 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
4029
4030         * configure: Add support for --program-prefix and --program-suffix.
4031
4032 Tue May 31 18:12:00 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4033
4034         * convert.c (digest_constructor):  Check that initial value
4035         is compatible with element mode before calling convert.
4036         * typeck.c (chill_compatible):  A string mode is not compatible
4037         with an untyped constructor.
4038         * decl.c (do_decl):  Clean up error messages.  Use error_with_decl.
4039
4040         * ch-tree.h:  Fix inconsistencies: bool_true_node ->
4041         boolean_true_node, and bool_false_node -> boolean_false_node.
4042         * typeck.c (valid_array_index_):  Minor simplification.
4043
4044 Tue May 31 04:33:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4045
4046         * inout.c (build_chill_writetext): Add correct processing
4047         of POWERSET RANGE (setmode).
4048
4049         * lex.l (same_file): Add searching for file(s) in
4050         seize_path_list.
4051
4052 Fri May 27 14:22:42 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4053
4054         * Make-lang.c (CHILL.mostlyclean, CHILL.distdir):  Don't list
4055         yacc/bison output files, since the grammer is no longer in yacc.
4056         * config-lang.in (diff_excludes):  Likewise.
4057
4058 Thu May 26 16:38:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4059
4060         * gperf, hash.h, lex.l, parse.h:  Rename PROCESS_TYPE token
4061         (in some files spelled PROCESS_TYPE_ to avoid clashes
4062         with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
4063
4064 Thu May 26 02:18:28 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4065
4066         * timing.c (build_cycle_start): Change call to __define_timeout.
4067         * decl.c (init_decl_processing): Change definitions of
4068         __define_timeout and __wait_timeout.
4069
4070 Wed May 25 11:53:09 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4071
4072         Replace yacc-based parser with a recursive-decent parser.
4073         (This may seem backwards, but Chill [like C++] is not a
4074         language that is remotely LALR(1).  Using a R-D parser
4075         allows us to use look-ahead and to back-up to resolve the
4076         difficult ambiguities.)
4077         * parse.y:  Removed.
4078         * parse.c, parse.h:  New files, containing new r-d parser.
4079         * Makefile.in:  Update accordingly.
4080         * actions.c (chill_convert_for_assignment):  Don't return
4081         NULL_EXPR if ignore_exprs is true.  It simplifies the parser
4082         if we consistently reserve NULL_EXPR for a missing expression.
4083         * expr.c (build_chill_function_call):  Likewise.
4084
4085         * lex.l:  Tweaks for new parser.
4086         * lex.l (prepare_paren_colon, paren_paren_colon_level,
4087         paren_level):  Ugly hack no longer needed.
4088
4089         * expr.c (build_chill_function_call):  Cleanup.
4090         Call chill_convert_for_assignment to convert IN/INOUT
4091         paramaters on both input and output.  For LOC parameters,
4092         give error if actual is a non-referable location.
4093         * actions.c (convert_for_assignment):  Add new parameter (a
4094         "place" string used in error messages).
4095         * actions.c (adjust_parm_or_field):  Removed.
4096         * actions.c (chill_expand_assignment):  Take just a single LHS,
4097         and move support for multiple assignments to ...
4098         (expand_assignment_action): ... here.  Some cleaning up.
4099         * timing.c (build_cycle_start):  Adjust accordingly.
4100         * actions.c (expand_assignment_to_varying_array):  Likewise.
4101         * tasking.c (many places): Ditto.
4102         * ch-tree.h:  Fix declarations appropriately.
4103
4104         * parse.c (parse_defining_occurrence_list):  Return a single
4105         IDENTIFIER_NODE (instead of a singleton list) in the common
4106         case.  Minor complication to save a minor amount of space.
4107         * decl.c (do_based_decls):  Move guts of code into ...
4108         (do_based_decl):  ... this new function.
4109         * decl.c (do_decls):  Handle either IDENTIFIER_NODE or a TREE_LIST.
4110         * decl.c (push_syndecl):  Replace by ...
4111         (push_syndecl):  ... (which only supports a single name).
4112         (push_modedef):  Only handle a single name.
4113         * tasking.c (build_process_header, build_signal_struct_type):
4114         Adjust accordingly.
4115
4116         * expr.c (build_generalized_call):  Handle string repetition.
4117         * expr.c (build_chill_repetition_op):  Change interface.
4118         * grant.c (decode_constant):  Allow parameter list to be
4119         a non-TREE_LIST.  (Used for string repetition.)
4120
4121 Wed May 25 11:28:48 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4122
4123         * lex.l (make_identifier):  Replaced by ...
4124         (read_identifier, handle_name): ... new functions.
4125         * lex.l: Parse an identifiers using read_identifier using
4126         read_identifier and handle_name, rather than having [f]lex
4127         do it.  (One reason is that lex uses a fixed-size buffer.)
4128
4129         * lex.l (read_directive, skip_directive):  New functions.
4130         Use them to parse compiler-directives, instead of rather
4131         ugly and useless use of lexer start conditions.
4132
4133 Tue May 24 22:36:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4134
4135         * decl.c (unnamed_module_number):  Renamed to ...
4136         (module_number):  .. and make non-static.
4137         (push_module):  Always increment module_number.
4138         * lex.l (yywrap):  Print warning if no modules seen.
4139
4140         * decl.c (pop_module):  Don't set DECL_SEIZEFILE of granted
4141         decl to current_seizefile_name (which is unreliable).
4142         * grant.c (chill_grant):  Set it here instead.
4143
4144         * expr.c (fold_set_expr):  Use int_size_in_bytes instead of
4145         TYPE_PRECISION (which is not defined for a SET_TYPE).
4146
4147 Fri May 20 15:21:26 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4148
4149         Cleanup to remove need for variables in common storage.
4150         * decl.c:  Remove unused use of current_obstack.
4151         * actions.c (maybe_chill_check_decl):  Remove unused function.
4152         * actions.h, lang.c:  Remove uses of doing_chill_thang.
4153         * ch-tree.h (void_list_node):  Make extern (rather than common).
4154         * decl.c (void_list_node):  Add definition.
4155
4156 Thu May 19 06:54:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4157
4158         * configure (build): Build canon_host and canon_target
4159         to pass it to all subsequently generated Makefiles (needed
4160         for testsuite/execute in case of cross build).
4161
4162 Wed May 18 13:27:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4163
4164         * grant.c (decode_mode):  Remove.  It checks the TYPE_NAME of
4165         the input type, which loses with the no-longer-new 2-pass
4166         implementation, since the input "type" could be an IDENTIFIER_NODE.
4167         * grant.c (raw_decode_mode):  Rename to decode_mode.
4168
4169 Tue May 17 13:19:52 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4170
4171         * typeck.c (chill_location):  Neither a STRING_CST nor a
4172         CONSTRUCTOR is a location.
4173         * typeck.c (chill_root_mode):  Convert a function to a
4174         pointer-to-function.
4175         * expr.c (build_chill_indirect_ref, build_chill_component_ref,
4176         build_chill_arrow_expr):  If ignore_exprs, return operand
4177         rather than NULL_EXPR.  This makes it easier for the parser to
4178         distinguish missing expressions.
4179         * expr.c (build_max_min):  Convert the lower bound of a
4180         set to a long before calling run-time routine.
4181         * expr.c (build_chill_pred_or_succ):  Use discrete_type_p
4182         to check the argument type.
4183         * expr.c (build_chill_arrow_expr):  If argument is not a location,
4184         do a predwarn if it is a STRING_CST or has function type.
4185
4186 Tue May 17 06:05:13 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4187
4188         * configure (build): Remove building of canon_host and canon_target.
4189         It doesn't work in any case.
4190
4191 Mon May 16 02:10:35 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4192
4193         * configure (build): Build canon_host and canon_target
4194         to pass it to all subsequently generated Makefiles (needed
4195         for testsuite/execute in case of cross build).
4196         * Make-lang.in (chill-runtime): Change chill to CHILL in the case
4197         statement to build chill-runtime automatically.
4198
4199 Mon May  9 15:30:08 1994  Doug Evans  (dje@canuck.cygnus.com)
4200
4201         * Makefile.in (FLAGS_TO_PASS): Define.
4202         (OBJDEPS): Define.
4203         (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
4204         * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
4205         (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
4206
4207 Sun May  8 13:05:00 1994  Per Bothner  (bothner@cygnus.com)
4208
4209         * Make-lang.in (cc1chill):  Should not depend on libgcc.a.
4210
4211 Thu May  5 18:58:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4212
4213         * decl.c (copy_lang_decl):  New (dummy) function.
4214
4215 Mon May  2 14:33:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4216
4217         * parse.y (sendaction):   Fix thinko (in sense of condition).
4218         * tasking.c (build_receive_case_label):  Another thinko.
4219
4220         * parse.y (optsigdest):  Force ignore_exprs to 0 while parsing
4221         the (signal-)name.
4222
4223         * decl.c (build_chill_function_type):  Don't call layout_type
4224         (since that may prevent parameter or result types being
4225         properly satisfied).
4226         * satisfy.c (satisfy):  Layout FUNCTION_TYPEs.
4227         * parse.y (procmode):  Call build_chill_pointer_type, rather
4228         than build_pointer_type (which incorrectly sets TYPE_SIZE).
4229
4230         * parse.y (get_type_of):  Handle TYPE_DECL (again).
4231         * parse.y (optresultspec):  Call build_chill_reference_type, rather
4232         than build_reference_type (which incorrectly sets TYPE_SIZE).
4233         * parse.y (range_or_mode):  Rename to plain range, since it
4234         no longer matches modename.
4235         * actions.c (chill_handle_case_label_range):  New function, with
4236         functionality moved out of chill_handle_case_label.
4237         * actions.c (chill_handle_case_label):  Handle here the case that
4238         the label_value is a TYPE_DECL (modename).   Also clean up some.
4239         * typeck.c (build_chill_slice_with_length):  Convert max_index
4240         to the type of min_value.  (Old code broke on varying strings.)
4241
4242 Sun May  1 13:53:36 1994  Doug Evans  (dje@canuck.cygnus.com)
4243
4244         * Makefile.in (BC_OBJS): Delete all references
4245         (OBJS): Cat ../stamp-objlist to get language independent files.
4246         (../cc1chill): Delete dependency on $(OBJS).
4247         * Make-lang.in (cc1chill): Depend on stamp-objlist.
4248
4249 Sat Apr 30 14:50:15 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4250
4251         * lex.h, lex.c:  Remove lastiddecl.
4252         * lex.l (name_type_signal):  Simplify.  We no longer check for
4253         TYPENAME or SIGNALNAME (which was unreliable with two passes).
4254         Also rename to make_identifier.
4255         * parse.y:  Cleaned up grammar to not need SIGNALNAME or TYPENAME.
4256         * Makefile.in (stamp-parse);  One conflict fewer!
4257         * parse.y (rccase_label_flag):  Moved to tasking.c.
4258         * parse.y (rccase_label):  Move most of the logic to
4259         build_receive_case_label in tasking.c.
4260         * parse.y (sendaction):  Re-write to not depend on SIGNALNAME.
4261
4262         * parse.y (name):  Do name lookup here (and not in location).
4263         * parse.y:  Replace most uses of NAME by higher-level non-terminals:
4264         simple_name_string, name_string, defining_occurrence, or name.
4265
4266         * tasking.c (build_receive_signal_case_label,
4267         build_receive_buffer_case_label):  New functions, split out from
4268         build_receive_case_label.
4269         * tasking.c (build_receive_case_label):  Change parameters
4270         and return type.  Moved stuff here (from the parser).
4271         * tasking.c (struct rc_state_type):  Removed had_errors.
4272         Return error_mark_node instead.
4273         * tasking.c (build_rccase_set_error), ch-tree.h:  Removed.
4274
4275         * expr.c (build_generalized_call):  If func is a signal type,
4276         call build_signal_descriptor.
4277
4278         * parse.y (arrayindex):  Renamed to index_mode, to match Z.200.
4279         * parse.y (ioindexmode):  Removed;  use index_mode instead.
4280         * expr.c (build_generalized_call):  If args is a RANGE_EXPR,
4281         we have either a slice or a range mode, depending on func.
4282         * parse.y (index_mode):  If we got an 'expr', only allow a name,
4283         or a range mode.
4284         * parse.y (call):  A slice with both end points can be a range
4285         mode, so defer handling to build_generalized_call (or index_mode).
4286
4287         * typeck.c (build_chill_slice_with_length):  Fix type-checking.
4288         * typeck.c (chill_novelty):  Undo (part of) change of April 28:
4289         The novelty of a range mode is the novlety of the parent.
4290         * typeck.c (chill_root_mode):  Don't return integer_type_node
4291         if argument has non-nil novelty.
4292
4293         * decl.c (global_bindings_p):  Return -1 as true, for the sake
4294         of variable_size (in ../stor-layout.c).
4295
4296 Fri Apr 29 13:42:43 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4297
4298         * parse.y:  Remove TYPENAME and modename.  These are now plain
4299         NAMEs.  Modify parsing actions appropriately.
4300         * expr.c (build_generalized_call):  Handle the case that
4301         TREE_CODE (func) == TYPE_DECL (as in a cast).
4302         * lex.l (name_type_signal):  Never return TYPENAME.
4303         * parse.y (get_type_of):  If pass 1, just return the argument.
4304
4305         * decl.c (do_decl):  If an initializer has the wrong type,
4306         replace it by NULL_TREE, to avoid subsequent errors.
4307
4308 Thu Apr 28 15:21:56 1994  Wilfried Moser  (moser@rtl.cygnus.com)
4309
4310         * Makefile.in: Add new file timing.c to rules.
4311         * timing.c: New file. Implements the timing actions AT,
4312           CYCLE and AFTER.
4313         * decl.c (init_decl_processing): Add new builtin function
4314           descriptions.
4315         * expr.c (build_chill_indirect_ref): Change error message and
4316           add check agains an IDENTIFIER_NODE.
4317         * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
4318           They are no longer needed.
4319         * grant.c (print_integer_type): Add processing of builtin types
4320           DURATION and TIME.
4321         * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
4322         * parse.y (timingactions): split up to afteraction, ataction
4323           and cycleaction.
4324         * parse.y (afteraction): New rule.
4325         * parse.y (ataction): New rule and put actions in.
4326         * parse.y (cycleaction): New rule and put actions in.
4327         * parse.y (sendaction): Add code for SEND buffer.
4328         * parse.y (rccase_label): Change error processing.
4329         * tasking.c (build_gen_inst): More checks.
4330         * tasking.c (build_gen_code): Add checking for argument is a
4331           PROCESS or a SIGNAL.
4332         * tasking.c (struct rc_state_type): Add new fields for easier
4333           error processing.
4334         * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
4335         * tasking.c (build_rccase_set_error), ch-tree.h: New function.
4336         * tasking.c (build_receive_case_label): Add processing of BUFFER's.
4337         * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
4338           New functions to process the end of a RECEIVE CASE action in case
4339           of BUFFER's and SIGNAL's.
4340         * tasking.c (build_receive_case_end): Do only general processing and
4341           call one of the above mentioned functions.
4342         * tasking.c (build_delay_case_start, build_delay_case_label,
4343           build_delay_case_end): Rewritten due to new implementation of events.
4344         * tasking.c (build_delay_action): Rewritten due to new implementation
4345           of EVENT's.
4346         * tasking.c (expand_send_buffer), ch-tree.h: New function.
4347         * timing.c (build_at_action, build_cycle_start, build_cycle_end),
4348           ch-tree: New functions.
4349
4350 Thu Apr 28 14:11:29 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4351
4352         * typeck.c (smash_dummy_type):  Handle the special case of a
4353         NEWMODE of a range mode, as required by Z200, by creating a
4354         new parent mode with the new novelty (and casting the min
4355         and max of the range to teh new parent mode).
4356         * typeck.c (chill_novelty, chill_root_mode):  Remove special
4357         kludges for of NEWMODE ranges.
4358         * expr.c (build_chill_lower_or_upper):  New function, combining
4359         the "guts" of build_chill_lower and build_chill_upper.
4360         * expr.c (build_chill_lower_or_upper):  Simplify;  no longer
4361         need to kludge the novelties.
4362
4363         * typeck.c (valid_array_index_p):  A string index expression
4364         need not be Compatible with the index type;  only similar.
4365
4366         * decl.c (layout_chill_variants):  If error seen, skip stuff
4367         (rather than aborting or crashing).
4368         * decl (push_modedef):  If newdecl's type is an error mark,
4369         continue rather than aborting.
4370
4371 Thu Apr 28 02:07:42 1994  Doug Evans  (dje@cygnus.com)
4372
4373         * Make-lang.in: Update of directory reorg from fsf.
4374         * config-lang.in: Ditto.
4375
4376 Mon Apr 25 13:09:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4377
4378         * typeck.c (chill_similar):  Check RECORD_TYPEs properly,
4379         * convert.c (convert):  If all else fails, just call convert1.
4380         Thus we can now convert RECORD_TYPEs (assuming they are similar).
4381
4382         * parse.y, lex.l:  Remove BUFFERNAME (use location/expr instead).
4383         * parse.y:  Re-do BUFFER handling (similar to previous EVENT change).
4384         * grant.c (raw_decode_mode):  Re-do BUFFER mode handling.
4385         * ch-tree (lang_type_record):  Removed max_queue_size field.
4386         * tasking.c (build_buffer_type):  Re-write.
4387         * tasking.c (max_queue_size):  Fix to support buffer modes.
4388         * tasking.c (buffer_element_mode), ch-tree.h:  New function.
4389         * tasking.c ch-tree.h (expand_send_buffer):  Now has 3 parameters.
4390         * parse.y (modename):  No longer match SIGNALNAME.  Instead, add it
4391         to name and simple_name_string.  This removes a reduce/reduce conflict.
4392         * Makefile.in (stamp-parse):  Expect fewer conlicts.
4393
4394         * lex.l (yywrap):  Move check for circularly seizeing current
4395         grant-file from here ...
4396         * lex.l (handle_use_seizefile_directive):  ... to here.
4397         This is to avoid calling stat on a not-yet written grantfile,
4398         now that we're using same_file (which calls stat).
4399         * grant.c (set_use_this_gf):  Removed.
4400         * grant.c (set_default_grant_file):  Set grant_file_name here,
4401         because we need it earlier (due to above lexer change).
4402
4403         * typeck.c (layout_chill_struct_type):  Remove useless code to
4404         remove zero-width bitfield (which messes up CONST_DECLs).
4405
4406 Sat Apr 23 13:16:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4407
4408         * Makefile.in (check): Assure that 'ld' is available before checking.
4409
4410 Thu Apr 21 13:23:54 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4411
4412         * grant.c (print_an_int):  Removed.
4413         (raw_decode_mode):  Generalized to use decode_constant
4414         instead of print_an_int.
4415         (decode_constant):  Print directly, instead of calling print_an_int.
4416         * parse.y (event_list):  Fix syntax.
4417         * parse.y (optqueuesize):  Default is NULL_TREE, not zero.
4418         * tasking.c (check_queue_size):  New function, for error checking.
4419         * ch-tree.h:  Add declaration for check_queue_size.
4420         * satisfy.c (satisfy case RECORD_TYPE):  Satisfy constant fields
4421         (used for queue size of EVENT and BUFFER), and call check_queue_size.
4422
4423 Tue Apr 19 13:42:41 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4424
4425         Re-implement EVENT modes to support general EVENT objects
4426         (and not just EVENT names), according to Z200.  (Not finished!)
4427         * tasking.c, ch-tree.h (max_queue_size):  New function.
4428         * parse.y (dcalternative, event_list, event_list_head):  New
4429         implementation of DELAY CASE, avoiding parsing ambiguities.
4430         (call, locdec, delayaction):  Remove old EVENTNAME kludges.
4431         * lex.l (name_type_signal):  Remove EVENTNAME recognition.
4432         * tasking.c (build_event_type):  Re-written.
4433         * typeck.c (chill_similar), decl.c (print_lang_type):
4434         Use new max_queue_size function.
4435         * typeck.c (layout_chill_struct_size):  Ignore CONST_DECL.
4436         * tasking.c (build_delay_action):  Preliminary changes - just to
4437         make it compile.  FIXME!
4438         * grant.c (raw_decode_mode):  Use new max_queue_size function.
4439         Move EVENT support from LANG_TYPE to RECORD_TYPE.
4440         * ch-tree.h (process_event_decls):  Removed.
4441
4442 Tue Apr 19 11:44:01 1994  Bill Cox  (bill@rtl.cygnus.com)
4443
4444         * regression.sh: Complete previous change - eliminate all
4445           references to objdir as a user parameter.
4446
4447 Mon Apr 18 10:17:55 1994  Bill Cox  (bill@cygnus.com)
4448
4449         * Makefile.in (check): Simplified regression.sh call.
4450         * regression.sh: Change command-line parsing.  Default
4451           srcdir to the script's path.  Calculate objdir
4452           internally - don't pass it in.
4453
4454 Thu Apr 14 13:30:19 1994  Wilfried Moser  (moser@phishhead.cygnus.com)
4455
4456         * expr.c (build_chill_duration): Add range checking.
4457
4458         * lex.l (init_lex): Add predefined names DURATION and TIME.
4459         * lex.h (enum rid): Add RID_DURATION and RID_TIME.
4460         * ch-tree.h: Add prototypes and externals.
4461         * decl.c (init_decl_processing): Add builtin function
4462         descriptions.
4463         * expr.c (build_generalized_call): Add processing of some
4464         builtin's.
4465         * expr.c (build_chill_abstime): New function to process builtin
4466         ABSTIME.
4467         * expr.c (build_chill_inttime_type): New function to built type
4468         for the INTTIME builtin.
4469         * expr.c (build_chill_inttime): New function to process builtin
4470         INTTIME.
4471         * expr.c (build_chill_duration): New function to process builtin's
4472         MILLISECS, SECS, MINUTES, HOURS and DAYS.
4473
4474 Tue Apr 12 11:55:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4475
4476         * lex.l (chill_same_grant_file):  Rename to same_file.  Change to
4477         take two files names rather than two DECLs.  Also check that the
4478         filesystems (st_dev) are equal.  Finally, make static.
4479         * lex.l (handle_use_seizefile_directive):  Check for duplicate
4480         USE_SEIZE_FILE directives using same_file.
4481         * decl.c (pop_module):  Remove dubious call to chill_same_grant_file.
4482
4483 Sun Apr 10 17:19:56 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4484
4485         * decl.c, ch-tree.h (chill_result_decl):  New variable.  Used to
4486         store RESULT value.  (Cannot use DECL_RESULT;  see comment in decl.c.)
4487         * actions.c (chill_expand_result, chill_expand_return):
4488         Use chill_result_decl appropriately.
4489         * ch-tree.h, decl.c, actions.c (saved_result_rtx):  Removed.
4490         Subsumed by chill_result_decl.
4491
4492         * expr.c (chill_expand-expr case CONCAT_EXPR):  Generate temporary
4493         using the mode of the result type, and don't assume it is BLKmode.
4494
4495 Fri Apr  8 17:46:13 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4496
4497         * actions.c (chill_expand_assignment):  Check for compatibility
4498         _after_ "expanding out" a binary operation.  This fixes
4499         the case "STRING //:= CHAR".
4500
4501         * lex.l (equal_number):  Convert symbol to integer_type_node, to
4502         force the value to be INT-derived (and avoid novelty conflicts).
4503
4504 Mon Apr  4 22:06:31 1994  Per Bothner  (bothner@cygnus.com)
4505
4506         * ch-tree.h (CH_FUNCTION_SETS_RESULT):  New flag.
4507         * ch-actions.c (chill_expand_return), ch-tree.h:  Extra
4508         parameter, indicates if implicit return at end of function.
4509         * ch-parse.y:  Modify accordingly.
4510         * ch-actions.c (chill_expand_return):  Various improvements.
4511
4512         * decl.c, ch-tree.h (result_never_set):  New variable.
4513         * actions.c (chill_expand_result, chill_expand_return):  Clear it.
4514         * ch-parse.y (end_function):  Warn if no RETURN or RESULT action.
4515
4516         * decl.c, ch-tree.h (saved_result_rtx):  New variable.
4517         * decl.c (start_chill_function):  Use saved_result_rtx as return
4518         value if there is a RESULT in a REG that might get clobbered.
4519         * actions.c (chill_expand_result):  Save result in saved_result_rtx
4520         or assign to DECL_RESULT as appropriate.
4521         * decl.c, ch-tree.h (current_function_returns_value,
4522         current_function_returns_null, current_extern_inline):
4523         Don't use.  Only define first two to allow linking with ch-typeck.c.
4524
4525         * typeck.c (chill_l_equivalent):  Add forward declaration.
4526
4527 Fri Apr  1 11:02:27 1994  Wilfried Moser  (fs_moser at rcsw47)
4528
4529         * lex.l (readstring): Handle control sequence in all cases (Z.200
4530         5.2.4.4 page 54).
4531
4532 Fri Apr  1 13:11:27 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4533
4534         * configure:  Simplify and fix the logic for looping through
4535         sub-directories.
4536
4537 Thu Mar 31 18:59:57 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4538
4539         * ch-tree.h (CH_L_EQUIVALENT):  Moved from typeck.c.
4540         * typeck.c (chill_similar):  Add support for checking
4541         FUNCTION_TYPEs for similarity.  Also, treat
4542         pointer-to-function-type the same as function-type.
4543
4544 Thu Mar 31 11:22:56 1994  Wilfried Moser  (fs_moser at rcsw47)
4545
4546         * ch-tree.h: Change prototype of function expand_send_signal.
4547         * parse.y: Change calls to expand_send_signal.
4548         * tasking.c (expand_send_signal): Change handling of optsetto
4549         argument. New argument signame to get a possible destination
4550         process for the signal.
4551
4552 Wed Mar 30 14:54:48 1994  Wilfried Moser  (fs_moser at rcsw1j)
4553
4554         * tasking.c (make_process_struct): Change error message in case of
4555         a process argument has other attribute then IN or LOC.
4556         * tasking.c (build_start_process): Add check that the optset is
4557         referable in case it is specified (this makes
4558         noncompile/start_.ch working).
4559
4560 Tue Mar 29 13:24:27 1994  Wilfried Moser  (fs_moser at rcsw1h)
4561
4562         * Makefile.in: Change version string to 1.2.1
4563         * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4564           entries.
4565         * ch-tree.h: Change prototype for build_chill_readtext.
4566         * decl.c (init_decl_processing): Add builtin_function _readstring,
4567           _readunixstd and READTEXT.
4568         * expr.c (build_generalized_call): Add processing of READTEXT.
4569           Delete handling of no longer valid builtin_functions.
4570         * gperf: Remove keyword READTEXT.
4571         * parse.y: Remove token READTEXT.
4572         * inout.c (build_chill_io_list_type): Add building type for
4573           READTEXT.
4574         * inout.c (build_chill_readtext): Implement the function
4575           (partial).
4576         * inout.c (build_chill_writetext): Do some cleanups.
4577
4578 Tue Mar 29 12:30:59 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4579
4580         * typeck.c (build_chill_cast):  Re-arrange, to support casts
4581         of const integer to type of different size, if there is
4582         an integral type of the desired size:  Go through the
4583         const conversion code.
4584
4585         * actions.c (adjust_parm_or_field):  Move support for LOC to ...
4586         * expr.c (build_chill_function_call): ... here.
4587         Fix a number of bugs in OUT/INOUT handling.
4588
4589         * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4590         parse.y (location), typeck.c (chill_comptypes):  Remove unused
4591         support for ENCAPSULATED_ARRAY_P.
4592         * typeck.c (build_chill_array_parm_type), ch-tree.h:  Remove; unused.
4593
4594         * ch-tree.h, decl.c (shadow_record_fields), decl.c
4595         (shadow_record_fields), expr.c (chill_expand_case_expr,
4596         build_chill_function_call), grant.c (chill_finish_compile),
4597         typeck.c (build_empty_string, build_init_struct):  Rename magic
4598         identifiers of the form "<...>" to "__..." for better portability.
4599
4600         * actions.c (adjust_parm_or_field):  Remove extraneous
4601         call to build_chill_repetition_op.
4602         * expr.c (build_chill_function_call):  Some simplifictions
4603         (since neither valtail nor typetail can be NULL).
4604         Clean up error message for OUT//INOUT not location to use only 1 line.
4605         Add error message for OUT/INOUT if type is READonly.
4606         * typeck.c (build_chill_modify_expr):  Simplify.
4607
4608 Sun Mar 27 19:30:25 1994  Bill Cox  (bill@rtl.cygnus.com)
4609
4610         * Makefile.in: Clean up generally.  Assure that
4611           runtime is built before running regressions.
4612           Build correct parameters to regression.sh.
4613           Remove a lot of 'clean' cruft.
4614         * Make-lang.in, config-lang.in: New files for
4615           subdirectory architecture.
4616
4617 Sat Mar 26 10:39:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4618
4619         * Makefile.in (check): Build correct parameters for regression.sh.
4620
4621 Fri Mar 25 10:13:06 1994  Bill Cox  (bill@rtl.cygnus.com)
4622
4623         * configure: Also mark regression.awk3 as executable.
4624         * regression.sh: Add comments about command-line options.
4625           Calculate srcdir correctly, defaulting to the script's path.
4626           Add OPT flag to pass to the Makefiles, to specify the
4627           compiler's optimization level, and -O  and -O2 options.
4628           Delete GLOBAL flag and tests.  Use a different make.log
4629           file for optimized and unoptimized test results.  Add the
4630           compiler's host and target triples to the report header.
4631
4632 Wed Mar 23 21:41:26 1994  Bill Cox  (bill@rtl.cygnus.com)
4633
4634         * expr.c (build_chill_function_call): Handle INOUT and OUT
4635           parameters better (for the rangefail test, at least).
4636
4637 Wed Mar 23 14:13:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4638
4639         * regression.sh (srcdir, objdir):  Fixed hard-wired paths.
4640         (grep args):  Changed [XYZ-] to [-XYZ] for SCO.
4641
4642 Wed Mar 23 13:34:18 1994  Bill Cox  (bill@rtl.cygnus.com)
4643
4644         * expr.c (build_generalized_call): Revert previous change.
4645           To do this correctly, we need a new parsing mechanism, and
4646           C++ initializer technology.
4647
4648 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4649
4650         * expr.c (build_generalized_call): Be sure we're inside the
4651           module-level function before calling build_gen_inst, for
4652           example.
4653
4654 Wed Mar 23 09:34:50 1994  Bill Cox  (bill@rtl.cygnus.com)
4655
4656         * regression.sh (dodirectory): Count the gcov and abort tests
4657           among the .dat files.
4658
4659 Tue Mar 22 15:39:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4660
4661         * satisfy.c (safe_satisfy_decl):  When checking that a SYN
4662         value fits in a specified discrete type, don't convert first,
4663         and use compare_int_csts instead of tree_int_cst_lt.
4664
4665 Tue Mar 22 15:25:38 1994  Bill Cox  (bill@rtl.cygnus.com)
4666
4667         * configure: Generate better .gdbinit files.
4668
4669 Tue Mar 22 11:59:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4670
4671         * actions.c (check_range):  Don't emit dynamic checks
4672         if not current_function_decl.
4673
4674         * parse.y (arrayindex):  Allow expr (error is emitted
4675         at semantic level if not the NAME of a type).
4676         * typeck.c (build_chill_cast):  Re-enable some casts.
4677         * satisfy.c (safe_satisfy_decl):  Remove redundant CONST check.
4678
4679 Tue Mar 22 11:46:28 1994  Bill Cox  (bill@rtl.cygnus.com)
4680
4681         * configure: Access the utils directory correctly.
4682         * expr.c (build_compare_expr): Reenable compatibility test.
4683
4684 Tue Mar 22 11:24:45 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4685
4686         * typeck.c (valid_array_index_p):  Call
4687         build_compare_discrete_expr instead of build_compare_expr.
4688         * typeck.c (build_chill_cast):  Improve logic.
4689         * satisfy.c (safe_satisfy_decl):  Simplify test.
4690
4691 Tue Mar 22 10:17:58 1994  Bill Cox  (bill@rtl.cygnus.com)
4692
4693         * actions.c (chill_expand_assignment): Correct detection of
4694           string assignment case.
4695         * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4696           the actual parameters need to be converted to the unsigned long
4697           type explicitly.  Do that.
4698         * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4699
4700 Mon Mar 21 16:25:07 1994  Bill Cox  (bill@rtl.cygnus.com)
4701
4702         * Makefile.in: Correct prediction of grammar conflicts.
4703         * actions.c(check_range): Fix reference to NULL_TREE pointer.
4704           And allow compile-time errors even if range_checking is off.
4705         * parse.y: Clean up some comments.
4706         * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4707
4708 Mon Mar 21 13:29:23 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4709
4710         * typeck.c (layout_chill_range_type):  Instead of tree_int_cst_lt
4711         use compare_int_csts (which is more robust when signedness differs).
4712         Also, convert the bounds *after* doing range checking.
4713
4714         * ch-tree.def (SET_IN_EXPR):  New.
4715         * expr.c (chill_expand_expr):  Code to expand SET_IN_EXPR,
4716         moved from expand_expr in ../expr.c.  Also add some extra
4717         conversions (because we're now using build_chill_function-call).
4718         * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4719         Use SET_IN_EXPR in place of IN_EXPR.
4720
4721         * expr.c (build_compare_discrete_expr), ch-tree.h:  New function,
4722         with code moved from build_compare_expr.
4723         * expr.c (build_compare_expr):  Re-enable compatibility test.
4724
4725 Mon Mar 21 11:02:33 1994  Bill Cox  (bill@rtl.cygnus.com)
4726
4727         * Makefile.in: Rewrite byacc related rules.
4728         * actions.c (chill_convert_for_assignment): Use the
4729           referenced type only for generating range checks.
4730         * configure: Add 'utils' directory to SUBDIRS variable.
4731
4732 Sun Mar 20 21:49:59 1994  Bill Cox  (bill@rtl.cygnus.com)
4733
4734         * actions.c (check_range): Call build_compare_expr rather than
4735           build_binary_op.
4736           (adjust_parm_or_field): Call convert_for_assignment rathern than
4737           convert, to get the range-checking.
4738         * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4739           Generate a compile-time message if possible.
4740           (build_compare_expr): Comment out compatibility test - should
4741           not be needed in here.  Fix a couple of typos.  Add some types
4742           to some build calls.
4743
4744 Sun Mar 20 11:48:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4745
4746         * decl.c (init_decl_processing):  Clean up parameter type
4747         list for __setbitpowerset,
4748
4749         * typeck.c (chill_compatible_classes):  Allow the M-reference
4750         to be compatible with the N-value class, with suitable M and N.
4751         * typeck.c (build_chill_slice):  Don't smash a void TREE_TYPE.
4752         (We don't need to, and it causes confusion.)
4753
4754         * expr.c (build_compare_expr):  Fix thinko.  Add save_exprs.
4755
4756         * expr.c (build_compare_expr):   Fix a transcription bug
4757         (for converting NULL INSTANCEs).  Also #include convert.h.
4758
4759         * expr.c (compare_int_csts):  New.  Compare INTEGER_CSTs.
4760         Works even if their types have different TREE_UNSIGNED.
4761         * expr.c (finish_chill_binary_op):  Moved code dealing with
4762         the comparison operators from here ...
4763         * expr.c (build_compare_expr):  ... to new function here.
4764         Also, for discrete types, tries to Do The Right Thing, even for
4765         differing values of TYPE_PRECISION and TREE_UNSIGNED.
4766         the code from lay
4767         * ch-tree.h:  Declare new functions.
4768         * typeck.c (valid_array_index_p):  Various cleanups,
4769         including using new build_parse_expr.
4770         * parse.y:  Use new build_compare_expr.
4771
4772         * inout.c (build_chill_writetext):  Handle REFERENCE_TYPE args.
4773
4774 Sun Mar 20 08:54:27 1994  Bill Cox  (bill@rtl.cygnus.com)
4775
4776         * actions.c (expand_assignment_to_varying_array):
4777           Call build_chill_array_ref to get index checking.
4778           (chill_convert_for_assignment): Delete unused errstr
4779           variable.
4780           (chill_expand_assignment): Call build_chill_array_ref
4781           to get runtime index checking.
4782           (expand_varying_length_assignment): Use new interface
4783           to varying_array_index_p.
4784         * ch-tree.h (varying_array_index_p): New proto.
4785         * convert.c (convert): Call build_chill_array_ref
4786           to get runtime index checking.
4787         * expr.c (build_chill_pred_or_succ): Fix cond tree
4788           to have consistent operand types.
4789         * typeck.c (valid_array_index_p): Change interface to pass
4790           validity conditions back on caller's TREE_LIST.  We
4791           cannot link the conditions to anything which a
4792           layout_type routine will expand, since that will occur
4793            before the exception handler is set up.
4794           Change calls to valid_array_index_p also.
4795
4796 Fri Mar 18 14:40:50 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4797
4798         * actions.c, except.c, loop.c, tasking.c:  Call
4799         build_chill_function_call instead of the C-specific
4800         build_function_call.
4801         * except.c (initialize_exceptions):  Fix parmtype of __builtin_setjmp.
4802         * loop.c (top_loop_end_check):  Coerce library function arg.
4803         * convert.c, expr.c:  Re-write to avoid calls to C-specific
4804         function build_unary_op (e.g. by calling build1 directly).
4805
4806         * typeck.c (chill_equivalent):  Change to force failure
4807         for non-matching integral types (even if not ranges).
4808
4809         * typeck.c, ch-tree.h (build_chill_slice):  Make non-static.
4810         * expr.c (varying_to_slice):  Call build_chill_slice (and not
4811         build_chill_slice_with_length, which does bunches of range
4812         checking and does not allow the length to be zero).
4813         * convert.c (convert):  Fix off-by-one error.
4814         * actions.c (chill_expand_array_assignment):  Minor cleaning up.
4815
4816 Fri Mar 18 00:12:48 1994  Per Bothner  (bothner@deneb.cygnus.com)
4817
4818         * decl.c (init_decl_processing):  __lepowerset and __ltpowerset
4819         take *two* pointer parameters, not one.
4820         * satisfy.c (satisfy):  Only call the appropriate layout routine
4821         if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4822         * typeck.c (build_chill_slice_with_length):  Fix Bill's previous fix.
4823
4824 Thu Mar 17 17:29:43 1994  Bill Cox  (bill@rtl.cygnus.com)
4825
4826         * expr.c (build_chill_function_call): Give function call the correct
4827           type tree.
4828         * typeck.c (build_chill_slice_with_length): Restore dynamic range
4829           checking, so it doesn't obscure the CONSTANTness of the length.
4830
4831 Wed Mar 16 17:23:31 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4832
4833         * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4834         [case CONCAT_EXPR]):  Remove kludge setting slice size upper bound
4835         in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4836         * typeck.c (build_chill_slice):  Use TYPE_MAX_VALUE of
4837         array_type if needed for size upper bound of slice_type.
4838         * expr.c (build_concat_expr):  Improve calculation of size upper bound.
4839
4840         * typeck.c (valid_array_index_p):  Check compatibility using
4841         correct types.
4842         * typeck.c (build_chill_slice_with_length);  For now revert
4843         calling valid_array_index_p on length.  (It makes it harder
4844         to realize when the slice is constant length.)
4845         * expr.c (build_chill_indirect_expr):  Minor tweak.  (This
4846         seems to work around a weird C compiler bug. ??)
4847
4848         * expr.c (build_chill_function_call):  Cleanup so it doesn't
4849         call build_function_call (in c-typeck.c).
4850         * typeck.c, expr.c:  Use build_chill_function_call instead of
4851         build_function_call (in c-typeck.c).
4852
4853         * parse.y (discrete_mode):  Move some of the rules from
4854         non_array_mode into new non-terminal.
4855         (arrayindex):  Use discrete_mode (with NAME and TYPENAME) to
4856         avoid some misparses.
4857         * ch-tree.h (SLICE_PTR, SLICE_LENGTH):  Removed;  unused.
4858         * convert.c (digest_structure_tuple):  Add missing parameter.
4859         * decl.c (comptypes):  Remove unused prototype.
4860         * decl.c (build_chill_function_type):  Handle NULL return_type
4861         correctly (convert to void_type_node).
4862         * decl.c (init_decl_processing):  layout boolean_type_node *after*
4863         we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4864
4865 Wed Mar 16 16:08:22 1994  Bill Cox  (bill@rtl.cygnus.com)
4866
4867         * ch-tree.h: Add prototype.
4868         * convert.c (convert): Correct calculation of padding length.
4869         * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4870           parse.y where it belongs.  This permits the removal of a kludge
4871           in make_process_struct.
4872         * lex.l, parse.y: Call to_global_level for several errors.  Add
4873           code to output error in only one pass.
4874         * tasking.c (make_process_struct): Delete kludge inserted on
4875           March 8.
4876           (build_receive_case_end): Add Wilfried's check for errors.
4877
4878 Tue Mar 15 08:42:12 1994  Bill Cox  (bill@rtl.cygnus.com)
4879
4880         * actions.c: Fix comment.
4881           (build_rts_call): Ifdef it out - never used.
4882           (expand_varying_length_assignment): call valid_array_index_p.
4883           rather than validate_varying_array_ref.
4884         * ch-tree.h: Fix prototype for valid_array_index_p.
4885         * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4886           index validation.
4887           (build_hill_lower, build_chill_upper): Return value now inherits
4888           the novelty of the input parameter.
4889           (varying_to_slice): Use CH_NOVELTY macro rather than calling
4890           chill_novelty directly.
4891         * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4892           to unsigned.
4893           (print_integer_type): Pass string value as APPEND's second parameter.
4894           (decode_decl): Pass a boolean expression as print_proc_tail's
4895           first parameter.
4896           (chill_finish_module_code): Make xmalloc's parameter unsigned.
4897         * lex.l: Pass sizes to xmalloc as unsigned ints.  Pass second
4898           parameter to in_word_set as unsigned.
4899         * loop.c (build_loop_start): Check top_loop_end_check return value.
4900         * parse.y: Add casts to int for third do_decls parameter, fifth
4901           build_loop_iterator parameter, etc.
4902         * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4903         * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4904           valid_array_index): Delete them.  They're now unused.
4905           (valid_array_index_p): Add function, call it everywhere that an
4906           array index is checked.
4907           (build_chill_slice): Restore old functionality where varying_to_slice
4908           is called to handle slices of varying arrays, rather than handling
4909           handling them here.
4910           (build_chill_slice_with_range, build_chill_slice_with_length):
4911           Check range limits for TREE_CONST before calling tree_int_cst_lt.
4912           Delete now-obsolete checks of constant indices.
4913
4914 Mon Mar 14 17:26:51 1994  Per Bothner  (bothner@kalessin.cygnus.com)
4915
4916         * parse.y (modeless_expr):  New rule to allow ([...]) and (if...)
4917         to count as untyped_exprs.  (This is not really permitted by the
4918         Blue Book, but has been requested by customers.)
4919
4920 Thu Mar 10 10:11:02 1994  Bill Cox  (bill@rtl.cygnus.com)
4921
4922         * chill.texi: Document new command-line options.
4923         * expr.c (build_chill_num): Set unsigned parameter for
4924           type_for_size call correctly (unsigned for enums).
4925         * lang.c (lang_decode_option): Add command-line options to
4926           enable/disable runtime range-checking.
4927         * lex.l: Eat more whitespace.
4928
4929 Thu Mar 10 09:41:37 1994  Bill Cox  (bill@rtl.cygnus.com)
4930
4931         * Makefile.in: Have rules to make parse.h, y.tab.c and other
4932           derived files.  This allows the gcc/configure list of CHILL
4933           files machinery to work.
4934         * ch-tree.h (permanent_allocation): Add a parameter flag.
4935         * decl.c (finish_chill_function, finish_decl): Provide the
4936           new permanent_allocation flag.
4937           (poplevel): Return early, avoid a seg fault.
4938         * lex.l (NORMAL): Replace this whole state with the predefined
4939           INITIAL state.  Force compilation state to global level after
4940           compiler directive error - prevents endless loop on error.
4941           (handle_use_seizefile_directive): Rewrite for readability.
4942           (chill_same_grant_file): Reindent.
4943           Generally handle whitespace differently.
4944         * regression.prpt: Print ten PR numbers per line.  The report's
4945           getting too long.
4946
4947 Wed Mar  9 09:58:51 1994  Bill Cox  (bill@rtl.cygnus.com)
4948
4949         * decl.c (do_decl): Suppress the string-assignment-condition
4950           error - it was too often seen.
4951         * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4952           runtime-changing length (as in a slice), get the parent array's
4953           allocation size from its type tree.
4954         * typeck.c (build_chill_slice): Support VARYING arrays.  Pass
4955           parent array's static allocation size along in the slice type.
4956
4957 Wed Mar  9 08:54:24 1994  Bill Cox  (bill@rtl.cygnus.com)
4958
4959         * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4960
4961 Tue Mar  8 11:51:10 1994  Bill Cox  (bill@rtl.cygnus.com)
4962
4963         * expr.c (build_chill_sizeof): Fix typo in error msg, add
4964           some whitespace.
4965         * lex.l (name_type_signal): Add debug output.
4966         * parse.y (call):  Allow EVENTNAME and BUFFERNAME parameters
4967           to a call, so that SIZE () works on them.
4968         * tasking.c (make_process_struct): Force ignore_exprs non-zero
4969           when processing a SEIZEd PROCESS declaration.  This prevents
4970           grox-fixed_fields from returning a NULL, and indirectly protects
4971           the chill_integer_type_node tree from corruption.
4972
4973 Mon Mar  7 19:14:05 1994  Bill Cox  (bill@rtl.cygnus.com)
4974
4975         * Makefile.in: Use the 'all' target to build the runtime
4976           library and chillrt0.o.
4977         * README: Explain rules for files in this directory.
4978         * addtest, addtest.man, build-release,
4979           chill.regress.cron: Move to utils subdirectory.
4980         * expr.c (build_chill_function_call): Mark the INOUT
4981           temporary so it doesn't get optimized into a
4982           register.  Fixes the execute/inout.ch bug.
4983         * typeck.c (layout_chill_range_type): Restrict it
4984           from complaining about an empty string type's
4985           bounds (0:-1).
4986
4987 Mon Mar  7 09:06:39 1994  Bill Cox  (bill@rtl.cygnus.com)
4988
4989         * Makefile.in (compiler): Restore this target.
4990           (OBJS, BC_OBJS): Delete unused variables.
4991           Add $(FLAGS_TO_PASS) to sub-make invocations.
4992         * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
4993           tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
4994
4995 Sat Mar  5 18:37:50 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
4996
4997         * except.c (finish_handler_array): When computing address of
4998         the array ex_decl, don't call build_array_ref.
4999
5000 Sat Mar  5 17:43:36 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5001
5002         * loop.c (declare_temps): Force powerset temp to memory.
5003
5004 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
5005
5006         * typeck.c (layout_chill_range_type): Convert highval and
5007           lowval to a common type before range-checking them.
5008
5009 Fri Mar  4 11:20:44 1994  Bill Cox  (bill@rtl.cygnus.com)
5010
5011         * ch-tree.h: Add loop-related prototypes.
5012         * decl.c, grant.c: Fix -Wall violations.
5013         * parse.y: Fix format of %type directives.
5014
5015 Fri Mar  4 10:04:18 1994  Wilfried Moser  (fs_moser at rcsw1h)
5016
5017         * Makefile.in: Update version number.
5018         * expr.c: Fix a comment.
5019         * inout.c (build_chill_writetext): Add handling of a REAL.
5020         * lex.l (INITIAL): Remove all code to discard 'header lines'.
5021           no longer needed.
5022         * parse.y (optheader): Remove - it's obsolete, as is the
5023           HEADEREL token definition.
5024
5025 Fri Mar  4 09:41:18 1994  Bill Cox  (bill@rtl.cygnus.com)
5026
5027         * addtest: Fix suffix removal when suffix is .c186.
5028         * regression.sh: Allow for underscores on PR filenames.
5029         * typeck.c: Check in the rewrite mentioned earlier.
5030
5031 Thu Mar  3 09:42:10 1994  Wilfried Moser  (fs_moser at rcsw1h)
5032
5033         * tasking.c (build_process_header): Build a debug structure
5034           for easier access to PROCESS parameters.
5035
5036 Thu Mar  3 09:42:10 1994  Bill Cox  (bill@rtl.cygnus.com)
5037
5038         * typeck.c (*string_assignment_condition): Complete rewrite
5039           of a verbose first draft.
5040
5041 Wed Mar  2 16:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5042
5043         * actions.c (adjust_return_value): Simplify.
5044           Delete references to CH_RETURNS_LOC, extra parameters to
5045           push_extern_function and start_chill_functions.
5046           (convert_for_assignment): Check whether to generate runtime
5047           range-checking code.  Handle reference_type in convert call.
5048           (chill_expand_assignment): Produce an INDIRECT_REF for a
5049           reference_type on the LHS.  Delete conversions subsumed by
5050           convert_for_assignment.
5051         * ch-tree.h: Delete parameters from prototypes.
5052         * decl.c (print_lang_decl): Print out signal flag.
5053           (push_extern_function, start_chill_function): Delete
5054           extra parameters, references to CH_RETURNS_LOC.
5055         * grant.c (chill_finish_compile): Delete extra parameter.
5056         * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
5057           push_extern_function and start_chill_functions.
5058         * regression.sh (checkprms): Skip PRMS discrepancies if we
5059           can't access PRMS for some reason.
5060         * satisfy.c: Correct indentation.
5061         * tasking.c (build_process_header): Delete extra parameters
5062           passed to push_extern_function and start_chill_functions.
5063
5064 Wed Mar  2 10:33:50 1994  Bill Cox  (bill@rtl.cygnus.com)
5065
5066         * addtest: Require a fill filename.  Be more careful about
5067           adding the same test twice.
5068         * expr.c: Add FIXME to comment.
5069         * regression.sh: Add configure script call.
5070
5071 Tue Mar  1 16:24:20 1994  Wilfried Moser  (fs_moser at rcsw1h)
5072
5073         * Makefile.in: Change version of chill to 1.1.2
5074         * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
5075
5076 Tue Mar  1 07:34:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5077
5078         RETURN of LOC value is only half-baked.  Stay tuned...
5079         * actions.c (adjust_parm_or_field): Add to comment.
5080           (adjust_return_value): New function for issuing errors about
5081           RETURN and RESULT expressions.  Also converts them.
5082           (chill_expand_result, chill_expand_return): Call new
5083           adjust_return_value function.
5084         * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
5085           New parameter for push_extern_function and start_chill_function.
5086         * decl.c (push_extern_function, start_chill_function): New parameter
5087           to say whether return value is a LOC.
5088         * expr.c (build_chill_indirect_ref): Further qualify the issuing
5089           of the error message.
5090         * grant.c (raw_decode_mode): Move test for instance mode under
5091           STRUCT handling.
5092           (start_chill_module_code, chill_finish_compile): Add new
5093           parameter to start_chill_function calls.
5094         * parse.y (get_type_of): Do lookup_name more often.
5095           (quasi_pdef, procedure, procmode, optresultspec): Set
5096           CH_RETURNS_LOC flag.
5097           (optresultattr): Code keywords as a bitmask.
5098         * tasking.c (build_process_header): Add new parameter to
5099           start_chill_function call.
5100
5101 Sat Feb 26 12:49:05 1994  Bill Cox  (bill@rtl.cygnus.com)
5102
5103         * Makefile.in: Replace undefined $(RM) with rm -f.
5104         * configure: Make sure scripts are executable.
5105         * regression.sh: Make variables to invoke make
5106           and awk.  Don't process a directory if it
5107           doesn't exist.
5108
5109 Fri Feb 25 14:48:48 1994  Bill Cox  (bill@rtl.cygnus.com)
5110
5111         * Makefile.in (check): Force the building of ../gcov and
5112           ../xgcc before testing.  Move the printf dependency here
5113           since we don't need it until we're testing.
5114         * addtest: Strip suffix from each input filename.
5115         * decl.c (do_decl): Correct error checking.  Call
5116           string_assignment_condition for some of it.
5117         * tasking.c (build_gen_inst): Add ability to pass an integer
5118           for either the process ID or the copy number.  If a number
5119           is passed, range-check it against the CHILL unsigned type
5120           limits.
5121           (build_buffer_descriptor): Add draft code to check the buffer
5122           name for correctness.
5123
5124 Wed Feb 23 15:07:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5125
5126         New cleaner solution to the following problem:
5127         Chill allows an action to be followed by an ON-handler.
5128         But we don't know if an action has a handler until we've parsed
5129         its end, yet we want to generate extra code to set up an
5130         exception handling contour only if needed.  The old solution
5131         would generate code for the action into an rtl sequence, and then
5132         splice in the exception-setup code if we later found we needed it.
5133         This has a few problems (for example it confuses the management
5134         of stack temporaries), and is ugly.  Now that the compiler is 2-pass
5135         we have a cleaner solution:  In pass 1, we remember which actions
5136         were followed by ON-handlers.  In pass 2, we use this information
5137         to generate appropriate code before an action.
5138         * except.c (push_handler, pop_handler):  In pass 1, set up data
5139         structures (global_handler_list) to remember if an action has an
5140         ON-handler.  In  pass 2, digest this information, and setup
5141         handler if needed.
5142         * except.c, actions.h (pop_handler):  Take an extra int arg.
5143         * except.c (emit_setup_handler):  New function, with code (moved
5144         from chill_start_on) to emit code before an action that has a handler.
5145         * except.c (except_init_pass_2):  New function.
5146         * parse.y (pass1_2):  Call except_init_pass_2 before pass 2.
5147         * parse.y (POP_UNUSED_ON_CONTEXT):  Don't call pop_sequence.
5148         * parse.y:  Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
5149         in pass 1 as well as pass 2.
5150         * parse.y (BEGIN ... END):  Re-arrange logic to avoid block_stack
5151         (local to ../stmt.c) getting out of sync.
5152         * actions.c (push_action):  Don't need to emit a NOP,
5153         now that we're no longer moving sequences around.
5154         * actions.c (push_action):  Call push_handler even in pass one.
5155
5156 Wed Feb 23 11:06:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5157
5158         * decl.c (do_decl): Check for possible overflow in initializing
5159           a declared variable.
5160         * expr.c (build-chill_indirect_ref): Add error message for
5161           a syntax error that C programmers converting to CHILL are
5162           quite likely to make.
5163         * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
5164           seg-faulting.
5165
5166 Tue Feb 22 17:54:43 1994  Bill Cox  (bill@rtl.cygnus.com)
5167
5168         * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
5169           defined.  Build chill script differently, and build an install script.
5170           Add an action to run the regression test.
5171         * actions.c (chill_expand_assignment): Change
5172           string_assignment_condition call.
5173         * ch-tree.h: Add prototype.
5174         * expr.c (build_chill_function_call): Change
5175           string_assignment_condition call.
5176         * satisfy.c (safe_satisfy_decl): Add check that string INIT value
5177           will fit in the declared mode.
5178         * typeck.c (string_assignment_condition): Add flag to disable
5179           runtime code generation.  Add code to generate runtime test.
5180
5181 Mon Feb 21 14:04:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5182
5183         * Makefile.in (check): Add target to trigger a regression test.
5184
5185 Mon Feb 21 13:54:20 1994  Bill Cox  (bill@rtl.cygnus.com)
5186
5187         * decl.c (do _based_decls): Add error check for
5188           decls BASED on a PROC or PROCESS name.
5189
5190 Mon Feb 21 13:24:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5191
5192         * grant.c (chill_finish_compile): Bypass handling
5193           module-level code if an earlier error has made
5194           is useless.
5195         * tasking.c (build_start_process): Generate error,
5196           return if process name unknown.
5197
5198 Mon Feb 21 14:29:41 1994  Wilfried Moser  (fs_moser at rcsw47)
5199
5200         * expr.c (build_generalized_call): Use
5201           build_arrow_expr semantics for ADDR () builtin.
5202
5203 Mon Feb 21 12:49:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5204
5205         * tasking.c (build_gen_inst): Output correct
5206           constructor for GEN_INST.
5207
5208 Mon Feb 21 08:14:59 1994  Wilfried Moser  (fs_moser at rcsw47)
5209
5210         * lex.l (yywrap): Fix punctuation error.
5211
5212 Sun Feb 20 19:58:14 1994  Bill Cox  (bill@rtl.cygnus.com)
5213
5214         * regression.sh: Fix cvs update-related commands.
5215           Have cron job always perform the update, so it's
5216           always reporting on the current state of the
5217           sources.
5218         * typeck.c (string_assignment_condition): Allow a
5219           mis-match if the LHS is varying.
5220
5221 Fri Feb 18 18:10:04 1994  Bill Cox  (bill@rtl.cygnus.com)
5222
5223         * actions.c (expand_chill_assignment): Add call to test the
5224           string assignment condition.
5225         * expr.c (build_chill_function_call):  Add call to test the
5226           string assignment condition.
5227         * regression.awk2: Report WITHDRAWN PRs as well.
5228         * regression.sh: Delete extra commentary about FEEDBACK PRs.
5229         * typeck.c (string_assignment_condition): Add function to
5230           perform the check.
5231
5232 Fri Feb 18 16:30:40 1994  Bill Cox  (bill@rtl.cygnus.com)
5233
5234         * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
5235           and exclude them from the regression test report.  Mark them
5236           in the list of PRs as 'W' status.
5237
5238 Thu Feb 17 09:13:42 1994  Wilfried Moser  (fs_moser at rcsw47)
5239
5240         * Makefile.in: Define a version number.  Build chill script
5241           differently.  Makefile depends upon ../configure, not configure.
5242         * chill.in: Define some new flags.
5243
5244 Wed Feb 16 19:44:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5245
5246         * grant.c (decode_constant): Restore a 'return result' statement
5247           that seems to have gotten lost.
5248
5249 Wed Feb 16 12:37:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5250
5251         * ch-tree.h (various STRING-type macros):  Use new TYPE_STRING_FLAG.
5252
5253         * typeck.c (make_chill_array_type):  Remove unused args.
5254         Simplify to build only one-dimensionsal arrays, so change
5255         index list to single index.  Call layout_chill_array_type
5256         if pass!=1.  And rename to:  build_simple_array_type.
5257         * typeck.c (layout_chill_array_type):  Only recurse
5258         if TREE_TYPE has not been laid out.
5259         * typeck.c (build_chill_array_type):  Update accordingly.
5260         * typeck.c (build_chill_slice):  Replace calls to build_array_type
5261         (which does hash-canonicalization, which breaks if we later set
5262         the TYPE_STRING_FLAG) by calls to build_simple_array_type.
5263         * convert.c (convert):  The same.
5264
5265         * grant.c (decode_constant):  Clean up.  Remove remnants of switch
5266         on TREE_TYPE of the value, and fold those cases into first switch.
5267
5268 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5269
5270         * Makefile.in: Add printf as a dependency of ../cc1chill.
5271         * regression.sh: Make srcdir and objdir really work.
5272
5273 Wed Feb 16 09:12:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5274
5275         * expr.c (build_char_array_expr): Fix spelling
5276           error in error msg.
5277         * tree.c (build_string_type): Make check for overlarge
5278           string more robust.
5279
5280 Wed Feb 16 02:37:43 1994  Mike Stump  (mrs@cygnus.com)
5281
5282         * grant.c (decode_constant): Remove useless tests
5283         for STRING_TYPE (which isn't used by anyone, including CHILL).
5284
5285 Tue Feb 15 15:35:07 1994  Bill Cox  (bill@cygnus.com)
5286
5287         * build-release:  Add refinements to checkout commands.
5288         * decl.c (init_decl_processing): Move initialization of
5289           chill_unsigned_type_node before 1st call to build_string_type.
5290         * tree.c (build_string_type): Add compile-time test of string
5291           allocated length.
5292         * typeck.c (layout_chill_range_type): Add compile-time range limit
5293           checking.
5294
5295 Tue Feb 15 08:55:37 1994  Bill Cox  (bill@cygnus.com)
5296
5297         * Makefile.in:  Add stamp-chill-objs as a dependency of ../cc1chill.
5298         * regression.sh: Rename test directory names.
5299
5300 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5301
5302         * Makefile.in: Change interface with parent directory's
5303           Makefile, decoupling the lists of each others' files.
5304
5305 Mon Feb 14 09:24:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5306
5307         * lex.l: Delete obsolete comment.
5308         * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
5309           instance constructor.
5310
5311 Mon Feb 14 04:04:16 1994  Bill Cox  (bill@rtl.cygnus.com)
5312
5313         * lex.l (maybe_number): Add octal to numbers
5314           handled by Feb 1 change.
5315
5316 Sat Feb 12 16:24:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5317
5318         * actions.c, convert.c, decl.c, expr.c, lex.l,
5319           tasking.c, typeck.c: gcc -Wall cleanups.
5320         * ch-tree.h: Change loop-related prototypes.
5321         * loop.c, parse.y: Rewrite to set up correct loop scope.
5322           Fix error path where loop variable not declared.
5323
5324 Fri Feb 11 11:12:29 1994  Bill Cox  (bill@rtl.cygnus.com)
5325
5326         * Makefile.in: Add rule to build printf.  Make it a dependency
5327           of ../cc1chill.
5328         * printf.c: New tool for regression testing script.
5329         * regression.sh: Look for print in ${objdir}.
5330
5331 Thu Feb 24 17:31:12 1994  Wilfried Moser  (fs_moser at rcsw1j)
5332
5333         * tasking.c (build_gen_inst): Allow integer expression as argument
5334           1 to this function. This was a change request to get rid of
5335           unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
5336           or STRUCT (t UINT, c UINT).
5337
5338 Thu Feb 10 09:49:31 1994  Bill Cox  (bill@rtl.cygnus.com)
5339
5340         * regression.awk3: Recognize upper-case PRMS state names.
5341
5342 Wed Feb  9 15:26:19 1994  Bill Cox  (bill@cygnus.com)
5343
5344         * parse.y (dowithaction): Allow EXIT from DO WITH.
5345
5346 Tue Feb  8 13:13:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5347
5348         * configure: Change to require grant.c for evidence that we've
5349           found the source directory.
5350         * decl.c (init_decl_processing): delete unused builtin_slice
5351           function declaration.
5352         * expr.c (chill_expand_expr): Calculate powerset's length
5353           correctly, calling powersetlen to do it.
5354         * regression.sh: Replace BASE references with objdir references.
5355         * typeck.c (build_chill_slice): Build the compound expression
5356           in the right order.
5357
5358 Mon Feb  7 15:56:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5359
5360         * expr.c (build_chill_lower, build_chill_upper): Handle
5361           LOC parameter types.
5362         * regression.sh: Correct path to executable sub-shell-scripts.
5363
5364 Mon Feb  7 11:33:47 1994  Bill Cox  (bill@rtl.cygnus.com)
5365
5366         * regression.sh: Pervasive changes to allow for separate
5367           source and object directories.
5368
5369 Wed Feb  2 17:5620 1994  Bill Cox  (bill@rtl.cygnus.com)
5370
5371         * decl.c (find_implied_typed): Delete obsolete reference to
5372           PROCESS_TYPE.
5373         * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
5374           obsolete.
5375
5376 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5377
5378         * Makefile.in: Delete bogus runtime/Makefile lines.
5379         * configure: Build testsuite directory.
5380
5381 Wed Feb  2 13:37:56 1994  Bill Cox  (bill@rtl.cygnus.com)
5382
5383         * configure: Correct srcdir for chill.examples directory.
5384
5385 Wed Feb  2 11:24:57 1994  Wilfried Moser  (fs_moser at rcsw47)
5386
5387         * ch-parse.y (rule call): Add
5388               BUFFERNAME LPRN untyped_expr RPRN
5389           to enable generating a descriptor same as for SIGNALS.
5390         * ch-tasking.c (generate_tasking_code variable,
5391           decl_tasking_code_variable): Implement overflow check of
5392           taskingcode in case a tasking code is specified with the
5393           compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
5394           PROCESS_TYPE.
5395
5396 Wed Feb  2 09:31:37 1994  Bill Cox  (bill@rtl.cygnus.com)
5397
5398         * configure: Add ${srcdir} to Makefile.in's path.
5399         * loop.c: Delete unused whitespace.
5400
5401 Tue Feb  1 17:09:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5402
5403         * expr.c (string_char_rep): Process STRING_CST correctly.
5404
5405 Tue Feb  1 15:29:28 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5406
5407         * expr.c (build_boring_bitstring):  New function.
5408         * expr.c (build_chill_repetition_op):  Fix a number of bugs in
5409         implementation of bitstring repetition.
5410         Also, implement repetition of Booleans.
5411
5412 Tue Feb  1 15:28:21 1994  Bill Cox  (bill@rtl.cygnus.com)
5413
5414         * configure: Delete code to check for gas or ld.  Add code to
5415           store a config.status file in each configured subdirectory.
5416         * expr.c (): Spell concatbitstring as concatps, which is the
5417           runtime routine name.
5418         * regression.sh: Force use of GNU make.
5419
5420 Tue Feb  1 15:22:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5421
5422         * tasking.c: Mark compiler-generated temps to prevent
5423           GRANTing them.
5424
5425 Tue Feb  1 17:38:51 1994  Wilfried Moser  (fs_moser at rcsw1j)
5426
5427         * lex.l (equal_number): Improve check for number after = in a
5428           compiler directive.
5429         * tasking.c (build_tasking_struct): Make field TaskValue
5430           pointer to chill_unsigned_type_node.
5431         * tasking.c (generate_tasking_code_variable): Declare tasking
5432           code variable as chill_unsigned_type_node.
5433         * tasking.c (decl_tasking_code_variable): Declare tasking
5434           code variable as chill_unsigned_type_node.
5435
5436 Mon Jan 31 14:01:58 1994  Bill Cox  (bill@rtl.cygnus.com)
5437
5438         * addtest (update_Makefile): No longer build actions - they're
5439           now in pattern rules.
5440         * ch_makedepend: Do the grep first, to avoid processing non
5441           USE_SEIZE_FILE lines.
5442         * configure: Pervasive rewrite to support configuring regression
5443           test directories.
5444
5445 Mon Jan 31 04:35:53 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5446
5447         * typeck.c (build_chill_slice): Compute EXTENT correctly.
5448
5449 Sun Jan 30 14:33:12 1994  Bill Cox  (bill@rtl.cygnus.com)
5450
5451         * tasking.c (build_gen_inst): Return a typed tuple with
5452           INSTANCE type.
5453
5454 Sun Jan 30 12:01:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5455
5456         * actions.c (chill_expand_assignment): Recognize LENGTH builtin
5457           in the left hand side, pass it to
5458           expand_varying_length_assignment.
5459           (expand_varying_length_assignment): Clean up bitrot.
5460         * convert.c (convert): Revert most recent change.
5461         * loop.c (maybe_skip_loop): New function, split out of
5462           begin_chill_loop.  Add conditional to skip processing an empty
5463           VARYING array.
5464         * parse.y (assignaction): Delete code to recognize LENGTH
5465           on left-hand-side.
5466         * typeck.c (validate_varying_array_ref): Correct misleading comment.
5467
5468 Sat Jan 29 10:54:06 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5469
5470         * typeck.c (build_chill_slice): Pass a valid identifier to
5471         `get_unique_identifier'.
5472
5473         * convert.c (convert): Rename LENGTH variable to MAXIDX, and
5474         use correct value for VAR_LENGTH when initializing a varying array.
5475
5476         * decl.c (do_decl): Set DECL_COMMON.
5477
5478         * actions.c (check_range): Temporarily inhibit warnings so the
5479         compiler doesn't warn the user about useless range checks that it
5480         might create.  It's far easier for the compiler to figure out that
5481         a range check need not be done than it is for us to try to figure
5482         it out for ourselves.
5483
5484         * expr.c (build_concat_expr): Generalize to handle bitstrings.
5485         (scalar_to_string): New function.
5486         (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5487         library call (__concatbitstring).
5488
5489 Sat Jan 29 08:43:54 1994  Bill Cox  (bill@rtl.cygnus.com)
5490
5491         * ch_makedepend: Fix the 'sed' command so that seize file
5492           name can be delimited by double quotes as well as apostrophes.
5493
5494 Thu Jan 27 17:26:19 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5495
5496         * typeck.c (my_build_array_ref):  Do constant folding.
5497
5498 Thu Jan 27 16:24:24 1994  Bill Cox  (bill@rtl.cygnus.com)
5499
5500         * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5501           decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5502           lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5503           tree.c, typeck.c: New 'Copyright' line for 1994.
5504
5505 Thu Jan 27 14:12:07 1994  Mike Stump  (mrs@cygnus.com)
5506
5507         * configure: Don't configure this directory with this configure,
5508         just subdirectories and cleanup.
5509         * Makefile.in (Makefile): Run config.status in parent directory,
5510         if we need rebuilding.
5511
5512 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5513
5514         * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5515           Thanks, Zoo!
5516
5517 Thu Jan 27 10:37:33 1994  Bill Cox  (bill@rtl.cygnus.com)
5518
5519         * expr.c (build_concat_expr): Fix SunOS portability problem.
5520
5521 Wed Jan 26 14:57:39 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5522
5523         * convert.c (digest_powerset_tuple):  New function, used to set
5524         TREE_CONSTANT and TREE_STATIC properly.
5525         (digest_structure_tuple, convert (NULL to instance, non-varying
5526         to varying)):  Set TREE_CONSTANT and TREE_STATIC when appropriate.
5527         * expr.c (varying_to_slice):  Preserve novelty of slice type.
5528         * expr.c (build_concat_expr):  Make sure class of result is
5529         correct (including correct novelty).
5530         * satisfy.c (safe_satisfy_decl):  If value of CONST_DECL is
5531         not TREE_CONSTANT, emit an error.
5532         * typeck.c (build_chill_slice):  Preserve novelty of result.
5533         * typeck.c (build_chill_slice):  Simplify for varying argument
5534         (by using varying_to_slice).
5535         * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5536         New functions.
5537         * typeck.c (build_chill_cast): Use above new functions to convert
5538         constant expressions.
5539         * typeck.c (copy_novelty), ch-tree.h:  New function.
5540         * chill.texi:  Update for new constant conversion semantics.
5541
5542 Tue Jan 25 14:00:02 1994  Wilfried Moser  (fs_moser at rcsw1j)
5543
5544         * ch-decl.c (init_decl_processing): Add new builtin function
5545           DESCR. Add call to build_chill_descr_type.
5546         * ch-expr.c: Add function build_chill_descr_type, which actually
5547           build the type the DESCR builtin returns.
5548           Add function build_chill_descr, which process the DESCR builtin.
5549         * ch-expr.c (build_chill_length): Add code to enable
5550           LENGTH (bitstring).
5551         * ch-expr.ch (build_generalized_call): Add processing of DESCR
5552           builtin.
5553         * ch-grant.c: Add code to avoid producing of unnecessary grant
5554           files.
5555         * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5556           for build_chill_descr.
5557         * ch-inout.c (build_chill_io_list_type): Change generation of the
5558           type passed to runtime library according to the new definition.
5559         * ch-inout.c (build_chill_writetext): Change processing of format
5560           string that a character constant is allowed as format string if
5561           compiler gets called with -fold-strings option.
5562         * ch-inout.c (build_chill_writetext): Change processing of
5563           integers in case NEWMODE x = INT.
5564         * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5565         * ch-inout.c (build_chill_writetext): Add processing of
5566           bitstrings.
5567
5568 Tue Jan 25 09:07:10 1994  Mike Stump  (mrs@cygnus.com)
5569
5570         * Makefile.in (all, OBSTACK): Build interesting things be default,
5571         and make sure we include OBSTACK.
5572
5573 Sun Jan 23 12:35:38 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5574
5575         * grant.c (decode_constant):  Handle RANGE_EXPR.
5576         Simplify handling of CONSTRUCTOR.
5577
5578         * typeck.c (build_chill_slice):  Use build_chill_array_ref_1,
5579         not build_chill_array_ref.
5580
5581 Sat Jan 22 16:23:30 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5582
5583         * parse.y:  Generate a RANGE_EXPR (instead of a confusing
5584         TREE_LIST) to indicate a range in case and tuple lables.
5585         * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5586         Update accordingly to handle these RANGE_EXPRs.
5587         * satisfy.c (satisfy):  Don't call finish_chill_binary_op
5588         for a RANGE_EXPR.
5589
5590 Fri Jan 21 15:39:36 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5591
5592         * expr.c (force_addr_of):  New function, to encapsulate passing
5593         by reference a powerset or string  to a library function.
5594         * expr.c (build_min_max, build_set_expr):  Use force_addr_of.
5595         * expr.c (chill_expand_expr case CONCAT_EXPR):  Fix passing of
5596         rtl modes.  (Old code fails on 64-bit Alpha.)
5597         * expr.c (build_chill_function_call):  Remove bogues check for
5598         READonly variable passed as parameter.
5599         * expr.c (build_set_expr):  Merge common code.
5600         * parse.y (string repetition):  Fix logic for 2-pass scheme.
5601         * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5602         satisfy.c (satisfy):  Handle REPLICATE_EXPR.
5603         * chill.texi:  Fix typo.
5604
5605 Mon Jan 17 13:55:48 1994  Jim Wilson  (wilson@sphagnum.cygnus.com)
5606
5607         * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5608         tree.c can find ch-tree.h.
5609
5610 Sat Jan 15 15:34:11 1994  Mike Stump  (mrs@rtl.cygnus.com)
5611
5612         * configure: Fix problem so that building in a separate directory
5613         works.
5614
5615 Sat Jan 15 09:51:02 1994  Bill Cox  (bill@rtl.cygnus.com)
5616
5617         * Makefile.in: Recurse down into runtime to
5618           create its Makefile, and to clean up.
5619         * configure: Recurse into runtime to make its Makefile.
5620
5621 Sat Jan 15 09:15:22 1994  Bill Cox  (bill@rtl.cygnus.com)
5622
5623  << This set of CHILL frontend sources is now the
5624     maintainable and master set. Accept no substitutes! >>
5625         * Makefile.in, configure: Completely rewritten
5626           to be invoked by gcc/Makefile.in and
5627           gcc/configure.
5628         * addtest (update_ChangeLog): Fix insertion
5629           of the '*'.
5630         * regression.sh: Add global option to suppress results of
5631           proprietary tests.
5632         * cpy.sh: Add necessary edits to files as they
5633           are copied down.
5634         * actions.c, ch-tree.def, ch-tree.h, convert.c,
5635           decl.c, except.c, expr.c, grant.c, inout.c,
5636           lang.c, lex.h, lex.l, loop.c, parse.y,
5637           satisfy.c, tasking.c, typeck.c: Latest
5638           versions from the repository.
5639
5640 Fri Jan 14 12:28:39 1994  Bill Cox  (bill@rtl.cygnus.com)
5641
5642         * addtest: Fix insertion of line into ChangeLog.
5643         * configure: Add a script.
5644         * Makefile.in: Hack from ../Makefile.in
5645         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5646         * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5647
5648 Mon Jan 10 11:38:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5649
5650         * build-release: Rewrite for easier tailoring.
5651
5652 Wed Jan  5 08:38:21 1994  Bill Cox  (bill@cygnus.com)
5653
5654         * actions.c, convert.c, decl.c, except.c, expr.c,
5655           inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5656           Current versions from devo/gcc.
5657
5658 Wed Dec 29 14:07:10 1993  Bill Cox  (bill@rtl.cygnus.com)
5659
5660         * addtest: Don't add comment headers to source or .dat files
5661           if they're already present.
5662
5663 Wed Dec 29 13:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
5664
5665         * mktg_leads: New file.
5666         * regression.sh, regression.awk2: Updated status report scripts.
5667         * addtest: New script to add a test to a directory.
5668         * ch_makedepend: Add full path to ch_decomment.
5669         * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5670           lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5671           Updated copies of actual sources.
5672         * chill.brochure, chill.texi: Update with current status.
5673         * cpy.sh: Script for updating copies of sources.
5674         * chill.patches: New script for creating a patch release.
5675           Pretty rough.
5676
5677 Wed Dec  8 09:35:54 1993  Bill Cox  (bill@rtl.cygnus.com)
5678
5679         * build-release: Delete lots of unused regression-testing cruft.
5680         * chill.brochure: Initial draft of marketing brochure.
5681         * chill.patches: Preliminary script for building patch sets
5682           for CHILL.
5683         * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5684           building a tcov report on the CHILL compiler.
5685
5686 Sun Nov 21 08:34:33 1993  Bill Cox  (bill@rtl.cygnus.com)
5687
5688         * Makefile.in: Adjust gperf rule for names in this directory.
5689         * ch_decomment.l: New file.  Ignores CHILL comments.
5690           Executable is used bu ch_makedepend.
5691         * ch_makedepend: New script.  Makes CHILL dependencies for
5692           Makefiles.
5693         * gperf, hash.h: New files about lexer tokens.
5694         * regression.sh: Delete notes justifying non-summing
5695           report rows.
5696         * regression.awk2: Report PRMS status when there are
5697           missing test results.
5698         * regression.awk3: Add #! line, so this can be used separately.
5699         * Other files: latest versions copied from devo/gcc.
5700
5701 Sat Oct 30 15:02:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
5702
5703         * chill.texi:  Add new node about conversions.
5704
5705 Fri Oct 29 14:17:31 1993  Bill Cox  (bill@cygnus.com)
5706
5707         * chill.regress.cron: Change path to executable, enable PR report.
5708         * regression.awk2: Add terminating periods to messages.
5709         * regression.sh: Change path to testsuites.  Add disclaimer at end
5710           of report.  Print explicit lists of resolved/unresolved PRs.
5711
5712 Thu Oct 28 09:22:20 1993  Bill Cox  (bill@rtl.cygnus.com)
5713
5714         * regression.sh: More PR-related status is printed.
5715
5716 Thu Oct 21 19:24:02 1993  Bill Cox  (bill@rtl.cygnus.com)
5717
5718         * regression.sh: Simplify the paths, make the source
5719           and test files accessed separately from the executables.
5720
5721 Wed Oct 20 16:35:30 1993  Bill Cox  (bill@rtl.cygnus.com)
5722
5723         * regression.sh: Finally fix the file-delete problem.
5724           Thanks, Jeffrey!
5725         * build-release: Make more verbose, fix comment.
5726
5727 Mon Oct 18 00:21:24 1993  Bill Cox  (bill@cygnus.com)
5728
5729         * regression.sh: Build linker if -U option.  Put stderr
5730           into make.log files, too.  Also report on Z.200 examples.
5731         * regression.awk3: New script to help build release note.
5732
5733 Fri Oct 15 16:33:54 1993  Bill Cox  (bill@cygnus.com)
5734
5735         * regression.sh, regression.prpt: Output PR status only
5736           conditionally.  Add command-line flag for CVS updates.
5737
5738 Thu Oct 14 07:53:59 1993  Bill Cox  (bill@rtl.cygnus.com)
5739
5740         * regression.sh: Count PRs accurately.
5741         * Makefile.in: New file.
5742
5743 Sat Oct  9 19:46:58 1993  Bill Cox  (bill@rtl.cygnus.com)
5744
5745         * regression.awk?: Add program fragments for
5746           report of PRMS/test exceptions.
5747         * regression.sh: Add options and PRMS reports.
5748
5749 Fri Oct  8 06:44:41 1993  Bill Cox  (bill@rtl.cygnus.com)
5750
5751     Create chill frontend directory, populate it.
5752     Later, the chill-specific frontend files will be moved here.
5753
5754         * chill: Moved here from gcc directory.
5755         * chill.regress.cron: Add crontab file for regression tests.
5756         * regression.sh: Add regression test control script.
5757
5758 #
5759 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5760 #
5761 Sat Jan 15 14:54:07 1994  Bill Cox  (bill@rtl.cygnus.com)
5762
5763         * ch-*.*: All of these files are now moved to the ch subdirectory.
5764         Further update changes should be recorded in the ch/ChangeLog file.
5765
5766 Fri Jan 14 21:09:44 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5767
5768         * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5769         ch-satisfy.c, ch-typeck.c:  Undo all of initializer-related changes
5770         that Tiemann did earlier this month.
5771         * c-typeck.c (really_start_incremental_init):  Save
5772         constructor_elements and (old value of) constructor_stack
5773         on constructor_stack, to allow for nested initializers.
5774         * ch-convert.c (digest_constructor):  If we need a varying
5775         array, and have a constructor (for the array elements),
5776         make sure to use convert so that the constructor gets
5777         wrapped in an implicit record constructor.
5778         * ch-decl.c (do_decl):  If there is no initializer for a
5779         varying array (or bitstring), create default constructor.
5780
5781         * ch-expr.c (build_chill_lower):  Fix thinko for ARRAY_TYPE.
5782         * ch-satisfy.c (safe_satisfy_decl):  Make sure that we make
5783         original decl to check if we need to make an rtl.
5784
5785         * ch-typeck.c (build_chill_array_ref_1), ch-tree.h:  New function
5786         which does the actual work for build_chill_array_ref (which
5787         now just loops over an argument list).
5788         * ch-actions.c, ch-expr.c, ch-inout.c:  Use build_chill_array_ref_1
5789         instead of build_chill_array_ref where appropriate.
5790         * ch-actions.c, ch-expr.c, ch-typeck.c:  Make operand 1 of a
5791         VARY_ARRAY_REF is a single index, not an index list.
5792
5793         * ch-grant.c (__init_list):  Renamed to _ch_init_list, to
5794         avoid a conflict on the Alpha.
5795
5796 Wed Jan 12 10:19:35 1994  Bill Cox  (bill@rtl.cygnus.com)
5797
5798         * ch-lex.l (WS): Add BS, VT and CR to definition of
5799           whitespace.
5800           (convert_number): Allow for uppercase hex digits.
5801
5802 Tue Jan 11 19:43:55 1994  Bill Cox  (bill@cygnus.com)
5803
5804         * ch-actions.c (lookup_and_handle_exit): Correct
5805           conditional so error messages are output.
5806         * ch-expr.c (build_chill_addr_expr): Add error message.
5807         * ch-grant.c (chill_finish_module_code): Avoid abort by
5808           giving the init_list constructor a type.
5809           (chill_finish_compile): Delete unused code.
5810         * ch-lex.l: Make most build_init_2 calls from the
5811           permanent obstack, so that enumeration values endure.
5812         * ch-loop.c (build_chill_iterator): Add several error
5813           messages.
5814
5815 Tue Jan 11 12:31:55 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5816
5817         * ch-expr.c, ch-typeck.c:  Rewrite some instances of
5818         'struct ch_class class = chill_expr_class (expr);' to
5819         'struct ch_class class; class = chill_expr_class (expr);'
5820         to work around a bug in /usr/ucb/cc on SunOS4.
5821
5822 Mon Jan 10 18:29:36 1994  Bill Cox  (bill@rtl.cygnus.com)
5823
5824         * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5825         * ch-expr.c (expand_packed_set): Add new parameter to pass
5826           set's minimum ordinal value.  Fix loop invariant problem.
5827           (fold_set_expr): Change to add new parameter to
5828           expand_packed_set call.
5829         * ch-grant.c: Move extern declaration to ch-tree.h.
5830         * ch-lex.l (convert_bitstring): Also output the bitstring
5831           if yydebug is set.
5832         * ch-tree.h: Add prototype.
5833
5834 Mon Jan 10 11:29:41 1994  Bill Cox  (bill@rtl.cygnus.com)
5835
5836         * ch-inout.c: Fix comment.
5837         * ch-tree.h: Add prototype.
5838
5839 Sun Jan  9 18:22:22 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5840
5841         * ch-tree.h (chill_expr_class):  New prototype.
5842         * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5843         Convert result to correct class.
5844         * ch-expr.c (build_chill_repetition_op):  Preserve CH_DERIVED_FLAG.
5845         Also, fix some bugs for bitstrings (with ranges).
5846
5847         (Patches from Tiemann.)
5848         * ch-convert.c (convert1):  New function to force TREE_TYPE.
5849         (convert):  Use convert1 where appropriate.
5850         * ch-typeck.c:  Formatting change.
5851         * ch-parse.y (build_chill_constructor):  Fix thinko.
5852
5853         * ch-expr.c (varying_to_slice):  If array is not referable,
5854         call save_expr on it, rather than stabilize_reference.
5855         * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5856         Don't force value to value class if mode is not explicitly
5857         specified.  Also, make sure convert etc is only done once.
5858
5859 Sat Jan  8 16:37:10 1994  Per Bothner  (bothner@kalessin.cygnus.com)
5860
5861         * ch-decl.c (build_chill_function_type):  Don't call
5862         build_function_type, because it does hash canonicalization,
5863         which once in a while looses badly.
5864         * tree.c (build_function_type):  Remove no-longer-needed test
5865         for doing_chill_thang.
5866
5867         * ch-tree.h (CH_DERIVED_FLAG):  New flag.
5868         * ch-tree.h (enum ch_expr_class):  Renamed to ch_class_kind.
5869         (struct ch_class):  New type, used to represent a Chill
5870         'class' as a first-class value.
5871         (CH_ROOT_RESULTING_MODE):  Replaced by CH_ROOT_RESULTING_CLASS.
5872         * ch-typeck.c (chill_expr_class):  Change interface to return
5873         a struct ch_class.
5874         (chill_compatible, chill_compatible_classes):  Update accordingly.
5875         (chill_root_resulting_mode):  Replace by ....
5876         (chill_root_resulting_class):  ... new function.
5877         * ch-convert.c (convert_to_class):  New function.
5878         * ch-decl.c (layout_enum):  Mark enum values with CH_DERIVED_FLAG.
5879         * ch-lex.l (string_or_int):  Rename to string_or_char.
5880         * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5881         convert_float, convert_number):  Set CH_DERIVED_FLAG for literals.
5882         * ch-expr.c (finish_chill_binary_op):  Use convert_to_class.
5883         * ch-satisfy.c (safe_satisfy_decl):  For CONST_DECL, make sure
5884         DECL_INITIAL gets set to result of convert.
5885         Also, clear CH_DERIVED_FLAG for SYN value.
5886         * expr.c (store_constructor):  If a [power]set is exactly one
5887         word long, use single-word move.
5888
5889 Sat Jan  8 08:38:29 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5890
5891         * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5892
5893 Wed Jan  5 05:18:46 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5894
5895         * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5896         ARRAY_TYPE before assuming so.  Also, subtract 1 from LENGTH in
5897         computation of SLICE_END.
5898
5899         * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5900
5901         * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5902
5903         * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5904         for unary set operations).
5905
5906         * ch-expr.c (build_chill_array_expr): Take new argument FORCE.  All
5907         callers changed.  All callers changed.
5908
5909         * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5910         being NULL_TREE until we've started walking the list of values via
5911         the loop over VARIANTs.
5912
5913         * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5914         treat it as an enum value (and hence constant).  Also, only set
5915         TREE_STATIC if the constructor is indeed constant.
5916         * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5917         VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5918         recurse on the DECL_INITIAL.
5919
5920 Wed Jan  5 01:24:50 1994  Bill Cox  (bill@cygnus.com)
5921
5922         * Makefile.in: Add CHILL to LANGUAGES variable.
5923         * ch-actions.c (check_range): Call build_binary_op instead of
5924           fold, build to get the common types chosen.
5925           (cond_range_exception, cond_overflow_exception,
5926            cond_type_range_exception): Delete, obsolete.
5927           (chill_convert_for_assignment): Enable this, get particular
5928           about when to generate rangecheck code.
5929         * ch-expr.c (build_chill_function_call): Sketch in where to
5930           perform chill_convert_for_assignment on actual parameters.
5931           (build_chill_addr_expr): Correct compiler warning.
5932         * ch-loop.c (build_chill_iterator): Add runtime check for
5933           negative loop step expression.
5934         * ch-tree.h: Add prototype.
5935         * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5936           A varying array's length field counts the NUMBER of active array
5937           array entries, not the byte-length of them.
5938
5939 Tue Jan  4 17:57:39 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5940
5941         * ch-decl.c (do_decl): Call `suspend_momenary' if the
5942         converted constructor must live on the permanent_obstack.
5943         * ch-convert.c (convert): When building a new SET_TYPE
5944         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5945         * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5946
5947         * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5948         are locations.
5949         * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5950         on permanent_obstack if necessary.
5951
5952         * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5953         constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5954
5955         * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5956         the patch below helped to mess up.
5957
5958         * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5959         (build_chill_addr_expr): Take new argument ERRORMSG.
5960         All callers changed.  Also, call `build_chill_addr_expr' where
5961         we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5962         that now calls `mark_addressable' automagically.
5963
5964         * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5965         This is needed because variables may appear in initialization
5966         statements, and their DECL_INITIALs are their values at
5967         initialization time.
5968         * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5969         to handle VAR_DECLs as initializers.
5970
5971         * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5972         they aren't destroyed for later use.
5973
5974 Tue Jan  4 15:25:30 1994  Bill Cox  (bill@cygnus.com)
5975
5976         * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5977           parameter for varying_array_ref calculations.
5978           (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5979         * ch-typeck.c (build_chill_slice_with_range): Correct issuance
5980           of bogus error in votrics.
5981           (build_chill_slice_with_length): Change for debug tracability.
5982
5983 Tue Jan  4 02:43:37 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
5984
5985         * ch-convert.c (digest_structure_tuple): Fix phasing problem in
5986         handling variant record initializers.
5987         (various places): Change `pop_init_level' calls to match
5988         `push_init_level' wrt implicit variable.
5989
5990         * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
5991         `integer_type_node' before using it in comparisons.  FIXME: should
5992         this be done in `chill_max_vary_array_index' by default?
5993
5994 Tue Jan  4 00:24:14 1994  Bill Cox  (bill@cygnus.com)
5995
5996         * ch-actions.c: Fix comments.
5997         * ch-parse.y: Define caseaction_flag.
5998           (caseaction): Create new caseaction_flag node at the start,
5999           then free it at the end.  Check it before the ELSE code.
6000           (expanded_case_label): Check the flag here.  If set in either
6001           place, generate a jump to the end of the case.
6002         * ch-typeck.c (build_chill_slice_with_length,
6003           build_chill_slice_with_range): Add lots of compile-time
6004           parameter range checking.
6005
6006 Mon Jan  3 21:49:04 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6007
6008         * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
6009         implicit==0 everywhere, not 1.
6010         (digest_constructor): Ditto.
6011
6012         * ch-actions.c (check_range): Permit limits to be NULL_TREE.
6013         Also, hack out some dead code.
6014         * ch-typeck.c (build_chill_slice): Check varying and non-varying
6015         slice constructs for range failures.
6016         (build_chill_slice_with_range): Reindented, but not changed.
6017
6018         * ch-typeck.c (chill_max_vary_array_index): New function.
6019         * ch-expr.c (chill_expand_expr): Call it.
6020
6021         * ch-decl.c (var_data_id, var_length_id): New variables.
6022         (init_decl_processing): Initialize them.  All calls to
6023         get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
6024         by references to these variables.  This simplifies the code
6025         w/o obscuring anything.
6026
6027 Mon Jan  3 21:24:44 1994  Bill Cox  (bill@cygnus.com)
6028
6029         * c-typeck.c: Fix comment.
6030         * ch-actions.c (chill_expand_assignment): Error assigning to
6031           READONLY location.  (PR_3903)  Pass filename, linenumber
6032           to setbitpowerset runtime routine.
6033         * ch-decl.c (init_decl_processing): Add filename, linenumber
6034           parameters to setbitpowerset prototype.
6035         * ch-expr.c (build_chill_function_call): Error when passing a
6036           READonly location as a LOC or INOUT parameter.
6037         * ch-parse.y (mode): Correct code marking type as readonly.
6038
6039 Mon Jan  3 19:03:55 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6040
6041         * ch-actions.c (chill_expand_assignment): Disable code that defeats
6042         building varying array references.
6043         * ch-expr.c (chill_expand_expr): Add rangecheck code to
6044         VARY_ARRAY_REF case.
6045         * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
6046         function (in this case, `validate_varying_array_ref') when we're
6047         doing a `build_' operation.
6048
6049         * ch-typeck.c (validate_varying_array_ref): Simplify interface
6050         since INDEX parameter can never meaningfully be an INDEXLIST.
6051         * ch-actions.c (expand_varying_length_assignment): Caller changed.
6052
6053 Mon Jan  3 07:29:45 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6054
6055         * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
6056         * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
6057         if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
6058         (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
6059         call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD).  This
6060         can happen when constructors are output incrementally.
6061         * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
6062         * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
6063         CONSTRUCTORS.
6064
6065 Sun Jan  2 08:17:09 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6066
6067         * ch-convert (digest_structure_tuple): Handle SET_TYPEs.  Also, call
6068         `convert' so we can handle INSTANCE types (and other anomolies)
6069         correctly.
6070
6071         * ch-convert.c (digest_structure_tuple): Fixed variant
6072         structure initialization.  Also fixed a typo (TYPE_NAME
6073         was being used on a FIELD_DECL instead of DECL_NAME).
6074         * c-typeck.c (initializer_constant_valid_p): Pass missing
6075         ENDTYPE argument on recursive call.
6076         (set_init_field): New function, needed by ch-convert.c change above.
6077
6078         * ch-decl.c (layout_chill_variants): Added a FIXME next to an
6079         almost certain typo.
6080
6081         * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
6082         TREE_CONSTANT for static references.
6083         * ch-except.c (chill_start_on): Change calls to
6084         `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
6085         which has CHILL semantics.
6086         * ch-convert.c (convert): Ditto (albeit in some disabled code).
6087
6088 Sat Jan  1 21:26:43 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6089
6090         * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
6091         TREE_CODE of DECL in case it's altered by actions in the switch.
6092
6093         * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan.  CVS log
6094         mentions where to find code that triggers this case.
6095
6096         * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
6097         well.
6098
6099         * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
6100         we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
6101         (digest_constructor): Ditto.
6102
6103 Sat Jan  1 10:29:19 1994  Michael Tiemann  (tiemann@blues.cygnus.com)
6104
6105         * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
6106         so that CONSTRUCTORS are properly handled before being used.
6107
6108         * ch-convert.c (chill_start_init): New function.  All callers to
6109         `start_init' changed to call this function instead.
6110         (digest_struct_tuple): Defend against initialization machinery
6111         mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
6112         IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots.  This is
6113         needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
6114         can be refered to throughout the compilation unit.  Also remove an
6115         extraneous call to `process_init_element' erroneously added to the
6116         variant record sub-loop.
6117         (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
6118         CONSTRUCTORS of SET_TYPE.
6119         * ch-parse.y (build_chill_constructor): Refix typo.  Also set
6120         TREE_STATIC if at top level.
6121
6122         * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
6123         TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
6124         should have been called.
6125
6126         * ch-convert.c (digest_struct_tuple): Restore code which tracks
6127         field initializations so that the compiler can deduce what variant
6128         initializations to assume.
6129
6130         * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
6131         when we push into a scope that has a DECL with a CONSTRUCTOR as its
6132         DECL_INIT.
6133
6134         * ch-parse.y (build_chill_constructor): Change the name of the
6135         parameter to something more meaningful.  Fix typo.  Also, handle case
6136         where element is an untyped CONSTRUCTOR.
6137
6138         * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
6139         constant ADDR_EXPRs.
6140         (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
6141         on JBUF_REF (instead of calling `build1' which does not).
6142
6143         * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
6144
6145         * ch-typeck.c (chill_expand_tuple): Deleted.
6146         * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
6147         instead, use initialization machinery for CONSTRUCTORS that
6148         come through here.
6149         * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
6150         that are created here.
6151         * ch-satisfy (satisfy): Abort in case we would have called
6152         chill_expand_tuple.  FIXME: some other code is needed here,
6153         but I don't know what yet.
6154
6155         * ch-parse.y (build_chill_constructor): New function to
6156         propagate TREE_CONSTANT bits to CONSTRUCTORS.
6157         (untyped_expr rule): Use it.
6158         (primval rule): Use it.
6159
6160         * ch-decl.c (do_decl): Call `finish_init'.
6161         * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
6162         this function, make sure the initialization machinery is set up.
6163
6164         * ch-convert.c (digest_structure_tuple, digest_constructor): Add
6165         missing prototypes.
6166
6167 Fri Dec 31 11:31:01 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6168
6169         * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
6170         as being TREE_CONSTANT.  Otherwise it gets bounded by the initializer
6171         code.
6172
6173         * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
6174         * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
6175         rewritten to work with GCC's initialization code.  The basic change
6176         was to keep the initializers in sync with the initialization
6177         machinery that `process_init_element' imposes.  Both of these
6178         functions now return `void'.
6179         * ch-convert.c (convert): Changed calls to `digest_...' functions.
6180
6181         FIXME: the code handling UNION_TYPE (and variant records) has not
6182         been tested yet.
6183
6184 Fri Dec 31 15:32:56 1993  Bill Cox  (bill@rtl.cygnus.com)
6185
6186         * ch-lex.l (convert_number): Output the converted number if
6187           yydebug is enabled.
6188         * ch-parse.y (signaldef): Set ignore_exprs correctly for a
6189           SIGNAL declaration.
6190
6191 Fri Dec 31 13:17:48 1993  Bill Cox  (bill@cygnus.com)
6192
6193         * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
6194           a RETURN without a value (which cannot have an exception
6195           handler) from a RETURN with a value (which can).  Eliminate
6196           some shift/reduce and reduce/reduce conflicts.
6197
6198 Thu Dec 30 17:42:32 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
6199
6200         * ch-inout.c (build_chill_writetext): Deal with 2 cases where
6201         types returned from `type_for_size' are not expected.  FIXME.
6202         * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
6203         This is required when range checking is enabled.
6204
6205 Thu Dec 30 14:28:25 1993  Bill Cox  (bill@rtl.cygnus.com)
6206
6207         DELAY CASE works now.
6208         * ch-decl.c (init_decl_processing): Move rest of tasking-related
6209           initialization into tasking_init().
6210         * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
6211           (optsetprio): New non-terminal.
6212         * ch-tasking.c (get_task_name): Delete, obsolete.
6213           (build_instance_type): build pointer to instance type also.
6214           (build_receive_case_start): Cleanup per -Wall messages.
6215           (build_receive_case_label): Move between start and end functions.
6216           (build_delay_case_start): Pass SET name and priority also.
6217           Generally update to correct functioning.
6218           (build_delay_case_label): Move between start and end fucntions,
6219           correct its functioning.
6220           (build_delay_case_end): Correct the code.
6221           (tasking_init): Lots of tasking-related code moved here from
6222           init_decl_processing.
6223         * ch-tree.h: Update, add prototypes.
6224
6225 Wed Dec 29 10:13:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6226
6227         * ch-expr.c (build_chill_indirect_ref): Revert change which
6228           failed full regression testing.
6229         * ch-lex.l (name_type_signal): Add debug output.
6230         * ch-parse.y (structured_variable): Add a debug variable.
6231
6232 Wed Dec 29 02:05:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6233
6234         * ch-decl.c (get_next_decl): Revert change which failed full
6235           regression testing.
6236
6237 Tue Dec 28 18:20:14 1993  Bill Cox  (bill@rtl.cygnus.com)
6238
6239         DELAY actions work now.
6240         * ch-decl.c: Correct spelling in comments.
6241           (get_next_decl): NULL out the decl's TREE_CHAIN before returning
6242           it, to prevent accidental access to the remembered_decls.
6243           (init_decl_processing): Add wait_event to runtime functions.
6244         * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
6245           becoming a seg fault.
6246         * ch-grant.c: Correct a comment.
6247         * ch-loop.c: Delete/correct comments.
6248         * ch-parse.y (delaycaseaction): Add push/poplevel calls.  Turn 'sorry'
6249           into rough draft of actual code.
6250           (delayaction): Don't make a new scope here, use get_unique_identifier
6251           instead.
6252           (locdec): process event decls here, too.
6253           (mode): Add code to forbid READonly EVENT and BUFFER decls.  Delete
6254           code which required EVENTs and BUFFERs to be declared at global scope.
6255           (simple_name_string): Add an EVENTNAME.
6256         * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
6257           becoming a seg fault.
6258         * ch-tasking.c (tasking_setup): Add the event queue's max. length
6259           as the 'entry_point' parameter in the list.
6260           (build_receive_case_start, build_receive_case_label): Defer
6261           calling runtime routine until we know whether we have a signal
6262           or a buffer to wait for.
6263           (build_delay_case_start, build_delay_case_end,
6264            build_delay_case_label, build_delay_action,
6265            process_event_decls): Added functions.
6266         * ch-typeck.c (chill_similar): Allow all integers of differing
6267           precisions to be similar.
6268
6269 Thu Dec 23 18:00:40 1993  Bill Cox  (bill@rtl.cygnus.com)
6270
6271         * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
6272           options.  Delete C-specific defines.  Disable piping from
6273           pre-processor to cc1chill (even if -pipe is specified), since cc1chill
6274           rewinds its input for its second pass.  Piping still works
6275           from cc1chill to as.
6276
6277 Thu Dec 23 12:31:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6278
6279         * ch-tasking.c (decl_tasking_code_variable): Assure that the
6280           tasking_code variable is allocated on the permanent obstack.
6281           (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
6282           queue length (passed as the entry_point parameter).
6283           Other changes to variable names to increase 'self-documentation'
6284           the only kind GNU CHILL will get, for a while..
6285
6286 Wed Dec 22 10:46:31 1993  Bill Cox  (bill@rtl.cygnus.com)
6287
6288         * ch-decl.c (do_seize): Delete - it's unused.  Fix comments.
6289         * ch-loop.c (build_chill_iterator): Convert BY expression
6290           so loop involving a SET works.  Additional errors generated
6291           for numbered SET expression as start or end expression.
6292         * ch-tree.h: Prototypes for future DELAY functions.
6293         * ch-typeck.c: Standard indentation.
6294
6295 Tue Dec 21 15:30:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6296
6297         * ch-actions.c (build_cause_exception):  New function.
6298         (expand_cause_exception):  Re-write to use build_cause_exception.
6299         (check_expression, check_range):  New functions.
6300         (chill_convert_for_assignment):  New function.
6301         * ch-expr.c (build_chill_pred_or_succ):  New function.
6302         (build_chill_succ, build_chill_pred):  Removed.
6303         (build_generalized_call):  Use build_chill_pred_or_succ.
6304         * ch-lex.h, ch-lex.l (init_lex):  Add RID_OVERFLOW and RID_RANGEFAIL.
6305         * ch-lex.l (init_lex):  Use new macro to make more terse.
6306         * ch-typeck.c (chill_equivalent):  New function.
6307         Also check that ranges have the same bounds.
6308         * ch-typeck.c (my_build_array_ref):  Add optional range-checking.
6309         * ch-typeck.c (chill_location):  Handle COMPOUND_EXPR properly.
6310         Return 2 if also a referable.
6311         * ch-typeck.c (chill_referable):  Re-define to use chill_location.
6312         * ch-tree.h (CH_EQUIVALENT):  Re-defined to use chill_equivalent.
6313
6314         * dbxout.c (dbxout_type):  Output the type attribute "@S;" to
6315         distinguish a string from a char array, and to distinguish a
6316         bitstring from regulat (power)set.  (Needed for Chill.)
6317         * dbxout.c (dbxout_type):  Only check for baseclasses in
6318         type.binfo is a vector.  (It is used in Chill for tagged unions.)
6319
6320 Fri Dec 17 09:56:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6321
6322         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6323           ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
6324           ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
6325           Fix -Wall problems.
6326         * ch-actions.c (chill_expand_assignment): Error if assigning
6327           a value to a BUFFER or EVENT variable.
6328         * ch-expr.c (invalid_left_operand): Delete, unused.
6329         * ch-grant.c (tasking_setup): Call build_enum_tables.
6330         * ch-inout.c (get_final_type_and_range, build_enum_tables,):
6331           New functions.
6332           (build_chill_writetext): Lots of changes to support other
6333           basic CHILL data types.
6334         * ch-loop.c (build_chill_iterator): Lots of new code to check
6335           the expressions in a STEP loop.
6336         * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
6337           names in receivecasealternative.  Generate error messages
6338           if they're mixed in the same receive case.
6339           (process_buffer_decl): Renamed from build_buffer_decl.
6340         * ch-tree.h: Fix prototypes.
6341         * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
6342           correctly.  Thanks Per!
6343
6344 Wed Dec 15 15:05:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6345
6346         * ch-decl.c (push_scope_decls):  Re-arrange some more, so
6347         that normal SEIZES (without ALL) are handled before SEIZE ALL.
6348
6349 Wed Dec 15 13:01:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6350
6351         * ch-loop.c (declare_temps): Calculate end-of-array pointer
6352           using correct type (NOT chill_integer_type).
6353           (begin_chill_loop): Build loop-bypass expression in the
6354           type of the start expression, not in the unsigned type.
6355
6356 Tue Dec 14 15:41:32 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6357
6358         * ch-decl.c (push_scope_decls):  Re-arrange so that normal
6359         (non-seize) declarations are proclaim_decl'd *before* we
6360         handle the ALIAS_DECLs for seizes.  The advantage is
6361         that we can now test for (an approximation) to the
6362         'seizeable' concept, thus avoiding duplicate definitions
6363         when a module has both GRANTs and SEIZE ALL.
6364
6365         * ch-expr.c (build_chill_arrow_expr): No longer re-write
6366         addr-of-conversion to pointer-conversion-of-addr.
6367         * ch-expr.c (build_chill_addr_expr): Re-write to just use
6368         build_chill_arrow_expr.
6369
6370 Mon Dec 13 16:44:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6371
6372         * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr):  Don't re-write
6373
6374         * ch-tree.h (chill_root_resulting_mode):  Fix typo (missing '_').
6375
6376         * ch-expr.c (finish_chill_binary_op):  Use CH_ROOT_RESULTING_MODE
6377         macro (which works on expressions), rather than CH_RESULTING_MODE
6378         (which works on modes, and isn't quite correct).
6379         * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE):  New macro.
6380         * ch-typeck.c (chill_read_compatible, chill_compatible):
6381         Use the new macro, which handles NEWMODEs of PTR correctly.
6382         * ch-typeck.c (chill_similar):  Return 1 rather than 0 for
6383         dynamic-length array (and string) types (e.g. slices).
6384         * ch-typeck.c (chill_root_mode):  If the mode has a Novelty,
6385         just return it as is.  (This is still not 100% correct for
6386         NEWMODE of RANGEs, but is close enough.)
6387
6388 Mon Dec 13 16:27:06 1993  Bill Cox  (bill@rtl.cygnus.com)
6389
6390         * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
6391           build_buffer_decl, which then seg faults.
6392         * ch-tasking.c (build_buffer_descriptor): Move declaration
6393           of bufdecl closer to its use.
6394
6395 Mon Dec 13 14:57:55 1993  Bill Cox  (bill@rtl.cygnus.com)
6396
6397         * ch-actions.c (chill_expand_result): Use expand_expr_stmt
6398           to avoid C-specific conversions.
6399         * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
6400         * ch-parse.y (sendaction): Delete unused statement, use the 'name'
6401           variable.
6402         * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
6403           conversions.
6404           (build_buffer_decl): Save the tasking_code_variable's decl
6405           in the buffer decl tree.
6406           (build_buffer_descriptor): Real, working version.
6407
6408 Mon Dec 13 03:13:36 1993  Bill Cox  (bill@rtl.cygnus.com)
6409
6410         * ch-decl.c (print_lang_identifier): Delete code
6411           to print buffer size - it's no longer kept here.
6412         * ch-parse.y (expand_send_buffer): Renamed from
6413           build_send_buffer.
6414           (locdec): Enable building of a buffer decl.
6415           (optresultspec, optresultattr): Add optional
6416           result attributes such as LOC.  Semantics
6417           not enabled yet.
6418         * ch-tasking.c (expand_send_buffer): Renamed.
6419         * ch-tree.h (build_send_buffer): Renamed.
6420         * ch-typeck.c (chill_expr_class): Do more complete,
6421           job of classifying expressions.  Thanks, Per.
6422
6423 Mon Dec 13 00:59:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6424
6425         * ch-typeck.c (chill_expr_class):  Return CH_DERIVED_CLASS
6426         for bitstring constants.
6427         * ch-typeck.c (chill_novelty):  The novelty of an (unnamed)
6428         range mode is that of its parent mode; the novelty of READ M
6429         is that of M.
6430
6431 Sat Dec 11 15:14:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6432
6433         * ch-expr.c (varying_to_slice):  Call stabilize_reference
6434         rather than save_expr.
6435         * ch-typeck.c (build_chill_slice):  Don't emit warning
6436         if array is a SAVE_EXPR (it is effectively referable).
6437         * ch-typeck.c (chill_root_resulting_mode):  Handle
6438         correctly the case that one operand is DERIVED and one is VALUE.
6439
6440 Fri Dec 10 10:00:42 1993  Bill Cox  (bill@rtl.cygnus.com)
6441
6442         * ch-grant.c (decode_decl): Restore code mistakenly deleted.
6443           Move instance-handling code to raw_decode_mode.
6444         * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
6445           Add rough draft of DELAY statement handling.
6446         * ch-tasking.c (build_event_type): New function.
6447         * ch-tree.h (build_event_type): Add prototype.
6448         * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
6449
6450 Wed Dec  8 18:02:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6451
6452         Parse and grant BUFFER modes.
6453         * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
6454           Moved from decode_decl.
6455         * ch-parse.y: Fix several sorry() messages.
6456         * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
6457           info.
6458
6459 Wed Dec  8 12:59:54 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6460
6461         * ch-actions.c (chill_expand_assignment):  In a multiple
6462         assignment, check that all the targets are equivalent.
6463
6464         * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT):  New function
6465         and macro to (partially) implement the relation l-equivalent.
6466         * ch-typeck.c (chill_read_compatible):  Implement at least
6467         initial check of read-only-ness.
6468         * ch-typeck.c (build_readonly_type):  Fix thinkos.
6469
6470 Wed Dec  8 09:11:46 1993  Bill Cox  (bill@rtl.cygnus.com)
6471
6472         * ch-decl.c (pop_module): Only warn about duplicate grant
6473           statements if they inhabit different files, by examining
6474           inode numbers.  Only report compatibility problems in pass 1.
6475         * ch-lex.l (chill_same_grant_file): New function to support the
6476           above test.
6477
6478 Tue Dec  7 17:10:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6479
6480         * ch-decl.c (start_chill_function):  Handle attributes in pass 1,
6481         rather than in pass 2.  (It seems to make more sense that way.)
6482         * ch-parse.y (procedureattr):  Build attribute list if pass != 2.
6483
6484         * ch-parse.y (mode):  Don't call build_readonly_type in pass 2.
6485
6486 Mon Dec  6 14:35:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6487
6488         This implements NOVELTY and READONLY checking.
6489         * ch-tree.def:  Added comment about use of LANG_TYPE.
6490         * ch-typeck.c (build_readonly_type, smash_dummy_type):  New functions.
6491         * ch-tree.h: New prototypes.
6492         * ch-decl.c (push_modedef):  If newmode, lazily "copy" the given mode
6493         immediately (even if it's just a type name), using a LANG_TYPE.
6494         * ch-parse.y (mode):  Call build_readonly_type to handle READ.
6495         * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6496         ch-satisfy.c (satisfy):  Handle a LANG_TYPE.
6497         * ch-decl.c:  Remove chill_modes_equiv and other unused junk.
6498         * ch-satisfy.c (safe_satisfy_decl/CONST_DECL):  Better
6499         mode compatibility checking for SYN declarations.
6500
6501         * ch-typeck.c (chill_similar):  Be more general when checking set
6502         modes for similarity - specifically support calling chill_similar
6503         BEFORE the modes have been satisfied (needed by proclaim_decl).
6504         * ch-decl.c (proclaim_decl):  Allow duplicate definitions
6505         of set elements of similar set modes.
6506
6507         * ch-parse.y (caseaction):  Call language-independent
6508         expand_start_case rather than c_expand_start_case (which
6509         doesn't allow chars or booleans).
6510
6511 Sat Dec  4 22:16:19 1993  Bill Cox  (bill@rtl.cygnus.com)
6512
6513         * ch-actions.c (cond_range_exception,
6514           cond_type_range_exception): Check command-line flag before
6515           generating code.  Fix comments.
6516         * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6517           code, commented out.
6518         * ch-loop.c (build_chill_iterator): Comment out
6519           exception code generation.
6520         * ch-parse.y: Delete quasi_signal flag, use
6521           current_module->is_spec_module instead.
6522         * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6523           Delete quasi_decl flag.  Look at current_module
6524           instead.
6525         * ch-tree.h: Take quasi_decl flag out of buffer
6526           related prototypes.
6527         * ch-typeck.c (valid_array_index, chill_similar):
6528           Comment out runtime range checking for now.
6529         * expr.c (store_constructor): Fix word-size set problem.
6530         * varasm.c (emit_set_data): Fix word-size set problem.
6531
6532 Wed Dec  1 19:08:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6533
6534         * ch-actions.c: Delete unused prototype for build_compound_expr.
6535         * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6536           expression to lp->iter_type before expanding it.  Prevents an abort
6537           deep in expand_expr and friends.
6538
6539 Wed Dec  1 17:00:44 1993  Bill Cox  (bill@rtl.cygnus.com)
6540
6541         * ch-actions.c (chill_expand_assignment): Comment out strange
6542           test and its error message.
6543         * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6544           jump around the loop.
6545         * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6546
6547 Wed Dec  1 14:19:51 1993  Bill Cox  (bill@rtl.cygnus.com)
6548
6549         * ch-actions.c (cond_exception): Clarify that it generates
6550           an exception if the given expression is TRUE.  Make it so, Number One.
6551         * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6552           (print_lang_type): Print max queue size.
6553           Add casts to DECL_TASKING_CODE_DECL references.  Fixes a
6554           portability problem.
6555           (init_decl_processing): Add filename and linenumber arameters
6556           to tasking and memory-allocate runtime prototypes.
6557         * ch-expr.c (finish_chill_binary_op): Check for division
6558           by a constant zero.  Replace build_temporary_variable
6559           calls with decl_temp1 calls, to decouple from ch-loop.c.
6560           (build_chill_succ, build_chill_pred): Sketch code to generate
6561           exceptions.  Add error check for numbered set.
6562           (build_generalized-call): Correct call for return_memory.
6563           Standardize whitespace before left parens.
6564         * ch-grant.c: Use new macro for checking for BUFFER mode.
6565         * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6566           and EVENT names.
6567         * ch-loop.c (build_temporary_variable): Make static, unavailable
6568           to outsiders.
6569           (declare_temps): Make user's variable for him/her, in the
6570           true Z.200 case, where it hasn't previously been declared.
6571           (begin_chill_loop): simplify control flow a bit.
6572         * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6573           (rccase_label): Delete bogus error checks.  Rough draft of
6574           BUFFER-related code.
6575           (assertaction): Remove logical negation - it's now in cond_exception.
6576           (locdec): Sketch of buffer-related code.
6577           (non_array_mode): Add EVENT and BUFFER modes here.  Add setting of
6578           set-numbered flag for pred and succ functions.
6579           (optqueuesize): Default to integer_zero_node.
6580           (simple_name_string): Add BUFFERNAME.
6581         * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6582           (build_chill_start_process, expand_send_signal,
6583            build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6584           to tasking-related runtime calls.  Sketches of BUFFER mode
6585           processing.
6586         * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6587           macro, for portability to non-gcc compilers.  Add prototypes
6588           for buffer-related functions.
6589         * ch-typeck.c: Replace build_temporary_variable calls with
6590           decl_temp1 calls, to decouple from ch-loop.c.
6591           (chill_similar): Add tests for BUFFER and EVENT modes.
6592
6593 Wed Dec  1 14:05:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6594
6595         * ch-actions.c (malloc prototype):  Remove; can cause conflicts.
6596
6597 Wed Dec  1 09:49:58 1993  Bill Cox  (bill@rtl.cygnus.com)
6598
6599         * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6600
6601 Tue Nov 30 14:05:23 1993  Bill Cox  (bill@rtl.cygnus.com)
6602
6603         * ch-decl.c (init_decl_processing): Add filename, line number
6604           parameters to tasking-related runtime routines.
6605         * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6606         * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
6607           lex-only list.
6608           (quasi_locdec): Set/reset quasi_decl flag.
6609         * ch-tasking.c (build_start_process, expand_send_signal,
6610           build_receive_case_start, build_send_buffer): Add filename. linenumber to
6611           (build_buffer_decl, build_buffer-type): New rough-draft functions.
6612           generated runtime routine call.
6613         * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6614           to mark a synchronization mode.  Update the prototypes.
6615         * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6616           similarity.
6617
6618 Tue Nov 30 09:51:47 1993  Doug Evans  (dje@canuck.cygnus.com)
6619
6620         * cccp.c (main): Add missing chill sanitization.
6621
6622 Sun Nov 28 15:50:10 1993  Bill Cox  (bill@rtl.cygnus.com)
6623
6624         * ch-loop.c (initialize_iter_var): Build count expression
6625           more robustly.
6626           (bottom_loop_end_check): Call emit_line_note.
6627           (end_chill_loop): Delete emit_line_note call.
6628         * ch-parse.y (doaction): Move DO keyword
6629           after end_chill_loop call.
6630
6631 Wed Nov 24 08:49:07 1993  Bill Cox  (bill@rtl.cygnus.com)
6632
6633         * c-typeck.c (c_expand_start_case): Back out previous
6634           change.
6635
6636 Tue Nov 23 12:33:50 1993  Bill Cox  (bill@rtl.cygnus.com)
6637
6638         * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6639           type as a CASE label.
6640
6641 Tue Nov 23 11:37:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6642
6643         * ch-decl.c (grok_chill_variantdefs):  Use NULL as the name
6644         of variant fields (not __CASE or anything based on it).
6645         * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6646         Don't check for field name __CASE.
6647
6648 Tue Nov 23 09:37:54 1993  Bill Cox  (bill@rtl.cygnus.com)
6649
6650         * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6651           name for the FIELD_DECL.
6652         * ch-parse.y (optstartset): More error tests.
6653         * ch-tasking.c (make_process_struct): Only report error in pass 1.
6654           (build_start_process): Remove bogus restriction, allowing
6655           an INSTANCE expression as the optset parameter.
6656
6657 Mon Nov 22 17:56:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6658
6659         * ch-tree.h (expand_function_end):  Now is takes parameters, not 2.
6660         * ch-decl.c (finish_chill_function):  Add 3rd parameter to
6661         call of expand_function_end.
6662
6663         * ch-expr.c (chill_expand_expr):  For set and strings ops,
6664         if target is in a register, use a stack temporary (since we must
6665         take its address).  (Similar to Oct 29 change for store_constructor.)
6666         * ch-expr.c (resolve_component_ref):  Fix variant field lookups.
6667
6668 Mon Nov 22 14:23:13 1993  Bill Cox  (bill@rtl.cygnus.com)
6669
6670         * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6671           parameter 1 and its mode are always in sync.
6672           (build_chill_pred, build_chill_succ): Allow pred/succ of a
6673           pointer.
6674         * ch-loop.c (chill_unsigned_type): New function, used instead of
6675           unsigned-type, since it understands the chill_integer_type.
6676           (decl_iteration_var): Delete, use build_temporary_variable
6677           instead.
6678           (declare_temps): Use lp->iter_type for the temp evaluations.
6679           (initialize_iter_var): More careful calculation, to handle
6680           MININT to MAXINT loops w/o overflow/underflow.
6681           (begin_chill_loop): Use the original start/end expressions
6682           for the loop bypass test.
6683
6684 Mon Nov 22 14:02:06 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6685
6686         * ch-typeck.c (build_chill_slice):  If the argument is
6687         is constant, use a read-only static variant, as the
6688         existing algorithm assumes addressability.
6689         * ch-typeck.c (chill_compatible):  De-reference reference types.
6690         * ch-typeck.c (layout_chill_range_type):  Set TREE_UNSIGNED.
6691
6692 Sat Nov 20 20:17:15 1993  Bill Cox  (bill@rtl.cygnus.com)
6693
6694         * ch-decl.c (init_decl_processing): Add filename
6695           and linenumber to allocate, free memory calls.
6696         * ch-expr.c (build_allocate_memory_call,
6697           (build_allocate_global_memory_call): Add
6698           filename, linenumber to call.
6699         * ch-loop.c: Complete rewrite for maintainability.
6700
6701 Sat Nov 20 17:30:05 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6702
6703         * ch-except.c:  Make it so that (by default at least) the
6704         code to push/pop the __exceptionStack is done using library
6705         functions __ch_link_handler and __ch_unlink_handler.  This
6706         provides better flexibility (for e.g. multi-threading).
6707
6708         * ch-decl.c (layout_chill_variants):  Allow (useless) selectors
6709         even for tag-less variants.
6710
6711 Fri Nov 19 14:32:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6712
6713         * ch-decl.c (init_decl_processing): Add memmove builtin
6714           function definition.
6715         * ch-actions.c (chill_expand_array_assignment): Use memmove
6716           call to copy an array or slice across the assignment.
6717
6718 Wed Nov 17 18:23:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6719
6720         * ch-satisfy.c (satisfy):  If a CONTRUCTOR already has a
6721         TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6722         to force expansion (processing of the elements).
6723         * ch-grant.c (decode_constant):  If a tuple (CONTRUCTOR) has
6724         a mode, write it out.
6725         * ch-decl.c (init_decl_processing): Add some missing inits.
6726
6727 Wed Nov 17 17:13:20 1993  Bill Cox  (bill@rtl.cygnus.com)
6728
6729         * ch-loop.c: Fix unterminated strings in design comments.
6730           Add enumeration to the iterator structure for type of loop.
6731           unused for now.
6732
6733 Wed Nov 17 16:40:05 1993  Bill Cox  (bill@rtl.cygnus.com)
6734
6735         * ch-decl.c (init_decl_processing): Add long parameters to lots
6736           of powerset runtime routines.
6737         * ch-expr.c (chill_expand_expr): Change parameters to powerset
6738           runtimes so bitlengths are long unsigned ints.
6739         * ch-inout.c (build_chill_writetext): Add filename and linenumber
6740           as runtime parameters, for better error messages.
6741         * ch-loop.c: general pre-rewrite cleanup.
6742         * expr.c (store_constructor): Rewrite set interface to
6743           setpowersetbits for long bitnumbers, rather than shorts.
6744
6745 Tue Nov 16 13:41:12 1993  Bill Cox  (bill@rtl.cygnus.com)
6746
6747         * ch-expr.c (build_chill_function_call): Stop generating empty
6748           copyback statements, which lead to a seg fault.
6749
6750 Tue Nov 16 12:20:17 1993  Per Bothner  (bothner@cygnus.com)
6751
6752         * ch-satisfy.c (satisfy):  If satisfying a type whose
6753         TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6754         * ch-actions.c (build_exception_variant):  Remove some crud.
6755         * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6756         Remove unused first argument.
6757         * ch-decl.c (start_chill_function):  Call build_exception_variant
6758         in pass 1, not in pass 2.
6759
6760 Tue Nov 16 11:10:03 1993  Bill Cox  (bill@rtl.cygnus.com)
6761
6762         * ch-decl.c (shadow_record_fields): Call new function
6763           build_chill_arrow_expr, which returns a ptr-to-a-type.
6764         * ch-expr.c (build_chill_arrow_expr): New function, works like
6765           build_chill_addr_expr used to do, returning a typed ptr.
6766           (build_chill_addr_expr): Now returns unbound ref - analogous
6767           to C 'void *'.
6768         * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6769           (operand6): Call build_chill_arrow_expr.  Reindent a bit.
6770         * ch-tree.h (build_chill_arrow_expr): New prototype.
6771
6772 Mon Nov 15 16:38:28 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6773
6774         * stor-layout.c (layout_type): If a SET_TYPE needs more than
6775         INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6776
6777         * ch-decl.c (start_chill_function):  Set DECL_CONTEXT of params.
6778
6779 Mon Nov 15 14:49:17 1993  Bill Cox  (bill@rtl.cygnus.com)
6780
6781         * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6782           build_function_call, etc.) to tasking_init.
6783         * ch-gperf, ch-hash.h: Add ASM keyword.
6784         * ch-parse.y: Add ASM statement rules.
6785           (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6786         * ch-tasking.c: Move tasking stuff here.
6787
6788 Sun Nov 14 15:50:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6789
6790         * ch-parse.y (mode2):  Split into array_mode and non_array_mode
6791         to resolve layout ambiguity.
6792         * ch-parse.y (checked_name):  Remove.  Use name_string instead.
6793         * ch-parse.y (variantdef):  Don't crash if no tag fields.
6794         * ch-typeck.c (build_chill_array_type):  If varying_p,
6795         actually do build_varying_struct here (rather than in ch-parse.y).
6796
6797 Fri Nov 12 15:37:45 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6798
6799         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6800         static names.  (Let make_decl_rtl generate a unique name.)
6801
6802 Sun Nov 14 13:15:26 1993  Bill Cox  (bill@rtl.cygnus.com)
6803
6804         * ch-expr.c (build_chill_lower, cuild_chill_upper):
6805           Rewrite for modes, values, etc.
6806         * ch-inout.c (build_chill_writetext): Add ability
6807           to write out characters.
6808         * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6809           static names.  (Let make_decl_rtl generate a unique name.)
6810         * varasm.c (unpack_set_constructor): Subtract
6811           lower domain value from a bit's index value,
6812           to match the runtime and allow powersets
6813           with negative lower bounds.
6814
6815 Fri Nov 12 14:00:48 1993  Bill Cox  (bill@rtl.cygnus.com)
6816
6817         * ch-inout.c (build_chill_writetext): Save reserved words in
6818           uppercase if -fspecial_UC was specified.
6819
6820 Fri Nov 12 13:27:12 1993  Per Bothner  (bothner@rtl.cygnus.com)
6821
6822         * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6823         string concatenation by treating varying strings as slices.
6824         (varying_to_slice): New function.
6825         * ch-typeck.c (build_chill_slice): Changed to support the above.
6826
6827 Fri Nov 12 12:07:28 1993  Bill Cox  (bill@rtl.cygnus.com)
6828
6829         * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6830         * ch-expr.c (build_generalized_call): Start module before a
6831           writetext action, so its variables are inside the module-level
6832           function.
6833         * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6834           for enumeration loop on a varying array.
6835
6836 Thu Nov 11 07:49:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6837
6838         * cccp.c (main): Disable trigraphs for CHILL.
6839         * ch-decl.c (grok_chill_fixedfields): Add special_UC
6840           to conditional to determine case of reserved words.
6841           Make PACK/UNPACK warning more specific.
6842         * ch-expr.c (build_generalized_call): Enable recognition
6843           of WRITETEXT call here.
6844         * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6845           word.  It's only predefined.
6846         * ch-inout.c: Add special_UC to conditionals
6847           to determine case of reserved words.
6848           (build_chill_writetext): Change for call from
6849           build_generalized_call.  Add code to format
6850           integers.
6851         * ch-lang.c (lang_decode_option): Add special_UC and
6852           special_LC flags and logic to interlock with
6853           ignore_case flag.
6854         * ch-lex.l: Add special_UC to conditionals
6855           to determine case of reserved words.
6856         * ch-parse.y: Delete WRITETEXT as reserved word.
6857         * ch-tasking.c: Add special_UC to conditionals
6858           to determine case of reserved words.
6859           (build_instance_type): Make components of INSTANCE
6860           unsigned 16-bit integers.
6861         * ch-tree.h (build_chill_writetext): Fix prototype.
6862         * ch-typeck.c (build_chill_array_type): Make PACK
6863           /UNPACK warning more specific.
6864         * toplev.c (lang_options): Add -fspecial_LC
6865           and -fspecial_UC flags.
6866
6867 Wed Nov 10 02:29:53 1993  Bill Cox  (bill@rtl.cygnus.com)
6868
6869         * Makefile.in: Move ch-hash.h from ch-lex.o
6870           rule to ch-lex.c rule, so flex is rerun.
6871         * ch-actions.c (chill_expand_assignment): Error if
6872           user tries to assign to a LHS function.
6873         * ch-decl.c (grok_chill_fixedfields): Use of PACK
6874           /UNPACK is only a warning.
6875           (init_decl_processing): Add ADDR as a builtin function.
6876         * ch-expr.c (build_generalized_call): Add ADDR
6877           as a builtin function.
6878           (build_chill_addr_expr): Sanity check parameters.
6879         * ch-gperf: Remove ADDR as a reserved word,
6880           make ASM into one.
6881         * ch-hash.h: gperf'd version of the above.
6882         * ch-inout.c (chill_stdio_p): Recognize upper/lower
6883           case file names.
6884         * ch-lex.l: Make ignore-case work.  Downcase
6885           token before checking for reserved words.
6886         * ch-parse.y: Delete ADDR as a reserved word.
6887           (mode2, optlayout): Allow PACK/UNPACK specifier.
6888           (call): Use build_generalized_call for
6889                   primval LPRN modename RPRN.
6890           (primval): Delete ADDR reference.  It's now only
6891           predefined, not reserved.
6892         * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6893         * ch-typeck.c (build_chill_array_type): Just
6894           a warning for PACK/UNPACK usage.
6895         * toplev.c: Add -fignore-case and -fno-ignore-case.
6896
6897 Tue Nov  9 15:07:02 1993  Bill Cox  (bill@rtl.cygnus.com)
6898
6899         * ch-actions.c: Reindent for readability.
6900         * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6901           a conversion to INSTANCE.
6902         * ch-decl.c: Change special_UC to ignore_case everywhere.
6903           (init_decl_processing): Add builtin_function calls for lots of
6904           predefined functions.
6905         * ch-expr.c: Change builtin function handlers back to accepting
6906           args, not a treelist.
6907           (route_to_predefined_function): Delete it and its call.
6908           (build_generalized_call): Add lots of builtin functions.
6909         * ch-gperf (backwards, duration, inttime, null): Delete them.
6910         * ch-hash.h: New version.
6911         * ch-inout.c: Change special_UC to ignore_case everywhere.
6912         * ch-lang.c: Delete special_UC flag.
6913         * ch-lex.l: Change special_UC to ignore_case everywhere.
6914         * ch-loop.c (high_domain_value, low_domain_value): Change
6915           interfaces to build_chill_upper and built_chill_lower.
6916         * ch-parse.y: Delete lots of stuff which should only be predefined.
6917         * ch-tasking.c: Change special_UC to ignore_case everywhere.
6918           Change builtin function handlers back to accepting args,
6919           not a treelist.
6920         * ch-tree.h: Add lots of builtin functions to the enumerator.
6921
6922 Mon Nov  8 18:08:27 1993  Bill Cox  (bill@rtl.cygnus.com)
6923
6924         * ch-tasking.c (tasking_init): Disable last-minute change for now.
6925
6926 Mon Nov  8 17:30:22 1993  Bill Cox  (bill@rtl.cygnus.com)
6927
6928         * Makefile.in: New commands to build ch-hash.h.  Add ch-lex.h to
6929           dependencies where it's used.
6930         * ch-decl.c (init_decl_processing): Build predefined constants
6931           for TRUE, FALSE and NULL.  Add declaration for abs builtin
6932           function.
6933           (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6934           stuff for builtin constant like TRUE.
6935         * ch-expr.c (route_to_predefined_function): Add a bunch of
6936           predefined functions to the list.
6937         * ch-gperf: Define the list of reserved words, minus the predefined
6938           words, using the special_UC flag.  Remove NULL, TRUE, FALSE -
6939           these are only predefined, not reserved.
6940         * ch-hash.h: Check this into repository, even though it's derived
6941           from ch-gperf, for those users who don't have gperf.
6942         * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6943           to refer to the IO types. Standardize the indentation.
6944         * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6945         * ch-lex.l: Total rewrite of reserved-word recognition, using
6946           the ch-hash.h lookup routines.
6947         * ch-parse.y: Delete a bunch of unused rules for predefined
6948           procedures and their parameters.
6949         * ch-tasking.c (tasking_init): Build predefined functions
6950           for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE.  Not
6951           complete yet.  Change interface to builtin handlers to accept
6952           just an expression list.
6953
6954 Wed Nov  3 18:07:08 1993  Bill Cox  (bill@rtl.cygnus.com)
6955
6956         * Makefile.in: Debug, activate rule to make CHILL hash table.
6957         * ch-actions.c: Compress parameter type lists per standard.
6958         * ch-decl.c: Correct spelling in comment, compress parameter lists.
6959           (init_decl_processing): Check special_UC flag to build builtin
6960           function declarations.
6961         * ch-expr.c (route_to_predefined_function): Check for upper OR
6962           lowercase function names.
6963         * ch-gperf: Update the list of keywords.
6964         * ch-inout.c (build_chill_io_list): Check for special_UC flag
6965           to build I/O list type.  Compress parameter lists.
6966           (chill_stdio_p): Check for special_UC flag in recognizing
6967           file streams.
6968         * ch-lang.c (lang_decode_option): Add command-line options
6969           for upper-case keywords and user labels.
6970         * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6971           if special_UC flag is set.
6972           (downcase, getlc, check_newline): Don't do this if ignore_case
6973           flag is set.
6974         * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6975           multiple selector expressions.
6976
6977 Sat Oct 30 01:06:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6978
6979         * ch-expr.c (compare_record, finish_chill_binary_op): Compare
6980         STRUCTs (and INSTANCEs) for equality.
6981         * ch-expr.c (invalid_operand):  New functions, combines most of
6982         the functionality of invalid_left_operand and invalid_right_operand.
6983         * ch-convert.c (digest_constructor):  Set TREE_CONSTANT if it is.
6984
6985 Sat Oct 30 11:12:47 1993  Bill Cox  (bill@rtl.cygnus.com)
6986
6987         * Makefile.in (chill): Add back in the commands to build chill
6988           (the script) from chill.in.
6989
6990 Fri Oct 29 16:25:38 1993  Per Bothner  (bothner@kalessin.cygnus.com)
6991
6992         * expr.c (store_constructor):  If SET_TYPE target is in a register,
6993         use a stack temporary (since we must take its address).
6994
6995         * ch-expr.c (build_allocate_global_memory_call,
6996         build_allocate_memory_call):  Cast argument pointer to PTR,
6997         if needed (using location cast).  Also, some other cleanups.
6998         * ch-parse.y (bracketed_action):  Re-arrange things so that
6999         a handler following BEGIN END comes before the final poplevel.
7000         * ch-typeck.c (build_chill_cast): Just return if already correct type.
7001
7002         Re-do DO WITH so that build_component_ref for is done lazily
7003         (at each reference) instead of eagerly (at the beginning
7004         of DO WITH).  This is needed for tagged variants,
7005         * ch-tree.def (WITH_DECL):  New declaration tree code.
7006         * ch-decl.c (lookup_name):  Recognize WITH_DECLs.
7007         * ch-decl.c (handle_one_level):  Variant parts are currently
7008         indicacted with '__CASE'.  Recognize that.
7009         Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
7010
7011 Thu Oct 28 22:17:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7012
7013         * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
7014         Remove some old crud.
7015         * ch-typeck.c (build_chill_cast):  Another attempt at a
7016         compromise between robustness and generality for casts.
7017         Location conversions are now less likely to confuse things.
7018         * ch-parse.y (optactions):  Allow further optactions following
7019         an initial semicolon.
7020         * ch-parse.y:  Add error messages on EVENT and BUFFER.
7021
7022         * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
7023         Undo some of the Oct 27 changes.
7024
7025         Convert (some) builtin functions previously using reserved
7026         names to be just predefined.
7027         * tree.h (enum builtin_in_function):  Added END_BUILTINS at end.
7028         * ch-decl.c:  Add predefines for allocate_memory,
7029         allocate_global_memory, return_memory, writetext.
7030         * ch-expr.c (check_arglist_length):  New function.
7031         * ch-expr.c (build_generalized_call):  If "function" is
7032         a builtin, build the appropriate tree.
7033         * ch-parse.y, ch-lex.l:  No longer recognize many pre-defined
7034         functions at the lexer/parser level.
7035         * ch-tree.h (enum chill_built_in_function):  New type.
7036
7037 Thu Oct 28 16:43:36 1993  Bill Cox  (bill@rtl.cygnus.com)
7038
7039         * ch-expr.c (allocate_memory, allocate_global_memory):
7040           Check for invalid parameters, issue errors.
7041         * expr.c (store_constructor): Calculate bitlength, startrtx
7042           and endrtx of powerset correctly.  Define targetx, use it
7043           and XEXP correctly.
7044
7045 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7046
7047         * ch-expr.c (build_max_min): Error for passing empty tuple
7048           as the argument.
7049
7050 Wed Oct 27 08:25:56 1993  Bill Cox  (bill@rtl.cygnus.com)
7051
7052         * ch-decl.c (init_decl_processing): Make allocate
7053           builtins have a pointer-to-pointer-to-void
7054           first parameter, rather than a reference parameter.
7055         * ch-expr.c (build_allocate_memory_call,
7056           build_allocate_global_memory_call): Do automatic
7057           ADDR () on the first parameter, for backward
7058           compatibility.
7059         * ch-grant.c (grant_one_decl): Don't grant if
7060           DECL_SOURCE_LINE is zero.
7061           (start_chill_module_code): Set DECL_SOURCE_LINE
7062           to zero so that module-level function isn't granted.
7063         * ch-parse.y (handleraction): Add return_memory action.
7064         * ch-typeck.c (chill_similar): Allow a void_type
7065           to be similar to anything.  This makes allocate_memory
7066           and return_memory pointer parameters slide through.
7067
7068 Tue Oct 26 00:12:19 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7069
7070         * ch-typeck.c (build_chill_array_ref):  Check for and complain
7071         if there are more index expressions than the array rank.
7072
7073         * ch-actions.c (chill_expand_assignment):  Emit appropriate
7074         error message if RHS of multiple assignment is tuple/case/if.
7075         * ch-tree.def (CONCAT_EXPR):  Change TREE_CODE_CLASS from
7076         'e' to the more specific '2'.  (Fixes a satisfy bug.)
7077
7078 Thu Oct 21 17:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
7079
7080         * ch-parse.y: Revert experimental error-generating change
7081           that was checked in by mistake.
7082
7083 Thu Oct 21 12:15:30 1993  Bill Cox  (bill@rtl.cygnus.com)
7084
7085         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7086           code variables associated with a process or signal.
7087           (Apparently I forgot to actually check these in last time.)
7088         * ch-tasking.c: Replace last calls to get_tasking_code with
7089           working references to DECL_TASKING_CODE_DECL.
7090
7091 Thu Oct 21 10:27:42 1993  Bill Cox  (bill@rtl.cygnus.com)
7092
7093         * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7094           code variables associated with a process or signal.
7095         * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
7096           tasking_code_decl pointer, rather than trying to look it up
7097           in the hash table or linked scope list.
7098
7099 Wed Oct 20 09:52:44 1993  Bill Cox  (bill@rtl.cygnus.com)
7100
7101         * ch-actions.c (lookup_and_handle_exit): Only output error message
7102           in pass 1.
7103         * ch-convert.c (convert): Correct conversion of VARYING array to/
7104           from non-VARYING one.
7105         * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
7106           field in the node.
7107           (decl_tasking_code_var): Delete it.  Its calls are replaced woth
7108           generate_tasking_code_variable calls, plus a little glue.
7109           (push_extern_process): generate tasking_code_variable as local
7110           static variable, point the process' function_decl at it for later
7111           reference by build_start_process.
7112           (print_mode): Use CHILL upper-case convention to print modes.
7113         * ch-lex.l: Must initialize tasking-related trees to NULL at start
7114           of each pass, or we lose the fact that the user did or did not
7115           specify a value for each of them.
7116         * ch-parse.y (check_end_label, action, exceptlist): Only output
7117           error message in pass 1.
7118           (sendaction): Add comments.
7119           (sigdef): Comment out special handling for external signals.
7120           Chain tasking_variable_decl onto signal structure decl, for
7121           easier non-symbol-table access later.
7122         * ch-tasking.c (generate_tasking_code_variable): Do work in both
7123           passes, using do_decl so we can pass the pass 2 value of the
7124           process_type or signal_code to it.  Only update the process_type
7125           if the incoming pointer isn't null and pass == 2.  Use a new
7126           parameter to know whether to include an init expression.
7127           (build_process_header): Attach tasking-code_variable to process
7128           function_decl for easy access later, not through the hash table.
7129           (build_start_process): Get tasking_code_variable out of the process'
7130           function decl.
7131           (build_signal_struct_type): Return the type decl, to be accessed by ...
7132           (build_signal_descriptor): .. this function.
7133           (build_receive_case_label): Get data buffer pointer not from hash
7134           table, but from Tiemann's current rc_state structure instead.
7135         * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
7136           macro for tasking_code_variable storage.
7137
7138 Tue Oct 19 17:39:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7139
7140         * ch-lex.l (equal_number):  If the "number" is a CONST_DECL,
7141         return its DECL_INITIAL.
7142         * ch-satisfy.c (safe_satisfy_decl):  Change logic for rtl
7143         generation for decls to not use DECL_ASSEMBLER_NAME.
7144         * ch-decl.c:  Set DECL_ASSEMBLER_NAME to DECL_NAME.
7145         This matches C, and allows dbxout to emit proper user-level names.
7146         (It would be cleaner to fix dbxout to use DECL_NAME ...)
7147         * ch-decl.c (outer_decls):  New global list of the decls granted
7148         into the outer scope.
7149         (pop_module):  Change code that grants into outer scope accordingly.
7150         (lookup_name_for_seizing):  Similarly update.
7151         (push_scope_decls):  Handle SEIZE ALL from the global scope
7152         by searching outer_decls.
7153         * ch-grant.c (grant_array_type):  Fix thinko.
7154         * ch-inout.c (build_chill_writetext):  Remove excessive TREE_TYPE.
7155
7156 Mon Oct 18 15:57:00 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7157
7158         * varasm.c (output_constructor):  Add support for non-zero
7159         lower array bound.
7160         * c-typeck.c (output_init_element):  Revert recent changes.
7161         * varasm.c (emit_set_data):  Fix emitting set constant data.
7162         * ch-lex.l (yywrap):  Reset line number to 0, not 1.
7163         It sets incremented to 1 by check_newline.
7164         * ch-tree.h:  Restore old version.
7165         * ch-expr.c (finish_chill_binary_op):  Convert TRUNC_DIV_EXPR
7166         to RDIV_EXPR if an operand is floating.  (This functionality
7167         got dropped when hacking finish_chill_binary_op).
7168
7169         * ch-actions.c (build_chill_case_expr):  Set type to NULL_TREE.
7170         not error_mark_node.
7171         * ch-actions.c (chill_expand_assignment):  Allow such borderline
7172         constructs as:  LHS OR:= [X].
7173         * ch-convert.c (convert):  Hande CASE_EXPR (and COND_EXPR)
7174         with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
7175         * ch-decl.c (do_decl):  Remove CONSTRUCTOR kludge.
7176         * ch-typeck.c (chill_compatible):  Allow expr to have NULL mode
7177         if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
7178
7179 Mon Oct 18 13:20:53 1993  Ken Raeburn  (raeburn@rover.cygnus.com)
7180
7181         * c-typeck.c (output_init_element): Limit previous changes to
7182         ARRAY_TYPE and SET_TYPE initializers.
7183
7184 Sun Oct 17 23:15:00 1993  Bill Cox  (bill@cygnus.com)
7185
7186         * c-typeck.c (output_init_element): Handle NULL domain case.
7187         * ch-decl.c (do_decl): Revert bogus initializer type change.
7188         * ch-grant.c (chill_finish_module_code): Put module's decl onto
7189           the module_init_list, for chill_finish_compile's possible use.
7190           (chill_finish_compile): Rename variables for clarity, add
7191           commented-out code as example for assignment of module address to its
7192           init_list entry.
7193
7194 Sun Oct 17 15:16:54 1993  Bill Cox  (bill@cygnus.com)
7195
7196         * ch-convert.c: Move semicolon to separate line - easier to see.
7197         * ch-decl.c (do_decl): Handle untyped_expr initializers by
7198           simply using the variable's declared type - no compatibility
7199           check can be made if the expression has no type.
7200         * ch-expr.c (expand_packed_set): Fix endless loop - increment
7201           the loop variable.
7202           (fold_set_expr): Fix two other endless loops by passing
7203           correct parameters to unpack_set_constructor.
7204         * varasm.c: Standardize 'for' loop.
7205
7206 Sun Oct 17 12:16:21 1993  Bill Cox  (bill@cygnus.com)
7207
7208         * c-typeck.c (output_init_element): Handle initializer for
7209           array with non-zero lower index bound.
7210
7211 Sat Oct 16 16:48:48 1993  Per Bothner  (bothner@cygnus.com)
7212
7213         * ch-expr.c (finish_chill_binary_op):  Use TREE_SET_CODE
7214         to change TREE_CODE.
7215
7216 Sat Oct 16 08:07:17 1993  Bill Cox  (bill@rtl.cygnus.com)
7217
7218         * ch-expr.c (finish_chill_binary_op): Disable
7219           rough-draft code, not intended for release.
7220
7221 Fri Oct 15 21:44:11 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
7222
7223         * expr.c (store_constructor): use PROTO for pack_set_constructor
7224
7225 Fri Oct 15 10:30:09 1993  Bill Cox  (bill@cygnus.com)
7226
7227         * ch-expr.c (finish_chill_binary_op): Activate some
7228           type-setup code.
7229         * expr.c (store_constructor): Subtract arrays minimum element.
7230           Makes orientexpress work.
7231
7232 Fri Oct 15 09:26:24 1993  Bill Cox  (bill@cygnus.com)
7233
7234         * ch-convert.c, ch-expr.c: Add externs so it'll compile.
7235         * ch-tree.def: Add BASED_DECL definition.
7236
7237 Thu Oct 14 13:20:02 1993  Bill Cox  (bill@cygnus.com)
7238
7239         * ch-actions.c (build_chill_cause_exception): Pass the
7240           *address* of the filename string to the runtime routine,
7241           rather than passing the string by value.
7242
7243 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7244
7245         * expr.c (store_constructor):  Use a (usually) more efficient
7246         algorithm for setting SET types.
7247
7248 Thu Oct 14 13:08:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7249
7250         Changes to better support 1984 version of Chill, which doesn't
7251         really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
7252         * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings):  New flag.
7253         * ch-typeck.c (chill_similar):  Support flag_old_strings.
7254         * ch-convert.c (convert_to_boolean):  Generalize code to
7255         convert singleton bitstring to Boolean.
7256         * ch-convert.c (convert):  Use string_one_type_node.
7257         * ch-convert.c (convert):  Add code to convert Boolean to BOOLS(1).
7258         * ch-convert.c (convert):  In code that converts fixed string to
7259         varying use new 'e' variable, rather than original 'expr' variable.
7260         Allows cascaded conversions:  CHAR -> CHARS(1) -> varying CHARS.
7261         * ch-decl.c (string_type_node, const_string_type_node,
7262         int_array_type_node), ch-tree.h:  Removed.
7263         * ch-decl.c (string_one_type_node, bitstring_one_type_node,
7264         bit_zero_node, bit_one_node), ch-tree.h:  New globals tree nodes.
7265         * ch-decl.c (init_decl_precessing):  Remove some junk.
7266         * ch-expr.c (build_generalized_call):  If flag_old_strings,
7267         treat string index as string slice.  Also, better error checking.
7268
7269         Added support for (some kinds of) BASED declarations.
7270         * ch-tree.def (BASED_DECL):  New tree code.
7271         * ch-decl.c (lookup_name):  Implement BASED_DECL using
7272         build_chill_indirect_ref.
7273         * ch-decl.c (do_based_decls):  Make a BASED_DECL.
7274         * ch-parse.y:  Call do_based_decls for DCL ... BASED(...).
7275         * ch-satisfy.c (safe_satisfy_decl):  Handle BASED_DECL.
7276
7277         Improve handling of set binary operations.
7278         * ch-expr.c (expand_packed_set):  New function.
7279         (fold_set_expr):  Re-write.  Simpler, more general algorithm.
7280         (build_set_expr):  Only used for comparsions now.
7281         (finish_chill_binary_op):  Handle set ops better (more directly).
7282         (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
7283         fold_set_ne, fold_set_xor):  Removed.  No longer needed.
7284
7285         * ch-decl.c:  Remove calls to allocate_lang_decl.
7286         * ch-tree.c (build_string_type):  If const length, layout immediately.
7287
7288 Mon Oct 11 17:23:02 1993  Bill Cox  (bill@cygnus.com)
7289
7290         * ch-decl.c (init_decl_processing): Define __whoami and
7291           __wait_buffer functions.
7292         * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
7293         * ch-parse.y (sigdef): Add new add_taskstuff_to_list
7294           parameter.
7295         * ch-tasking.c (get_tasking_code): Search tasking_list for
7296           tasking code name match.  Can't use lookup_name.
7297           (get_task_name): New function.
7298           (generate_tasking_code_variable): Return if pass 1.
7299           Always update *tasking_code_ptr.
7300           (build_process_header): Add new add_taskstuff_to_list
7301           parameter.
7302           (tasking_setup): New code to unpack the tasking
7303           list entries no built by ..
7304           (add_taskstuff_to_list): Accept new parameter,
7305           add it to the list.
7306         * ch-tree.h (add_taskstuff_to_list): Add new
7307           parameter.
7308
7309 Mon Oct 11 14:54:50 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7310
7311         * Makefile.in (cc1chill):  Also link in $(BC_OBJS).
7312
7313 Mon Oct 11 06:28:39 1993  Doug Evans  (dje@canuck.cygnus.com)
7314
7315         * ch-decl.c (flag_allow_single_precision): New global,
7316         from ss-931002 merge.
7317
7318 Sun Oct 10 09:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7319
7320         * Makefile.in: Remove references to chill.in and
7321           ch-hash.h.  Remove bogus cc1chil : chill
7322           dependency.
7323
7324 Fri Oct  8 16:00:04 1993  Bill Cox  (bill@cygnus.com)
7325
7326         * ch-actions.c (adjust_parm_or_field): Add parameter to
7327           decl_temp1 call.
7328         *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
7329           decl_temp1 call.
7330           (decl_temp1): Add parameter to signal 'make this external'.
7331           (shadow_record_fields): Add parameter to decl_temp1 call.
7332         * ch-expr.c (chill_expand_case_expr): Add parameter
7333           to decl_temp1 call.
7334         * ch-grant.c (chill_finish_compile): Add code to spoof
7335           get_file_function_name,  so we don't get __tmp_s1_code,
7336           for example, as the module-level code's name.
7337         * ch-loop.c (build_temporary_variable, begin_for_range,
7338           init_loop_counter): Add parameter to decl_temp1 call.
7339         * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
7340           for easier maintenance.
7341           (sendaction): Rewrite to receive SIGNALNAME token correctly
7342           from ch-lex.l (name_type_signal).
7343           (signaldef): Don't clear quasi_signal here.
7344         * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
7345           to make the variable public (visible to linker).
7346           (build_start_process): Add parameter to decl_temp1 call.
7347           (tasking_setup): Comment out band-aid hack which calls
7348           generate_tasking_code_variable.  Shouldn't be necessary.
7349           Use null_pointer_node rather than integer_zero_node in
7350           entry_point.  More rewrites.
7351           (build_signal_descriptor): Name the non-signal in the error msg.
7352           Rewrite the building of the signal envelope - avoid seg fault.
7353           Add parameter to decl_temp1 call.
7354           (expand_send_signal, build_receive_case_start,
7355           build_receive_case_end, build_buffer_descriptor): Add parameter
7356           to decl_temp1 call.
7357         * ch-tree.h: Add parameter to decl_temp1 proto.
7358         * chill: Add new CHILL frontend directory
7359
7360 Tue Oct  5 13:51:27 1993  Bill Cox  (bill@cygnus.com)
7361
7362         * ch-grant.c: Standardize indentation.
7363         * ch-parse.y (end_function): Unconditionally poplevel for processes.
7364         * ch-tasking.c (build_process_header): Unconditionally pushlevel.
7365           (generate_tasking_code_variable): Stop using pass number to
7366           force a one-time action.
7367         * ch-tree.h (build_chill_slice): Delete proto since function went static.
7368
7369 Mon Oct  4 13:52:36 1993  Bill Cox  (bill@cygnus.com)
7370
7371         * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
7372           called here in both passes.  Set DECL_ASSEMBLER_NAME.
7373           (lookup_name_for_seizing): Move NULL test forward to prevent
7374           seg fault.
7375         * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
7376           to prevent a seg fault in telebras/dynsto.ch.  Make indentation
7377           changes.
7378         * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
7379           (build_send_signal): Rename to expand_send_signal.
7380           (generate_tasking_code_variable): Return the var's decl.
7381           (build_signal_struct_type): Move generate_tasking_code_variable
7382           and add_taskstuff_to_list calls to ..
7383         * ch-parse.y (sigdef): .. here.  And make indentation changes.
7384         * ch-tree.h: Rename functions, add return values.
7385
7386 Mon Oct  4 15:43:56 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7387
7388         * ch-convert.c (digest_constructor):  Convert element to element_type.
7389         * ch-parse.y (end_function):  Use DECL_ARGUMENTS to check
7390         for parameterless process.
7391
7392 Fri Oct  1 13:57:30 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7393
7394         * ch-typeck.c (chill_location):  New function.
7395         Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
7396         * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c:  Use
7397         chill_location instead of lvalue_p.
7398
7399
7400 Fri Oct  1 11:28:42 1993  Bill Cox  (bill@cygnus.com)
7401
7402         * ch-convert.c (convert): Back out Michael's changes, unintentionally
7403           checked in.
7404         * ch-lex.l (handle_use_seizefile_directive): No longer downcase
7405           seize file names.
7406         * ch-parse.y (sendaction): Fix a couple of seg faults.  Comment out
7407           SEND BUFFER processing for now.
7408         * ch-tree.h: Fix comment.
7409
7410 Thu Sep 30 17:00:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7411
7412         * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P):  New macros,
7413         for recognizing singleton strings.
7414         * ch-tree.h (MARK_AS_STRING_TYPE):  New macro.
7415         * ch-tree.c (build_string_type, build_bitstring_type),
7416         ch-convert.c (convert):  Use it.
7417         * ch-typeck.c (build_chill_slice):  Take length rather than upper
7418         bound.  This makes it easier to recognize that A(X UP LENGTH)
7419         really has fixed length.  Also, if the argument is string,
7420         mark the slice as a string too.  Also, handle varying strings.
7421
7422         * ch-typeck.c (conflate_singleton_strings):  New global.
7423         * ch-typeck.c (chill_similar):  If conflate_singleton_strings is
7424         set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
7425         to CHAR/BOOL, as required by the 1984 version of Z.200.
7426         * ch-convert.c (convert_to_char):  Convert CHARS(1) to CHAR.
7427         * ch-convert.c ( build_array_type_for_scalar):  If input is string,
7428         so is output.
7429         * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h:  Removed.
7430         * ch-convert.c (convert):  Convert CHAR to CHARS(1).
7431
7432         This fixes 'X // := Y' and is also a general simplification.
7433         * ch-actions.c (chill_expand_assignment):  Convert 'LHS OP := RHS'
7434         to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
7435         Also, call save_expr on RHS if a multiple assignment.
7436         * ch-parse.y (assignaction):  Therefore, no longer need to call
7437         stabilize_reference on RHS.
7438         * ch-typeck.c (build_chill_modify_expr), ch-tree.h:  Remove
7439         modifycode parameter.  Make it the caller's responsibility to
7440         handle <assigning operator>.
7441         * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
7442         ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
7443
7444 Wed Sep 29 18:02:55 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7445
7446         * ch-lang.c (string_index_type_dummy), ch-tree.h:  New variable.
7447         * ch-decl.c (integer_minus_one_node), ch-tree.h:  New variable.
7448
7449         * ch-parse.y (arrayindex: modename):  Remove useless code.
7450         * ch-satisfy.c (satisfy):  Don't gag on string_index_type_dummy,
7451         * ch-tree.c (build_string_type):  Pass string_index_type_dummy as
7452         the parent type of the index range.
7453         * ch-typeck.c (layout_chill_range_type):  Recognize and handle
7454         string_index_type_dummy - specifically allow an empty range.
7455
7456 Wed Sep 29 13:36:23 1993 1993  Bill Cox  (bill@cygnus.com)
7457
7458         * ch-convert.c (convert_to_reference): Check for loc-identity
7459           mismatches correctly (and remove one of those chill_compatible
7460           calls).
7461         * ch-decl.c (decl_tasking_code_var): New function, called from
7462           push_extern_process and push_extern_signal.
7463         * ch-parse.y (end_function): Delete parameter.  Check current_function_decl
7464           whether it's actually a process, and whether it has parameters.
7465           Make Michael's change simplifying the pass 2 test, preventing a seg
7466           fault.
7467           (procedure, process): Change calls to end_function, remove
7468           code saving value from build_process_header.  Delete redundant chill_
7469           phrases from some function calls.
7470         * ch-tasking.c: Remove some redundant _chill phrases from function
7471           names.
7472         * ch-tree.h: Remove some redundant _chill phrases from function
7473           names.  Add the CH_VARYING_ARRAY_TYPE macro, call it from
7474           all relevant places.
7475         * ch-typeck.c: Use the new macro.  Cast TREE_CODEs to chill_tree_code.
7476
7477 Wed Sep 29 13:07:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7478
7479         * ch-convert.c (convert_to_reference):  Remove redundancies.
7480         * ch-convert.c (convert):  Handle convert_to_reference
7481         with a recursive convert call.
7482         * ch-decl.c (do_decl): Add missing compatibility-checking
7483         of initializer (don't depend on convert).
7484
7485 Tue Sep 28 00:02:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7486
7487         * ch-tree.h (CH_LOCATION_P):  New macro.
7488         * ch-typeck.c (layout_chill_range_type):  Fix call to
7489         type_for_size, when figuring out a defaulted parent type.
7490         * ch-expr.c (build_chill_lower, build_chill_sizeof):  Check
7491         for TREE_CODE_CLASS != 't' rather than == 'd'.
7492         * ch-expr.c (build_chill_function_call):  Use CH_LOCATION_P
7493         to check for location, rather than TYPE_CODE_CLASS == 'd'.
7494
7495         * ch-tree.c (build_string_type):  Make 2-pass safe.  Also,
7496         change parameter to be length, not index type.
7497         * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7498         (build_chill_string): Modify callers of build_string_type accordingly.
7499         * ch-lex.l (check_newline):  Don't look for # directive inside a
7500         C-style comment.
7501         * ch-grant.c (grant_array_type):  Make more robust for char-
7502         and bit-strings (allow non-constant sizes).  Change parameters
7503         and return types.  (raw_decode_mode):  Use grant_array_type
7504         for bitstrings.  (otherwise):  Fix grant_array_type callers.
7505
7506 Mon Sep 27 16:57:57 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7507
7508         Remove changes of Sep 15.
7509         * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7510         * ch-typeck.c (chill_similar):  Don't allow a singleton
7511         powerset to be similar to its domain.
7512         * ch-convert.c (convert_to_boolean):  Don't convert a singleton
7513         SET_TYPE constructor to a Boolean.
7514
7515         * ch-actions.c (chill_expand_assignment):  Handle IN_EXPR on
7516         LHS of assignment, which is what we're current (temporarily?) using.
7517
7518 Mon Sep 27 06:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7519
7520         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7521           ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7522           ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7523           -Wall cleanup.  Add prototypes where missing.
7524           Delete unused variables.  Cast uses of tree_codes
7525           to chill_tree_code, which they are.
7526
7527 Sun Sep 26 13:09:57 1993  Bill Cox  (bill@rtl.cygnus.com)
7528
7529         * ch-decl.c (do_decl): Save initializer in pass zero
7530           case also.
7531         * ch-lex.l: Fix comments, indentation.
7532         * ch-parse.y: Standardize error messages to use
7533           uppercase for CHILL keywords rather than quoting them.
7534           Suggestion from docs department.
7535         * ch-tasking.c: Pervasive changes to get processes to
7536           compile and START.
7537         * ch-tree.h: Delete prototypes for functions whic
7538           I made static inside ch-tasking.c.
7539
7540 Sun Sep 26 02:40:02 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7541
7542         * ch-lex.l (yywrap): Call `check_newline' in case the file
7543         started with a line directive.
7544
7545 Sat Sep 25 13:54:41 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7546
7547         * ch-decl.c:  Expand pre-amble comment.
7548         * ch-decl.c (struct scope, push_module):  Use new field
7549         tail_chain_module to build child-module list in order.
7550         (Just to make compiler debugging a little less confusing.)
7551
7552         * ch-decl.c (struct scope):  New field weak_decls.
7553         * ch-decl.c (find_implied_types):  New interface.  Now pre-pend
7554         new enum types to a given input list.  This makes it easier to
7555         avoid duplicates, which should at least be more efficient.
7556         Also, handle FUNCTION_DECL.
7557         * ch-decl.c (bind_saved_names):  Removed.  Distribute its
7558         functionality over new functions (push_scope_decls, pop_scope_decls,
7559         build_implied_names, bind_sub_modules).  The goal (which seems to
7560         have been more-or-less attained) was to fix weak name handling.
7561         * ch-decl.c (poplevel):  Use new function pop_scope_decls.
7562
7563         * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7564         Use build_decl directly, rather than grok_chill_fixedfields
7565         (which depends on ignore_exprs and has more overhead).
7566         * ch-tasking.c (build_signal_struct):  Construct the type
7567         only in pass 1.
7568         * ch-typeck.c (build_chill_slice):  Use my_build_array_ref rather
7569         than build_array_ref (which does C-specific "optimizations").
7570         (Hence move my_build_array_ref up earlier in the file.)
7571
7572 Sat Sep 25 03:47:28 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7573
7574         * ch-tasking.c: Declare static variable `void_ftype_void'.
7575         (chill_tasking_init): Initialize `void_ftype_void' here.
7576         (build_tasking_struct): Use, don't declare `void_ftype_void'.
7577         (generate_tasking_code_variable): Call `do_decl', not
7578         `decl_temp1' to declare TASKING_CODE_NAME.
7579         (tasking_setup): Drop into 1-pass mode so that all
7580         tasking-related declarations are installed in the global
7581         scope.  Use correct CHILL types for initializers (since
7582         ptr_type_node doesn't have the right meaning for CHILL).
7583         Also, call `do_decl' instead of `decl_temp1' for
7584         `init_struct'.
7585         (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7586         `chill_finish_compile' in sync between passes.
7587
7588         * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7589         declarations on pass zero.  Keep obstacks in sync, and always
7590         call `finish_decl' for pass zero declarations.
7591         (push_chill_extern_function): Keep obstacks in sync, and always
7592         call `finish_decl' for pass zero declarations.
7593         (build_enumerator): Ditto.
7594         (grok_chill_variantdefs): Change PASS test to exclude only
7595         pass one.
7596         (finish_struct): Ditto.
7597         * ch-expr.c (build_chill_component_ref): Ditto.
7598         (build_chill_binary_op): Ditto.
7599         * ch-tree.c (build_powerset_type): Ditto.
7600         (build_bitstring_type): Ditto.
7601         * ch-typeck.c (build_chill_range_type): Ditto.
7602         (build_chill_struct_type): Ditto.
7603
7604         * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7605         extra pushing and popping of obstacks.
7606
7607         * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7608         on IO_DESCRIPTOR.  This causes IO_DESCRIPTOR to be laid out.
7609
7610         * ch-grant.c (chill_finish_compile): Clear out both
7611         MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7612         from pass one.
7613
7614         * ch-parse.y (rccase_label): Add NAME rules so that pass one
7615         works w/o knowing we're parsing a signal.  Simplify SIGNALNAME
7616         rules since we only get SIGNALNAME tokens in pass two.
7617         (sendaction): Ditto.
7618         * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7619         BUFFERNAME on pass two.  The grammar now handles this.
7620         * ch-decl.c (lookup_remembered_decl): Deleted.
7621
7622 Fri Sep 24 15:27:13 1993  Bill Cox  (bill@cygnus.com)
7623
7624         * ch-decl.c (lookup_remembered_names): Removed.  It was being
7625           misused in ch-lex.l.
7626         * ch-lex.l (name_type_signal): Revert last change.  Basically,
7627           we cannot use the C typedef/variable name trick in CHILL, due
7628           due to the language's 2-pass nature.
7629         * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7630           a seg fault.
7631         * ch-tree.h (lookup_remembered_name): Comment out the prototype.
7632
7633 Fri Sep 24 11:01:31 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7634
7635         * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7636           checks so the pass == 0 case is handled for built-in types.
7637           (push_modedef): Add check for error_mark_node.
7638           (lookup_remembered_decl): New function.
7639           (pushlevel, poplevel) Change pass checks.
7640           (pushdecl): Check type as well for NULL.
7641           (build_enumerator): Handle pass == 0 case.
7642         * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7643           during pass 1.
7644         * ch-parse.y: Set pass to zero to indicate initial decl processing.
7645           Replace NAME references with SIGNALNAME references.
7646           (startaction): Only check copy number if not ignoring actions.
7647           Always call build_chill_start_process.
7648           (optstartset): Don't lookup the instance name.
7649         * ch-tasking.c (generate_tasking_code_variable): Replace
7650           do_decl call with decl_temp1 call.
7651           (build_chill_start_action): Check for ignore_actions here.
7652           (build_tasking_message_type): Layout the type.
7653           (rc_state_type): New structure to keep nested receive-case
7654           info in.
7655           (build_chill_receive_case_start, build_chill_receive_case_end):
7656           Use the new struct.
7657
7658
7659 Fri Sep 24 04:19:15 1993  Michael Tiemann  (tiemann@blues.cygnus.com)
7660
7661         * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7662         should be a _DECL, not an IDENTIFIER_NODE.
7663
7664 Thu Sep 23 18:18:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7665
7666         * ch-decl.c (find_implied_types):  Handle VAR_DECLs.
7667
7668         * ch-decl.c (print_lang_identifier):  Print IDENTIFIER_OUTER_VALUE.
7669         * ch-actions.c (chill_expand_result):  Allow value-less RETURN.
7670         * ch-expr.c (resolve_component_ref):  Recognize error_mark.
7671
7672         * ch-convert.c (digest_constructor):  Handle a nested powerset tuple.
7673         * ch-satisfy.c (satisfy):  Use return value of layout_chill_range_type.
7674         * ch-typeck.c (chill_similar):  Repeatedly get parent modes
7675         of ranges, not just once.
7676         * ch-typeck.c (chill_root_resulting_mode), ch-tree.h:  New function.
7677         * ch-typeck.c (layout_chill_rang_type):  Re-do type-checking
7678         to follow Blue Book better (check for Compatibility).
7679
7680         * ch-tree.h (CH_ROOT_RESULTING_MODE):  New macro.
7681         * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7682         New variables.  The latter replaces in_seizefile.
7683
7684         Changes to store in the new DECL_SEIZEFILE field each seize
7685         ALIAS_DECL the name in the most recent use_seize_file directive.
7686         (This requires that use_seize_file directives written to the
7687         grant file be written before the SEIZEs that need it.)
7688         Allow clashing declarations granted into the global scope
7689         (produce a warning), but remember the seizefile case from
7690         (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7691         The a SEIZE will select the granted decl that matches its
7692         DECL_SEIZEFILE (in other words:  grants from the most recent
7693         use_seize_file will be preferred).
7694         * ch-tree.h (DECL_SEIZEFILE), ch-tree.def:  New macro.
7695         * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE):  Renamed
7696         to outer_value, IDENTIFIER_OUTER_VALUE.
7697         Changes to cause the use_seize_file directives to be written
7698         out in order as they're seen in source.
7699         * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7700         Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7701         * ch-lex.l (handle_use_seizefile_directive):  Modify appropriately.
7702         Don't call grant_use_seizefile.
7703         * ch-lex.l (mark_use_seizefile_written):  New function.
7704         * ch-grant.c (decode_decl):  Write out use_seize_file directive,
7705         if needed, before writing a seize declarations.
7706         * ch-decl.c (pop_module):  Handle decls granted into the global
7707         module specially, setting IDENTIFIER_OUTER_VALUE.
7708         * ch-decl.c (lookup_name_for_seizing):  Check IDENTIFIER_OUTER_VALUE.
7709
7710 Thu Sep 23 19:05:37 1993  Bill Cox  (bill@cygnus.com)
7711
7712         * ch-decl.c (push_chill_extern_process): Delete unused variables,
7713           declare the process' tasking_code variable as external.
7714         * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7715           the process header.
7716         * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7717           to (signaldef).
7718         * ch-tree.h: Add prototype.
7719         * expr.c (store_constructor): Emergency first-aid.  Rewrite later.
7720
7721 Thu Sep 23 12:57:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7722
7723         * ch-expr.c (build_chill_function_call):  Move possible call to
7724         chill_start_module_code until we know we're not calling a builtin.
7725         * ch-decl.c (save_expr_under_name):  Use pushdecllist,
7726         not proclaim_decl (which provide for popping the decl).
7727         * ch-parse.y (optname):  Also allow TYPENAME.
7728
7729 Thu Sep 23 09:18:35 1993  Bill Cox  (bill@cygnus.com)
7730
7731         * ch-decl.c (print_lang_decl): Make weak name output more standard.
7732           (print_lang_identifier): Make signal-data flag output more standard.
7733           (push_chill_extern_process): Pass correct arg tree to
7734           push_chill_extern_function.
7735           (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7736           Standardize function header layouts (Makes the tcov script
7737           work better).
7738         * ch-except.c (chill_finish_on): Standardize function header.
7739         * ch-expr.c (fold_set_or): Standardize function header.
7740         * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7741           function headers.
7742           (decode_constant): Make sure that alpha operators are surrounded
7743           with whitespace.
7744         * ch-parse.y: Spell Z.200 correctly in comments.
7745
7746 Wed Sep 22 10:42:31 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7747
7748         * ch-expr.c (build_chill_addr_expr), ch-tree.h:  New function.
7749         * ch-parse.y, ch-decl.c (shadow_record_fields):  Use it.
7750         * ch-lex.l (handle_use_seizefile_directive):  Don't emit
7751         use_seize_file directive if in_seizefile.
7752
7753         * ch-convert.c (digest_structure_tuple):  Fix code that checks
7754         for excess init values.
7755         * ch-decl.c (layout_chill_variants):  Move increment of nlabels
7756         inside the proper loop.
7757         * ch-grant.c (print_struct):  Add missing loop for tag_list.
7758         (print_struct):  Look for variant fields by checking for a
7759         UNION_TYPE, not a NULL name, since we must use a dummy name.
7760         * ch-parse.y (structured_variable):  Various fixing.
7761         * ch-decl.c (shadow_record_fields):  Rename arg decl -> struct_val.
7762
7763         * ch-satisfy.c (safe_satisfy_decl):  Disable copying of modes
7764         for NEWMODE (and hence novelty checking), until we figure out
7765         a better way.
7766
7767         * ch-except.c (finish_handler_array):  Use null_pointer_node,
7768         not integer_zero_node (which fails to type-check).
7769
7770         * c-typeck.c (get_constructor_element_type):  New function.
7771         * ch-tree.h (CH_NOVELTY_FLAG):  Now also used in TYPE_DECLs.
7772         (CH_NOVELTY):  Redefined to call new function chill_novelty.
7773         (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE):  Removed.
7774         * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7775         Take extra output parameter (for M, as in M-value class).
7776         * ch-typeck.c (chill_novelty):  New function.  (Also de-references.)
7777
7778         * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7779         New functions.  Handle 2-pass and variant records.
7780         * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7781         * ch-satisfy.c (satisfy, case COMPONENT_REF):
7782         New case, call resolve_component_ref.
7783
7784         * ch-expr.c (build_generalized_call):  Extract single arg from
7785         arg list before calling build_chill_cast.
7786
7787         * ch-parse.y (defining_occurrence_list):  New non-terminal.
7788         Use it to replace locnamelist, synnames, and modenames.
7789         * ch-parse.y:  Re-write parsing of variant records.
7790
7791         * ch-decl.c (grok_chill_variantdefs):  Now return a FIELD_DECL
7792         rather than just its type.
7793         * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7794         Change callers appropriately.
7795
7796         * ch-tree.h (TYPE_TAG_VALUES):  Add an extra level of TREE_LIST,
7797         to support multiple tag fields.
7798         * ch-grant.c  (print_struct), ch-decl.c (layout_chill_variants):
7799         Support multiple tag fields.
7800
7801         * ch-convert.c (remove_tree_element, digest_structure_tuple):
7802         New functions, to digest structure tuples, without calling the
7803         code in c-typeck.c.  Handles variant tuples and tags (partially).
7804         * ch-convert.c (digest_constructor, convert):  Call
7805         digest_structure_tuple when appropriate.
7806         * ch-convert.c (digest_constructor): Re-arrange a bit.
7807
7808         * ch-decl.c (push_modedef):  Defer copying of tree until ...
7809         * ch-satisfy (safe_satisfy_decl): ... here.
7810
7811         * ch-decl.c (getdecls):  Add kludge to help dbxout_init.
7812
7813 Tue Sep 21 14:19:11 1993  Bill Cox  (bill@cygnus.com)
7814
7815         Partial tasking update - not done yet.
7816         * ch-actions.c: Comments, indentation.
7817         * ch-decl.c (push_chill_extern_process): No longer need to
7818           reformat the arg list for make_process_struct.
7819           (pop_module): Don't seg fault on null DECL_NAME.
7820           (handle_one_level): Error, not warning if tree not recognized.
7821           (shadow_record_fields): Rename formal param for readability.
7822         * ch-grant.c (decode_decl): Write proper header for a process.
7823         * ch-parse.y (quasi_pdef): process now uses processparlist,
7824           which doesn't change with the passes.
7825           (quasi_locdec): Call build_chill_reference_type to defer
7826           doing the type's layout.
7827           (processpar): Use paramnamelist, but reformat it into a
7828           list of identifiers in pass 2, so a processpar is the same
7829           structure in both passes.
7830           (locdec): Call build_chill_reference_type to defer doing the
7831           type's layout.
7832         * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7833           build the decl.  Only update the variable's tree in pass 2.
7834           (make_process_struct): Call build_chill_reference_type to defer
7835           doing the type's layout.
7836           (build_process_header): New code to call make_process_struct.
7837           New pass-2 code to make a PARM_DECL for start_chill_function.
7838           Pass a void_type_node, not a NULL_TREE for an empty list.
7839           Get input for shadow_record_fields from current_function_decl.
7840           (build_buffer_decl): Call do_decl not decl_temp1.
7841         * ch-typeck.c: Reindent to standards.
7842         * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7843
7844 Mon Sep 20 12:00:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7845
7846         * ch-typeck.c (classify_chill_expr):  An expression with a
7847         REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7848         * ch-actions.c (adjust_parm_or_field):, ch-tree.h:  Change last
7849         parameter, so we can reliably recognize LOC parameters.
7850         * ch-tasking.c, ch-expr.c:  Change callers appropriately.
7851
7852 Sun Sep 19 22:26:25 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7853
7854         * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE):  New macros.
7855         * ch-typeck.c (chill_referable, chill_read_compatible):  New functions.
7856         * ch-typeck.c (chill_compatible):  Allow un-resolved CONSTRUCTOR
7857         (with NULL TREE_TYPE), when reasonable.  (Simplifies callers.)
7858         Also, handle case of expr being of reference class.
7859         * ch-actions.c (adjust_parm_or_field):  Major re-arrange
7860         to handle conversions and LOC args better.
7861         * ch-actions.c (chill_expand_assignment):  Simplify conversions.
7862         * ch-expr.c (build_chill_function_call):  If needed, call
7863         chill_start_module_code.
7864         * ch-decl.c (declare_predefined_file):  New function, used
7865         to pre-define stdin, stdout, and stderr.
7866         * ch-inout.c (chill_stdio_p):  Change names of predefined
7867         files from chill-stdin etc to plain stdin (and change their types).
7868         * ch-lex.l:  Remove some obsolete stuff.
7869         * ch-convert.c (convert):  Move conversion from reference to
7870         to beginning of convert() so other conversion can work better.
7871         Also, remove bogus direct setting of TREE_TYPE.
7872
7873 Fri Sep 10 12:23:41 1993  Wilfried Moser  (fs_moser@cygnus.com)
7874
7875         * Makefile.in: Change installation of the chill script. gcc will
7876           be called always with the full path. That made problems when
7877           somebody was using chill but didn't have the installation
7878           directory in PATH.
7879         * ch-parse.y: Change parsing of WRITETEXT action.
7880         * ch-tree.h: Add some new prototypes according to the
7881           (partial) implementation of WRITETEXT.
7882         * ch-typeck.c: Add new function chill_varying_string_type_p. This
7883           functions checks a type for being CHAR(n) VARYING.
7884         * ch-decl.c (init_decl_processing): Add new built-in functions
7885           _writestring and _writeunixstd.
7886           Add call to  build_chill_io_list_type in ch-inout.c.
7887         * ch-inout.c (build_chill_writetext): Add some code there.
7888           Add new function build_chill_io_list_type.
7889           Add new static function chill_stdio_p. This function checks
7890           the text argument for being chill_stdin, chill_stdout or
7891           chill_stderr.
7892
7893 Fri Sep 17 22:02:04 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7894
7895         * ch-decl.c (push_modedef):  Fix TYPE_MAIN_VARIANT thinko.
7896
7897 Thu Sep 16 18:38:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7898
7899         * ch-decl.c (allocate_lang_decl):  Do nothing.
7900         * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7901         No longer used;  remove.
7902
7903         * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7904         (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7905         (make_chill_variants, layout_chill_variants):  Add (initial) part
7906         of support for multiple tags.
7907         * ch-decl.c (lookup_tag_fields):  New function.
7908         * ch-parse.y (stmt_count):  Not used; removed.
7909         * ch-parse.y (mode2):  Clear current_fieldlist before
7910         parsing STRUCT fields;  restore afterwards.
7911
7912         * ch-parse.y (push_action):  Moved to ch-actions.c.
7913
7914 Wed Sep 15 18:19:37 1993  Bill Cox  (bill@rtl.cygnus.com)
7915
7916         * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7917           constructor to a boolean.
7918
7919 Wed Sep 15 17:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
7920
7921         * ch-decl.c (push_modedef): Enable novelty-setting code.
7922         * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7923         * ch-typeck.c (chill_similar): Add checking of singleton
7924           powerset against its base type.
7925
7926 Tue Sep 14 17:11:52 1993  Bill Cox  (bill@rtl.cygnus.com)
7927
7928         * ch-actions.c (adjust_parm_or_field): Create a
7929           temporary for an non-referencable actual parameter
7930           passed to a LOC formal parameter.
7931           (chill_expand_assignment): Correct compatibility checking.
7932
7933         * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7934         * ch-parse.y (opsigdest): Only check for process name
7935           in pass 2, when we know.
7936         * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7937         * ch-typeck.c: Fix comment.
7938
7939 Mon Sep 13 17:33:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7940
7941         * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7942         decl_seen_p, processed_decls, allocated, nr_decls):  Removed
7943         no-longer-useful functions and variables that used to guard
7944         against writing a decl multiple times.  Since we now just
7945         go through the decl list linearly, that is no longer an issue.
7946         * ch-satisfy.c (safe_satisfy_decl):  Handle missing current_module.
7947
7948         * ch-decl.c (start_chill_function):  Clear DECL_ASSEMBLER_NAME.
7949         Don't make TREE_PUBLIC.  Don't generate rtl yet.
7950         * ch-decl.c (pop_module):  If a decl is granted, set TREE_PUBLIC,
7951         and its DECL_ASSEMBLER_NAME.
7952         * ch-decl.c (fix_identifier):  New function.
7953         * ch-grant.c (grant_one_decl):  Don't set TREE_PUBLIC.
7954         * ch-tree.h (struct module):  New field prefix_name.
7955         * ch-satisfy.c (safe_satisfy_decl):  If assembler_name isn't
7956         set, prefix it by the module name(s).
7957         * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7958         Call make_function_rtl if needed and !LOOKUP_ONLY.
7959         * ch-typeck.c (chill_similar):  Flesh out substantially.
7960         * ch-typeck.c (chill_compatible):  Re-structure.
7961
7962         * ch-actions.c (adjust_parm_or_field):  Use CH_COMPATIBLE
7963         instead of chill_comptypes to compare actual and formal.
7964
7965 Sun Sep 12 21:10:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
7966
7967         * ch-parse.y (labellist):  Don't do anything if ignore_exprs.
7968
7969         * c-typeck.c (output_pending_init_elements): Handle
7970         !constructor_incremental case of filling in empty positions.
7971         (Patch by Jim Wilson.  CYGNUS LOCAL until we have approval.)
7972         * ch-decl.c (pop_module):  Don't grant a seized name.
7973         * ch-grant.c (decode_constant):  Support CALL_EXPR.
7974         * ch-tree.c (build_bitstring_type):  Don't try to fold non-constant
7975         size if pass==1 (since it may be an unsatisfied name).
7976
7977
7978 Sun Sep 12 18:06:23 1993  Bill Cox  (bill@rtl.cygnus.com)
7979
7980         2-pass fixes for processes.  Partially done.
7981         * ch-actions.c (chill_expand_assignment): Add real
7982           novelty-checking sketch, $ifdef'd out for now.
7983         * ch-decl.c: Generally fix indentation.  Move tasking
7984           init code from init_decl_processing to ch-tasking.c.
7985           Delete ObjC-related cruft.  More accurate parameter name
7986           for shadow_record_fields.  Move debug_scope before
7987           its first call.
7988         * ch-expr.c (build_chill_function_call): Return if not
7989           pass 2.
7990         * ch-grant.c (print_proc_tail): Avoid trying to format
7991           a VOID return type, or using a NULL pointer.
7992           (decode_decl): Minor changes for PROCESS arg access.
7993         * ch-lang.c (lang_decode_option): Use -itu flag to
7994           enable 'pedantic' mode.
7995         * ch-lex.l (init_lex): Initialize compiler-directive
7996           variable trees.
7997           (name_type-signal): Disable the returning of SIGNAL and BUFFER
7998           name tokens.
7999         * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
8000           All uses renamed also.
8001           (end_function): Always poplevel, not just in pass 2.
8002           (quasi_pdef): Check for end-label matching.
8003           (quasi_formparlist): Write more clearly.
8004           (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
8005           guards.
8006           (rccase_label, sendaction): Use NAME, not SIGNALNAME
8007           or BUFFERNAME.
8008           (process): Handle like procedure.
8009           (mode): Add SIGNAL as a generic signal parameter.  This
8010           is a client-specific extension, so pedantic is checked.
8011         * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
8012         * ch-tree.h (CH_NOVELTY): Make it an lvalue.
8013         * ch-typeck.c: Fix comment.
8014
8015 Sun Sep 12 15:03:21 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8016
8017         * c-typeck.c (digest_init):  Compare types using comptypes
8018         instead of comparing pointers.  (Helps Chill front end.)
8019         * ch-expr.c (finish_chill_binary_op):
8020         * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
8021         ch-expr.c (finish_chill_binary_op):  For now, prefer IN_EXPR
8022         over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
8023         (incomplete support for variable fields, and possible bug in
8024         optimize_bit_field_compare).
8025         * ch-expr.c (finish_chill_binary_op):  Fix type-checking
8026         and appropriately coerce operands for IN_EXPR and comparsions.
8027         * expr.c (expand_expr, case ARRAY_REF):  Coerce lower bound (if
8028         non-zero) to sizetype before subtraction.
8029         * expr.c (expand_expr):  Remove Chills-specific calls to
8030         __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
8031
8032 Fri Sep 10 15:47:52 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8033
8034         * ch-tree.def (UNDEFINED_EXPR):  New kind of expression.
8035         * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
8036         ch-convert.c (convert):  Handle UNDEFINED_EXPR.
8037
8038         * ch-expr.c (build_char_array_expr):  Move CONCAT_EXPR support to ...
8039         * ch-expr.c (build_concat_expr):  ... here.
8040         Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
8041         Also, make result varying only if one of the operands are.
8042
8043         * ch-expr.c (build_chill_binary_op):  Move stuff from here to ...
8044         * ch-expr.c (finish_chill_binary_op):  ... here, as needed for
8045         proper 2-pass split.  Also, clean up and simplify heavily.
8046
8047         * ch-tree.h (enum ch_expr_class):  The 5 kinds of expression classes.
8048         * ch-typeck.c (classify_chill_expr):  New function:  Determine
8049         class of expression.
8050         * ch-typeck.c (chill_compatible_classes):  Re-structure; fix
8051         asymmetry bugs.
8052         * ch-tree.h (CH_CLASS_IS_XXX):  Re-define to use classify_chill_expr.
8053
8054         * ch-convert.c (maybe_turn_scalar_into_array):  Complain
8055         unless scalar is a char constant (and we want a string).
8056         * ch-convert.c (convert):  New code for converting to variable
8057         string/array.  Avoid type errors by padding (with an UNDFIEND_EXPR).
8058         * ch-typeck.c (chill_expand_tuple):  Don't do conversion to
8059         varying type here;  that is handled by convert now.
8060         * ch-decl.c (digest_constructor):  Moved to ...
8061         * ch-convert.c (digest_constructor):  ... here.
8062         * ch-decl.c (do_decl):  Simplify; just use convert for initializer.
8063         * ch-decl.c (chill_digest_init):  Merged into convert, and removed.
8064         * ch-decl.c (init_decl_processing):  Set constructor_no_implicit flag.
8065         * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
8066         Replace chill_digest_init by convert.
8067         * ch-actions.c (chill_expand_array_assignment):  Simplify; use convert.
8068         * ch-lex.l (build_chill_string):  Make string type be derived
8069         from integer, not sizetype, because upper bound can be -1.
8070
8071 Thu Sep  9 18:21:46 1993  Bill Cox  (bill@rtl.cygnus.com)
8072
8073         * ch-typeck.c (my_build_array_ref): Delete pedantic
8074           C-specific error message.
8075
8076 Thu Sep  9 17:44:20 1993  Jeffrey Wheat  (cassidy@eclipse.cygnus.com)
8077
8078         * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
8079
8080 Thu Sep  9 12:22:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8081
8082         * ch-typeck.c (build_chill_array_ref):  Remove redundant and
8083         broken call to my_build_array_ref.
8084
8085 Wed Sep  8 13:03:49 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8086
8087         * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
8088         Don't use store_init_value, since it calls digest_init instead
8089         of chill_digest_init.
8090         * ch-except.c (finish_handler_array):  Use build1 (ADDR_EXPR, ...)
8091         instead build_unary_op to avoid C-specific optimizations.
8092         * ch-typeck.c (my_build_array_ref):  Don't use default_conversion
8093         to convert array to pointer.
8094         * c-typeck.c (process_init_default):  New function, to support
8095         default values for array tuples in Chill.
8096         * c-typeck.c (default_conversion):  Don't convert array to pointer
8097         if compiling Chill.
8098         * ch-decl.c (digest_constructor):  New function;  used to be guts
8099         of chill_digest_init.  Now recursive, to handle nested tuples.
8100
8101         * ch-decl.c (chill_digest_init):  Handle struct labels.
8102         * ch-grant.c (get_tag_value):  Use decode_constant in general case.
8103         * ch-grant.c (decode_constant):  Add support for lots of missing
8104         binary and unary operators.
8105
8106 Wed Sep  8 10:11:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8107
8108         * ch-lang.c: Look for '-I' option for seize file path.
8109         * ch-lex.l: Fix comment about above option.
8110
8111 Wed Sep  8 00:37:32 1993  Per Bothner  (bothner@rtl.cygnus.com)
8112
8113         * ch-satisfy.c:  Move code to set (and restore) file-and-line
8114         from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
8115         alias decls that refer to real decls with errors.
8116         * ch-actions.c (lang_init):  Move to ch-lang.c.
8117         * ch-decl.c (init_decl_processing):  Move code to initialize
8118         file-and-line from here ...
8119         * ch-lang.c (lang_init): ... to here, to avoid clobbering.
8120
8121         * ch-decl.c (chill_digest_init):  Add support for SET_TYPE,
8122         and index values.
8123         * ch-typeck.c (chill_expand_typle):  Just call chill_digest_init.
8124         * c-typeck.c:  Fix various things that got broken
8125         in the latest merge.
8126
8127 Tue Sep  7 15:45:58 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8128
8129         * ch-decl.c (build_enumerator):  Handle a "unnamed set element"
8130         (obsolete feature) by generating a dummy name.
8131         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation with
8132         "correct" value of top-level (to get better debugging output).
8133         * ch-decl.c (bind_saved_names):  Allow a null DECL_NAME.
8134
8135 Tue Sep  7 15:48:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8136
8137         * ch-actions.c (chill_expand_return): Correct breakage
8138           due to recent fsf merge.
8139
8140 Tue Sep  7 11:16:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8141
8142         * .cvsignore: Add multilib.h.
8143         * ch-decl.c (chill_digest_init): New function.  Calls were
8144           changed, since it has fewer parameters than old digest_init.
8145         * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
8146           new init stuff.
8147           (elementlist): Delete unused code.
8148         * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
8149         * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
8150         * ch-tree.h: Delete digest_init prototype.
8151         * ch-typeck.c (digest_init): Much new code.
8152
8153 Tue Sep  7 12:06:28 1993  Bill Cox  (bill@rtl.cygnus.com)
8154
8155         * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
8156           files to their pre-init-change state.
8157
8158 Mon Sep  6 15:28:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8159
8160         Preliminary adaptation to rms' new initializer code.
8161         * ch-decl.c (do_decl): Call chill_digest_init, not
8162           digest_init, which rms made static.
8163         * ch-expr.c (chill_truthvalue_conversion): Delete C-
8164           specific code.
8165         * ch-loop.c (init_loop_counter): Indent for readability.
8166         * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
8167         * ch-tree.h: Prototype changes for new init code.
8168         * ch-typeck.c (chill_expand_tuple): Call new init code.
8169         * chill.texi: Add necessary '-f' prefix on options.
8170
8171 Wed Sep  1 13:21:53 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8172
8173         * ch-convert.c (build_array_type_for_scalar),
8174         ch-tasking.c (build_chill_receive_case_end):  Index type
8175         specification is now chain of types (not chain of TREE_LIST).
8176         * ch-satisfy.c (satisfy):  Don't try to satisfy the
8177         abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
8178         * ch-expr.c (build_chill_binary_op):  If pass 1, do NOT
8179         call finish_chill_binary_op.
8180         * ch-parse.y (arrayindex):  Simplify.
8181
8182 Tue Aug 31 14:57:35 1993  Bill Cox  (bill@rtl.cygnus.com)
8183
8184         * ch-decl.c (print_lang_decl): Print weak-name status.
8185           (print_lang_identifier): Print signal_data as T or F.
8186         * ch-lex.l (convert_bitstring, convert_charliteral,
8187           convert_float, convert_number): Pass string directly to convert
8188           as a parameter.  Return token code consistently, return 0
8189           for error.
8190           (equal_number): Parse differently, allowing hex, binary
8191           and octal constants.
8192         * ch-parse.y (dowithaction, structured_variable): Only
8193           push/pop scopes once per DO WITH.
8194           (structured_variable_list): Check ignore_actions flag here.
8195         * gcc.c: Delete 'traditional' from string, add 'itu'
8196           as the standard flag's name.
8197
8198 Mon Aug 30 15:12:26 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8199
8200         * ch-typeck.c, ch-tree.h (build_chill_range_type):  Take 3
8201         parameters instead of 2 (explicit low and high bounds).
8202         * ch-parse.y (arrayindex):  Build range type from low:high.
8203         (rangesize, optrangesize):  Removed.
8204         (where appropriate):  Use new build_chill_range_type interface.
8205         * ch-grant.c:  Clean up writing of range and array types.
8206         * ch-satisfy.c (satisfy):  Don't ignore the return value of
8207         layout_chill_array_type. (It may be an error mark.)
8208         * ch-typeck.c (build_chill_array_type):  Simplify.
8209         * ch-typeck.c (layout_chill_array_type):  Clean up checks.
8210
8211 Fri Aug 27 12:55:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8212
8213         * ch-decl.c (decl_temp1):  Set DECL_ASSEMBLER_NAME.
8214         (push_chill_extern_function)  Don't set current_function_decl.
8215         * ch-parse.y (tupleelement):  Don't wrap index is a TREE_LIST
8216         (i.e. a range), don't wrap a PAREN_EXPR around it.
8217         * ch-grant.c (decode_constant):  For tuple CONSTRUCTORs,
8218         add support for ranges in purpose.
8219
8220 Wed Aug 25 16:58:13 1993  Bill Cox  (bill@rtl.cygnus.com)
8221
8222         * .cvsignore: Add g++.sum
8223         * ch-actions.c (chill_expand_result): Stop building a temp.
8224           Assign the expression directly into function's DECL_RESULT.
8225         * ch-decl.c: Add formfeeds.
8226           (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
8227           (push_chill_function_context): Delete C pedwarn message.
8228         * ch-expr.c: Move builtin functions together.
8229         * ch-parse.y (end_function): Delete unused code.
8230           Reformat %union for readability.  Delete _MAX and _MIN
8231           tokens.
8232
8233 Wed Aug 25 13:24:06 1993  Bill Cox  (bill@rtl.cygnus.com)
8234
8235         * ch-actions.c (get_result_tmp_name): Delete unused function.
8236           (chill_expand_result, chill_expand_return): Rewrite for
8237           2-pass.
8238         * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
8239           chain field, so we can make a temp, evaluate a RESULT action's
8240           expression into it, and hang it on here.
8241         * ch-parse.y (end_function): Look for RESULT temps to emit.
8242           (assertaction): Indentation.
8243
8244 Wed Aug 25 08:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8245
8246         * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
8247           It wasn't used anyway.
8248
8249 Tue Aug 24 17:51:18 1993  Bill Cox  (bill@rtl.cygnus.com)
8250
8251         * ch-actions.c (chill_expand_result, chill_expand_return):
8252           No need to make a temp for the value, just use DECL_RESULT.
8253
8254 Tue Aug 24 16:38:24 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8255
8256         * ch-tree.c (layout_powerset_type):  Remove redundant code.
8257         Generalize (in error message) to also handle bitstrings.
8258         * ch-tree.c (build_bitstring_type):  Remove all layout-like
8259         stuff, and defer that to layout_powerset_type.
8260         * ch-expr.c (chill_expand_expr):  For various SET_xxx_EXPRs,
8261         allocate stack temp for target using correct mode.
8262
8263 Tue Aug 24 10:27:19 1993  Bill Cox  (bill@rtl.cygnus.com)
8264
8265         * ch-actions.c, ch-decl.c, ch-except.c,
8266           ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
8267           ch-typeck.c: Change build_modify_expr calls to
8268           build_CHILL_modify_expr calls.
8269         * ch-expr.c (build_chill_modify_expr): Adapted from
8270           build_modify_expr in c-typeck.c.
8271
8272 Mon Aug 23 16:48:39 1993  Bill Cox  (bill@rtl.cygnus.com)
8273
8274         * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
8275           ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
8276           ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
8277           Major re-allocation of functions to files.
8278
8279 Mon Aug 23 12:15:11 1993  Bill Cox  (bill@rtl.cygnus.com)
8280
8281         Thanks for the tip, Jim.
8282         * Makefile.in: Add dependency lines for ch-except.o and
8283           ch-satisfy.o.  Correct dependency lines for ch-convert.o,
8284           ch-expr.o, ch-inout.o, and ch-loop.o.
8285           (chill, install-common): Add clean-up commands.
8286
8287 Sat Aug 21 17:11:26 1993  Bill Cox  (bill@rtl.cygnus.com)
8288
8289         * ch-decl.c (get_type_precision): New function.
8290           (layout_enum): Call it.
8291         * ch-tree.c (layout_powerset_type, build_bitstring_type):
8292           Call it.
8293
8294 Sat Aug 21 13:59:40 1993  Bill Cox  (bill@rtl.cygnus.com)
8295
8296         * ch-decl.c (init_decl_processing): Define setbitpowerset
8297           runtime function.
8298         * ch-expr.c (chill_expand_assignment): Call setbitpowerset
8299           to set a bit.
8300         * ch-parse.y: Indentation.
8301
8302 Fri Aug 20 17:29:56 1993  Bill Cox  (bill@rtl.cygnus.com)
8303
8304         * ch-parse.y: Delete unused %type declaration.
8305         * ch-tasking.c (build_signal_struct): Delete return, since
8306           function returns void.
8307         * ch-typeck.c: Indent to standard.
8308         * stor-layout.c: Fix comment.
8309         * toplev.c: Change -L option ti -I.
8310         * varasm.c (emit_set_data): Align set constant to word
8311           boundary.
8312
8313 Fri Aug 20 08:20:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8314
8315         * ch-actions.c: Fix indentation, comments.
8316         * ch-decl.c (push_chill_extern_signal): Use same interface
8317           as build_signal_struct.
8318         * ch-parse.y (quasi_signaldef): Move build_signal_decl
8319           here to sigdef.  Add quasi_signal to distinguish contexts
8320           where sigdef gets used.
8321         * ch-tasking.c: Replace make_signal_struct and build_signal_decl
8322           with build_signal_decl, which doesn't loop through a
8323           TREE_LIST.
8324         * ch-tree.h: Fix protos.
8325
8326 Wed Aug 18 17:36:53 1993  Bill Cox  (bill@cygnus.com)
8327
8328         * ch-actions.c: Fix comments.
8329         * ch-decl.c (push_modedefs): Return the new decl.
8330           (shadow_record_fields): Move pushlevel (0) calls into
8331           the grammar, so they'll get done in both passes.
8332         * ch-parse.y (dowithaction): Always compute & save # of
8333           'with' variables seen (both passes), and always pop that
8334           number of levels.
8335           (structured_variable_list): Always chain variables into a list.
8336           (structured_variable): Put pushlevel here (from shadow_record_fields).
8337         * ch-tasking.c: Indentation fixes.
8338         * ch-tree.h: Change proto.
8339         * chill.texi: Add Blue Book section numbers to unimplemented
8340           features list.
8341
8342 Wed Aug 18 15:48:43 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8343
8344         * ch-actions.c (build_generalized_call):  New function.
8345         Classifies semantically (if pass 2) this that look like calls.
8346         * ch-parse.y (call):  Invoke build_generalized_call.
8347         * ch-parse.y (sigdef):  Use defining_occurrence instead of NAME.
8348         * ch-parse.y (opt_untyped_exprlist):  New non-terminal.
8349         * ch-satisfy.c (satisfy):  Handle CALL_EXPR.
8350
8351 Tue Aug 17 16:36:15 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8352
8353         * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
8354
8355 Mon Aug 16 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8356
8357         * ch-tree.h (TUPLE_NAMED_FIELD):  New macro.
8358         * ch-parse.y (labelled structure tupleelement):
8359         Set TUPLE_NAMED_FIELD flag.
8360         * ch-grant.c (decode_constant):  Check for TUPLE_NAMED_FLAG.
8361         * ch-satisfy.c (satisfy):  Check for TUPLE_NAMED_FLAG.
8362         Do satisfy the elements of a CONSTRUCTOR even if call
8363         chill_expand_tuple isn't correct.
8364         * ch-satisfy.c (satisfy):  Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
8365         * ch-parse.y (label_spec):  Defer any semantic checking until ...
8366         * ch-decl.c (layout_chill_variants):  ... here.
8367         Also make sure to call layout_type on the union type.
8368         * ch-decl.c (bind_saved_names):  For weak names, allocate an
8369         ALIAS_DECL, rather than a CONST_DECL.
8370
8371         Add support for implied (weakly visible) names.
8372         * ch-tree.h (DECL_WEAK_NAME):  New macro.
8373         * ch-satisfy.c (satisfy of IDENTIFIER_NODE):  Don't complain
8374         if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
8375         * ch-decl.c (proclaim_name):  Handle DECL_WEAK_NAME appropriately.
8376         * ch-decl.c (concat_lists, find_implied_types):  New functions.
8377         * ch-decl.c (bind_saved_names):  Search for implied names.
8378         * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
8379         * ch-lang.c (layout_chill_struct_type):  Don't use
8380         C_DECL_VARIABLE_SIZE.
8381
8382 Mon Aug 16 16:10:43 1993  Bill Cox  (bill@rtl.cygnus.com)
8383
8384         * ch-actions.c: Delete extra space in error message.
8385         * ch-parse.y: Fix comment.
8386         * expr.c (store_constructor): Avoid passing NULL to convert,
8387           and getting back an error_mark_node and trying to process
8388           *that* node.
8389
8390 Mon Aug 16 14:41:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8391
8392         * ch-decl.c:  Add more overview comments.
8393         * ch-decl.c (proclaim_decl):  New function.
8394         * ch-decl.c (temp_pushdecl, struct shadowing):  Removed.
8395         * ch-decl.c (bind_saved_names):  Remove blevel parameter;
8396         use current_scope global instead.  Do some other cleanups.
8397         * ch-decl.c (save_expr_under_name):  Create an ALIAS_DECL.
8398         * ch-decl.c (pushdecllist, save_expr_under_name):  Use proclaim_decl.
8399         * ch-satisfy.c (satisfy, safe_satisfy_decl):  Be more careful
8400         to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
8401
8402         * chill.texi:  Start collecting Chill documentation here.
8403         * ch-parse.y (mode):  Ignore READ specifier, for now.
8404
8405 Mon Aug 16 11:13:07 1993  Bill Cox  (bill@rtl.cygnus.com)
8406
8407         * ch-actions.c (chill_comptypes): Correct handling reference
8408           of type 1.
8409           (build_chill_length, build_chill_num,
8410            build_chill_sizeof): Convert result to CHILL integer.
8411           (build_chill_function_call): Clean up INOUT and OUT
8412           parameter handling.
8413         * ch-decl.c (build_chill_function_type): Handle INOUT and
8414           OUT parameters.
8415         * ch-loop.c: Fix up comments.
8416         * ch-parse.y: Fix up comments.
8417
8418 Sun Aug 15 15:06:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8419
8420         * ch-actions.c (build_chill_lower, build_chill_upper):
8421           Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
8422         * ch-decl.c (save_expr_under_name): New function to save
8423           addressing expressions for DO WITH and DO FOR handling.
8424           (handle_one_level): Call new function.
8425         * ch-loop.c (init_loop_counter): Call it here, too.
8426           Check lp->user_var before passing it to lookup_name.
8427           (high_domain_value, low_domain_value): Correct call
8428           to build_chill_upper and build_chill_lower.
8429           (begin_chill_loop, end_chill_loop): Move pushlevel,
8430           poplevel up into the grammar, so they're done in both
8431           passes.
8432         * ch-parse.y (doaction): Unconditionally make a scope
8433           for a loop, pop it later.
8434           (controlpart, iteration): Save return from
8435           build_chill_iterator.
8436         * expr.c: Readability changes.
8437
8438 Sat Aug 14 19:42:32 1993  Bill Cox  (bill@rtl.cygnus.com)
8439
8440         * ch-expr.c (chill_expand_case_expr): Complete rewrite
8441           for 2-pass.  About 1/2 the size, too.
8442         * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
8443           This assures that a label preceding a module's first action
8444           is enclosed in the module-level function that's generated.
8445
8446 Sat Aug 14 14:56:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8447
8448         Re-implement how EXIT is done.
8449         'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
8450         'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
8451         Hence we no longer need any support for EXIT in stmt.c.
8452         * stmt.c (stamp_nesting_label, expand_exit_labelled):  Removed.
8453         * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
8454         * ch-tree.c, ch-tree.h (munge_exit_label): New function.
8455         * ch-parse.y:  Re-write bracked actions to support EXIT new way.
8456         * ch-decl.c, ch-loop.c:  Remove calls to stamp_nesting_level.
8457         * ch-parse.y:  Replace SC by new token semi_colon, which
8458         resets the 'label' global.  Also make sure that label gets
8459         reset whenever we might start a new action statement.
8460         * ch-parse.y (possibly_define_exit_label):  New function.
8461
8462         * ch-except.c (chill_start_on):  Wrap an ADDR_EXPR round the jmpbuf.
8463         * ch-grant.c (chill_finish_compile):  Make sure
8464         get_file_function_name is only called once.
8465         * ch-expr.c (chill_expand_array_assignment):  Use store_expr,
8466         instead of incorrectly calling emit_block_move.
8467
8468         * ch-parse.y (procedure):  Call push_chill_function_context
8469         in *both* passes (if nested).
8470         * ch-parse.y (primval):  Call get_type_of before chill_expand_type.
8471         * ch-parse.y (tupleelement):  Only build PAREN_EXPR during pass 1.
8472
8473 Fri Aug 13 16:36:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8474
8475         Re-implement GRANT and SEIZE, to support prefixes and prefix
8476         rename.  All of the Blue Book semantics for these should
8477         now work (except FORBID).
8478         * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
8479         DECL_POSTFIX, DECL_POSTFIX_ALL):  New ALIAS_DECL layout and macros.
8480         * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
8481         decl_check_rename):  New functions.
8482         * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
8483         * ch-satisfy.c (satisfy_decl):  Handle SYN initialized with tuple.
8484         * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
8485         * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8486         * ch-grant.c (decode_prefix_rename):  New function.
8487         Use to print out GRANT and SEIZE statements.
8488         * ch-decl.c (ALL_POSTFIX):  New global variable.
8489         * ch-decl.c (bind_saved_names, pop_module):  Change to use new
8490         ALIAS_DECL layout, and support general prefix rename and ALL.
8491         * ch-decl.c (various places):  Don't barf if DECL_ANME is NULL.
8492         * ch-parse.y (build_prefix_clause):  New function (handle PREFIXED).
8493         * ch-parse.y (optprogendname, optname):  Rename to opt_end_label.
8494         * ch-parse.y:  Add support for compound name strings, but defer
8495         using all over teh place, due to parser ambiguities.
8496         However, do use defining_occurrence where appropriate.
8497         * ch-parse.y:  Re-write syntax and semantics of GRANT and SEIZE
8498         statements to support Blue Book functionality.  Neato!
8499
8500 Fri Aug 13 17:10:52 1993  Bill Cox  (bill@rtl.cygnus.com)
8501
8502         * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8503         * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8504           (decl_temp): Deleted.
8505         * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8506         * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8507           readability, add comment.
8508         * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8509         * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8510
8511 Fri Aug 13 13:39:59 1993  Bill Cox  (bill@rtl.cygnus.com)
8512
8513         * ch-decl.c (decl_temp): Break the chain of decls.  This
8514           prevents an infinite loop.
8515         * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8516         * ch-lex.l (equal_number): Check passes in looking up a
8517           symbolic value.
8518         * ch-parse.y: Fix comments.
8519         * ch-tasking.c (tasking_setup): Only act in pass 2.
8520           (make_signal_struct, build_signal_decl,
8521            build_chill_receive_case_label): Don't go indirect
8522            thru NULL decl pointer.
8523
8524 Thu Aug 12 11:02:34 1993  Bill Cox  (bill@rtl.cygnus.com)
8525
8526         * ch-actions.c (route_to_predefined_function): New function called
8527           from build_chill_function_call, to call the proper predefined routine.
8528           (build_chill_card, build_chill_length, build_chill_lower,
8529           build_chill_max, build_chill_min, build_chill_num,
8530           build_chill_pred, build_chill_sizeof, build_chill_succ,
8531           build_chill_upper): Rewritten to run only in pass 2.
8532         * ch-decl.c (init_decl_processing): Build predefined functions for card,
8533           length, lower, max, min, num, pred, sizeof, succ and upper.  Delete
8534           unused builtin_function calls.
8535         * ch-grant.c (chill_finish_module_code): Save current_function_decl
8536           before calling finish_chill_function, and use that to build the
8537           initializer structure.
8538         * ch-lex.l: Remove following tokens, since they're now just predefined,
8539           not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8540           and upper.
8541         * ch-loop.c: Readability, indentation changes.
8542         * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8543           sizeof, succ and upper.  Delete special rules for calls to these.
8544           Delete mode_location and upper_lower_arg non-terminals.
8545           (pmodearg): Eliminate convolutions.
8546           (call): Add rule for typename parameter.
8547         * ch-tasking.c: Readability changes.
8548         * ch-tree.h: Add prototypes.
8549
8550 Thu Aug 12 00:38:17 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8551
8552         * ch-decl.c (save_decl):  Set DECL_CONTEXT (decl).
8553         * ch-grant.c (chill_finish_module_code):  Call
8554         finish_chill_function with nested==0.
8555         * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y:  Rename
8556         {push,pop}_c_function_context to {push,pop}_chill_function_context.
8557         * ch-parse.y (end_function): If nested, call
8558         pop_chill_function_context regardless of which pass we're in.
8559
8560 Wed Aug 11 02:34:02 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8561
8562         * ch-actions.c (finish_chill_binary_op):  Handle error marks.
8563         * ch-decl.c (do_decl):  Laying out decl and generating rtl
8564         is too late to do here (if there are forward references), so ...
8565         * ch-satisfy.c (satify_decl):  ... do it here instead.
8566         * ch-decl.c (finish_enum):  Fixup types of enum decls now.
8567         * ch-satisfy.c (safe_satisfy_decl):  New routine.  Supports
8568         checking illegal cyclic definitions.
8569         All *satisfy* routines now take a 'chain' parameter (instead
8570         of 'lookup_only') used for checking cycles.
8571         * ch-satisfy.c (satisfy_decl):  Return DECL_INITIAL if appropriate.
8572         * ch-satisfy.c (satisfy):  Lots of little fixes.
8573
8574         * ch-lex.l (init_lex):  Make all the standard ridpointers be
8575         lowercase, so that lookup_name on lower-cased user input
8576         will find the standard types.
8577         * ch-lex.l:  Remove all the standard types, in effect
8578         converting them from reservered anmes to predefined names.
8579         * ch-lex.l, ch-parse.y:  Remove PREDEF_MODEDECL - no longer used.
8580         * ch-grant.c (gfile):  Rename to grant_file_name.
8581         * ch-lex.l (yywrap):  Don't try to seize current grant_file_name.
8582
8583         * initname.c:  Removed. get_file_function_name is now in tree.c
8584         * Makefile.in (CHILL_OBJS): Remove initname.o
8585
8586         * ch-decl.c (do_decl):  New function, based on loop body of do_decls,
8587         * ch-decl.c (do_decls):  Just call do_decl.
8588         * ch-grant.c (chill_finish_module_code):  Minor cleasnups.
8589         Use new do_decl routine.  Clear init_entry_decl's source line.
8590         * ch-grant.c (print_proc_tail):  Fix for new param list structure.
8591         * ch-parse.y (whatpdef):  Removed.  Cleaned up procedure
8592         and process, allowing proper end-label-checking.
8593         * ch-typeck.c (build_chill_cast):  Remove decl->type conversion.
8594
8595 Wed Aug 11 00:33:44 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8596
8597         * ch-decl.c (layout_enum):  Don't call rest_of_type_compilation.
8598
8599         * ch-lex.l (RETURN_PREDEF):  Don't call lookup_name.
8600         * ch-expr.c (build_chill_indirect_ref):  Call get_type_of.
8601         * ch-parse.y (call):  Call get_type_of before build_chill_cast.
8602
8603 Tue Aug 10 21:33:10 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8604
8605         *  ch-actions.c (build_char_array_expr):  If a concat operand is
8606         a constant char, convert it to a STRING_CST.
8607         * ch-decl.c (finish_decl):  Call rest_of_decl_compilation
8608         with toplev=0.
8609         * ch-typeck.c (build_chill_cast):  Allow type to be TYPE_DECL.
8610
8611         * ch-parse.y (actionlabel):  Call define_label in both passes.
8612         * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8613         New functions, using lookup_name to find LABEL_DECLs.
8614         * ch-parse.y (GOTO, EXIT):  Use above new functions.
8615         * ch-tasking.c (struct rc_state_type *current_rc_state):
8616         Use to store state for the current receive case statement.
8617         (build_chill_receive_case_start, build_chill_receive_case_end):
8618         Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8619         * ch-decl.c:  Remove all stuff dealing with specific label scopes,
8620         including functions push_label_level, pop_label_level.
8621         * ch-decl.c (define_label):  Re-write for 2-pass.
8622         * ch_tree.h (lang_identifier):  Removed label_value.
8623         * ch-tree.h (IDENTIFIER_LABEL_VALUE):  Removed.
8624
8625         * ch-parse.y (modename):  Changed to yield identifier, not type.
8626         This allows following changes, which work better for 2-pass:
8627         (location):  primval ARROW optmodename -> primval ARROW optname.
8628         (primval):  Tuple can now be prefixed by unsatisfied name.
8629
8630         * ch-actions.c (chill_grant_only):  Renamed to grant_only_flag.
8631         * ch-lex.l (yywrap):  Don't read seizefiles if grant_only_flag.
8632         * ch-decl.c (switch_to_pass_2):  Exit if grant_only_flag,
8633
8634         * ch-satisfy.c (satisfy):  Support CONSTRUCTOR, REFERENCE_TYPE.
8635         * ch-satisfy.c (satisfy_decl, satisfy):  Kludge around
8636         to a TYPE_DECL can be simplified to its type.
8637         * ch-expr.c (build_chill_indirect_ref):  New function.
8638         * ch-lex.l (prepare_paren_colon):  Make kludge even uglier,
8639         since the left paran might already have been seen.
8640         * ch-lang.c (make_chill_pointer_type):  Allow parameter
8641         to select pointer or reference type.
8642         (build_chill_reference_type):  New function.
8643         Either function:  Be more careful (in case arg is identifier).
8644         * ch-except.c (initialize_exceptions):  Make
8645         exception_stack_decl be public.
8646         * ch-actions.c (build_char_array_expr):   Can only
8647         constant fold if operands are STRING_CST.
8648         * ch-grant.c (raw_decode_mode):  Allow TYPE_DECL.
8649         (chill_finish_compile:  Set TREE_PUBLIC of init function to 1.
8650
8651 Tue Aug 10 17:55:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8652
8653         * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8654         * ch-decl.c: Fix comment.
8655         * ch-parse.y (pmodearg): Build tree_list in all cases.
8656         * varasm.c (assemble_tasssking_entry): Delete unused code.
8657
8658 Tue Aug 10 13:58:21 1993  Bill Cox  (bill@rtl.cygnus.com)
8659
8660         * ch-actions.c (build_char_array_expr): save/restore
8661           a tree's constant status.
8662           (build_chill_binary_op): Don't convert an expression
8663           if the type we're converting to is NULL.
8664         * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8665           Call it from convert, and from ..
8666         * ch-expr.c (chill_expand_assignment): call new function.
8667           Move convert code earlier, too.
8668         * ch-decl.c (lookup_name): Delete bogus error message.
8669         * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8670           Add protos.
8671         * ch-typeck.c (valid_array_index): Comment out some strange code
8672           which now seg faults.
8673           (chill_expand_tuple): Re-enable prepending of VARYING
8674           length to a tuple.
8675           (chill_similar): Return FALSE if either mode is NULL_TREE.
8676
8677 Tue Aug 10 07:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
8678
8679         * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8680           Add commented-out calls to pushtag, in case we decide later
8681           to fill in TYPE_STUB_DECL for dbxout.
8682         * ch-lang.c (build_chill_struct_type): Add commented-out
8683           calls to pushtag, in case we decide later to fill in
8684           TYPE_STUB_DECL for dbxout.
8685
8686 Mon Aug  9 23:09:08 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8687
8688         * ch-decl.c (chill_seize):  Don't get_next_next in pass 2.
8689         * ch-decl.c (get_next_decl):  Skip ALIAS_DECLs.
8690         * ch-decl.c (bind_saved_names):  Handle SEIZE ALL.
8691         * ch-lang.c (layout_chill_struct_type):  Don't call
8692         rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8693         * initname.c (get_file_function_name):  Get new file and
8694         function for language-independent constructor name generation.
8695         * ch-grant.c (get_init_function_id):  Removed.
8696         * ch-grant.c (chill_finish_compile):  Call get_file_function_name
8697         instead of get_init_function_id.
8698
8699 Mon Aug  9 18:33:36 1993  Bill Cox  (bill@rtl.cygnus.com)
8700
8701         * ch-decl.c: Formfeeds and comments.
8702         * ch-parse.y (quasi_formpar): Treat just like real formpar.
8703           Eliminate restriction on single name.
8704           (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8705
8706 Mon Aug  9 17:21:14 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8707
8708         * ch-lex.h (enum rid), ch-lex.l (init_lex):  Added RID_ALL.
8709         * ch-lang.c (build_chill_pointer_type):  Layout the pointer type,
8710         if the pointee is laid out, even if pass==1.
8711         * ch-parse.y:  Set ignore_exprs=(pass=2) for entire spec module.
8712
8713 Mon Aug  9 15:44:01 1993  Bill Cox  (bill@rtl.cygnus.com)
8714
8715         This version compiles the 5-line program.  Thanks, Per!
8716         * ch-decl.c (print_lang_decl, print_lang_identifier):
8717           Add appropriate calls to indent_to().  Rename reverse_scopes
8718           to switch_to_pass_2, and wait to set pass = 2 until
8719           here.
8720         * ch-grant.c (chill_finish_module_code): Set module_init_list
8721           non-NULL in pass 1;  in pass2, chain on the module_init
8722           structure's decl.
8723           (chill_finish_compile): Clear module_init_list to NULL.
8724         * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8725           Rename reverse_scopes to switch_to_pass_2, delete setting
8726           of pass = 2.
8727         * ch-tree.h: Rename reverse_scopes proto.
8728
8729 Mon Aug  9 13:21:34 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8730
8731         * ch-decl.c (build_enumerator):  If name is NULL,
8732         don't call save_decl or get_next_decl.
8733         * ch-decl.c (layout_enum):  Fix calculation of next value.
8734         * ch-grant.c (print_enumeral):  Re-do for new 2-pass scheme.
8735         * ch-grant.c (decode_constant):  Better CONSTRUCTOR support.
8736
8737 Mon Aug  9 11:59:12 1993  Bill Cox  (bill@rtl.cygnus.com)
8738
8739         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8740           ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8741           Lots of new prototypes.
8742
8743 Mon Aug  9 01:00:33 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8744
8745         * ch-lex.h:  Remove unused RID_'s.  Make sure RID_MAX is last.
8746         * ch-decl.c (init_decl_processing):  Moved ridpointers
8747         initialization to init_lex().  Use them consistently.
8748         * ch-lex.l (RETURN_PREDEF):  New macro.  Uses ridpointers
8749         for all preferedined types.
8750         * ch-lex.l (init_lex):  Upper case all RIDs, so grantfiles
8751         (and error messages?) will use uppercase.
8752         * ch-decl.c (build_chill_enumerator):  Merged into build_enumerator.
8753         * ch-lang.c (finish_chill_enum):  Merged into ...
8754         * ch-decl.c (finish_enum): .... this function.
8755         * ch-decl.c (layout_enum):  New function.  Does all the pass-2
8756         stuff for enumerations.
8757         * ch-decl.c (finish_enum, start_enum):  Only trivial pass-1 stuff.
8758         * ch-satisfy.c (satisfy):  Support ENUMERAL_TYPE.  Improve ranges.
8759         * ch-parse.y:  Check ignore_exprs instead of ignore_decls when
8760         parsing and building types.
8761
8762 Sun Aug  8 16:26:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8763
8764         * ch-lex.h:  Add some missing RID_'s.
8765         * ch-decl.c (init_decl_processing):
8766
8767 Sun Aug  8 15:32:54 1993  Bill Cox  (bill@rtl.cygnus.com)
8768
8769         * ch-grant.c (module_has_actions): Delete this and all
8770           references.  It was a botch.
8771           (chill_finish_module_code): Move finish_chill_function_call inside
8772           the test whether actions were found at module level.
8773           Use current_function_name in the initializer build,
8774           and init_entry_id in the module_list setup.
8775           (chill_finish_compile): Call lookup_name to get the
8776           decl from a module_init_list entry.
8777         * ch-parse.y: Revert module_has_actions additions.
8778         * ch-satisfy.c (satisfy): After satisfying the type  referenced
8779           by a pointer_type, call layout type for the pointer.
8780         * ch-tasking.c (tasking_registry): Only active in pass 2.
8781         * ch-typeck.c: Call build_chill_pointer_type everywhere.
8782
8783 Sun Aug  8 13:13:29 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8784
8785         * ch-tree.def (PAREN_EXPR):  New unary op:  '(' EXPR ')'.
8786         * ch-parse.y (primval):  If pass 1, generate PAREN_EXRR.
8787         * ch-satisfy.c (satisfy):  Reduce PAREN_EXPR to its operand.
8788         * ch-grant.c (decode_const):  Handle PAREN_EXPR.
8789         * ch-decl.c (pop_module):  Fix think.  Inprove error message.
8790
8791 Sun Aug  8 10:31:04 1993  Bill Cox  (bill@rtl.cygnus.com)
8792
8793         Generally, replace 'function' with 'procedure'
8794         and 'type' with 'mode' in error/warning messages.
8795         * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8796         * ch-decl.c: See Generally.
8797           (init_decl_processing): Call build_tasking_enum from here.
8798           Now, it doesn't need a flag to do its work only once.
8799           Also, build the TaskingStruct decl here.
8800         * ch-grant.c: Remove references to `current_grant_file';
8801           there's now only one.  See Generally.  Do gcc -Wall cleanup.
8802         * ch-lex.l: Remove references to `current_grant_file'
8803           and delete USE_GRANT_FILE token.
8804         * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8805         * ch-tasking.c (tasking_setup): Move TaskingStruct build
8806           to init_decl_procesing.  Delete build_tasking_enum calls.
8807         * ch-tree.c: See Generally.
8808         * ch-tree.h: Add proto for build_tasking_struct.
8809
8810 Sun Aug  8 08:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8811
8812         * ch-decl.c: Make unnamed_module_number static, reset it to zero
8813           before pass 2, so same module names get generated in both passes.
8814           (push_module): Return user name or generated name.
8815           (init_decl_processing): Build __tmp_initializer_type.
8816           Code moved from chill_finish_module_code.
8817         * ch-grant.c: New flag module_has_actions.  Set TRUE by push_actions,
8818           used, reset by chill_finish_module_code.    Replaces test of
8819           module_function_name.  Shuffled finish-up code to end of module.
8820           (chill_finish_module_code): Use global_bindings_p to determine
8821           'nested' parameter for finish_chill_function.  Use new
8822           module_has_actions flag to trigger generation of module_init list
8823           entry.  We now can handle not only multiple modules per file,
8824           but modules nested inside functions (I think).
8825         * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8826         * ch-parse.y (push_actions): Set module_has_actions flag.
8827           (modulion, spec_module): Save possibly-generated module name
8828           returned by push_module.
8829         * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8830           case for POINTER_TYPE.
8831         * ch-tasking.c: Replace build_pointer_type calls with
8832           build_chill_pointer_type calls.
8833         * ch-tree.h: Fix, add prototypes.
8834
8835 Sat Aug  7 17:32:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8836
8837         * ch-parse.y:  Remove many useless tests for ignore_decls.
8838         * ch-parse.y:  Remove obsolete support for _EXTERN and _INIT.
8839         * ch-parse.y:  Reset ignore_exprs while parsing declarations,
8840         but handle initializers appropriately.
8841         * ch-grant.c (decode_constant):  Update (for 2-pass) support
8842         for CONSTRUCTOR and SET_TYPE.
8843         * ch-grant.c (chill_initializer_name):  Renamed to
8844         module_function_name.
8845         * ch-grant.c (function_generated):  Removed;
8846         use module_function_name != NULL instead.
8847         * ch-tree.h, ch-parse.y:  Removed unused current_locnamelist.
8848         * ch-decl.c (push_modedef):  Simplify to take just one mode.
8849         * ch-tasking.c (make_process_struct, make_signal_struct):
8850         Change calls to push_modedef correspondingly.
8851         * ch-tree.c (build_powerset_type):  Move the stuff that's
8852         suitable for pass 1 into new function make_powerset_type,
8853         and that for pass 2 into new function layout_powerset_type.
8854         * ch-lang.c:  Move pass-1 stuff from build_chill_pointer_type
8855         into new function make_chill_pointer_type, and split
8856         build_chill_struct_type into make_chill_struct_type
8857         and layout_chill_struct_type.
8858         * ch-decl.c (grok_chill_variantdefs):  Similarly split up
8859         into make_chill_variants and layout_chill_variants.
8860         * ch-satisfy.c (satisfy):  Add support for SET_TYPE, and UNION_TYPE.
8861         Call layout_chill_struct_type for RECORD_TYPE.
8862
8863 Sat Aug  7 09:59:55 1993  Bill Cox  (bill@rtl.cygnus.com)
8864
8865         Fixup previous check-in.
8866         * ch-decl.c: Restore unnamed_module_number, which *was*
8867           used after all.
8868         * ch-grant.c (get_init_function_id): Return type s.b. tree.
8869
8870 Sat Aug  7 09:28:17 1993  Bill Cox  (bill@rtl.cygnus.com)
8871
8872         * ch-decl.c (print_lang_decl, print_lang_type): Add
8873           correct parameter list.  Add print statements for
8874           nesting_level, signal_dest, buffer_size, and the
8875           signal_data flag.
8876           (decl_temp, decl_temp1): Delete unused code.
8877           (init_decl_processing): Call build_instance_type and
8878           build_tasking_type in both passes.
8879           Generally change current_scope comparisons against
8880           global_scope to global_biidings_p calls.
8881         * ch-except.c (push_handler): Add space before parameter paren.
8882         * ch-grant.c (chill_start_module, chill_finish_module,
8883           chill_finish_compile): Complete re-write for 2-pass and
8884           multiple modules per source file.
8885         * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8886         * ch-tasking.c: Diffused small adaptations to 2-pass.
8887         * ch-tree.h (print_lang_decl, print_lang_type): Correct
8888           the prototypes.
8889           (chill_finish_module_code): Add module name parameter.
8890         * ch-typeck.c: Fix comments, add whitespace.
8891
8892 Fri Aug  6 12:17:07 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8893
8894         * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8895         way I allocated the shadow_list on an obstack was too fragile,
8896         so just use xmalloc/free instead.
8897
8898 Fri Aug  6 08:31:49 1993  Bill Cox  (bill@rtl.cygnus.com)
8899
8900         * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8901           TYPE_MAX_VALUE for vanilla integer type.  Only need
8902           to satisfy TREE_TYPE for integer range type.
8903
8904 Fri Aug  6 00:53:11 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8905
8906         * ch-lang.c (build_chill_range_type):  Split up into two new
8907         functions (make_chill_range_type, layout_chill_range_type);
8908         only former part is done in pass 1.
8909         * ch-lang.c (build_chill_array_type):  Split up in the same
8910         way (yielding make_chill_array_type, layout_chill_array_type).
8911         * ch-satisfy.c (satisfy):  Handle array and range types.
8912         * ch-tree.h (TYPE_RANGE_PARENT):  Removed.  Not used.
8913         * ch-parse.y (mode2):  Handle optional rangesize.
8914
8915 Thu Aug  5 15:13:42 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8916
8917         * ch-grant.c (print_an_int):  Re-enable (but don't search for SYN).
8918         * ch-grant.c (raw_decode_mode):  Support printing
8919         of an IDENTIFIER_NODE (unresolved type name).
8920         * ch-grant.c (decode_constant):  Support printing of an unresolved
8921         IDENTIFIER_NODE, as well as some kinds of binary operations.
8922         * ch-grant.c (grant_one_decl):  Don't call globalize_decl.
8923
8924         * ch-grant.c (decode_decl):  Add support for ALIAS_DECLs
8925         (from SEIZEs and GRANTs).
8926         * ch-grant.c:  Remove support for multiple grantfiles.
8927         * ch-grant.c, ch-parse.y:  Removed grant_count, for now at least.
8928         * ch-lex.h (in_seizefile):  Moved to ch-tree.h.
8929         * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c:  Removed.
8930         * ch-tree.h (CH_DECL_GRANTED): Added.
8931         * ch-actions.c (build_chill_exception_decl):  Use
8932         IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8933         * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8934         Change to accept list of remember_decls and granted_decls.
8935
8936 Thu Aug  5 11:58:21 1993  Stan Shebs  (shebs@rtl.cygnus.com)
8937
8938         * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8939
8940 Thu Aug  5 10:03:27 1993  Bill Cox  (bill@rtl.cygnus.com)
8941
8942         * ch-decl.c (init_decl_processing): Only build types
8943           in pass 2, since dbxout machinery is only ready for
8944           output then.
8945         * ch-grant.c (chill_finish_module_code): Do most of the
8946           work in pass 2.
8947
8948 Thu Aug  5 06:54:10 1993  Bill Cox  (bill@rtl.cygnus.com)
8949
8950         * ch-parse.y (receivecaseaction): Pass label-group
8951           numbers around.
8952         * ch-tasking.c (build_chill_receive_case_start):
8953           Generate unique labels for each case, pass back
8954           the label-group's number.
8955           (build_chill_receive_case_end): Accept label-group
8956           number from parser, use it to build labels
8957         * ch-tree.h: Change prototypes.
8958
8959 Wed Aug  4 13:21:13 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8960
8961         * ch-decl.c (decl_temp1):  Call finish_decl().
8962
8963         * ch-grant.c (chill_start_module_code):  Don't call
8964         push_c_function_context - not needed since we're not nested.
8965         * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8966         with nested=0, not 1 (twice).
8967         * ch-grant.c (chill_finish_module_code): Clear function_generated.
8968
8969 Tue Aug  3 20:06:22 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8970
8971         * ch-decl.c (push_chill_extern_function):  Set TREE_PUBLIC.
8972
8973 Tue Aug  3 19:08:51 1993  Bill Cox  (bill@rtl.cygnus.com)
8974
8975         * ch-actions.c (build_chill_function_call): Handle parameter
8976           attributes better - LOC still not handled.
8977         * ch-tree.def: Amplify comment.
8978
8979 Tue Aug  3 18:07:36 1993  Per Bothner  (bothner@kalessin.cygnus.com)
8980
8981         * ch-lex.l (handle_use_seizefile_directive):  Update
8982         next_file_to_seize correctly.
8983         * ch-actions.c (build_chill_abs):  Create an ABS_EXPR, not an rts_call.
8984
8985 Tue Aug  3 14:03:50 1993  Bill Cox  (bill@rtl.cygnus.com)
8986
8987         First Aid, not real long-term fixes...
8988         * ch-decl.c (pop_module, lookup_name_for_seizing): Check
8989           current_module pointer for NULL before using it.
8990           (init_decl_processing): Set up wchar_type_node before using it.
8991         * ch-grant.c (chill_finish_module_code): Don't build
8992           initializer_type or initializer_decl until pass 2.
8993         * ch-lex.l: Readability - single statement per line.
8994         * ch-tasking.c (make_process_struct): Hide get_parm_info
8995           call inside #ifdef for now.
8996
8997 Tue Aug  3 09:59:23 1993  Bill Cox  (bill@rtl.cygnus.com)
8998
8999         * ch-decl.c (pushdecllist): Add forward decl.
9000         * ch-parse.y (handler): Add rules which allo
9001           empty onalternativelist.
9002         * ch-tasking.c (get_tasking_code_name): Add
9003           cast of alloca() result.
9004
9005 Tue Aug  3 00:11:40 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9006
9007         * ch-lex.l (handle_use_seizefile_directive):  Make files_to_seize
9008         a queue.  Check for duplicate use_seizefile-s immediately.
9009         * ch-lex.l (yywrap):  Use this more portable mechanism,
9010         rather than the flex-specific <<EOF>>.  Also, clear saw_eof.
9011         * ch-lex.l:  Don't call push_module/pop_module automatically.
9012         * ch-decl.c (push_chill_extern_function:  Modify for 2-pass.
9013
9014 Mon Aug  2 14:24:59 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9015
9016         * ch-parse.y:  Rename actionstatement -> nonempty_actionstatement.
9017         New actionstatement is now nonempty_actionstatement | SC.  Use
9018         where appropriate.  This is closer to Blue Book terminology.
9019
9020         * ch-tree.def (ALIAS_DECL):  New tree type.
9021         * ch-decl.c:  Merged all the code we need (I hope) from c-decl.c,
9022         which is no longer used for cc1chill.
9023         * c-decl.c:  Remove all Chill-related code.
9024         * Makefile.in (CHILL_OBJS):  Don't use c-decl.o.
9025         * ch-decl.c:  No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
9026         Introduce a 'nesting_level' level concept instead.
9027         * ch-decl.c:  Merged push_scope into pushlevel; pop_scope into
9028         poplevel;  struct scope and struct binding_level.
9029         * ch-decl.c:  Other major name lookup algorithm changes.
9030         * ch-tree.h (struct lang_identifier): Remove granted_value field.
9031         * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro):  Removed.
9032         * ch-tree.h (DECL_NESTING_LEVEL):  New macro.
9033         * ch-satisfy.c (satisfy, satisfy_decl):  New 'lookup_only' arg.
9034         * ch-tree.h (struct module):  New fields nesting_level, granted_decls.
9035         * ch-grant.c (seize_implied_names, do_seize, chill_seize):  Move ...
9036         * ch-decl.c: ... here.
9037         * ch-grant.c (start_chill_function2):  Remove.
9038         * ch-grant.c (chill_start_module_code):  Now called in both passes.
9039         * ch-actions.c (lang_init):  Code moved to ...
9040         * ch-decl.c (init_decl_processing): ... here.
9041         * ch-actions.c (chill_expand_result, chill_expand_return):
9042         Handle being called during pass 1.
9043         * ch-lex.l (name_type_signal):  Don't try lookup_name during pass 1.
9044         * ch-parse.y (PUSH_ACTION, push_action):  Is now invoked during
9045         both passes, for the sake of chill_start_module_code.  Change all
9046         actions rules to invoke PUSH_ACTION unconconditionally.
9047         * ch-parse.y, ch-decl.c (push_module):  Module label is now optional.
9048
9049 Mon Aug  2 15:02:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9050
9051         * expr.c (store_constructor): Convert library function
9052           parameters to proper integer precision before calling
9053           emit_library_call.
9054
9055 Mon Aug  2 08:46:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9056
9057         * ch-grant.c (seize_implied_names): Check POWERSET's
9058           base type for names to seize.
9059
9060 Fri Jul 30 19:59:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9061
9062         * ch-tree.h: Delete unused definition of JOINER
9063           macro.  Expand comment about INSTANCE_TYPE.
9064
9065 Thu Jul 29 14:57:11 1993  Bill Cox  (bill@rtl.cygnus.com)
9066
9067         * ch-convert.c (unreferenced_type_of): New function.
9068           (convert): Call new function.
9069
9070 Thu Jul 29 07:34:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9071
9072         * ch-lex.l: Allow C-style comments before the module
9073           header.  Use #undef to assure that strchr isn't a
9074           macro (portability), and remove the extra paren-
9075           theses in its extern name.
9076           (check_newline): Call getlc less often, so that user
9077           labels aren't lowercased before their time. Add BEGIN
9078           INITIAL before starting pass 2, so the header is
9079           correctly ignored.
9080
9081 Wed Jul 28 14:23:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9082
9083         * ch-grant.c (chill_start_module_code): Cast alloca()
9084           return value.
9085
9086 Wed Jul 28 12:39:51 1993  david d `zoo' zuhn  (zoo@rtl.cygnus.com)
9087
9088         * ch-grant.c: remove extra parens around extern function
9089         declarations (they confuse the DECstation compiler)
9090
9091 Wed Jul 28 12:28:56 1993  Bill Cox  (bill@rtl.cygnus.com)
9092
9093         * Makefile.in: Stop deleting flex's #line lines.
9094
9095 Wed Jul 28 07:05:25 1993  Bill Cox  (bill@cygnus.com)
9096
9097         Adjust after FSF merge:
9098         * calls.c (expand_call): Add comment.
9099         * ch-expr.c: Add newline.
9100         * expmed.c (store_split_bit_field): Add comment.
9101
9102 Tue Jul 27 17:32:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9103
9104         * ch-actions.c (build_chill_binary_op): Set code0 and
9105           code1 only in pass 2.
9106           (get_result_tmp_name): Cast alloca return for portability.
9107         * ch-decl.c (pop_module): Test current_module ptr before
9108           using it.
9109         * ch-lex.l: Set lineno and input_filename for pass 2
9110           error messages.
9111
9112 Tue Jul 27 15:14:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9113
9114         * ch-lex.l: Fix the syntax error at line 329.  Will I
9115           *ever* quit fixing these in the ch-lex.c file?  Stay tuned..
9116
9117 Tue Jul 27 15:01:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9118
9119         * ch-lex.l: Pervasive rewrite for queueing seize files,
9120           then parsing them at the end of pass 1.  Still some
9121           problems.
9122
9123 Tue Jul 27 07:40:39 1993  Bill Cox  (bill@rtl.cygnus.com)
9124
9125         * chill.in: Check for .i suffices only, and use -xchill
9126           to bracket the argument.
9127
9128 Thu Jul 22 19:17:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9129
9130         * c-decl.c (print_lang_identifier): Oops.  Syntax error.
9131
9132 Thu Jul 22 18:56:16 1993  Bill Cox  (bill@rtl.cygnus.com)
9133
9134         * c-decl.c (pushdecllist): Standardize loop for readability.
9135         * ch-decl.c (decl_temp): Call pushdecllist to store decl
9136           into hash table, move after current_scope declaration.
9137           (decl_temp1): Move also.
9138         * ch-lex.l (getlc): New function.  Force char to lower case.
9139           (check_newline): Call it, so comparisons work on uppercase
9140           keywords.
9141
9142 Wed Jul 21 22:17:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9143
9144         * ch-decl.c (do_decls): Add saving of decl tree
9145           address into ID node in pass 2,  reindent.
9146         * ch-grant.c (start_chill_function2): New function.
9147           (chill_start_module_code,  chill_finish_module_code): Call it.
9148         * ch-loop.c (build_temporary_variable, begin_for_range):
9149           Replace start_decl, finish_decl pairs with decl_temp1 calls.
9150         * ch-parse.y (parnamelist): Eliminate warning by eliminating
9151           the %type for now.
9152         * ch-actions.c, ch-tasking.c: Replace do_decls calls with
9153           decl_temp1 calls.
9154         * ch-tree.h: New prototypes.
9155         * stmt.c (stamp_nesting_label): Check parameters for NULL.
9156         * toplev.c (lang_options): Add '-L' option.
9157
9158 Wed Jul 21 21:06:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9159
9160         Portability fixes.
9161         * ch-decl.c (save_decl): Make definition match forward declaration.
9162         * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
9163           in the macro - Sun's compiler throws warnings.  Thanks, Brendan.
9164         * ch-satisfy.c (satisfy): Add forward declaration.
9165           (SATISFY): Add outer parens for greater safety.
9166
9167 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9168
9169         * c-decl.c (pushdecllist): New function.  Add a list of decls
9170         to the current scope, checking for duplicates.
9171         * c-decl.c (start_function):  Remove some Chill junk.
9172         (This function should no longer be used for Chill.)
9173         * ch-lex.l (ch_lex_init):  New function, to re-init for 2nd pass.
9174         * ch-lex.l (<<EOF>>):  Cleanup, and re-start for 2nd pass.
9175         * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG):  New flags.
9176         * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
9177         Implement.  Add comments.
9178         * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
9179         Better Blue Book type checking.
9180         * ch-actions.c (finish_chill_binary_op): Handle folding
9181         and other stuff that couldn't be done in pass 1.
9182         * ch-actions.c (build_chill_binary_op):  Bail out early if pass 1.
9183         Use new CH_ROOT_MODE macro to handle integer promotions etc.
9184         * ch-except.c (push_handler):  Bail out if pass 1.
9185         * ch-tasking.c (make_process_struct):  Defer making this work.
9186         * ch-parse.y (assignaction):  Simplify, and move some code ...
9187         * ch-expr.c (chill_expand_assignment): ... here.
9188         * ch-typeck.c (chill_root_mode, chill_resulting_mode,
9189         chill_compatible_classes):  New functions, implementing the
9190         correspondingly named Blue Book concepts.
9191         * ch-parse.y generally:  Lots of little tweaks to support
9192         2-pass compilation.
9193         * ch-parse.y (push_module, pop_module):  Moved to ...
9194         * ch-decl.c (push_module, pop_module):  ... here.
9195         * ch-parse.y (push_action):  New function.
9196         * ch-parse.y (pdef):  Move complicated action to ...
9197         * ch-parse.y (end_function):  ... new function here.
9198         * ch-parse.y (procedure):  Major re-write.
9199         * ch-parse.y (paramname, paramnamelist):  New, to avoid conflict (?).
9200         * ch-decl.c (do_decls, push_syndecls, push_modedef,
9201         start_chill_function, finish_chill_function):  Do different things
9202         on each pass.  Hence, can use code in c-decl.c to lesser extent.
9203         * ch-decl.c (build_chill_function_type):  First arg is now
9204         just the return type, rather than a singleton list.
9205         * ch-decl.c (massage_param_node):  Remove not needed (we
9206         now encode parameter attributes directly in the TREE_PURPOSE).
9207         * ch-decl.c (chill_munge_params):  New function, called by parser.
9208         * ch-decl.c (push_parms):  Removed function.
9209         * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
9210         New functions, to coordinate decls between passes.
9211
9212 Wed Jul 21 14:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9213
9214         * ch-actions.c (lang_decode_option): Add option -Lpath
9215           to specify seize file path.
9216           (ch_singleton_set): Readability formatting.
9217           Add comment, move functions to easier found places.
9218         * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
9219           (register_seize_path): Use memcpy so pathlen has an effect.
9220         * gcc.c (default_compilers): Add -L option to chill
9221           compiler SPECs.
9222
9223 Wed Jul 21 12:59:20 1993  Per Bothner  (bothner@kalessin.cygnus.com)
9224
9225         * ch-satisfy:  New file.  Used for name lookup.
9226         * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
9227
9228 Wed Jul 21 12:16:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9229
9230         * toplev.c (main): Delete -L option handling - breaks
9231           non-chill compilers.
9232
9233 Wed Jul 21 09:29:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9234
9235         * ch-grant.c: #undef strchr and strrchr names in extern
9236           declarations, to prevent RS6000 compiler from reporting
9237           their misuse as macros.
9238         * ch-lex.l (setup_seizefile_read): Refer to list of  paths
9239           for seizefiles specified by -L options on command line.
9240           (register_seize_path): Add a new path to the seize file list.
9241         * toplev.c (strip_off_ending): Recognize chill suffix.
9242           (main): Recognize -L option, specifying a seize file path.
9243
9244 Tue Jul 20 12:41:52 1993  Bill Cox  (bill@rtl.cygnus.com)
9245
9246         * ch-lex.l (convert_float): Make it really portable,
9247           using the appropriate macros.
9248
9249 Tue Jul 20 11:26:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9250
9251         * ch-lex.l (convert_float): More casts for vxworks
9252           portability.
9253
9254 Tue Jul 20 11:01:30 1993  Bill Cox  (bill@rtl.cygnus.com)
9255
9256         * ch-lex.l (convert_float): Give variable `d' correct
9257           type so build_real call is correct.  Should remove
9258           vxworks portability problem.
9259           (convert_float): Re-indent to standards.
9260
9261 Mon Jul 19 17:32:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9262
9263         * ch-actions.c (build_char_array_expr): Add field decls to
9264           constructor.  Now, it generates the library call.
9265         * ch-expr.c (chill_expand_array_assignment): Make sure that all
9266           error messages say 'mode' not 'type'.
9267
9268 Mon Jul 19 14:44:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9269
9270         * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
9271           ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
9272           Make sure that all error messages say 'mode' not 'type'.
9273         * ch-decl.c (push_modedef): Add novelty computation,
9274           storage in each newmode.
9275         * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
9276           Reformat slightly for readability.  Fix comments.
9277         * ch-tree.h: Delete print_lang_type prototype.
9278
9279 Mon Jul 19 06:43:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9280
9281         * ch-actions.c (chill_expand_return): Disable
9282           error message which requires 2-pass analysis, for
9283           now.
9284         * ch-convert.c (convert): Build length-only constructor
9285           for empty string (PR 2930).
9286
9287 Fri Jul 16 16:08:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9288
9289         * ch-expr.c (chill_expand_array_assignment): Check
9290           non-varying string assignments for conformance to
9291           the "string assignment condition" (PR 2920).
9292
9293 Thu Jul 15 13:25:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9294
9295         * ch-actions.c (build_chill_array_expr): Check parameters.
9296           Call convert to build unitary array from scalar if
9297           needed.  Rewrite CONCAT_EXPR handling.
9298         * ch-convert.c (build_array_type_for_scalar): New functions.
9299           (convert): Call new function, to convert scalar to unitary
9300           array.  Only call chill_expand_tuple if expression hass
9301           NULL_TREE type.
9302         * ch-expr.c (chill_expand_expr): Allow a larger static
9303           varying array to be assigned to a smaller, with a runtime
9304           test (to be provided).
9305         * ch-parse.y (locdec): Comment out bogus error msg.
9306           (elementlist): Replace several lines with chainon call.
9307         * ch-tree.h (SCALAR_P): New macro.  New prototype for
9308           build_array_type_for_scalar.
9309         * ch-typeck.c (build_chill_cast): Re-indent.
9310           (chill_expand_tuple): Comment out strange addition of
9311           varying string's length to front of constructor list.
9312
9313 Thu Jul 15 05:58:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9314
9315         * ch-except.c (start_handler_array): Use unique identifier for
9316           exception array, so we can have > 1 array per reach
9317           (PR 2931).  The change was originally entered June 23, and
9318           subsequently lost.
9319
9320 Mon Jul 12 16:07:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9321
9322         Get executable test cases running again...
9323         * c-typeck.c (build_function_call): Bypass default
9324           parameter promotions, format param syntax check for
9325           CHILL; they've already been converted in
9326           build_chill_function_call.
9327         * ch-actions.c (chill_expand-return): Correct tests
9328           for function which returns no value.
9329         * ch-convert.c (base_type_size_in_bytes): Check for
9330           NULL type parameter, just return.
9331           (convert): Allow conversion of CHAR to varying array
9332           of CHAR.
9333           Change error msg to "conversion" from "assignment".
9334           Remove default from case, which short-circuited before
9335           REFERENCE_TYPEs got converted.  Deleted second copy
9336           of REFERENCE_TYPE code.
9337         * ch-lang.c (build_chill_range_type): Simply exit if
9338           NULL input parameter.
9339         * ch-loop.c: Fix comment.
9340
9341 Sun Jul 11 11:27:08 1993  Bill Cox  (bill@cygnus.com)
9342
9343         * ch-actions.c (chill_expand_result, chill_expand_return):
9344           Move here from ch-typeck.c.  Add a temporary to remember the
9345           result value in.  Change return handler to fetch that
9346           temporary value, if there is one.
9347         * ch-parse.y (pdef): Call chill_expand_return to fetch
9348           the temp's value.
9349         * ch-tree.h, ch-typeck.c: Move return, result functions to
9350           ch-actions.c.  And their prototypes.
9351
9352 Fri Jul  9 15:47:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9353
9354         * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
9355           ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
9356           ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
9357           ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
9358
9359 Fri Jul  9 09:41:05 1993  Bill Cox  (bill@rtl.cygnus.com)
9360
9361         * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
9362           (print_integer): Delete old non-working INSTANCE code.
9363         * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
9364         * ch-parse.y (rccase_label): Move all actions inside if.
9365           Use BUFFERNAME to recognize receice case buffer clause,
9366           eliminate one shift-reduce conflict.
9367         * ch-tasking.c (build_buffer_descriptor): Check for
9368           CH_DECL_BUFFER flag, remove unused code.
9369
9370 Thu Jul  8 11:17:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9371
9372         Declaring and sending buffers..  first draft
9373         * ch-actions.c (lang_init): Define the send_buffer runtime
9374           function.
9375         * ch-decl.c (do_decls): Standardize loop, so stepping
9376           isn't hidden.
9377         * ch-lex.l: Clean up prototypes for readability.
9378         * ch-parse.y (sendaction): Add send buffer action.
9379           (locdec): Add rule for buffer declaration.
9380         * ch-tasking.c (generate_tasking_code): standardize indentation.
9381           (make_signal_struct): Readability changes.
9382           (build_chill_send_buffer, build_buffer_decl,
9383            build_buffer_descriptor): New functions.
9384         * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
9385           buffer's maximum queue length in buffer decl.
9386           (CH_DECL_BUFFER): Add flag in decl.  Clean up for
9387           readability.  Add prototypes.
9388         * ch-typeck.c (build_chill_cast): Call convert rather
9389           than storing directly into TREE_TYPE field.
9390
9391 Tue Jul  6 12:34:32 1993  Bill Cox  (bill@rtl.cygnus.com)
9392
9393         * ch-actions.c (lang_init): Set warn_switch so case labels
9394           get checked.  Move build_chill_case_expr to ch-expr.c.
9395         * ch-expr.c (chill_expand_case_expr): Enable checking
9396           of expression case labels.
9397         * ch-grant.c: Move a comment.
9398
9399 Mon Jul  5 10:02:27 1993  Wilfried Moser  (fs_moser at rcsw1j)
9400
9401         * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
9402         * ch-except.c (initialize_exceptions): Change the layout of the
9403           structure __ch_handler. The entry __jbuf is moved to the end
9404           of the structure and its size was changed to _JBLEN+10.
9405         * ch-decl.c (push_chill_extern_process): Add processing of
9406           processes with no arguments.
9407         * ch-grant.c (decode_decl, do_seize): Add processing of
9408           processes with no arguments.
9409         * ch-tasking.c (build_process_header, build_chill_start_process):
9410           Add processing of processes with no arguments.
9411           (make_process_struct): Add processing of IN attribute for
9412           process arguments.
9413           (tasking_setup): Add NUL-character to name of a tasking
9414           element. The name must be NUL terminated.
9415           (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
9416           to 0 with a warning if -Wall specified on command-line.
9417
9418 Fri Jul  2 16:01:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9419
9420         * ch-parse.y: Change 'empty' comments to new non-terminal
9421           so that exyacc doesn't discard them.
9422         * ch-lang.c (build_chill_range_type): New error messages.
9423
9424 Fri Jul  2 12:43:25 1993  Bill Cox  (bill@rtl.cygnus.com)
9425
9426         * ch-parse.y (action): Catch and report actions which
9427           shouldn't have exception clauses, but do.  Unfortunately,
9428           catching more than one of these per compilation will
9429           have to await the general addition of syntax error
9430           recovery to the parser.
9431
9432 Fri Jul  2 10:45:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9433
9434         * ch-parse.y (locdec): Issue error for initialization
9435           of bitstring with tuple, not for powerset init with
9436           tuple.
9437
9438 Thu Jul  1 15:29:26 1993  Bill Cox  (bill@rtl.cygnus.com)
9439
9440         * ch-lang.c (build_chill_array_type): Check for indices
9441           that didn't fold into constants, issue error (PR 2924b).
9442         * ch-parse.y: Add novelty counter, alphabeticalize.
9443         * ch-tree.h: Define CH_NOVELTY for novelty checks later.
9444
9445 Thu Jul  1 14:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9446
9447         For Wilfried Moser.
9448         * chill.in: Add -ansi switch at compiler call to avoid
9449           translation of i.e. sun to 1 by cpp.
9450
9451 Wed Jun 30 22:21:33 1993  Bill Cox  (bill@rtl.cygnus.com)
9452
9453         * ch-grant.c (raw_decode_mode): Add code for
9454           integer and enumeral ranges.  Standardize indentation.
9455
9456 Wed Jun 30 14:02:23 1993  Bill Cox  (bill@rtl.cygnus.com)
9457
9458         * ch-grant.c (print_an_int): New function to print a
9459           decimal integer string or the CONST_DECL (SYN) which
9460           best matches it.
9461           (print_integer): Call the above function.  Replace
9462           calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
9463           comparisons, as suggested by Jim Wilson.
9464           (decode_decl): Set current_grant_modename sooner,
9465           be sure to clear it when done.
9466
9467 Wed Jun 30 10:10:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9468
9469         * ch-actions.c (build_max_min): Change interface to accept
9470           just a max/min flag.  Get min/max values from an
9471           enumeral constructor.
9472           (build_chill_max, build_chill_min): Change calls to
9473           build_max_min.
9474         * ch-lang.c (deep_const_expr): Check for NULL_TREE
9475           arguments, don't seg fault.
9476
9477 Wed Jun 30 09:20:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9478
9479         * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
9480           to switch cases, preventing abort.
9481
9482 Tue Jun 29 19:04:37 1993  Bill Cox  (bill@rtl.cygnus.com)
9483
9484         * ch-expr.c: Update comment.
9485         * ch-parse.y (range_or_mode): New non-terminal used in
9486           lexpr to implement mode as case label.
9487
9488 Tue Jun 29 13:13:46 1993  Bill Cox  (bill@rtl.cygnus.com)
9489
9490         * ch-actions.c (build_chill_case_expr): Pass in the
9491           optional ELSE clause, error for multiple case-selector
9492           expressions, error for missing ELSE clause.
9493         * ch-expr.c (chill_expand_assignment): Error if multiple
9494           location assignment and locations not novelty
9495           equivalent.
9496         * ch-parse.y (caseaction): Add range_list_clause non-
9497           terminal, sorry message for it.
9498           (assignaction): error if operator used on multiple
9499           assignment.
9500           (case_expr): Pass optional ELSE tree to
9501           build_chill_case_expr for checking.
9502         * ch-tree.h (build_chill_case_expr): Change proto.
9503
9504 Fri Jun 25 17:22:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9505
9506         * ch-actions.c (chill_comptypes, build_chill_binary_op):
9507           Allow PROC mode variables.
9508         * ch-convert.c (convert): Turn a NULL literal into a zero
9509           valued pointer-to-function, given such a type.  Also
9510           build the ADDR_EXPR of a function variable.
9511         * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9512           (print_enumeral, print_integer, print_struct) Moved these
9513           large functions out of the switch in raw_decode_mode for
9514           readability, and to encourage future code-sharing.
9515           (print_proc_tail, print_proc_exceptions): Moved these out
9516           of decode_decl, to share them.  They're used also to
9517           output PROC modes.
9518         * ch-parse.y (mode2): Enable PROC modes.
9519           (procmode): Represent PROC mode as a ptr-to-function type.
9520           (call): Recognize ptr-to-function as indirect call.
9521           Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9522
9523 Thu Jun 24 15:59:20 1993  Bill Cox  (bill@rtl.cygnus.com)
9524
9525         * ch-grant.c: (raw_decode_mode): Add support for unnamed
9526           and user-numbered enumeration members.
9527
9528 Thu Jun 24 13:52:10 1993  Bill Cox  (bill@rtl.cygnus.com)
9529
9530         * ch-actions.c (build_chill_array_expr, build_chill_length):
9531           Explicitly convert a varying array's length field to an
9532           integer_type_node, now that it's only a chill_integer_
9533           type_node.
9534         * ch-expr.c (chill_expand_expr,
9535                      expand_assignment_to_varying_array,
9536                      chill_expand_array_assignment,
9537                      expand_varying_length_assignment): Explicitly
9538           convert a varying array's length field to an integer_type_node,
9539           now that it's only a chill_integer_type_node.
9540         * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9541           to handle varying array location iterations.
9542         * ch-parse.y (mode2): Count number of named SET members,
9543           as opposed to '*' members.  Issue error if there were none.
9544           (setelement): Count named set members.  Generate a unique
9545           identifier for the '*' element.
9546         * ch-typeck.c (validate_varying_array_ref):  Explicitly
9547           convert a varying array's length field to an integer_type_node,
9548           now that it's only a chill_integer_type_node.
9549
9550 Wed Jun 23 19:18:28 1993  Bill Cox  (bill@rtl.cygnus.com)
9551
9552         * ch-lang.c (finish_chill_enum): Change test for too-
9553           large enumerations.
9554         * ch-parse.y (setelement, optsetvalue): Allow numbered,
9555           unnamed set elements.
9556
9557 Wed Jun 23 16:25:06 1993  Bill Cox  (bill@rtl.cygnus.com)
9558
9559         * c-typeck.c (process_init_constructor): Suppress
9560           errors about un-initialized array elements if the
9561           array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9562         * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9563           enumerations *can* be only a byte in size.
9564           (adjust_parm_or_field): Convert untyped parameter before
9565           looking at its type to process it.
9566         * ch-convert.c (convert): Generate [ -1, -1 ] value for
9567           an INSTANCE type.
9568         * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9569           type, so that output_constant doesn't seg fault.
9570         * ch-except.c (start_handler_array): Use unique identifier for
9571           exception array, so we can have > 1 array per reach.
9572         * ch-lang.c (finish_chill_enum): Error if number of
9573           enumeration values exceeds 256.
9574         * ch-parse.y (check_end_label): Error, not warning if start
9575           and end labels don't match.
9576           (assignaction): Convert RHS.  Allows untyped tuples to be
9577           passed to stabilize_reference.
9578           (exceptlist, onexceptprefix): Error if non-unique exception
9579           name is coded.
9580         * ch-tree.c: Added form feeds, comment reformatted.
9581         * ch-typeck.c (chill_expand_tuple): Compare tree value to
9582           NULL_TREE, not zero.  Add a constructor element for a
9583           VARYING array's length to the constructor list.
9584           (build_varying_struct): Mark the type as VARYING for
9585           process_init_constructor.
9586         * toplev.c (lang_options): Add '-lang-chill' and
9587           '-fchill-grant-only' options to table.
9588
9589 Tue Jun 22 13:13:41 1993  Bill Cox  (bill@rtl.cygnus.com)
9590
9591         * ch-actions.c (build_chill_function_call): Add check
9592           to prevent calling a PROCESS like a PROCEDURE.
9593         * ch-parse.y (rcalternative): Add check for an
9594           receive case alternative after a RECEIVE CASE
9595           statement.
9596         * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9597         * ch-lang.c (lang_finish): Remove resetting errorcount
9598           and sorrycount for granting.
9599
9600 Mon Jun 21 17:56:48 1993  Bill Cox  (bill@rtl.cygnus.com)
9601
9602         Receiving signals works.
9603         * ch-actions.c (lang_init): Add else_clause flag to
9604           __wait_signal parameter list.
9605         * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9606         * ch-parse.y (SIGNALNAME): New token.  Delete
9607           empty_untyped_exprlist token, no longer used.  Add
9608           name_or_signal non-terminal.  Standardize a few NULL
9609           tests.  Add real RECEIVE CASE semantics.  Add checks that
9610           SIGNALS, BUFFERs are only declared at global scope.
9611           (call): Add signal declarations with/without data fields.
9612         * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9613           build_chill_receive_case_start, build_chill_receive_case_end,
9614           build_chill_receive_case_label): New functions.
9615           Replace build (CONSTRUCTOR, ... calls with build_nt
9616           (CONSTRUCTOR, calls.
9617         * ch-tree.h: New prototypes.
9618
9619 Thu Jun 17 18:36:38 1993  Bill Cox  (bill@rtl.cygnus.com)
9620
9621         SIGNAL declaration compilation, seizing & granting,
9622           SENDing also.
9623         * ch-actions.c (lang_init): Move instance_type_node
9624           build to ch-tasking.c.  Call build_tasking_message_type.
9625           Build a type for send_signal.  Put builtin_function
9626           calls into alpha order.
9627           (adjust_proc_param): Rename to adjust_parm_or_field,
9628           add is_signal flag, so signal fields can use it.  Rename
9629           calls to it, add flag to calls.
9630         * ch-decl.c (push_chill_extern_signal): Add function.
9631         * ch-grant.c (decode_decl): Correct signal decl output.
9632           (do_seize): Correct check for process seizure.  Add
9633           code for seized signal decl.
9634         * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9635         * ch-loop.c (get_unique_identifier): Standardize loop
9636           temporary's name to assure that it's not granted.
9637         * ch-parse.y (SIG_NAME): Delete unused token.
9638           (spec_declist): Delete silly printf.
9639           (quasi_signaldef): Add non-terminal.
9640           (sendaction, optsendwith, optsendto, optpriority):
9641           Implement actual working semantics.
9642           (call, empty_untyped_exprlist): Allow empty signal
9643           fields between parens.
9644         * ch-tasking.c: Rename adjust_proc_param calls, add
9645           is_signal flag to calls.  Make instance_type_node a
9646           type, not a TYPE_DECL, change references.  Fix all
9647           CONSTRUCTOR builds.  Add make_signal_struct function.
9648           Move build_instance_type here from lang_init.
9649           (build_tasking_message-type, build_signal_descriptor,
9650           build_chill_send_signal): New functions.
9651         * ch-tree.h: Add, update protos.
9652         * ch-typeck.c (build_chill_cast): Check for NULL expression
9653           type as well as error_mark.
9654
9655 Thu Jun 17 12:28:03 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
9656
9657         * Makefile.in (STAGESTUFF): Add chill to list.
9658
9659 Wed Jun 16 07:12:53 1993  Bill Cox  (bill@rtl.cygnus.com)
9660
9661         * Makefile.in: Complete the renaming of ch-process.c
9662           to ch-tasking.c.
9663         * ch-decl.c (push_chill_extern_function): Drop is_process
9664           parameter, and marking process decl trees.
9665           (push_chill_extern_process): New function for
9666           SEIZEd processes.  Lotsa form feeds added for print
9667           readability.
9668         * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9669           (do_seize): New parameter seize_all.  Handle sseizing
9670           processes.
9671           (chill_seize): Pass seize_all parameter.
9672           (chill_grant): Check for __tmp_ prefix, to disable
9673           *either* seizing or granting.
9674         * ch-parse.y (quasi_pdef): Delete is_process parameter for
9675           push_chill_extern_functon, call push_chill_extern_process
9676           for processes.
9677           (specialinit): Comment these rules as needed only until
9678           2-pass compiler is operational.
9679           (extprocedure): Delete is_process parameter.
9680           (simpledec): Delete `sorry' about SIGNAL decls.
9681           (optsigdest): Correct check for process name.
9682         * ch-tasking.c (build_signal_decl): Finish coding.
9683         * ch-tree.h: Add macro to save a SIGNAL's destination
9684           process name in an id node.  Add/change prototype.
9685
9686 Mon Jun 14 18:17:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9687
9688         * ch-actions.c (lang_init): Build instance_type_node.
9689           Change `this' to a runtime function call.
9690         * ch-grant.c (do_seize): Generate tasking-code
9691           variable for seized process.
9692         * ch-lex.l (equal_number): Also accept synonym
9693           name for numeric value.
9694         * ch-parse.y (primval): Add process-related
9695           function calls.
9696           (signaldef, etc.): Rough draft of SIGNAL definition
9697           processing.
9698           (stopaction): Call runtime function.
9699           (pdef): Pop symbol level if ending a process
9700           and there were parameters.
9701           (primval): Call `whoami' runtime function for THIS.
9702         * ch-tasking.c (build_process_header): Be sure
9703           to define the tasking enum, if it hasn't already
9704           been done.  Only call shadow_record_fields if there
9705           are parameters.
9706           (build_tasking_enum): Only call start_enum *after*
9707           checking the already_built flag.
9708           (build_copy_number, get_tasking_code,
9709           build_gen_code, build_gen_inst, build_get_ptype,
9710           build_proc_type): New functions for process-related
9711           builtins.
9712           (build_signal_decl): New function for SIGNAL
9713           declaration - rough draft.
9714         * ch-tree.def (INSTANCE_TYPE): new tree code.
9715         * ch-tree.h: New prototypes.  Defines for instance
9716           type field access.
9717
9718 Sat Jun 12 21:15:02 1993  Bill Cox  (bill@rtl.cygnus.com)
9719
9720         Get start-process action working:
9721         * ch-actions.c (adjust_proc_param): new function,
9722           extracted from build_chill_function_call and called
9723           from there.
9724         * ch-tree.h, ch-grant.c (do_seize): Add process_type
9725           parameter to add_taskstuff_to_list call, prototype.
9726         * ch-parse.y (start_parlist): New non-terminal for
9727           START action.
9728           (startaction): Reference start_parlist, check for
9729           integer-valued process copy-number.
9730           (optstartset): Check instance parameter - must be
9731           an INSTANCE_TYPE location.
9732         * ch-tasking.c (generate_tasking_code_variable): New
9733           function, extracted from tasking_setup and called
9734           from there.  Also called from build_process_header.
9735           (build_process_header): Add process_type parameter
9736           to add_taskstuff_to_list call.  Remove incrementing
9737           of process_type (moved into generate_tasking_code
9738           _variable).
9739           (build_chill_start_process): Complete rewrite.
9740           (add_tasking_stuff_to_list): Add stuffnumber parameter
9741           putit on the list.
9742
9743 Sat Jun 12 06:08:09 1993  Bill Cox  (bill@rtl.cygnus.com)
9744
9745         Getting processes compiled, initialized and granted:
9746         * .cvsignore: Add chill file.
9747         * c-decl.c (shadow_record_fields): Allow PARM_DECL
9748           as well as VAR_DECL.
9749         * ch-actions.c (lang_init): Move build of
9750           initializer_type into ch-tasking.c.  Change
9751           definition of THIS to function call.
9752         * ch-decl.c (massage_param_node): Add comments.
9753           (start_chill_function): Set nested flag in
9754           start_function call based upon current_function_decl,
9755           not as constant zero.
9756         * ch-grant.c (decode_decl): lotsa code by Wilfried to
9757           GRANT process decls.
9758           (finish_chill_module): Completely rewrote interface
9759           to runtime.
9760         * ch-lex.l (THIS): Just return the token code.
9761         * ch-parse: Add THIS token.
9762           (processpar, processparlist): New rules, to collect
9763           process parameters.
9764           (pdef): Add code to pop the process' WITH scope.
9765           (procedure): Set process WITH scope flag to zero.
9766           (process): Move most code into build_process_header.
9767           (primval): Output function call for THIS.
9768         * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9769           make_process_struct, build_process_header): New code
9770           to handle process translation and interface to runtime.
9771         * ch-tree.h: New prototypes.
9772
9773 Thu Jun 10 13:32:51 1993  Bill Cox  (bill@rtl.cygnus.com)
9774
9775         * Makefile.in: Change ch-process.c to ch-tasking.c.
9776           A delayed part of the last change..
9777
9778 Thu Jun 10 11:14:59 1993  Bill Cox  (bill@rtl.cygnus.com)
9779
9780         * .cvsignore: Add 'chill' file.
9781         * ch-actions.c (lang_init): Add new runtime function
9782           __register_process.
9783         * ch-decl.c (push_chill_extern_function): Add is_process
9784           input flag, use it.
9785         * ch-grant.c (decode_decl): Recognize a process for
9786           granting.
9787           (do_seize): Put seized processes onto the tasking_list.
9788           (chill_finish_module_code): Declare init_list entry,
9789           link it onto the init_list.  Call tasking_setup and
9790           tasking_registry.
9791         * ch-lex.l: Make tasking-related variables global,
9792           delete their initialized flags.
9793         * ch-parse.y: Add is_process flag to push_chill_extern_function
9794           calls.  Put processes onto the tasking_list.
9795         * ch-process.c: Renamed to ch-tasking.c.
9796         * ch-tasking.h: New file.
9797         * ch-tree.h: New, adjusted prototypes.
9798
9799 Wed Jun  9 10:59:27 1993  Wilfried Moser  (moser@deneb.cygnus.com)
9800
9801         * chill: This file is replaced by chill.in and will be
9802           generated during 'make' and 'make install'. This script
9803           now finds the correct chillrt0.o and libchill.a during
9804           linking.
9805         * chill.in: New file that replaced chill.
9806         * Makefile.in: Add rules to make chill out of chill.in.
9807
9808 Wed Jun  9 09:03:55 1993  Bill Cox  (bill@rtl.cygnus.com)
9809
9810         * .cvsignore: Add gfloat.h and xlimits.h.
9811         * ch-actions.c (lang_init): Create new type for module-
9812           level initializer list entry.
9813         * ch-grant.c (chill_start_module_code): Rename actual
9814           module-level code to just the modulename, which is
9815           *not* public.
9816           (chill_finish_module_code): Allocate space for initializer
9817           list entry, build real initializer function, which puts
9818           the list entry on the runtime list.  Name the init function
9819           as the module's constructor function.
9820         * ch-tree.h (build_init_struct): Add prototype.
9821         * ch-typeck.c (build_init_struct): Add function, called
9822           from lang_init.
9823         Note: these changes require a new devo/chillrt/chillrt0.c.
9824
9825 Thu Jun  3 17:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9826
9827         * c-decl.c: Fix comment.
9828         * ch-actions.c, ch-grant.c: Standardize front end:
9829           #define first, etc.  Add comments.
9830           (lang_init): Delete unused flag, code for inapplicable
9831           gen-decls option.  (lang_decode_option): Delete
9832           gen-decls option, add grant-only option, flag.
9833         * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9834           ch-typeck.c: Add form feed after front end.
9835         * ch-expr.c: Standardize testing for error_mark node.
9836         * ch-lang.c: Remove unused deep_fold function.
9837
9838 Fri May 21 11:04:22 1993  Bill Cox  (bill@rtl.cygnus.com)
9839
9840         * c-typeck.c (build_binary_op, build_unary_op):
9841           Recognize BOOLEAN_TYPE.
9842         * ch-actions.c (build_chill_unary_op): Remove
9843           some crufty work-arounds.
9844
9845 Thu May 20 19:03:48 1993  Per Bothner  (bothner@deneb.cygnus.com)
9846
9847         * ch-grant.c (decode_constant):  If the granted value is a
9848         cast, make sure to emit an appropriate expression conversion.
9849
9850 Thu May 20 16:35:35 1993  Bill Cox  (bill@rtl.cygnus.com)
9851
9852         * ch-lang.c (build_chill_range_type): Initialize the
9853           precision variable.  Double-negative ranges work now.
9854
9855 Thu May 20 11:24:42 1993  Bill Cox  (bill@rtl.cygnus.com)
9856
9857         * ch-actions.c (build_unary_op): Compound a wretched
9858           hack which hides a BOOLEAN_TYPE from the underlying
9859           C code.
9860
9861 Wed May 19 16:45:54 1993  Bill Cox  (bill@rtl.cygnus.com)
9862
9863         * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9864           from chill_comptypes. (build_chill_unary_op): Give
9865           better name to unsigned flag.
9866         * ch-expr.c (chill_expand_assignment): Correct calling
9867           sequence for setpowersetbits runtime routine.
9868         * ch-grant.c (raw_decode_mode): Give better name to
9869           unsigned flag.  (decode_constant): Check for null
9870           'val' ptr, avoid seg fault.
9871         * ch-lex.l (convert_number):  Give better name to
9872           unsigned flag. (convert_bitstring): Move increment
9873           of bl counter to emphasize that it increments once
9874           per loop.
9875         * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9876         * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9877           constructor if given a singleton set constructor.
9878
9879 Thu May 13 17:03:04 1993  Bill Cox  (bill@rtl.cygnus.com)
9880
9881         * c-decl.c (pushdecl): Complete May 9 change.
9882         * ch-actions.c (build_chill_unary_op): Set the
9883           TREE_UNSIGNED flag FALSE for raw_decode_mode.
9884         * ch-grant.c (grant_array_type): Correct the May 12
9885           check for circularity.
9886           (raw_decode_mode): Use TREE_UNSIGNED flag to
9887           control range's printing.
9888           (chill_grant): Remove useless, bogus code.
9889         * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9890           flag TRUE for raw_decode_mode.
9891
9892 Wed May 12 18:04:01 1993  Bill Cox  (bill@rtl.cygnus.com)
9893
9894         * ch-decl.c (push_syndecls, push_modedef): Comment
9895           reminders to check for circular definitions.  Later!
9896         * ch-grant.c (grant_array_type, decode_decl): Prevent
9897           circular definitions in the use of the array's
9898           type name.
9899
9900 Wed May 12 16:06:13 1993  Bill Cox  (bill@rtl.cygnus.com)
9901
9902         * ch-grant.c (grant_array_type): If array_type has
9903           a name, just use it.
9904         * ch-lang.c (build_chill_range_type): Don't force
9905           unsigned ranges on output.
9906         * expr.c (store_constructor): Preclude seg fault.
9907
9908 Wed May 12 07:49:00 1993  Bill Cox  (bill@rtl.cygnus.com)
9909
9910         * ch-actions.c (fold_set_*): Correct tests for
9911           range set-constructor list entries.
9912           (lang_init): Define setpowersetbits function.
9913         * expr.c (store_constructor): Handle non-constant
9914           set constructors.
9915
9916 Tue May 11 18:25:40 1993  Per Bothner  (bothner@cygnus.com)
9917
9918         * ch-lang.c (build_chill_range_type):  If the parent type
9919         is unknown, and the endpoints of the range are integer
9920         constants, use the smallest suitable integer type.
9921         * ch-lang.c (build_chill_range_type):  Remove kludge
9922         for dealing with char ranges.
9923
9924 Tue May 11 15:24:31 1993  Bill Cox  (bill@rtl.cygnus.com)
9925
9926         * ch-actions.c (build_chill_repetition_op): Build a
9927           range-type set constructor if there's only one value
9928           in the repeated constructor.
9929           (fold_set_*): Abort if range value seen, for now.
9930         * expr.c (store_constructor): Handle range-type by
9931           storing bytes rather than bits as much as possible.
9932
9933 Mon May 10 18:45:18 1993  Bill Cox  (bill@rtl.cygnus.com)
9934
9935         * ch-actions.c (invalid{left right}_operand): Add
9936           handlers for REPLICATE_EXPR.
9937           (build_chill_repetition_op): Build constructor list
9938           for repetition of bitstring.
9939         * ch-parse.y (call): Recognize more trees as arrays,
9940           to avoid error msg.
9941           (operand5): Add count, string temporaries, use them.
9942
9943 Mon May 10 16:49:08 1993  Per Bothner  (bothner@cygnus.com)
9944
9945         * ch-grant.c (seize_implied_names):  Fix code that assumed
9946         a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9947         * ch-grant.c (generate_set, grant_parent_of_enum,
9948         grant_parent_enum): Removed unused functions.
9949         * ch-grant.c (raw_decode_mode):  Remove commented-out code.
9950
9951 Mon May 10 10:54:57 1993  Bill Cox  (bill@rtl.cygnus.com)
9952
9953         * ch-grant.c (do_seize, seize_implied_types): Move
9954           result and parameter processing to proper place.
9955           (chill_seize): Mark unseized identifier with
9956           error_mark_node, to avoid excessive errors.
9957         * ch-parse.y (call): Check for ERROR_MARK before
9958           reporting an error.
9959
9960 Sun May  9 17:21:24 1993  Bill Cox  (bill@rtl.cygnus.com)
9961
9962         * c-decl.c (pushdecl): If a strongly-visible name is
9963           seen, in conflict with a weakly-visible name, take
9964           the strongly-visible one and don't complain.
9965         * ch-actions.c (chill_comptypes): Allow chain of ref-
9966           erence types > 1 in length.
9967         * ch-grant.c: Turn disguised for-loops into actual
9968           ones, so continue works.  Delete redundant code in
9969           seize_implied_names.  Reindent.
9970         * expmed.c (store_split_bit_field): Disable abort for
9971           CHILL.
9972
9973 Sun May  9 17:11:33 1993  Per Bothner  (bothner@cygnus.com)
9974
9975         * ch-convert.c (convert):  Move handling of SET_TYPE until
9976         after we've handled de-referencing and such like.
9977         * ch-grant.c (grant_array_type):  Simplify; remove (now-)
9978         bogus call to generate_set.
9979         * ch-grant.c (get_type):  Remove obsolete stuff.
9980
9981 Fri May  7 10:30:34 1993  Bill Cox  (bill@rtl.cygnus.com)
9982
9983         * ch-actions.c (lang_init): Add definition of psslice
9984           runtime routine. (build_chill_binary_op_1,
9985           build_chill_binary_op): Have result type of
9986           TRUTH_ANDIF_EXPR be boolean, not integer.  Some
9987           reindenting.
9988         * ch-convert.c (convert): Use consistent notation
9989           for expression.
9990         * ch-parse.y: Add front-end pass count. (locdec):
9991           Add syntax for other BASED declaration.
9992         * ch-tree.c: Fix comment.
9993         * ch-typeck.c (build_chill_slice): Implement a runtime
9994           call for bitstring slices. (build_chill_cast):
9995           Add code for BITS_BIG_ENDIAN bit loop.
9996           (chill_expand_tuple): Don't pass ref type to
9997           digest_init, only underlying type.
9998
9999 Thu May  6 12:52:14 1993  Per Bothner  (bothner@cygnus.com)
10000
10001         * ch-typeck.c (build_chill_cast):  type_for_size takes
10002         a size in bits, not bytes.
10003
10004 Wed May  5 19:02:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10005
10006         * ch-actions.c: Break out separate routines for set
10007           folding, handle ranges in set_fold_eq and set_fold_ne.
10008           Fix folding as req'd by TTC test.
10009         * ch-grant.c (raw_decode_more): Check for content match
10010           to decide output mode, not pointer identity.
10011         * ch-typeck.c: Add cross-reference comment.
10012         * varasm.c (emit_set_data): Clarify parameter name.
10013           Handle INTEGER_CST as set constructor.
10014           (output_constant): Handle CONSTRUCTOR node for sets.
10015           Apparently forgot to actually 'checkin' this one last
10016           time.
10017
10018 Wed May  5 12:23:58 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
10019
10020         * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
10021
10022 Tue May  4 15:47:44 1993  Bill Cox  (bill@rtl.cygnus.com)
10023
10024         * ch-actions.c (fold_set_expr): new function to fold
10025           set expressions.  Calls inserted into
10026           build_chill_binary_op and build_chill_unary_op.
10027           (build_chill_repetition_op): New function, called
10028           from build_chill_function_call.
10029         * ch-expr.c (chill_expand_assignment): Call
10030           build_chill_repetition_op.
10031         * ch-grant.c (decode_constant): Comment out deep_fold
10032           call.  The earlier fold_set_expr calls should make
10033           this one unnecessary.  Prevent seg fault when name
10034           of structure field is NULL.  Standardize for loop.
10035         * ch-parse.y: Fix comments.
10036           (operand5): build a REPLICATE_EXPR.  Don't call
10037           build_repetition_op until we have a type.
10038         * ch-tree.def (REPLICATE_EXPR): Define tree-code.
10039         * ch-tree.h (build_chill_repetiton_op): Fix proto.
10040         * ch-typeck.c (chill_expand_result): Call
10041           build_chill_repetition_op if needed.
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
10046 Mon May  3 13:06:47 1993  Per Bothner  (bothner@cygnus.com)
10047
10048         * ch-typeck.c (build_chill_cast):  Allow more liberality to
10049         casting:  Any discrete type to any non-discrete type that is the
10050         same size as some other discrete type (and vice versa).
10051         * stor-layout.c (layout_type, case SET_TYPE):  If the number
10052         of bits will fit in a char or short, only use that many bits.
10053
10054 Mon May  3 08:22:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10055
10056         * ch-grant.c (decode_constant): Revert interpretation
10057           of SET_TYPE as integer.
10058
10059 Mon May  3 07:55:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10060
10061         * chparse.y (casealternative): Allow empty action list.
10062
10063 Sat May  1 15:07:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10064
10065         * expr.c (expand_expr): Add parameter to __inpowerset
10066           runtime call, to match new runtime.
10067
10068 Sat May  1 14:55:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10069
10070         * ch-actions.c: Cleanup from -Wall.  Reindent.
10071           Redefine __inpowerset to take a 'minval' parameter
10072           that matches the new runtime.  Added comments.
10073         * ch-expr.c (chill_handle_case_label): Handle
10074           NULL or ERROR trees.
10075         * ch-grant.c (get_type): Survive bogus type params,
10076           return empty string.
10077         * ch-tree.c (build_powerset_type): Diagnose powerset
10078           of non-discrete type.
10079         * ch-typeck.c (discrete_type_p): Reindent.
10080
10081 Fri Apr 30 16:08:54 1993  Bill Cox  (bill@rtl.cygnus.com)
10082
10083         * ch-grant.c (decode_constant): Interpret SET_TYPE
10084           with integer value, so we output the same stuff as
10085           the user gave us.
10086         * ch-parse.y: Fix indentation.
10087
10088 Fri Apr 30 09:34:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10089
10090         * ch-actions.c (chill_comptypes): Simplify, correct
10091           integer subrange analysis.
10092         * ch-grant.c (seize_implied_names): Add handling for
10093           PROCESS_DECL, PROCESS_TYPE.
10094           (do_seize): Call seize_implied_names for process,
10095           procedure parameters and return value.
10096         * ch-lang.c (finish_chill_enum): Canonicalize enum
10097           types.
10098         * ch-tree.def (PROCESS_TYPE): Add.
10099         * ch-typeck.c (valid_array_index): Call chill_comptypes
10100           rather than broken macro CH_COMPATIBLE.  The logic
10101           in chill_comptypes will get moved to the macro later.
10102
10103 Thu Apr 29 13:07:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10104
10105         * ch-actions.c (build_chill_lower, build_chill_upper):
10106           Handle enumeration types.
10107           (build_chill_binary_op): Call chill_comptypes
10108           to error check IN arguments.  Change error
10109           messages to say 'mode' rather than 'type'.  Cast
10110           tree codes when build is called.
10111         * ch-expr.c (chill_expand_array_assignment): Call
10112           chill_comptypes to validate assignment args.
10113         * ch-lex.l: Add newline for readability.
10114
10115 Wed Apr 28 15:22:18 1993  Bill Cox  (bill@rtl.cygnus.com)
10116
10117         * Makefile.in (ch-hash.h): Add rule to build this
10118           from chill.gperf.  Not yet used.
10119         * ch-actions.c (build_chill_binary_op): Allow enum
10120           subranges on RHS of IN operator.
10121         * ch-grant.c (decode_constant): Recognize
10122           error_mark_node as empty powerset initializer,
10123           re-indent a bit.
10124         * ch-lang.c (deep_fold): Return error_mark_node for
10125           NULL input pointer or incoming error_mark_node.
10126         * ch-lex.l: Ignore PACK and UNPACK keywords. Return
10127           POS, ROW, and STEP as user-defined names.
10128           (name_or_type): New function for above.
10129         * ch-parse.y: Move token defs for following, comment
10130           them separately: NOPACK, PACK, POS, ROW, STEP
10131         * varasm.c (output_constant): Check for VAR_DECLs in
10132           records & unions, like arrays.  Don't abort.
10133
10134 Tue Apr 27 17:42:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10135
10136         * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
10137           rewrite for generality.
10138         * ch-decl.c (grok_chill_variantdefs): Use chill
10139           comptypes, so that subrange compatibility is ok.
10140           (start_chill_function): Use lookup_name(), not
10141           IDENTIFIER_GLOBAL_VALUE, for full generality.
10142         * ch-expr.c (chill_expand_assignment): Need to
10143           handle non-NOP modify codes here, since C code
10144           in build_modify_expr won't understand powersets,
10145           etc.
10146
10147 Tue Apr 27 09:05:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10148
10149         * ch-actions.c (build_max_min): Assign the set's
10150           base type to the function's return type.
10151           (build_chill_function_call): Before complaining
10152           about parameter mismatches, convert certain actual
10153           parameters.
10154         * ch-expr.c (chill_expand_assignment): Before
10155           complaining about LHS/RHS mismatches, convert
10156           certain RHS expressions.
10157         * ch-grant.c (decode_constant): Deep-fold incoming
10158           expression, so we can output it.
10159         * ch-lang.c (deep_const_expr): New function, called
10160           from const_expr, actually traverses the tree
10161           looking at its leaves for 'const'ness.
10162           (deep_fold): New function to fold already-built
10163           trees.
10164         * ch-parse.y (case_expr): Add whitespace.
10165         * ch-tree.h: Add prototype for deep_fold.
10166
10167 Tue Apr 27 07:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10168
10169         * ch-actions.c (chill_comptypes): Allow enumeration
10170           subranges as compatible with the parent enum.
10171           (build_chill_function_call): Before checking type
10172           compatibility, use convert on typeless expressions,
10173           like constructors.
10174         * ch-expr.c (chill_expand_assignment): Before
10175           checking type compatibility, use convert on
10176           typeless expressions, like constructors.
10177         * ch-lex.l: Add comment.
10178
10179 Thu Apr 22 17:23:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10180
10181         * .cvsignore: Add genopinit, insn-opinit.c
10182         * c-common.c (binary_op_error): Prevent seg fault on
10183           unknown node code.
10184         * ch-typeck.c (build_chill_array_ref): Remove old
10185           lower-bound-of-array-index-nonzero code.
10186         * expr.c (expand-expr, get_inner_reference): Remove
10187           old lower-bound-of-array-index-nonzero code.
10188
10189 Thu Apr 22 16:01:09 1993  Bill Cox  (bill@rtl.cygnus.com)
10190
10191         * c-decl.c (shadow_record_fields): Add pushlevel for
10192           each PROCESS parameter, too.
10193         * ch-process.c (make_process_struct): First working
10194           version.
10195         * ch-tree.def: Add PROCESS_DECL definition.
10196         * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
10197           for make_process_struct.
10198         * expr.c (expand_expr): Add references to
10199           PROCESS_DECL.  Add #include of ch-tree.h.
10200         * tree.c (decl_function_context): Add check for a
10201           PROCESS_DECL, and #include for ch-tree.h.
10202
10203 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10204
10205         * expr.c (expand_expr): Add missing prototypes, and
10206           parameters to expand_expr call.
10207
10208 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10209
10210         * c-decl.c (shadow_record_fields): Add ability to
10211           handle pointers to records/unions.  For PROCESS
10212           compilation.
10213
10214 Thu Apr 22 09:25:08 1993  Bill Cox  (bill@rtl.cygnus.com)
10215
10216         * ch-expr.c (chill_expand_expr): Add missing
10217           parameters to expand_expr calls.  Some trivial
10218           reformatting for readability.
10219
10220 Wed Apr 21 16:17:07 1993  Bill Cox  (bill@rtl.cygnus.com)
10221
10222         * ch-lex.l: Make send_*_prio externally visible,
10223           default them to zero, eliminate the init flags.
10224           Same for process_type.
10225
10226 Sat Apr 17 10:59:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10227
10228         * ch-actions.c (build_chill_binary_op): Build a
10229           BIT_FIELD_REF tree for IN_EXPR operations.
10230         * ch-typeck.c (build_chill_array_ref): Build a
10231           BIT_FIELD_REF tree for access to packed array of
10232           bits.
10233
10234 Fri Apr 16 12:33:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10235
10236         * ch-parse.y (EXIT action): Improve error checking,
10237           messages.
10238         * ch-typeck.c (chill_expand_tuple): Remove code to
10239           pack sets (moved to varasm.c long ago).
10240         * varasm.c (unpack_set_constructor): Rename size to
10241           bit_size, since 'size' always means bytes.
10242           (pack_set_constructor): Rename size to wd_size,
10243           since 'size' always means bytes.
10244           (output_constant): Set size to zero, so that extra
10245           bytes of padding aren't output after set constants.
10246
10247 Fri Apr 16 11:57:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10248
10249         * .cvsignore: Add .gdbinit.
10250         * ch-decl.c (start_chill_bindings): Add function name
10251           to binding contour's exit_label for EXIT stmt.
10252         * ch-parse.y (EXIT action): Call lookup_name to avoid
10253           inserting label for function name.  Also check
10254           IDENTIFIER_LABEL_VALUE for label's decl.
10255           (caseaction, beginendblock, ifaction): Call
10256           stamp_nesting_label to put action's label into
10257           contour for EXIT to find.
10258
10259 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10260
10261         * expr.c (expand_expr): Unify, clean up handling of
10262           IN_EXPR, and handling of bit-string element ref.
10263           Now, all goes through IN_EXPR handler.
10264         * stmt.c (stamp_nesting_label, expand_exit_labelled):
10265           New functions, which allow either label or
10266           function decls.
10267
10268 Thu Apr 15 17:17:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10269
10270         * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
10271           ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
10272           ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
10273           ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
10274         * ch-actions.c (build_chill_binary_op): Move runtime function call
10275           to expr.c.  Just build a tree here.  Clean up error checking.
10276         * ch-convert.c (convert): Simply store a type into an expression if
10277           TREE_TYPE (expr) == NULL.  Prevent error if an enum is to be
10278           converted to a set of such enums.
10279         * ch-loop.c (init_loop_counter): Restore error msg for undeclared
10280           variable if no local scope is to be created for the loop.
10281         * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
10282           remove redundant code which wasn't ever called.
10283
10284 Wed Apr 14 07:54:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10285
10286         * .cvsignore (y.tab.c) : Add to list.
10287         * ch-convert.c (convert): Check pointers better - avoid NULL reference.
10288           Remove redundant check for ERROR_MARK - already checked earlier.
10289         * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
10290           error_mark_node.
10291
10292 Tue Apr 13 16:00:37 1993  Per Bothner  (bothner@cygnus.com)
10293
10294         * c-decl.c (start_function):  If there is a previous
10295         function declaration of the same name, steal its RTL.
10296         This is a kludge needed for forward declarations of
10297         nested functions.
10298         * ch-decl.c (push_chill_extern_function), ch-tree.h:  New
10299         function, for external and seized function declarations.
10300         Make sure to use permanent obstack.
10301         * ch-parse.y (quasi_pdef, extprocedure):  Use new function.
10302
10303         * ch-grant.c (chill_finish_module_code):  Since module
10304         function is no longer visible,, can't get it using
10305         lookup_name().  Use current_function_decl instead.
10306
10307         * ch-decl.c (build_chill_function_type):  Add void_type_node
10308         to end of parameter types list.
10309
10310         * ch-grant.c (chill_start_module_code):  Make sure module
10311         function isn't visible (and hence isn't granted).
10312
10313 Tue Apr 13 15:48:25 1993  Bill Cox  (bill@rtl.cygnus.com)
10314
10315         * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
10316           current contour for DO FOR EVER loops.
10317
10318 Tue Apr 13 14:37:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10319
10320         * ch-parse.y (actionstatement): Add error rule.  Delete
10321           POP_UNUSED_ON_CONTEXT.  Add comments about label name usage.
10322           (nohandleraction): Better error check in EXIT processing.
10323           (optexprlist): Comment out make_function_rtl call.
10324           (seizestatement): Change error to warning.
10325
10326 Tue Apr 13 08:29:31 1993  Bill Cox  (bill@rtl.cygnus.com)
10327
10328         * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
10329           call.
10330         * ch-loop.c (begin_chill_loop): Take loop label as parameter.  Stamp
10331           its name into the current contour's exit_label, for EXIT to use.
10332         * ch-parse.y: (actionlabel): Save label tree in global variable.
10333           (actionstatement): Clear label to NULL when action is finished.
10334           (handlerstatement, nohandlerstatement): Split actions into
10335           categories which do/don't permit exception handlers.
10336           (exitaction): Move code into nohandleraction, make it work.
10337           (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
10338         * ch-tree.h: Add parameter  to begin_chill_tree prototype.
10339         * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
10340           Note: This implementation of EXIT only exits from loops, not yet
10341                 from other bracketted statements.
10342
10343 Mon Apr 12 13:41:55 1993  Per Bothner  (bothner@rtl.cygnus.com)
10344
10345         * ch-grant.c (chill_grant):  Remove obsolete code.
10346
10347         * ch-decl.c (push_synmode, push_newmode):  Merged to yield ...
10348         * ch-decl.c (push_modedef):  ... w/ slightly different interface.
10349         * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
10350         (modedefinition):  Use new push_modedef function.
10351         * ch-parse.y (modedefinition):  Don't depend on inherited
10352         attributes (- implemented incorrectly!): Use a global variable
10353         parsing_newmode to distinguish synmode and newmode.
10354
10355 Mon Apr 12 08:10:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10356
10357         * ch-loop.c: Diffuse cleanup after big functional changes.
10358         * ch-parse.y: Eliminate temporary variables, now unnecessary.  Use
10359           parse-time stack instead.
10360         * ch-tree.h: Change build_chill_iterator prototype.
10361
10362 Sun Apr 11 15:50:33 1993  Bill Cox  (bill@rtl.cygnus.com)
10363
10364         * ch-convert.c (convert): Replace an ERROR_MARK type - from a
10365           untyped_expr with the given type.  Move chill_expand_case_expr
10366           call inside chill_expand_expr.
10367         * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
10368           chill_handle_case_label, chill_expand_case_expr):  Move to ch-expr.c
10369           from ch-typeck.c.
10370         * ch-loop.c: Major reorganization to support multiple iterators in
10371           DO FOR loop, very little new code, just a re-org.
10372         * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
10373
10374 Sat Apr 10 14:40:12 1993  Bill Cox  (bill@rtl.cygnus.com)
10375
10376         * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
10377         * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
10378           member.
10379         * ch-lex.l (equal_number): Add function to look in the input for '='
10380           followed by a decimal literal.  Call it from directive scanning.
10381           (start state 'ccitt'): Deleted, unused.  Moved unused, but reserved,
10382           tokens to NORMAL state.
10383           (compiler_directive): Replaced by equal_number.  Now the only
10384           recursive call to yylex happens in check_newline at the beginning
10385           of a compilation.
10386
10387 Sat Apr 10 09:55:50 1993  Bill Cox  (bill@rtl.cygnus.com)
10388
10389         * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
10390         * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
10391           'reserve' them.
10392         * ch-parse.y (case_expr): Move code into ch-actions.c.  There will
10393           need to be much more written.
10394         * ch-tree.def (VARY_ARRAY_REF): Add comment.
10395         * ch-tree.h (build_chill_case_expr): Add prototype.
10396         * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
10397           type to the expr.  Check for CASE_EXPR, call expand_case_expr.
10398
10399 Sat Apr 10 01:10:51 1993  Per Bothner  (bothner@rtl.cygnus.com)
10400
10401         * ch-parse,y (in_pseudo_module): New variable.  Try if we're
10402         in a seizefile, but not in a module nested in the seizefile.
10403         Use for backwards compatibility with old grantfiles.
10404         * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
10405         If in_pseudo_module, grant new declaration.
10406         * ch-decl.c (pushd_newmode):  If there is a granted previous
10407         incomplete type, fix it up.
10408         * ch-grant.c (seize_implied_names):  Do remaining types.
10409         Guard against recursion.
10410         * ch-tree.h (IDENTIFIER_ENUM_VALUE):  Removed, not used.
10411         * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
10412         (finish_chill_enum):  Enum constants are marked with
10413         CH_DECL_ENUM so they don't get written to the grantfile.
10414         * ch-tree.h (IDENTIFIER_GRANTED_VALUE):  Allow fast seizing.
10415         * ch-lex.l:  Re-write to use start states, to avoid calling
10416         yylex() recursively.
10417         * ch-lex.l (compiler_directive);  This is now obsolste. FIXME.
10418         * ch-lex.l:  Call push_module and pop_module when reading a
10419         seizefile.  This creates a pseudo-module.
10420         * ch-parse.y:  Clean up handling of empty declarations and
10421         action statements; semicolons are now optional a number of
10422         places.
10423         * ch-parse.y:  Remove some bogus tests for "statement
10424         out of sequence" (they're both legal and work).
10425         * varasm.c (mak_function_rtl):  Remove  kludge that may
10426         not be necessary (and loses anyway).
10427
10428 Fri Apr  9 09:37:38 1993  Bill Cox  (bill@rtl.cygnus.com)
10429
10430         * ch-expr.c (chill_expand_array_assignment): Remove false error about
10431           arrays that are too small.
10432         * ch-parse.y (callaction): Don't pass an error_mark_node to
10433           c_expand_expr_stmt.
10434
10435 Fri Apr  9 00:26:54 1993  Per Bothner  (bothner@rtl.cygnus.com)
10436
10437         * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
10438         New macros.
10439         * ch-actions.c (build_chill_function_call):  Use latter.
10440         * ch-typeck.c (chill_similar):  Fix typo.
10441         * ch-grant.c (raw_decode_mode):  Handle ENCAPSULATED_ARRAY_P
10442         parameter types.
10443         * ch-grant.c (seize_implied_names):  Handle ranges of enums.
10444         * ch-grant.c (do_seize):  Set DECL_SOURCE_FILE and _LINE of
10445         seized declaration to be the point of the seize itself.
10446         * ch-grant.c (chill_grant), ch-tree.h:  Add a parameter
10447         which is the list (in order) of decls in the module.
10448         Don't reverse the getdecls() list; that is handled by caller.
10449         * ch-grant.c (chill_grant):  Test that a declaration is
10450         visible before writing it.
10451         * ch-parse.y (push_module):  Make sure to hide declarations
10452         from surrounding module.
10453         * ch-parse.y (pop_module):  Restore those declarations.
10454         * ch-parse.y (pop_module): This function is now responsible
10455         for writing out for calling chill_grant() to the grant file.
10456         * ch-actions.c (lang_finish):  Remove calls to chill_grant().
10457
10458 Thu Apr  8 16:56:52 1993  Bill Cox  (bill@rtl.cygnus.com)
10459
10460         * ch-actions.c (build_char_array_expr): Add handling of varying
10461           arrays in relational expressions.
10462         * ch-decl.c: Add prototype for lookup_name_current_level.
10463         * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
10464           so its length is used as the temp's size.
10465           (chill_expand_array_assignment): Correct for varying := varying
10466           assignment, clean up.
10467         * ch-typeck.c: Add prototype for require_complete_type.
10468
10469 Wed Apr  7 16:41:29 1993  Bill Cox  (bill@rtl.cygnus.com)
10470
10471         * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
10472           diffuse changes to fix location loops.
10473         * ch-parse.y (location): Remove ref through NULL ptr.
10474
10475 Wed Apr  7 13:42:06 1993  Per Bothner  (bothner@rtl.cygnus.com)
10476
10477         * ch-decl.c (massage_param_node):  New function.
10478         It handles the LOC/IN/OUT/INOUT parameter distinction,
10479         as well as calling build_chill_array_parm_type if needed.
10480         * ch-tree.h (massage_param_node):  New prototype.
10481         * ch-decl.c (push_parms):  Use new massage_param_node().
10482         * ch-parse.y (pmodearg):  Use new massage_param_node().
10483         * ch-parse.y (formpar):  Don't call build_chill_array_parm_type;
10484         now handled by massage_param_node.
10485         * ch-typeck.c (my_build_array_ref):  Handle non-zero array
10486         lower bounds.
10487         * ch-actions.c (build_chill_function_call):  If the formal
10488         parameter is a pseudo record wrapped around an array, make
10489         sure we wrap the actual parameter in a record CONSTRUCTOR.
10490         * ch-typeck.c (build_chill_array_parm_type):  Make sure
10491         the pseudo struct type is allocated on the permanent_obstack.
10492         * ch-parse.y (location):  Remove thinko.
10493         * ch-actions.c (chill_comptypes):  Comment out test for
10494         NEWMODEness - it gets broken by the forward declaration hacks.
10495
10496 Tue Apr  6 18:05:40 1993  Bill Cox  (bill@rtl.cygnus.com)
10497
10498         * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10499         * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10500         * ch-parse.y (location): Do build_component_ref for an array wrapped
10501           in a structure.
10502         * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10503         * ch-typeck.c (build_chill_array_parm_type): Add function, move
10504           build_varying_struct here from ch-actions.c.
10505
10506 Mon Apr  5 19:56:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10507
10508         * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
10509           rather than in-line code - tests LOW and HIGH values.
10510         * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10511         * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10512           isn't zero.
10513
10514 Mon Apr  5 15:45:10 1993  Bill Cox  (bill@rtl.cygnus.com)
10515
10516         * ch-typeck.c (my_build_array_ref): Add some more code from
10517           build_array_ref.  Change checks, error messages to mention
10518           'discrete types'.  I.E. types which don't kiss and tell..
10519
10520 Sat Apr  3 09:27:03 1993  Bill Cox  (bill@rtl.cygnus.com)
10521
10522         * ch-except.c, ch-expr.c: Turn externs into prototypes.
10523         * ch-grant.c (chill_grant): Remove orphan #else.
10524         * ch-tree.h: Add prototype for build_chill_bin_type.
10525         * ch-typeck.c: Turn externs into prototypes, delete code which
10526           was commented out in chill_expand_return; it will never be used.
10527
10528 Fri Apr  2 21:55:14 1993  Per Bothner  (bothner@rtl.cygnus.com)
10529
10530         Major re-write of New module/seize/grant stuff.
10531         Now, a grantfile is a spec module and contains all the
10532         top-level declarations of the granting module, not just
10533         those that are granted.  It also contains explicit grant
10534         statements naming those declared names that are granted.
10535         It also has seize statements and use_seize_file directives
10536         to correctly handle transitive dependencies.
10537
10538         * ch-parse.y:  Change to allow multiple modules per source file.
10539         Allow spec modules (including quasi definitions) as well as
10540         regular modules.
10541         Allow spec modules inside normal modules;  these behave as if
10542         they were outermost.  This violates the Blue Book, but is
10543         needed by the new grantfile mechanism.  (A grant file is a
10544         spec module that gets included by the use_seize_file directive.)
10545         * ch-parse.y (struct module *current_module, push_module,
10546         pop_module):  Support module nesting (for spec modules only).
10547
10548         * ch-tree.h (struct module): New.
10549         * ch-grant.c (granted_decls):  New list of declarations
10550         that have been granted into the outermode pseudo-module.
10551         * ch-grant.c (decode_mode):  If the decl has a name,
10552         always write the name, not just if the decl has already
10553         been written.  Since we write out all decls, we can assume
10554         it will be written later, and depend on the forward
10555         declaration kludges to catch it.
10556         * ch-grant.c (decode_decl):  Don't write out _EXTERN.
10557         Instead write out standard (Blue Book) quasi-definitions.
10558         * ch-grant.c (push_granted):  New function.
10559         * ch-grant.c (seize_implied_names):  New function.  Re-write
10560         how set element names are seized when a set type is seized.
10561         * ch-grant.c (chill_seize):  Work by seraching the
10562         granted_decls list and copying the declaration.
10563         * ch-grant.c (chill_grant):  Write all declarations
10564         declared in this module.  Write GRANT statements for
10565         those granted.   seize statements for decls seized from
10566         other modules.  Write extra syntax to make a complete
10567         spec module.
10568         * ch-grant.c (grant_use_seizefile):  Copy use_seize_file
10569         directives into grant file.
10570         * ch-lex.l (setup_seizefile_read):  Call grant_use_seizefile.
10571
10572         * ch-lex.l (struct input_state, current_input_state,
10573         push_input_file, pop_input_file):  New (type, variable,
10574         function*2).  Used to save and  restore state on an input file.
10575         * ch-lex.l:  Clean up to handle nested input seizefiles
10576         (needed by new grant/seize mechanism.
10577         * ch-lex.l (skip_to_end_of_directive):  New function.
10578         * ch-lex.l (compiler_directive: USE_SEIZE_FILE):  Make sure
10579         we skip to the end of the directive *before* we switch
10580         input files.
10581         * ch-lex.l (setup_seizefile_read):  Prevent reading the
10582         same seizefile twice (otherwise likely with new grant/seize).
10583         * ch-lex.l:  Recognize SPEC.  Misc cleanups.
10584
10585         * ch-parse.y:  Fixed foreward references of types.
10586         Removed the unknown_type_node crock.
10587         * ch-decl.c:  Remove all uses of unknown_type_node.
10588         Check for TYPE_SIZE zero instead.
10589         * ch-decl.c (fixup_unknown_type):  Make sure new mode
10590         gets copied into old mode.  Merge their variant chains.
10591         * c-decl.c (lookup_name_current_level):  Make non-static.
10592         * ch-decl.c (lookup_name_current_level):  No longer needed.
10593
10594         * ch-parse.y (call):  Allow an implicitly defined function
10595         name following the CALL keyword.
10596         * ch-tree.h (struct lang_identifier): Add implicit_decl,
10597         and make sure order of fields matches c-tree.h.
10598
10599         * ch-actions.c (lang_init, build_allocate_memory_call,
10600         build_allocate_globals_memory_call):  Fix names (add initial '_')
10601         and prototypes of _allocate_[global_]memory (2nd param is ref).
10602         Use build_chill_function_call, not build_function_call,
10603         so the reference parameter gets handled.
10604         * ch-actions.c. (lang_init):  Make sure boolean_{true,false}_node
10605         have boolean_type_node as their types.
10606         * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10607         work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10608
10609         * ch-except.c:  Make sure an end_label is generated,
10610         and jump to it if there is no exception.
10611
10612         * ch-convert.c (convert_to_reference):  Strip off NOP_EXPR casts.
10613         * expr.c (expand_expr):  Handle NOP_EXPR as Chill-style casts.
10614         (Need cleaning up and FSF installation!)
10615         * ch-parse.y:  If taking the address of a cast, move the
10616         ADDR_EXPR inside the NOP_EXPR.
10617
10618         * ch-typeck.c (my_build_array_ref):  Simplified, more suitable
10619         versions of build_array_ref from c-decl.c.  (E.g. don't barf
10620         if index type is char or bool.)
10621         * ch-typeck.c (build_chill_array_ref):  Use my_build_array-ref.
10622
10623         * ch-typech.c (build_chill_bin_type):  New function.
10624         Support BIN(N) range type specification.
10625         * ch-parse.y (mode2), ch-lex.l:  Recognize BIN(N).
10626
10627         * ch-tree.h (CH_SIMILAR):  Redefine in terms of chill_similar.
10628         * ch-typeck.c (chill_similar):  New function.  Recognize that
10629         that range types are similar to their parent types.
10630
10631         * ch-tree.h:  Declare flag_local_loop_counter.
10632         * ch-loop.c:  Whether the loop variable is local to the loop
10633         in now controlled by flag_local_loop_counter, instead of
10634         #ifdef'd on CREATE_SCOPE.
10635         * ch-actions.c (lang_decode_option):  Recognize flags
10636         "-f[no-]local-loop-counter".
10637         * toplev.c (lang_options):  Add Chill flags -f[no-]local-loop-counter.
10638
10639         * varasm.c (make_function_rtl):  Due to problems with forward
10640         references, don't rename nested functions in Chill.  (Kudge!)
10641
10642 Sun Mar 28 10:12:45 1993  Ken Raeburn  (raeburn@kr-pc.cygnus.com)
10643
10644         * ch-lex.l (push_back, readstring): Fix prototypes.
10645
10646 Fri Mar 26 18:32:15 1993  Bill Cox  (bill@rtl.cygnus.com)
10647
10648         * ch-parse.y: Put %type directives back into alpha order.
10649           (variant_alternative): Simplify error_mark test.
10650           (variantfields, varianthack): Add error_mark checks.
10651
10652 Fri Mar 26 13:36:23 1993  Bill Cox  (bill@rtl.cygnus.com)
10653
10654         * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10655         * ch-parse.y (get_type_of): Add function to deal with possible fwd
10656           declared type name.  Call it from lotsa places.  Add lotsa checks
10657           for error_mark_node.  Standardize indentations.
10658
10659 Thu Mar 25 15:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
10660
10661         * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10662           for array assignments.
10663         * ch-parse.y (action): Add recognition for allocate_memory and
10664           allocate_global_memory system calls.
10665           (mode2): Remove ill-conceived error check that broke REFs to
10666           as-yet-undeclared types.  Check for IDENTIFIER_NODE, lookup its
10667           DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10668           (variantfields, varianthack): Clean up.
10669           (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10670           there, pass TREE_TYPE of decl to grok_fixedfields.
10671           (labellist): Explicitly assign error_mark_node to signal error.
10672         * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10673           rather than seg faulting.
10674
10675 Thu Mar 25 10:35:58 1993  Bill Cox  (bill@rtl.cygnus.com)
10676
10677         * ch-actions.c (lang_init): build_function_type for allocate_memory
10678           and allocate_global_memory runtime routines.  Move discrete_type_p
10679           into ch-typeck.c.
10680         * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10681           in build_chill_cast.
10682
10683 Wed Mar 24 16:25:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
10684
10685         * ch-grant.c:  Don't grant previously seized names.
10686
10687 Tue Mar 23 15:25:39 1993  Bill Cox  (bill@rtl.cygnus.com)
10688
10689         * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10690         * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10691           avoid abort.
10692
10693 Tue Mar 23 09:03:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10694
10695         * ch-actions.c (build_char_array_expr): Just build a type for the
10696           result of a CONCAT_EXPR, and pass the tree back.
10697           chill_expand_array_assignment can do a better job of
10698           code-generation.
10699         * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10700           code.
10701
10702 Mon Mar 22 12:42:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
10703
10704         * ch-except.c (start_handler_array):  Make sure the handler
10705         array and its type get on the permanent obstack.
10706         * ch-grant.c (write_grant_file):  Don't write the _INIT=name
10707         specifier:  It isn't needed, and loses (because of funny
10708         characters in the chill_initializer_name).
10709         * ch-decl.c (push_synmode):  Set TYPE_NAME(mode) = syndecl.
10710         * ch-lang.c (finish_chill_enum):  Don't allocate a dummy
10711         TYPE_DECL for the enum.  I don't think it is needed (?),
10712         and removing it is needed for the change above.
10713
10714         * ch-grant.c (grant_array_type, decode_mode):  Remove unused
10715         'decl' parameter.
10716         * ch-grant.ch (raw_decode_mode):  New function, based on old
10717         decode_mode.
10718         * ch-grant.c (decode_mode);  This is now just a wrapper around
10719         raw-decode_mode - but does not call raw_decode_mode if the
10720         type is named and has already been emitted.
10721
10722 Fri Mar 19 11:55:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10723
10724         * ch-actions.c: Add prototypes, remove unused variables.  Attempt to
10725           continue generating grant file in presence of error (Wilfried's
10726           patch to lang_finish).
10727         * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10728           after each statement.  Move convert call into
10729           chill_expand_assignment from ch-parse.y.
10730         * ch-grant.c: Generally re-order, clean up.  Include Per's decode_mode
10731           simplification.  Include commented-out hack in decode_mode to return
10732           type's name if type SEIZEd or already GRANTed in this file.
10733         * ch-lex.l: Add prototypes.
10734         * ch-parse.y (assignaction): Move convert call into
10735           chill_expand_assignment.
10736
10737 Thu Mar 18 16:04:45 1993  Bill Cox  (bill@rtl.cygnus.com)
10738
10739         * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10740           comparison.
10741         * ch-decl.c: Add prototypes, correct error message spelling, remove
10742           unused variables.
10743         * ch-lang.c (build_chill_range_type): Add error message.  Add prototypes.
10744           Correct comment spelling.
10745         * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10746           assignment in conditional.
10747         * ch-loop.c: Add prototypes, remove unused variable.
10748         * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10749           parameter is seen, don't count it in structured_variable_list.  Pre-
10750           vents seg fault when only WITH operand is invalid.
10751         * ch-parse.y (label_spec): Correct assignment within IF expression which
10752           was intended to be equality test.  Remove unused variables.
10753         * ch-tree.h: Add prototype.  Remove unused EXCP_CODE enumeration, and
10754           prototyping editorial comments.
10755         * ch-typeck.c: Disable generation of code to validate array index for
10756           now.  Should be done as a call-back from more generic array_ref code.
10757           Clean up parameter checking.  Remove unused variables.
10758
10759 Fri Mar 12 11:57:32 1993  Bill Cox  (bill@rtl.cygnus.com)
10760
10761         * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10762         * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10763           build_char_array_expr.
10764         * ch-convert.c (convert): protect against seg fault, if type == NULL.
10765         * ch-expr.c (chill_expand_expr): Add FIXME comment.
10766
10767 Fri Mar 12 11:04:02 1993  Bill Cox  (bill@rtl.cygnus.com)
10768
10769         * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10770           Thanks very much to dje!
10771
10772 Thu Mar 11 21:06:55 1993  Bill Cox  (bill@rtl.cygnus.com)
10773
10774         * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10775           Move CONCAT_EXPR handling from binary_op to array_expr.  Add
10776           handling for relationals between varying arrays to array_expr.
10777
10778 Thu Mar 11 19:20:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10779
10780         * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10781           *BIT* length of powersets and arrays of BOOLs.
10782           (invalid_left_operand, invalid_right_operand): Disallow relationals
10783           with arrays of BOOL as operands.
10784         * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10785           comparing pointers.
10786         * ch-decl.c (push_newmode): Re-indent.
10787         * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10788           and arrays of BOOLs.
10789         * ch-lang.c (build_chill_array_type): Add parameter error checking.
10790
10791 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10792
10793         * expr.c (store_constructor): Handle set construction.
10794         * varasm.c (output_constant): Prevent seg fault - terminate case
10795           alternative with a 'break'.
10796
10797 Mon Mar  8 17:13:00 1993  Bill Cox  (bill@rtl.cygnus.com)
10798
10799         * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10800         * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10801         * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10802
10803 Mon Mar  8 13:16:05 1993  Bill Cox  (bill@rtl.cygnus.com)
10804
10805         * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10806           be folded.
10807
10808 Mon Mar  8 10:13:57 1993  Bill Cox  (bill@rtl.cygnus.com)
10809
10810         * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10811           Correct some non-standard indentations.
10812
10813 Fri Mar  5 14:58:35 1993  Bill Cox  (bill@rtl.cygnus.com)
10814
10815         * ch-actions.c: Fix up comment.
10816
10817 Thu Mar  4 18:05:43 1993  Bill Cox  (bill@rtl.cygnus.com)
10818
10819         * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10820           negating the result of calling __eqpowerset.  New function
10821           discrete_type_p().
10822         * ch-grant.c (get_tag_value): Don't seg fault referring to an
10823           anonymous enumeration's name.
10824         * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10825         * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10826         * ch-parse.y (label_spec): redefine variant structure label_spec
10827           to agree with the Z.200 spec.
10828                      (locdec): Error if set/bitstring initialized with a tuple.
10829                      (case_label, arrayindex): Use new discrete_type_p
10830                      function.
10831         * ch-process.c: Fix typo.
10832
10833 Wed Mar  3 14:30:53 1993  Per Bothner  (bothner@rtl.cygnus.com)
10834
10835         * ch-lang.c, ch-tree.h: Rename build_range_type to
10836         build_chill_range_type.  Call new build_range_type() in tree.c.
10837         * ch-parse.y:  Call build_chill_range_type as approriate.
10838         * ch-typeck.c (build_chill_cast);  Clean up.
10839
10840 Wed Mar  3 09:36:56 1993  Bill Cox  (bill@rtl.cygnus.com)
10841
10842         * ch-parse.y: Define CONTINUE_EVENT token.
10843         * ch-parse.y (mode2): Give error message for SYN modea = modeb
10844           where modeb is undefined.
10845
10846 Tue Mar  2 20:16:37 1993  Bill Cox  (bill@rtl.cygnus.com)
10847
10848         * ch-actions.c: Add builtin function descriptions for memset and
10849           bitsetpowerset.  Allow build_chill_num expression to exceed 16 bits,
10850           but not 32.
10851         * ch-tree.h: Correct chill_handle_case_default prototype.
10852         * ch-actions.h, ch-lex.h: Add prototypes.
10853         * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10854
10855 Thu Feb 25 17:35:46 1993  Bill Cox  (bill@rtl.cygnus.com)
10856
10857         * c-decl.c (init_decl_processing): Disable creation of C-specific
10858           builtin functions.  They pollute the CHILL name space.
10859         * stor-layout.c (variable_size): Allow variable-size objects at file
10860           scope, for CHILL.
10861
10862 Fri Feb 26 07:14:34 1993  Bill Cox  (bill@rtl.cygnus.com)
10863
10864         * c-decl.c (finsh_decl): Don't output non-constant storage size
10865           error for CHILL
10866         * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10867           call in build_chill_cause_exception.
10868         * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10869         * ch-loop.c (build_temporary_variable): New function
10870         * ch-process.c: Call build_temporary_variable, spell start_process
10871           correctly.
10872         * ch-tree.h: Extern for build_temporary_variable
10873
10874 Thu Feb 25 12:09:01 1993  Bill Cox  (bill@rtl.cygnus.com)
10875
10876         * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10877           builtins - they pollute the CHILL name space.
10878         * ch-typeck.c (valid_array_index): Correct upper-bound check.
10879         * expr.c (expand_expr): Use actual library name for __inpowerset
10880           builtin.
10881         * stor-layout.c (variable_size): Disable complaint about variable-
10882           size type or decl at file scope.  Perhaps later this s.b. a warning.
10883         * varasm.c (emit_set_data): Add function.
10884           (output_constant): Call new emit_set_data function for VAR_DECLs,
10885           in addition to CONSTRUCTORs.
10886
10887 Thu Feb 25 11:34:36 1993  Bill Cox  (bill@rtl.cygnus.com)
10888
10889         * ch-actions.c: Change all builtin functions names to their
10890           actual library names.  Change references to boolean_type_node
10891           to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10892           convention.
10893           build_set_expr: Remove length parameter, call powersetlen() instead.
10894             remove handling of CHAR arrays - they're handled in build_char_array_expr.
10895             Call __eqpowerset to test for equality - we can't use a byte-length -
10896             need bitcount instead.
10897           build_chill_compound_expr, internal_build_compound_expr: Copy from C
10898             version that does stuff we don't want.
10899           build_binary_op: Check for in_size_in_bytes return < 0, indicating
10900             size is changeable at run time.  Build two memcpy calls to implement
10901             string concatenation.
10902           powersetlen: Add function.
10903           build_chill_card: Call powersetlen.
10904           build_chill_max_min:  Common code for powerset max/min.
10905           build_chill_length: Move VARYING array handling before regular char
10906             array handling.
10907         * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10908           the VARYING status of the target to do this correctly.  Use powersetlen
10909           for the powerset operations, not a byte length.
10910         * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10911           for each CHILL loop, as Z.200 requires.  Add powerset and error flags
10912           to loop structure.  Evaluate user's powerset expression into a temp,
10913           scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10914           for powerset loop.  Only do loop-end assignments if NOT a powerset
10915           loop, which has much less overhead now.
10916         * ch-tree.h: Add prototype for powersetlen.
10917
10918 Fri Feb 19 08:40:24 1993  Bill Cox  (bill@rtl.cygnus.com)
10919
10920         * ch-lex.l (convert_number): Evaluate number and pass it as
10921           HOST_WIDE_INT.
10922
10923 Fri Feb 19 08:56:44 1993  Michael Tiemann  (fs_tie at rcsw18)
10924
10925         * ch-typeck.c (build_chill_array_ref): Handle newmodes
10926         correctly.
10927
10928         * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10929         we are going to return 0.
10930
10931         * ch-convert.c (convert_to_reference): Don't use
10932         TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10933         (which must match the type of the expr).
10934
10935         * ch-grant.c (chill_seize): Don't let a type be copied just
10936         because we are seizing it.
10937
10938         * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10939         TYPE_MAX_VALUE to integer type.
10940
10941         * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10942         tree type of the bounds.
10943         (build_loop_top): type of GE_EXPR and LE_EXPR is
10944         boolean_type_node, not lp->iter_type.
10945         (for_location): Ditto.
10946
10947         * ch-action.c (build_chill_lower,build_chill_upper): Handle
10948         ENUMERAL_TYPE.  Also, handle different kinds of arguments more
10949         cleanly.
10950
10951         * ch-parse.y (iteration): Convert start_exp and end_exp to
10952         match the type of modename.
10953
10954         * ch-grant.c (chill_seize_aggr): Search also through anonymous
10955         types.
10956
10957         * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10958         already been seized, and if so, do nothing.
10959
10960         * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10961         comes out error_mark_node, set ERRONEOUS.
10962
10963         * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10964         don't use it.
10965
10966         * ch-action.c (chill_comptypes): Test for structural
10967         equivalence of enums.
10968
10969         * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10970         TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10971
10972         * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10973         ARRAY_TYPE, seize the domain type if its a set.
10974
10975 Thu Feb 18 20:02:15 1993  Per Bothner  (bothner@rtl.cygnus.com)
10976
10977         * c-typeck.c (process_init_constructor):  Emit error if some
10978         array elements are not initialized.
10979         * c-typeck.c (process_init_constructor):  Call digest_init()
10980         recursively to expand default_value.
10981         * ch-expr.c (chill_expand_array_assignment):  Simplify, and
10982         handle the case that the lhs has dynamic size (e.g. a slice).
10983         * ch-parse.y (elementlist):  Handle the case that tupleelement
10984         generates more than one TREE_LIST node.
10985
10986 Thu Feb 18 12:40:56 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
10987
10988         * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
10989         * c-typeck.c (lookup_field): add function, calls.
10990         * ch-actions.c (build_chill_binary_op): figure return_type differently.
10991         * ch-convert.c (convert_to_reference): return error_mark_node,
10992           STRIP_NOPS.  (convert): Braces for readability.
10993         * ch-decl.c (build_chill_function_type): accept typespec as parm.
10994           Handle exceptions.
10995           (grok_chill_variantdefs): call comptypes, not chill_comptypes.
10996         * ch-expr.c (chill_expand_assignment): handle references.
10997         * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
10998         * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
10999           call convert.  Generally handle reference types.
11000
11001
11002 Thu Feb 18 09:30:11 1993  Michael Tiemann  (fs_tie@rcvie.co.at)
11003
11004         * ch-actions.c (chill_comptypes): Figure out which newmode or
11005           synmode decls look most canonical.
11006         * ch-convert.c (convert): handle location conversions of records,
11007           unions and arrays.
11008         * ch-decl.c (fixup_unknown_type): changes for variant records
11009         * ch-parse.y (tupleelement): avoid confusing digest_init.
11010         * ch-typeck.c (build_chill_array_ref): give element ref the
11011           type of the ELEMENT, not the array (Bill Cox).
11012
11013 Wed Feb 17 11:52:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11014
11015         * ch-parse.y: change push_newmode and push_synmode interfaces.
11016         * ch-actions.c (build_chill_binary_op): convert operands.
11017
11018 Wed Feb 17 10:54:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11019
11020         * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
11021           handle reference types.
11022         * ch-decl.c (push_newmode, push_synmode): rewritten
11023         * ch-process.c (make_process_struct): new push_newmode interface.
11024         * ch-typeck.c (build_chill_cast): change interface, error checks.
11025
11026 Wed Feb 17 09:50:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11027
11028         * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
11029           code.
11030         * ch-typeck.c (valid_array_index): new function.
11031
11032 Tue Feb 16 22:36:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11033
11034         * ch-convert.c (convert):  Slightly more correct conversion
11035         for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
11036         * ch-expr.c (chill_expand_array_assignment):  Invoke
11037         __builtin_memcpy using build_function_call, not directly at
11038         the rtx level (which doesn't work).
11039         * ch-typeck.c (build_chill_slice):  First attempt at slices.
11040         * ch-tree.h,  ch-typeck.c (build_chill_slice_with_range,
11041         build_chill_slice_with_length):  New functions.
11042         * ch-parse.y:  Use new slice-building functions.
11043         * expr.c (get_inner_reference):  Subtract low bound of
11044         array when doing an ARRAY_REF.
11045
11046 Tue Feb 16 14:17:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11047
11048         * ch-actions.c (build_chill_function_call): better comments.
11049         * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
11050         * ch-parse.y: indentation cleanup
11051
11052 Tue Feb 16 12:03:53 1993  Michael Tiemann  (tiemann@cygnus.com)
11053
11054         * ch-decl.c (grok_chill_variantdefs): Really implement variant
11055         records for CHILL.
11056         * ch-grant.c (get_tag_value): New function.
11057         * ch-grant.c (decode_mode): Grant variant records.
11058
11059         * ch-grant.c (chill_seize): If we seize a set, seize the set
11060         values.
11061
11062         * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
11063         constructs.
11064
11065         * ch-parse.y (EMPTY): New pseudo-token to disambiguate
11066         variant_alternatives.
11067         (current_fieldlist): New variable to help processing tag
11068         declarations in variant records.
11069         (fields): Renamed from structdef.
11070         (field): Renamed from fields.
11071         (varianthack): New non-terminal to handle parsing ambiguity
11072         for variant records.
11073         (optlabellist): Changed to preserve CONST_DECLs when they are
11074         parsed.
11075
11076         * ch-tree.h (TYPE_TAGFIELD): New macro.
11077         (TYPE_TAG_VALUES): Ditto.
11078
11079 Mon Feb 15 00:49:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11080
11081         * ch-grant.c (decode_mode):  Fix output for powerset modes.
11082         * ch-grant.c (decode_constant):  Support grant output of
11083         powerset literals.
11084         * ch-actions.c (build_chill_binary_op):  IN_EXPR fix.
11085         * expr.c (expand_expr):  Add Chill-specific kludge for
11086         BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
11087         * ch-expr.c (chill_expand_assignment):  Remove no-longer-needed
11088         special-case support for a BIT_FIELD_REF in right-hand-side.
11089         * ch-lang.c (finish_chill_enum):  Patch up enum elements to
11090         have the correct type (instead of integers, as in C).
11091
11092         * ch-lex.l, ch-parse.y:  Add disgusting hack (involving
11093         context-dependent look-ahead) so we can parse exception
11094         handlers correctly.
11095         * c-typeck.c (digest_init):  Set output type for SET_TYPEs.
11096         * varasm.c (unpack_set_constructor):  Add support for
11097         (power-)set ranges (i.e. low_element:high_element).
11098
11099 Sun Feb 14 13:37:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11100
11101         * ch-inout.c: delete unused #include
11102         * ch-typeck.c (build_chill_slice): turn abort call into error msg.
11103
11104 Sat Feb 13 13:13:31 1993  Bill Cox  (bill@rtl.cygnus.com)
11105
11106         * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
11107
11108 Sat Feb 13 12:17:41 1993  Bill Cox  (bill@rtl.cygnus.com)
11109
11110         * Makefile.in: add lots of header files to the CHILL dependencies
11111
11112 Fri Feb 12 15:48:27 1993  Per Bothner  (bothner@rtl.cygnus.com)
11113
11114         * ch-actions.c (build_chill_function_call):  Don't return
11115         error_mark_node on empty parameter-list.
11116
11117 Fri Feb 12 12:54:52 1993  Bill Cox  (bill@rtl.cygnus.com)
11118
11119         * ch-actions.c (build_chill_function_call): fix start_decl parms.
11120         * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
11121
11122 Fri Feb 12 10:32:37 1993  Bill Cox  (bill@rtl.cygnus.com)
11123
11124         * ch-actions.c (build_chill_function_call): create temps, do
11125           assignments to handle INOUT and OUT parameters.
11126         * ch-decl.c (build_chill_function_type): better parameter name.
11127         * ch-parse.y (action): keep rules in alpha order.
11128           (pmodearg): turn INOUT, OUT parameter types into reference types.
11129         * ch-typeck.c (build_tree_slice): indentation change.
11130
11131 Thu Feb 11 23:16:34 1993  Per Bothner  (bothner@rtl.cygnus.com)
11132
11133         * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
11134         take a list of elements which are in the set.  This corresponds
11135         better to the tuple input form in Chill (and Pascal).
11136         * varasm.c (unpack_set_constructor, pack_set_constructor):
11137         New functions, to expand SET_TYPE CONSTRUCTORs.
11138         * varasm.c (output_constructor):  Use pack_set_constructor
11139         to assemble a SET_TYPE constant from a CONSTRUCTOR.
11140
11141         * ch-grant.c (decode_constant):  Better grant for strings,
11142         enumeral, and bitstring constants.
11143         * ch-grant.c:  Fixes in seize to avoid duplicates, and emit
11144         things in the correct order.
11145         * c-typeck.c (chill_initializer_constant_valid_p):  Kludge
11146         needed to export a static function.
11147         * ch-typeck.c (convert):  Avoid needlessly (and lossingly) calling
11148         chill_expand_tuple to convert fix string to varying.
11149         * ch-actions.c (build_chill_binary_op):  Promote short
11150         integer operands if needed (otherwise emit routines barf).
11151         * ch-tree.h (SET_WORD_SIZE):  New macro.
11152         * ch-parse.y:  Fix syntax for RECEIVE CASE.
11153         * ch-parse.y (location):  If IDENTIFIER is a CONST_DECL
11154         return its value instead.
11155
11156 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11157
11158         * ch-actions.c (build_chill_max, build_chill_min): clean up
11159         * ch-typeck.c (chill_expand_tuple): correct set initialization from
11160           an enumeration tuple.  Add sort_constructor function.
11161
11162 Thu Feb 11 07:41:45 1993  Bill Cox  (bill@rtl.cygnus.com)
11163
11164         * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
11165           BOOLEAN_TYPE w/out an abort.
11166
11167 Wed Feb 10 14:59:53 1993  Bill Cox  (bill@rtl.cygnus.com)
11168
11169         * ch-actions.c: change most integer_type_node references to
11170           chill_integer_type_node.  Rewrite _max and _min routines,
11171           redefine the signatures for those runtime routines.  Move
11172           empty-set check into runtime.
11173         * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
11174           most integer_type_node references to chill_integer_type_node.
11175
11176 Tue Feb  9 16:00:05 1993  Per Bothner  (bothner@rtl.cygnus.com)
11177
11178         * ch-except.c:  New file.  Stuff for exception handling.
11179         * ch-parse.y:  Add working exception handling support.
11180         * ch-lex.l, ch-parse.y:  Prefer standard type terminology
11181         (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
11182         * ch-grant.c:  Fix various problems related to granting
11183         types such as bitsets.
11184         * ch-tree.c (build_bitstring_type):  Set TYPE_MIN_VALUE
11185         to distinguish bitstrings from powersets (in the same way
11186         we distinguish char strings from char arrays).
11187         * ch-tree.h:  New macro CH_BOOL_TYPE_P.
11188         * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
11189         Undo kludge where integer_type_node was hardwired to 16 bits.
11190         Make integer_type_node etc have the same size as in cc1.
11191         New types chill_integer_type_node and chill_unsigned_type_node
11192         that correspond to the Chill source types INT and UINT.
11193         For now, these match the C 'short' types, but that should
11194         become a configuration option later,
11195
11196 Tue Feb  9 11:41:25 1993  Bill Cox  (bill@rtl.cygnus.com)
11197
11198         * ch-actions.c (build_chill_unary_op): allow NOT of a set.
11199
11200 Tue Feb  9 08:27:18 1993  Bill Cox  (bill@rtl.cygnus.com)
11201
11202         * ch-actions.c (build_chill_function_call): add test for
11203           too many/few actual parameters (and avoid seg fault).
11204         * ch-decl.c (do_decls): code cleanup for readability.
11205         * ch-loop.c (begin_chill_loop, end_chill_loop): remove
11206           emit_nop() calls - they now (since exceptions) cause seg faults.
11207           Make derogation on poor CHILL compiler non-specific.
11208         * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
11209         * ch-tree.h: remove prototypes added to c-tree.h.
11210         * ch-typeck.c (build_chill_array_ref): correct getting domain
11211           subtree for a PARM_DECL.  Subscripting a SET_TYPE is turned into
11212           an IN_EXPR.
11213
11214 Sun Feb  7 18:20:49 1993  Bill Cox  (bill@rtl.cygnus.com)
11215
11216         * ch-tree.def: add a new tree type - just for varying array
11217           references.  We were using ARRAY_REF, but the underlying C
11218           code also generates that one.
11219         * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
11220
11221 Sun Feb  7 17:33:17 1993  Bill Cox  (bill@rtl.cygnus.com)
11222
11223         * ch-convert.c: test given type against type of expr before
11224           calling chill_expand_tuple.  We were getting lots of spurious
11225           calls...
11226
11227 Fri Feb  5 15:24:01 1993  Per Bothner  (bothner@rtl.cygnus.com)
11228
11229         * cccp.c:  Merge in various Chill-specific changes.
11230         * gcc.c (default_compilers array):  Pass -lang-chill
11231         to cpp, not -lang-ch.
11232
11233 Fri Jan 29 17:18:22 1993  Per Bothner  (bothner@rtl.cygnus.com)
11234
11235         * Makefile.in (install-libchill, install-librmt):  Removed.
11236         * ch-actions.c (build_chill_exception_decl):  Change decl
11237         to initialized char array, rather than uninitialized common.
11238         (Simplifies extracting string name of exception.)
11239         * ch-actions.c:  Adjust interface to cause_exception accordingly.
11240         * ch-typeck.c (build_chill_array_ref):  Cause rangefail if
11241         index > limit, not >= limit.
11242
11243         * ch-actions.c (build_chill_function_call):  Rename misleading
11244         formal parameter.
11245         * ch-decl.c (do_decls):  Allow (again) general initializer exprs.
11246         * ch-parse.y (call):  Test for function call needs to test for
11247         FUNCTION_TYPE, not FUNCTION_DECL.
11248         nreverse arg list to build_chill_array_ref.
11249         * ch-typeck.c (build_chill_array_ref):  Do recursive call at end
11250         and only if multiple indexes.
11251         * ch-typeck.c:  Cleanups.
11252
11253 Fri Jan 29 11:05:58 1993  Bill Cox  (bill@rtl.cygnus.com)
11254
11255         * ch-decl.c (do_decls): handle set initializations better, more to do.
11256         * ch-loop.c (begin_for_range): correct interface to expand_start_cond
11257           and build_binary_op.
11258         * ch-tree.h: lots more prototypes
11259         * ch-typeck.c (build_array_from_set): added function.
11260         * ch-typeck.c (chill_expand_tuple): handle set initializations better.
11261
11262 Thu Jan 28 17:41:58 1993  Per Bothner  (bothner@rtl.cygnus.com)
11263
11264         * ch-grant.c (set_default_grant_file):  Change default.
11265         Normally, grant file should end up in cwd.
11266         * ch-lang.c (build_chill_struct_type):  Call pushtag,
11267         for the sake of debugging.
11268         * ch-lex.l:  Improve comment parsing.
11269         * ch-lex.l (readstring):  Some improvements.
11270         Initial support for control sequences in string literals.a
11271
11272 Thu Jan 28 16:16:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11273
11274         * ch-convert.c (convert): correct fixed->varying conversion.
11275         * ch-parse.y (mode2): delete unesthetic newline.
11276
11277 Thu Jan 28 10:32:55 1993  Bill Cox  (bill@rtl.cygnus.com)
11278
11279         * ch-actions.c: delete maybe_array_ref()
11280         * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
11281           calling convert().
11282         * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
11283           supervision actions & builtins
11284         * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
11285           smaller actions directly (maybe_array_ref() used to call them).
11286         * ch-tree.h: add build_chill_function_call, build_chill_slice
11287         * ch-typeck.c: add build_chill_slice()
11288
11289 Thu Jan 28 08:44:28 1993  Bill Cox  (bill@rtl.cygnus.com)
11290
11291         * ch-tree.h: bring up to date with ch-actions.c changes.
11292
11293 Wed Jan 27 23:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11294
11295         * ch-expr.c (chill_expand_assignment): handle an RHS varying array
11296           reference.
11297
11298 Wed Jan 27 22:28:36 1993  Per Bothner  (bothner@rtl.cygnus.com)
11299
11300         * ch-grant.c (decode_constant):  Add REAL_TYPE support.
11301         * ch-actions.c (build_chill_exception_decl):  New function.
11302         * ch-actions (build_chill_cause_exception, cond_exceptions):
11303         Convert to take a (char*) parameter (the exception name).
11304         * ch-actions.c, ch-expr.c, ch-typeck.c:  Convert calls to
11305         cond_exception.
11306         * ch-parse.y (check_end_label):  New function, to check if
11307         and end label matches start label.
11308         * ch-parse.y:  Fix syntax to properly recognize and
11309         test optional end labels (using check_end_label).
11310         * ch-decl.c (finish_chill_function):  Simplify, since
11311         we assume check_end_label has already been called.
11312         * ch-parse.y:  Put in infrastructure for exception handling.
11313
11314 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11315
11316         * ch-actions.c: delete convert_chill_parameter, replace call with
11317           call to convert().
11318         * ch-convert.c (convert): combine chill_give_type_to_expr in here.
11319         * ch-decl.c: call convert rather than chill_give_type_to_expr.
11320         * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
11321         * ch-expr.c (chill_expand_assignment): just call convert.
11322         * ch-loop.c (end_chill_loop): expand the end of the loop for a
11323           do while.
11324         * ch-parse.y: call convert rather than chill_give_type_to_expr.
11325         * ch-process.c: checkpoint.
11326         * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
11327
11328 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11329
11330         * ch-grant.c (grant_array_type): new function to allow handling of
11331           VARYING array types.
11332
11333 Wed Jan 27 15:45:20 1993  Bill Cox  (bill@rtl.cygnus.com)
11334
11335         * ch-typeck.c (chill_give_type_to_expr): fix typo.  Reorder to
11336           avoid checking types on CONSTRUCTORs.  Correct typo.
11337         * ch-expr.c (expand_assignment_to_varying_array): use proper
11338           expansion function expand_expr_stmt.
11339         * ch-expr.c (expand_chill_assignment): only convert VARYING
11340           array refs or RHS.
11341
11342 Wed Jan 27 15:32:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11343
11344         * ch-actions.c (build_chill_length, build_chill_lower,
11345                         build_chill_upper): accept parameters, too.
11346         * ch-expr.c (chill_expand_assignment):  decipher ARRAY_REF on RHS.
11347         * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
11348           assign proper type to ARRAY_REF expression.
11349
11350 Wed Jan 27 09:51:46 1993  Bill Cox  (bill@rtl.cygnus.com)
11351
11352         * ch-actions.c (build_chill_binary_op): delete unused variable,
11353           get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
11354         * ch-actions.c (build_chill_repetition_op): handle differently-built
11355           declaration trees.
11356         * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
11357         * ch-typeck.c (chill_give_type_to_expr): give type to constructor
11358
11359 Tue Jan 26 11:32:38 1993  Bill Cox  (bill@rtl.cygnus.com)
11360
11361         * ch-parse.y (ifaction): re-add lost call to expand_end_code().
11362         * ch-parse.y (siezelist, grantlist): use 'name' rather than
11363           'checked_name'.  It makes no sense to check sieze/grant names
11364           for WITH expansion.
11365         * ch-expr.c (chill_expand_expr): delete unnecessary (and
11366           seg-fault-causing) code.
11367         * ch-expr.c (chill_expand_assignment): make test for varying array
11368           on the LHS more specific.
11369         * ch-actions.c (invalid_left_operand, invalid_right_operand): error
11370           for use of MOD, REM operators.
11371         * ch-actions.c (build_chill_repetition_op): error for bit-field
11372           initializers (which will get handled in the lexer).
11373
11374 Mon Jan 25 17:26:47 1993  Bill Cox  (bill@rtl.cygnus.com)
11375
11376         * ch-typeck.c (build_chill_array_ref),
11377         * ch-expr.c (chill_expand_expr, chill_expand_assignment):
11378           translate varying array ref into ARRAY_REF, defer processing
11379           until chill_expand_expr.  Update array's length field in
11380           new function expand_assignment_to_varying_array.
11381
11382 Mon Jan 25 14:57:24 1993  Bill Cox  (bill@rtl.cygnus.com)
11383
11384         * ch-parse.y (mode2): eliminate old method to mark varying arrays.
11385         * ch-expr.c (expand_varying_length_assignment): repair scaling of
11386           RHS expression.
11387
11388 Mon Jan 25 11:44:21 1993  Per Bothner  (bothner@cygnus.com)
11389
11390         * ch-parse.y:  Allow character and bitstring literals
11391         in string repetition operator.
11392
11393 Sat Jan 23 14:18:11 1993  Per Bothner  (bothner@cygnus.com)
11394
11395         * ch-parse.y (primval):  Re-recognize '(' expr ')'.
11396         * ch-parse.y (name):  Remove call to check_identifier -
11397         this is not appropriate in certain contexts.
11398         * ch-parse.y (checked_name):  Same as <name>, but *with* the
11399         call to check_identifier.  Use where appropriate.
11400         * ch-parse.y (operand5):  Only allow string repetition of
11401         string literals, because otherwise you get a conflict.
11402
11403 Thu Jan 21 16:32:39 1993  Bill Cox  (bill@rtl.cygnus.com)
11404
11405         * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
11406           continue start_process development.
11407
11408 Thu Jan 21 13:51:06 1993  Bill Cox  (bill@rtl.cygnus.com)
11409
11410         * ch-decl.c (do_decl): fix handling of multi-char initializer.
11411
11412 Thu Jan 21 13:14:00 1993  Bill Cox  (bill@rtl.cygnus.com)
11413
11414         * .cvsignore: add CHILL files to be ignored
11415
11416 Thu Jan 21 07:38:57 1993  Bill Cox  (bill@cygnus.com)
11417
11418         * ch-parse.y: rough draft of start_process handling.
11419
11420 Wed Jan 20 17:11:05 1993  Bill Cox  (bill@rtl.cygnus.com)
11421
11422         * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
11423
11424 Wed Jan 20 16:48:13 1993  Bill Cox  (bill@rtl.cygnus.com)
11425
11426         * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
11427           create new modules for I/O and process-related stuff.
11428         * ch-actions.c: move routines to new modules.
11429           call xmalloc, not malloc.
11430         * ch-lang.c (build_chill_struct_type): add parameter checking.
11431         * ch-lex.l (init_lex): remove redundant cast.
11432
11433 Tue Jan 19 16:33:56 1993  Bill Cox  (bill@rtl.cygnus.com)
11434
11435         * ch-parse.y (operand5): delete unnecessary argument to
11436           build_chill_unary_op.  Add rule for string repetition.
11437         * ch-parse.y (primval): delete string repetition attempt.
11438         * ch-parse.y (start_process): rough draft of action.
11439         * ch-actions.c (build_repetition_op): add it
11440         * ch-actions.c (build_chill_binary_op): handle constant arguments
11441           of CONCAT_EXPR, combine into a single string if possible.
11442         * ch-actions.c (invalid_left_operand, invalid_right_operand):
11443           allow single character arguments to CONCAT_EXPR.
11444         * ch-tree.h: add prototype for build_repetition_op
11445
11446 Tue Jan 19 15:03:29 1993  Fred Fish  (fnf@cygnus.com)
11447
11448         * dwarfout.c (output_type):  Add hack that matches the one in the
11449         chill front end to distinquish between true string types and
11450         arrays of char, since it uses ARRAY_TYPE for both, rather than
11451         trying to use the existing support for STRING_TYPE.
11452
11453 Tue Jan 19 13:54:27 1993  Bill Cox  (bill@rtl.cygnus.com)
11454
11455         * ch-tree.h: added prototypes for all non-static CHILL functions.
11456         * ch-actions.c (lang_init): declare builtin type for start_process
11457         * ch-actions.c (build_chill_binary_op): combine string literals when
11458           concatenated.
11459         * ch-actions.c (formpars2struct): added for later start_process
11460           implementation.
11461         * ch-actions.h: remove un-needed function declarations.
11462         * ch-decl.c: extern cleanup.
11463         * ch-expr.c (chill_expand_array_assignment): add missing first
11464           parameter to cond_exception call.
11465         * ch-lex.l: make build_chill_string non-static.
11466
11467 Mon Jan 18 19:15:08 1993  Bill Cox  (bill@rtl.cygnus.com)
11468
11469         * ch-decl.c (do_decls): get varying array length initialized.
11470
11471 Mon Jan 18 09:51:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11472
11473         * ch-expr.c (chill_expand_array_assignment): fix the copy length
11474         in the memcpy call (it was just 4 bytes always).   Simplify some
11475         code, also.
11476
11477 Mon Jan 18 08:24:21 1993  Bill Cox  (bill@rtl.cygnus.com)
11478
11479         * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
11480
11481 Mon Jan 18 08:00:11 1993  Bill Cox  (bill@rtl.cygnus.com)
11482
11483         * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
11484         CHARS synonymous with CHAR, in the lexer.  Delete unnecessary
11485         'bools' non-terminal.
11486         * ch-parse.y (assignaction): add lhs version of length() function
11487         * ch-actions.c: add builtin_concat function, lots of support for
11488         CONCAT_EXPR.
11489         * ch-actions.c, ch-tree.h: make a function out of former
11490         macro CH_VARYING_TYPE_P
11491         * ch-expr.c: add expand_varying_length_assignment ().
11492         * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11493         * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11494         rather than build_rts_call, to eliminate a recursion problem.
11495         * ch-lang.c: eliminate 'sorry' about varying arrays.
11496         * ch-typeck.c (validate_varying_array_ref): re-enable constant
11497         index validation.
11498
11499 Sun Jan 17 18:20:04 1993  Per Bothner  (bothner@cygnus.com)
11500
11501         * ch-grant.c, ch-lex.l:  Major simplification of how
11502         seizes are done and how seizefiles are read.
11503         * ch-actions.h:  Remove declaration of check_seize().
11504         * ch-decl.c (do_decls):  Handle READONLY types.
11505         * ch-parse.y (mode2):  Allow REF to be followed by any mode.
11506         * ch-parse.y (mode2):  Allow literal expressions in string length.
11507         * ch-parse.y (tupleelement):  Allow elemenst to be untyped_expr.
11508         * ch-parse.y (seizestatement, etc):  Call chill_seize each
11509         time something is seized, rather than building a list first.
11510
11511 Sat Jan 16 12:24:44 1993  Bill Cox  (bill@rtl.cygnus.com)
11512
11513         * chill.gperf, ch-hash.h: add Wilfried's tokens
11514         * ch-lex.l: fold in Wilfried's changes.  Some tokens
11515         weren't getting recognized, and INSTANCE wasn't correctly
11516         reported to ch-parse.y as a PREDEF_MODEDCL.
11517
11518 Thu Jan 14 15:02:39 1993  Per Bothner  (bothner@cygnus.com)
11519
11520         * ch-tree.h (CH_CHARS_TYPE_P):  New macro.  Add comment
11521         explaining difference between char strings and char arrays.
11522         * ch-tree.h (CH_STRING_TYPE_P):  Add FIXME re bitstrings.
11523         * ch-tree.c (build_string_type):  Add comment.
11524
11525 Wed Jan 13 15:19:15 1993  Per Bothner  (bothner@cygnus.com)
11526
11527         * calls.c, expr.c, function.c, stmt.c, varasm.c:  Set
11528         MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11529         * expmed.c (store_bit_field, extract_field_field):  Undo
11530         yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11531
11532         * ch-decl.c (do_decls):  Put back support for initializing.
11533         (Was accidentally removed in Jan 8 change.)
11534
11535 Wed Jan 13 14:13:11 1993  Jim Wilson  (wilson@sphagnum.cygnus.com)
11536
11537         * ch-lex.l (convert_bitstring): Correct typo in cast.
11538
11539 Tue Jan 12 20:29:08 1993  Per Bothner  (bothner@cygnus.com)
11540
11541         * ch-lex.l (convert_bitstring):  Change to pack bits
11542         within words, not bytes, and to use machine bit-order
11543         (not always little-endian).
11544         * ch-parse.y:  Allow BOOLS(n) as well as BITS(n).
11545         Use build_bitstring_type, not build_string_type.
11546         * expmed.c (store_bit_field, extract_field_field):  Remove
11547         "sanity test" that prevents use with SET_TYPE.
11548         * tree.c (build_bitstring_type, build_powerset_type,
11549         build_string_type):  Move (so far) Chill-specific functions to ...
11550         * ch-tree.c:  ... new file.
11551         * ch-tree.c (build_powerset_type, build_bitstring_type):  Re-write.
11552         * ch-typeck.c (build_chill_array_ref):  Handle bit strings better.
11553         * ch-typeck.c (chill_expand_tuple):  Kludge to handle SET_TYPE.
11554         * Makefile.in (CHILL_OBJS):  Add ch-tree.o.
11555         * ch-decl.c (do_decls):  Call expand_decl.
11556         * stor-layout.c (layout_type):  Handle SET_TYPE.
11557         * expr.c (expand_expr):  Add FIXMEs about IN_EXPR.
11558         * ch-actions.c (lang_init):  Add type and decl for new
11559         function __builtin_setbitinstring.
11560         * ch-expr.c (chill_expand_assignmment):  Special-case handling
11561         for BIT_FIELD_REF with non-constant bit position (which is
11562         not yet handled by expand_expr).
11563         * ch-convert.c (convert):  Handle SET_TYPE.
11564
11565 Tue Jan 12 12:49:13 1993  Fred Fish  (fnf@cygnus.com)
11566
11567         * chill:  If -B arg is given, use to find gcc.
11568
11569 Fri Jan  8 20:21:43 1993  Bill Cox  (bill@rtl.cygnus.com)
11570
11571         * ch-decl.c: revert to avoid seg fault
11572
11573 Fri Jan  8 14:20:42 1993  Bill Cox  (bill@rtl.cygnus.com)
11574
11575         * ch-decl.c: fix storage into correct offset in varying array.
11576         * ch-actions.c: define sizetype for everyone, use it to build
11577         varying structure.
11578         * ch-parse.y: tiny cleanup.
11579
11580 Wed Jan  6 13:25:33 1993  Bill Cox  (bill@cygnus.com)
11581
11582         * modules: use gdb rather than naked-gdb, to get opcodes
11583         in chill definition.
11584
11585 Wed Jan  6 09:48:35 1993  Bill Cox  (bill@cygnus.com)
11586
11587         * ch-typeck.c: add code to handle references to elements of VARYING
11588         arrays.  Simplify chill_give_type_to_expr.  Add rough draft of run-
11589         time index checking for VARYING arrays (under #if 0).
11590         * ch-actions.c: new function cond_type_range_exception & calls.
11591         New function cond_range_exception, for more general range-checking.
11592         New function build_varying_struct, to do just that.  Use the macros
11593         for the special varying field names.
11594         * ch-tree.h: define macros for varying field names.
11595         * ch-expr.c: use macros for varying struct names.  Simplify
11596         chill_expand_array_assignment.
11597         * ch-parse.y: assure that build_varying_struct is called everywhere
11598         that it applies.  Add a line-number note before the body of a DO
11599         loop.
11600         * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11601
11602 Tue Jan  5 17:26:14 1993  Bill Cox  (bill@cygnus.com)
11603
11604         * c-decl.c: correct order of declaration of start_decl params,
11605         for readability.
11606
11607 Tue Jan  5 15:59:36 1993  Per Bothner  (bothner@cygnus.com)
11608
11609         * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11610         Move shared code into ...
11611         * ch-decl.c (start_chill_function): ... here.
11612         * ch-decl.c (start_chill_function):  Add missing call to
11613         expand_start_bindings.
11614         * ch-decl.c (finish_chill_function): Add missing call to
11615         expand_end_bindings.
11616
11617 Tue Jan  5 01:00:47 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
11618
11619         * Makefile.in: took out the rest of the runtime support
11620
11621 Mon Jan  4 18:02:06 1993  Bill Cox  (bill@cygnus.com)
11622
11623         * ch-expr.c: make chill_expand_array_assignment not static.
11624
11625 Mon Jan  4 17:57:48 1993  Per Bothner  (bothner@cygnus.com)
11626
11627         * ch-grant.c, ch-parse.y:  Remove all code for explicitly
11628         calling initializer functions.  This is not needed, since we
11629         use the same mechanism used for C++ static constructors.
11630         * ch-grant.c (chill_start_module_code):  Make sure the
11631         init_name starts with the magic string also used for C++
11632         initializers.  Also, don't embed the file name in the name,
11633         just use the module name.
11634         * ch-grant.c (chill_finish_module_code):  Now that the
11635         initializer name follows the standard 'collect' convention,
11636         don't need to call assembler_constructor_alias, but can
11637         use the standard assemble_constructor instead.
11638         * varasm.c (assemble_constructor_alias):  Remove no-longer-
11639         needed function.
11640         * ch-parse.y:  Move code that is common to the beginning of
11641         all functions to a new macro INIT_ACTION.
11642         Make sure INIT_ACTION is also done for callaction, fixing a bug.
11643         * ch-parse.y (INIT_ACTION):  Do chill_start_module_code()
11644         before emit_line_note(), not after.
11645
11646 Mon Jan  4 11:43:12 1993  Bill Cox  (bill@cygnus.com)
11647
11648         * ch-parse.y: restore requirement for :upper-bound in array decl.
11649         * ch-actions.c: enhance upper, lower, length functions for VARYING.
11650
11651 Mon Jan  4 09:28:44 1993  Bill Cox  (bill@cygnus.com)
11652
11653         * ch-actions.c: fix NOT of boolean expr.
11654
11655 Mon Jan  4 08:42:57 1993  Bill Cox  (bill@cygnus.com)
11656
11657         * ch-actions.c: provide range-checking function
11658         * ch-lex.l: better compiler-directive error messages,
11659         allow underscores in exponents
11660         * ch-loop.c: prevent passing NULL ptr to printf
11661
11662 Sun Jan  3 11:57:13 1993  Bill Cox  (bill@cygnus.com)
11663
11664         * ch-typeck.c: correct & enable array index range-checking
11665
11666 Sun Jan  3 11:36:39 1993  Bill Cox  (bill@cygnus.com)
11667
11668         * ch-parse.y: define IGNORED_DIRECTIVE
11669         * ch-typeck.c: subtract array's lower domain value, even if
11670         index expression is constant.
11671
11672 Sat Jan  2 23:05:14 1993  Fred Fish  (fnf@cygnus.com)
11673
11674         * ch-lex.l (convert_float):  Fix misspelling in error message.
11675
11676 Sat Jan  2 16:02:16 1993  Per Bothner  (bothner@rtl.cygnus.com)
11677
11678         * Makefile.in:  Took out chill-runtime support.
11679         Chill run times are now in ../chillrt, not ./chillrt.p
11680
11681 Sat Jan  2 15:04:13 1993  Bill Cox  (bill@cygnus.com)
11682
11683         * ch-hash.h, chill.gperf: cleanup.  fewer keywords seen by ch-parse.y.
11684
11685 Sat Jan  2 13:27:49 1993  Per Bothner  (bothner@rtl.cygnus.com)
11686
11687         * ch-lex.l (check_newline):  Use the orginal versions (derived
11688         from the C code, not the simplified, special-case version).
11689         Also, fix that version of check_newline to not call yylex()
11690         recursively.
11691         * ch-lex.l (yy_input):  Call check_newline to handle
11692         newlines and check for # directives.
11693         * ch-lex.l (syntax):  Don't recognize #-directives; these
11694         are now handled by check_newline.
11695         * ch-actions.c (lang_init):  Call the modified version of
11696         check_newline().  Do this at the *after* we've initialized
11697         standard types, so this can be done while lineno is still 0.
11698
11699 Sat Jan  2 10:57:20 1993  Bill Cox  (bill@cygnus.com)
11700
11701         * ch-hash.h, chill.gperf: add remaining reserved words.
11702
11703 Sat Jan  2 09:59:55 1993  Bill Cox  (bill@cygnus.com)
11704
11705         * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11706         names for exceptions
11707
11708 Fri Jan  1 12:30:31 1993  Fred Fish  (fnf@cygnus.com)
11709
11710         * ch-tree.h (JOINER):  Define joiner character the same way
11711         C++ defines it.
11712         * ch-grant.c (chill_start_module_code):  Use JOINER character
11713         to implement name mangling for the initializer function name.
11714         Algorithm is designed to be simple, distinct from C++ mangled
11715         symbols, and easy to convert to demangled form.
11716
11717 Thu Dec 31 10:30:51 1992  Bill Cox  (bill@rtl.cygnus.com)
11718
11719         * ch-expr.c: make array assignments work with indirect refs.
11720         * ch-actions.c: prepare for array parameter handling.
11721         * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11722
11723 Thu Dec 31 15:29:20 1992  Per Bothner  (bothner@rtl.cygnus.com)
11724
11725         * ch-lex.l (yy_input):  Re-write to return more than one
11726         character at a time (execpt when reading seize-files).
11727         Don't increment lineno until we start reading the next line.
11728         This fixes some off-by-one errors in lineno.
11729
11730 Wed Dec 30 16:15:23 1992  Per Bothner  (bothner@rtl.cygnus.com)
11731
11732         * ch-convert.c:  Assume use of new common.c.
11733         * ch-convert.c (convert_to_reference, convert_from_reference):
11734         New routines, to handle loc-identity declared variables and
11735         LOC parameters (both of which are implemented as references).
11736         * ch-lang.c (convert_to_boolean, convert_to_char):  Move to
11737         ch-convert.c, where they would seem to belong.
11738         * ch-convert.c (convert):  New function, since we no longer
11739         link in c-convert.c.
11740         * ch-expr.c (chill_expand_assignment):  Handle by calling
11741         convert() instead of chill_comptypes().
11742         Also handle the LHS being a reference.
11743         * ch-parse.y:  Add a procedure call as an action.
11744         * ch-parse.y (locdec, optlocinit):  Move handling of
11745         loc-identity declarations from optlocinit to locdec
11746         - and add working semantics for it.
11747         * ch-parse.y (seizestatement, visibilty_stmt):  Simplify.
11748         * ch-parse.y (grantstatement etc):  Don't bother making list.
11749         * ch-lex.l:  #include <sys/types.h> before <sys/stat.h>.
11750
11751 Wed Dec 30 16:06:55 1992  Bill Cox  (bill@rtl.cygnus.com)
11752
11753         * ch-parse.y, ch-expr.c: add support for declaring & assigning
11754         VARYING arrays.
11755         * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11756
11757 Tue Dec 29 15:28:48 1992  Bill Cox  (bill@cygnus.com)
11758
11759         * ch-actions.c: implement expressions of arrays of char,
11760         ( concatenation, relationals ), correct type of code parameters
11761         * ch-expr.c: correct type of code parameters
11762
11763 Tue Dec 29 11:16:19 1992  Bill Cox  (bill@cygnus.com)
11764
11765         * ch-decl.c: cleanup.
11766         * ch-parse.y: put emit_line_note() calls in lotsa places,
11767         per Fred's request; be sure that statements get counted also.
11768         * ch-lex.l: standardize function headers.
11769
11770 Tue Dec 29 10:41:56 1992  Fred Fish  (fnf@cygnus.com)
11771
11772         * ch-decl.c (start_chill_function):  Always return 1, rather
11773         than a random value.
11774         * ch-lex.l (check_newline):  Add a version for chill that
11775         just snarfs the right value for main_input_filename out of
11776         the first line of the input file, without disturbing the
11777         lexer state or requiring it's assistance.
11778         * ch-actions.c (lang_init):  Call check_newline, like the
11779         other language frontends, to get main_input_filename set
11780         from first line of input file.
11781
11782 Mon Dec 28 18:49:01 1992  Bill Cox  (bill@cygnus.com)
11783
11784         * ch-parse.y: clean up conflicts.  The remaining one is
11785         harmless.
11786
11787 Mon Dec 28 17:28:40 1992  Bill Cox  (bill@cygnus.com)
11788
11789         * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11790         clean up some parser conflicts.
11791
11792 Mon Dec 28 15:00:20 1992  Bill Cox  (bill@cygnus.com)
11793
11794         * ch-parse.y, ch-lex.l:  add keywords and parsing for most of
11795         CHILL I/O
11796
11797 Sat Dec 26 20:48:23 1992  Fred Fish  (fnf@cygnus.com)
11798
11799         * chillrt/chillrt0.c:  Oops, SVR4 doesn't need leading '_'
11800         on build_exceptions.
11801
11802 Sat Dec 26 11:00:36 1992  Fred Fish  (fnf@cygnus.com)
11803
11804         * ch-grant.c (chill_finish_module_code):  Call
11805         assemble_constructor_alias rather than assemble_constructor.
11806         * varasm.c (assemble_constructor_alias):  New function,
11807         like assemble_constructor, but also handles the case where
11808         ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11809         being used.  Emits a symbol table alias name with the correct
11810         prefix for collect to find and add to the __CTOR_LIST__.
11811         * chillrt/chillrt0.c:  Build on previous hack that gets
11812         _build_exceptions into the __CTOR_LIST__, to make it work
11813         for both the non GNU-ld case and for the SVR4 case.
11814
11815 Tue Dec 22 18:24:55 1992  Bill Cox  (bill@cygnus.com)
11816
11817         * ch-loop.c: clean up location enumeration - one more
11818         pass to do.
11819
11820 Tue Dec 22 16:31:48 1992  Bill Cox  (bill@cygnus.com)
11821
11822         * ch-loop.c: Working version of location enumeration loop
11823
11824 Tue Dec 22 14:42:14 1992  Bill Cox  (bill@cygnus.com)
11825
11826         * ch-lex.l: readability cleanup
11827
11828 Mon Dec 21 14:58:39 1992  Bill Cox  (bill@cygnus.com)
11829
11830         * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11831         ch-loop.c: rough draft of location enumeration
11832         ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11833         ch-actions.c: finish making pred() and succ() work.
11834
11835 Mon Dec 21 10:04:35 1992  Bill Cox  (bill@cygnus.com)
11836
11837         * ch-actions.c: allow pred(char) and succ(char).
11838
11839 Sun Dec 20 16:04:28 1992  Bill Cox  (bill@cygnus.com)
11840
11841         * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11842         c-expr.c: make DO WITH work.
11843
11844 Sun Dec 20 12:22:53 1992  Bill Cox  (bill@cygnus.com)
11845
11846         * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11847         now work
11848
11849 Sat Dec 19 14:20:23 1992  Per Bothner  (bothner@cygnus.com)
11850
11851         * c-typeck.c (process_init_constructor):  Add warning if
11852         there is a duplicate default initializer element.
11853         * ch-typeck.c (chill_give_type_to_expr):  New function,
11854         to handle coercion of an expression to context-given type,
11855         Takes care of untyped tuples, and case expressions.
11856         * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11857         chill_expand_result), ch-parse.y <assignaction>:
11858         Use chill_give_type_to_expr().
11859         * ch-typeck.c (chill_handle_case_label):  New parameter list,
11860         to handle the (new) conventions for <case_label>, including
11861         default elements and ranges.
11862         * ch-parse.y <expanded_case_label>, ch-typeck.c
11863         (expand_case_expr):  Use new version of chill_handle_case_label.
11864         * ch-decl.c (push_syndecls):  Change parameters:  Instead of
11865         TREE_LIST representing a compete <synonym definition statement>,
11866         just pass the parts of a single <synonym definition> as 3
11867         different parameters.  Also, use chill_give_type_to_expr(),
11868         to handle untyped tuples in the RHS.
11869         * ch-parse.y <syndeclist, syndef>:  Don't bother trying to construct
11870         a tree - just call push_syndecls() on each <synonum_definition>
11871         as we see it.
11872         * ch-parse.y (exprlist_get_single):  Remove; no longer needed.
11873         * ch-parse.y:  Handle <tuple> without mode name diferently from
11874         <tuple> with mode name.  The latter is a <primval> that can be
11875         in most contexts, but if the <mode name> is missing, the <tuple>
11876         is only allowed in certain contexts.  Use the new non-terminal
11877         <untyped_expr> to indicate those contexts where untyped tuples
11878         (and case expressions) are valid because the expression gets a
11879         type from its context (such as the RHS of an assignment).
11880         Use chill_give_type_to_expr in those contexts.
11881
11882 Sat Dec 19 14:01:26 1992  Bill Cox  (bill@cygnus.com)
11883
11884         * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11885
11886 Sat Dec 19 10:16:20 1992  Bill Cox  (bill@cygnus.com)
11887
11888         * ch-parse.y: clean up warning messages from byacc.  bison
11889         still complains thrice.
11890
11891 Fri Dec 18 12:33:29 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11892
11893         * ch-actions.c (maybe_chill_comptypes): Delete unused
11894         function.
11895         (chill_comptypes): Add new parameter ERRSTR.  All callers
11896         changed.
11897         (build_chill_binary_op): Fix indentation to match GNU coding
11898         style.
11899
11900 Fri Dec 18 08:18:13 1992  Bill Cox  (bill@rtl.cygnus.com)
11901
11902         * ch-parse.y, ch-expr.c, ch-actions.c, expr.c:  major
11903         cleanup of expression and assignment handling.
11904
11905 Thu Dec 17 10:16:32 1992  Bill Cox  (bill@cygnus.com)
11906
11907         * ch-parse.y: standardize indentation after c-parse.y
11908
11909 Wed Dec 16 15:22:12 1992  Per Bothner  (bothner@cygnus.com)
11910
11911         * c-typeck.c (process_init_constructor):  Add support for
11912         a default initializer element.
11913         * ch-parse.y: Implement default elements for tuples
11914         (as in '(else):' and '(*):' ).
11915
11916         * ch-parse.y:  Previous change to dis-ambiguate case-labels
11917         seems to have allowed getting rid of all of the expr_or_list hair.
11918         * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11919         initialization of multiple variables by a tuple" - the
11920         idea is bogus.
11921
11922 Wed Dec 16 11:17:53 1992  Bill Cox  (bill@cygnus.com)
11923
11924         * ch-parse.y: complete re-write of DO statement handling.
11925         now operational, except WITH is stubbed out.  Improved
11926         syntax error message.
11927         * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11928         * ch-expr.c: fixes to IN_EXPR handling.
11929
11930 Tue Dec 15 17:15:13 1992  Jim Wilson  (wilson@sphagnum.cygnus.com)
11931
11932         * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11933         * ch-lex.c: Likewise.
11934
11935         * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11936         by flex to avoid compiler error.
11937
11938 Tue Dec 15 08:41:08 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11939
11940         * ch-decl.c (do_decls): Handle initialization of multiple
11941         variables by a tuple.
11942
11943         * ch-decl.c (do_decls,start_chill_function): Make DECL public
11944         if we're doing a GRANT ALL at top level.
11945
11946         * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11947         range expression.
11948
11949         * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11950         BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11951
11952 Mon Dec 14 14:58:32 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11953
11954         * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11955         (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11956
11957 Mon Dec 14 13:36:44 1992  Bill Cox  (bill@cygnus.com)
11958
11959         * expr.c: install and test newer Pascal IN_EXPR code,
11960         but don't activate it - it's very verbose.
11961
11962 Mon Dec 14 00:22:49 1992  Fred Fish  (fnf@cygnus.com)
11963
11964         * Makefile.in (LANGUAGES):  Add chill.
11965         * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11966         New macros for chill native and cross installation names.
11967         * Makefile.in (COMPILERS):  Add cc1chill.
11968         * Makefile.in (CHILL_OBJS):  New macro, chill objects.
11969         * Makefile.in (CHILL_TREE_H):  New macro, chill headers.
11970         * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11971         sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11972         install-librmt):  New targets.
11973         * Makefile.in (install-native):  Add install-libchill,
11974         install-librmt.
11975
11976 Sun Dec 13 15:21:06 1992  Bill Cox  (bill@cygnus.com)
11977
11978         * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
11979
11980 Sun Dec 13 14:07:32 1992  Bill Cox  (bill@cygnus.com)
11981
11982         * ch-actions.c: fix unary operations, modulus ops,
11983         (discovered after extending regression tests).
11984
11985 Sun Dec 13 12:16:32 1992  Bill Cox  (bill@cygnus.com)
11986
11987         * resync with Michael and Wilfried
11988
11989 Sun Dec 13 09:11:25 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
11990
11991         * ch-parse.y (output_constant): Fixed some whitespace
11992         problems.
11993         * ch-tree.h: Add declarations for new chill functions that
11994         have been implemented but not (yet) declared.
11995
11996 Sat Dec 12 00:17:23 1992  Per Bothner  (bothner@cygnus.com)
11997
11998         * c-typeck.c (process_init_constructor):  Warn about duplicate
11999         labels for labelled initializer elements.
12000         * ch-lex.l (various operator tokens, such as "+"):  Don't
12001         set yylval.code to a TREE_CODE; this is better done in parser.
12002         * ch-parse.y:  Some work with case labels and tuples.
12003         Get literal range as tuple (and case) labels working.
12004         Fix some problems introduced by recent grammar overhaul.
12005
12006 Fri Dec 11 13:28:48 1992  Bill Cox  (bill@cygnus.com)
12007
12008         * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
12009         got long, real expressions working.  We can also call a func-
12010         tion and use its return value.
12011
12012 Thu Dec 10 14:45:17 1992  Per Bothner  (bothner@cygnus.com)
12013
12014         * ch-parse.y:  Major change to remove or at least identify
12015         parser ambiguities.  One result:  We now allow actions that
12016         start with '(', as required by teh Blue Book.  This does break
12017         some things; look for FIXME for things that need work.
12018         * ch-typeck.c (chill_expand_case_expr):  We need an extra
12019         level of looping to (in the future) support <case label
12020         specification>s with more than one <case label list>.
12021
12022 Thu Dec 10 09:21:41 1992  Bill Cox  (bill@cygnus.com)
12023
12024         * ch-actions.c, ch-expr.c: Implement string assignments
12025         and relationals.
12026
12027 Thu Dec 10 07:17:35 1992  Bill Cox  (bill@cygnus.com)
12028
12029         * ch-decl.c, ch-typeck.c: rest of previous commit.
12030
12031 Wed Dec  9 18:26:29 1992  Bill Cox  (bill@cygnus.com)
12032
12033         * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
12034         regression test and fix bit arrays and set ops.
12035
12036 Mon Dec  7 14:57:46 1992  Bill Cox  (bill@cygnus.com)
12037
12038         * ch-actions.c: implement crude relationals between
12039         non-exotic operands, such as integers.
12040
12041 Mon Dec  7 10:42:35 1992  Bill Cox  (bill@cygnus.com)
12042
12043         * ch-actions.c: implement relational, logic operations
12044         on arrays of BOOLs.
12045
12046 Mon Dec  7 08:55:20 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12047
12048         * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
12049         indicate we are done with initialization.
12050
12051         * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
12052         `grant all'.
12053         (start_chill_function): Ditto.
12054
12055         * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
12056         (compiler_directive): Don't confuse compiler directives with
12057         equality comparison operators.
12058
12059         * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
12060
12061 Sun Dec  6 13:12:32 1992  Bill Cox  (bill@cygnus.com)
12062
12063         * ch-actions.c: repair set inequality code.
12064
12065 Sun Dec  6 11:15:59 1992  Bill Cox  (bill@cygnus.com)
12066
12067         * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
12068         relational expressions, including (<, <=, =, /=, >, >=, IN).
12069
12070 Fri Dec  4 13:54:58 1992  Brendan Kehoe  (brendan@lisa.cygnus.com)
12071
12072         * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
12073         Pascal-required ones, since C++ no longer needs them.  When
12074         Chill's public, a comment can be added to the effect that
12075         SET_LE_EXPR is also used by Chill.
12076
12077 Fri Dec  4 12:05:01 1992  Bill Cox  (bill@cygnus.com)
12078
12079         * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
12080
12081 Fri Dec  4 10:23:10 1992  Bill Cox  (bill@cygnus.com)
12082         * Get *.def and *.c in sync.
12083
12084 Fri Dec  4 06:48:41 1992  Fred Fish  (fnf@cygnus.com)
12085
12086         * ch-actions.c (lang_init):  Change types "long" and
12087         "ulong" from 16 bits to 32.
12088         * dwarfout.c (fundamental_type_code):  Use FT_signed_char
12089         for type "byte" and FT_unsigned_char for type "ubyte".
12090
12091 Thu Dec  3 15:13:24 1992  Bill Cox  (bill@cygnus.com)
12092         * ch-actions.c, ch-tree.def, ch-parse.y:  preparation
12093         for powerset expressions.
12094
12095 Tue Dec  2 17:02:30 1992  Bill Cox  (bill@cygnus.com)
12096         * ch-actions.c: sketch code for exceptions generated
12097         by builtin routines.
12098
12099 Tue Dec  2 12:49:50 1992  Bill Cox  (bill@cygnus.com)
12100         * ch-actions.c, ch-parse.y: add support for lower()
12101         upper() builtin functions.
12102
12103 Wed Dec  2 12:03:30 1992  Fred Fish  (fnf@cygnus.com)
12104
12105         * Makefile.in (chillrt0.o, install-chillrt0):  Remove.
12106         * chill (library):  Remove chillrt0.o.
12107         * chillrt/Makefile:  Remove maintenance of chillrt0.o as a
12108         separate file.  Now gets put in libchill.a.
12109
12110 Tue Dec  2 10:100:20 1992  Bill Cox  (bill@cygnus.com)
12111
12112         * ch-parse.y, ch-actions.c: add support for num()
12113         builtin function.
12114
12115 Wed Dec  2 09:52:06 1992  Michael Tiemann  (tiemann@rtl.cygnus.com)
12116
12117         * ch-decl.c (fixup_unknown_type): New function.
12118         (push_newmode,push_synmode): Call `fixup_unknown_type' when we
12119         see a declaration that uses `unknown_type_node'.  FIXME.
12120
12121         * ch-grant.c (decode_constant): New function.
12122         (decode_decl): Call `decode_constant' for CONST_DECLs.
12123
12124         * ch-lex.l (char action): Use ridpointers instead of
12125         lookup_name to get "char"'s declaration.
12126
12127         * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
12128         when we need to build a TYPE_DECL.
12129
12130 Tue Dec  2 09:44:05 1992  Bill Cox  (bill@cygnus.com)
12131
12132         * ch-typeck.c: clean up a gcc warning with a forward
12133         declaration of build_string_type.
12134
12135 Tue Dec  1 16:51:05 1992  Bill Cox  (bill@cygnus.com)
12136
12137         * ch-actions.c: completely remove those builtin calls
12138         that are duplicated in c-decl.c
12139
12140 Tue Dec  1 16:38:51 1992  Fred Fish  (fnf@cygnus.com)
12141
12142         * ch-actions.c (lang_init):  Ifdef out initializations for
12143         __builtin_abs and __builtin_fabs, since they are duplicates of
12144         initializations in c-decl.c, and trigger spurious warnings.
12145
12146 Tue Dec  1 16:35:18 1992  Bill Cox  (bill@cygnus.com)
12147
12148         * ch-parse.y: make size() work with a typename argument.
12149
12150 Tue Dec  1 16:15:56 1992  Bill Cox  (bill@cygnus.com)
12151
12152         * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
12153         functions min, max, card.
12154
12155 Tue Dec  1 12:35:56 1992  Bill Cox  (bill@cygnus.com)
12156
12157         * ch-lex.l: fix char-type
12158
12159 Tue Dec  1 11:10:56 1992  Bill Cox  (bill@cygnus.com)
12160
12161         * ch-parse.y, ch-actions: added parsing and processing
12162         for upper, lower, and length built-ins.
12163
12164 Tue Dec  1 09:40:49 1992  Fred Fish  (fnf@cygnus.com)
12165
12166         * dwarf.h (LANG_CHILL):  Add as GNU extension.
12167         * dwarfout.c (output_compile_unit_die):  Test language_string and
12168         set LANG_CHILL if appropriate.
12169         * ch-parse.y (language_string):  New for chill.
12170         * chillrt:  Renamed directory chill to chillrt.
12171         * chill:  Renamed chillsh to chill.
12172         * Makefile.in:  Adjust for renamings.
12173         * chillrt/Makefile:  Adjust for directory renaming.
12174
12175 Mon Nov 30 17:35:33 1992  Fred Fish  (fnf@cygnus.com)
12176
12177         * chillsh:  New script frontend (ala g++), installed as "chill".
12178         Can't be called "chill.sh" because make tries to cat it into the
12179         "chill" directory.  Can't be called just "chill" cause that's
12180         already there as a directory.
12181         * Makefile.in:  Add rules to install chillsh as "chill".
12182         * chill/libchill.c:  Temporarily ifdef out stuff that wants
12183         to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
12184         which itself causes linkage to fail.
12185
12186 Mon Nov 30 16:28:19 1992  Bill Cox  (bill@cygnus.com)
12187
12188         * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
12189         conversion routines.
12190         * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
12191         Added production for SIZE(expr).
12192         * ch-actions.c: Add semantic routine chill_sizeof ().
12193
12194 Mon Nov 30 16:20:40 1992  Per Bothner  (bothner@cygnus.com)
12195
12196         * ch-lex.l, ch-parse.y:  Translate token PFEIL into English ARROW.
12197         * ch-parse.y (op6):  Remove handling of string repetition operator,
12198         until we can figure out a way to parse it correctly.
12199         * ch-parse.y (optmodename):  New non-terminal.
12200         * ch-parse.y (tuple):  Merge the two variants using optmodename.
12201         * ch-parse.y (location):  Add semantic actions for
12202         dereferencing operator ->.
12203
12204 Mon Nov 30 08:01:29 1992  Bill Cox  (bill@cygnus.com)
12205
12206         * ch-actions.c: removed compile warning, better code for abs.
12207
12208         * ch-parse.y: add productions for builtin functions succ, pred,
12209         abs, and size.  Add %tokens also.  Sort %tokens alphabetically.
12210
12211         * ch-lex.l: add parsing for builtin function names, such as abs,
12212         pred, succ, etc.  Put flex -a option into Makefile.in, so we can
12213         clean up the lexer soon.
12214
12215 Tue Nov 24 14:18:48 1992  Per Bothner  (bothner@rtl.cygnus.com)
12216
12217         * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
12218         New functions, for code common to CASE actions and expressions.
12219         * chill.y:  Replace some code by calls to chill_handle_case_label
12220         and chill_handle_case_default.
12221         * ch-typeck.c (chill_expand_case_expr):  Add semantics.
12222
12223         * tree.c:  Change doing_chill_thang from extern to common.
12224
12225 Mon Nov 23 18:34:22 1992  Per Bothner  (bothner@rtl.cygnus.com)
12226
12227         * ch-tree.def:  New CASE_EXPR type, for case expressions.
12228         * ch-expr.c (chill_expand_expr):  Hook for CASE_EXPR.
12229         * ch-typeck.c (chill_expand_case_expr):  New function.
12230         Placeholder to implement case expressions.
12231         * ch-typeck.c (chill_expand_result, chill_expand_return):
12232         Handle mode-unspecified tuples and case expressions in
12233         the context of RETURN and RESULT actions.
12234         * chill.y (assignaction):  Handle case expressions in the
12235         context of the RHS of an assignment action.
12236         * chill.y (caseaction): Remove spurious duplicate OF in grammar.
12237         * chill.y:  Handle labeled structure tuples.
12238         * chill.y:  New rules to parse CASE expressions.
12239         * tree.c (build_function_types):  Allow Chill functions
12240         to return arrays and functions.
12241
12242 Wed Nov 18 13:50:28 1992  Per Bothner  (bothner@rtl.cygnus.com)
12243
12244         * ch-typeck.c (chill_expand_tuple):  New function. Expand a
12245         tuple (constructor) given an expected (context) type.
12246         * chill.y:  Implement 'LHS := TUPLE' using expand_chill_tuple,
12247         using the mode of the LHS and the expected type of the TUPLE.
12248         * chill.y:  Implement initialization.
12249         * chill.y:  Fix some syntax bugs (forbidlist must be surrounded
12250         by parentheses), and remove or note ambiguities.
12251         * chill.y:  Started converting layout style to be like c-parse.in.
12252         * chill.y:  Implement IF expressions.
12253         * chill.y:  Added syntax rules for tuples.  Labelled and unlabelled
12254         array tuples should now work (in some contexts).
12255         * ch-actions.c:  Initialize doing_chill_thang to 1.
12256         * ch-decl.c (do_decls):  Set DECL_INITIAL if there is an
12257         initializer, to make pushdecl and finish_decl work.
12258         * c-decl.c (convert_for_assignment):  If Chill, don't convert
12259         function and arrays into pointers.  (Maybe functions should
12260         still be converted?)
12261         * c-typeck.c (grokdeclarator):  Allow functions in Chill
12262         to return arrays and functions.
12263
12264 Mon Nov 16 15:40:47 1992  Per Bothner  (bothner@rtl.cygnus.com)
12265
12266         * chill.y (exprlist_get_single):  New function, used when
12267         parsing tuples.
12268         * chill.y:  Re-did parsing of tuples to remove ambiguities.
12269         This was a bitch.
12270
12271 Tue Nov 10 16:30:55 1992  Per Bothner  (bothner@rtl.cygnus.com)
12272
12273         * ch-typeck.c (chill_expand_result);  Set TREE_SIDE_EFEFCTS
12274         flags on assignment to result.
12275         * ch-typeck.c (build_chill_array_ref):  Subtract lower
12276         bound of domain if non-zero.  Preliminary hook for range checking.
12277         * ch-tree.h, chill.l:  Combine variables range_check and
12278         range_check_disabled into global variable range_checking.
12279         * ch-tree.h:  Better definitions of CH_CLASS_IS_VALUE
12280         CH_CLASS_IS_DERIVED.